CryptoKey constructor

CryptoKey(
  1. String name, {
  2. CryptoKeyArgs? args,
  3. CustomResourceOptions? options,
})

Creates a new CryptoKey. name The Pulumi resource name. args Arguments used to configure this CryptoKey. The set of arguments for CryptoKey. options Resource options controlling this resource's behavior.

Implementation

CryptoKey(
  String name, {
  CryptoKeyArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'gcp:kms/cryptoKey:CryptoKey',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '9.36.1').merge(options),
        additionalSecretOutputs: const ['effectiveLabels', 'pulumiLabels'],
      ) {
  cryptoKeyBackend = registerOutput<String>('cryptoKeyBackend');
  deletionPolicy = registerOutput<String>('deletionPolicy');
  destroyScheduledDuration = registerOutput<String>('destroyScheduledDuration');
  effectiveLabels = registerOutput<Map<String, String>>('effectiveLabels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); }, isSecret: true);
  importOnly = registerOutput<bool>('importOnly');
  keyAccessJustificationsPolicy = registerOutput<CryptoKeyKeyAccessJustificationsPolicy>('keyAccessJustificationsPolicy', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return CryptoKeyKeyAccessJustificationsPolicy.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  keyRing = registerOutput<String>('keyRing');
  labels = registerOutput<Map<String, String>?>('labels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
  this.name = registerOutput<String>('name');
  primaries = registerOutput<List<CryptoKeyPrimary>>('primaries', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<CryptoKeyPrimary>(guardedValue, (value) => CryptoKeyPrimary.fromMap((value as Map).cast<String, dynamic>())); });
  pulumiLabels = registerOutput<Map<String, String>>('pulumiLabels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); }, isSecret: true);
  purpose = registerOutput<String?>('purpose');
  rotationPeriod = registerOutput<String?>('rotationPeriod');
  skipInitialVersionCreation = registerOutput<bool?>('skipInitialVersionCreation');
  versionTemplate = registerOutput<CryptoKeyVersionTemplate>('versionTemplate', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return CryptoKeyVersionTemplate.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}