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(
        'google-native:cloudkms/v1:CryptoKey',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        options ?? pulumi.CustomResourceOptions(),
      ) {
  createTime = registerOutput<String>('createTime');
  cryptoKeyBackend = registerOutput<String>('cryptoKeyBackend');
  cryptoKeyId = registerOutput<String>('cryptoKeyId');
  destroyScheduledDuration = registerOutput<String>('destroyScheduledDuration');
  importOnly = registerOutput<bool>('importOnly');
  keyRingId = registerOutput<String>('keyRingId');
  labels = registerOutput<Map<String, String>>('labels');
  location = registerOutput<String>('location');
  this.name = registerOutput<String>('name');
  nextRotationTime = registerOutput<String>('nextRotationTime');
  primary = registerOutput<CryptoKeyVersionResponse>('primary', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return CryptoKeyVersionResponse.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  project = registerOutput<String>('project');
  purpose = registerOutput<String>('purpose');
  rotationPeriod = registerOutput<String>('rotationPeriod');
  skipInitialVersionCreation = registerOutput<bool?>('skipInitialVersionCreation');
  versionTemplate = registerOutput<CryptoKeyVersionTemplateResponse>('versionTemplate', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return CryptoKeyVersionTemplateResponse.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}