Class KmsCryptoKeyVersion.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.kms_crypto_key_version.KmsCryptoKeyVersion.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KmsCryptoKeyVersion>
- Enclosing class:
- KmsCryptoKeyVersion
@Stability(Stable) public static final class KmsCryptoKeyVersion.Builder extends Object implements software.amazon.jsii.Builder<KmsCryptoKeyVersion>
A fluent builder forKmsCryptoKeyVersion.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KmsCryptoKeyVersionbuild()KmsCryptoKeyVersion.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)KmsCryptoKeyVersion.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)KmsCryptoKeyVersion.Buildercount(com.hashicorp.cdktf.TerraformCount count)KmsCryptoKeyVersion.Buildercount(Number count)static KmsCryptoKeyVersion.Buildercreate(software.constructs.Construct scope, String id)KmsCryptoKeyVersion.BuildercryptoKey(String cryptoKey)The name of the cryptoKey associated with the CryptoKeyVersions.KmsCryptoKeyVersion.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)KmsCryptoKeyVersion.BuilderexternalProtectionLevelOptions(KmsCryptoKeyVersionExternalProtectionLevelOptions externalProtectionLevelOptions)external_protection_level_options block.KmsCryptoKeyVersion.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)KmsCryptoKeyVersion.Builderid(String id)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/kms_crypto_key_version#id KmsCryptoKeyVersion#id}.KmsCryptoKeyVersion.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)KmsCryptoKeyVersion.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)KmsCryptoKeyVersion.Builderprovisioners(List<? extends Object> provisioners)KmsCryptoKeyVersion.Builderstate(String state)The current state of the CryptoKeyVersion.KmsCryptoKeyVersion.Buildertimeouts(KmsCryptoKeyVersionTimeouts timeouts)timeouts block.
-
-
-
Method Detail
-
create
@Stability(Stable) public static KmsCryptoKeyVersion.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope- The scope in which to define this construct. This parameter is required.id- The scoped construct ID. This parameter is required.- Returns:
- a new instance of
KmsCryptoKeyVersion.Builder.
-
connection
@Stability(Experimental) public KmsCryptoKeyVersion.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public KmsCryptoKeyVersion.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public KmsCryptoKeyVersion.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public KmsCryptoKeyVersion.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public KmsCryptoKeyVersion.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public KmsCryptoKeyVersion.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public KmsCryptoKeyVersion.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public KmsCryptoKeyVersion.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public KmsCryptoKeyVersion.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
cryptoKey
@Stability(Stable) public KmsCryptoKeyVersion.Builder cryptoKey(String cryptoKey)
The name of the cryptoKey associated with the CryptoKeyVersions. Format: ''projects/{{project}}/locations/{{location}}/keyRings/{{keyring}}/cryptoKeys/{{cryptoKey}}''.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/kms_crypto_key_version#crypto_key KmsCryptoKeyVersion#crypto_key}
- Parameters:
cryptoKey- The name of the cryptoKey associated with the CryptoKeyVersions. Format: ''projects/{{project}}/locations/{{location}}/keyRings/{{keyring}}/cryptoKeys/{{cryptoKey}}''. This parameter is required.- Returns:
this
-
externalProtectionLevelOptions
@Stability(Stable) public KmsCryptoKeyVersion.Builder externalProtectionLevelOptions(KmsCryptoKeyVersionExternalProtectionLevelOptions externalProtectionLevelOptions)
external_protection_level_options block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/kms_crypto_key_version#external_protection_level_options KmsCryptoKeyVersion#external_protection_level_options}
- Parameters:
externalProtectionLevelOptions- external_protection_level_options block. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public KmsCryptoKeyVersion.Builder id(String id)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/kms_crypto_key_version#id KmsCryptoKeyVersion#id}.Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/kms_crypto_key_version#id KmsCryptoKeyVersion#id}. This parameter is required.- Returns:
this
-
state
@Stability(Stable) public KmsCryptoKeyVersion.Builder state(String state)
The current state of the CryptoKeyVersion. Possible values: ["PENDING_GENERATION", "ENABLED", "DISABLED", "DESTROYED", "DESTROY_SCHEDULED", "PENDING_IMPORT", "IMPORT_FAILED"].Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/kms_crypto_key_version#state KmsCryptoKeyVersion#state}
- Parameters:
state- The current state of the CryptoKeyVersion. Possible values: ["PENDING_GENERATION", "ENABLED", "DISABLED", "DESTROYED", "DESTROY_SCHEDULED", "PENDING_IMPORT", "IMPORT_FAILED"]. This parameter is required.- Returns:
this
-
timeouts
@Stability(Stable) public KmsCryptoKeyVersion.Builder timeouts(KmsCryptoKeyVersionTimeouts timeouts)
timeouts block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/kms_crypto_key_version#timeouts KmsCryptoKeyVersion#timeouts}
- Parameters:
timeouts- timeouts block. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public KmsCryptoKeyVersion build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KmsCryptoKeyVersion>- Returns:
- a newly built instance of
KmsCryptoKeyVersion.
-
-