Class SecretManagerSecretVersion.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.secret_manager_secret_version.SecretManagerSecretVersion.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecretManagerSecretVersion>
- Enclosing class:
- SecretManagerSecretVersion
@Stability(Stable) public static final class SecretManagerSecretVersion.Builder extends Object implements software.amazon.jsii.Builder<SecretManagerSecretVersion>
A fluent builder forSecretManagerSecretVersion.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SecretManagerSecretVersionbuild()SecretManagerSecretVersion.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)SecretManagerSecretVersion.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)SecretManagerSecretVersion.Buildercount(com.hashicorp.cdktf.TerraformCount count)SecretManagerSecretVersion.Buildercount(Number count)static SecretManagerSecretVersion.Buildercreate(software.constructs.Construct scope, String id)SecretManagerSecretVersion.BuilderdeletionPolicy(String deletionPolicy)The deletion policy for the secret version.SecretManagerSecretVersion.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)SecretManagerSecretVersion.Builderenabled(com.hashicorp.cdktf.IResolvable enabled)The current state of the SecretVersion.SecretManagerSecretVersion.Builderenabled(Boolean enabled)The current state of the SecretVersion.SecretManagerSecretVersion.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)SecretManagerSecretVersion.Builderid(String id)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret_version#id SecretManagerSecretVersion#id}.SecretManagerSecretVersion.BuilderisSecretDataBase64(com.hashicorp.cdktf.IResolvable isSecretDataBase64)If set to 'true', the secret data is expected to be base64-encoded string and would be sent as is.SecretManagerSecretVersion.BuilderisSecretDataBase64(Boolean isSecretDataBase64)If set to 'true', the secret data is expected to be base64-encoded string and would be sent as is.SecretManagerSecretVersion.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)SecretManagerSecretVersion.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)SecretManagerSecretVersion.Builderprovisioners(List<? extends Object> provisioners)SecretManagerSecretVersion.Buildersecret(String secret)Secret Manager secret resource.SecretManagerSecretVersion.BuildersecretData(String secretData)The secret data.SecretManagerSecretVersion.Buildertimeouts(SecretManagerSecretVersionTimeouts timeouts)timeouts block.
-
-
-
Method Detail
-
create
@Stability(Stable) public static SecretManagerSecretVersion.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
SecretManagerSecretVersion.Builder.
-
connection
@Stability(Experimental) public SecretManagerSecretVersion.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public SecretManagerSecretVersion.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public SecretManagerSecretVersion.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public SecretManagerSecretVersion.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public SecretManagerSecretVersion.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public SecretManagerSecretVersion.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public SecretManagerSecretVersion.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public SecretManagerSecretVersion.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public SecretManagerSecretVersion.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
secret
@Stability(Stable) public SecretManagerSecretVersion.Builder secret(String secret)
Secret Manager secret resource.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret_version#secret SecretManagerSecretVersion#secret}
- Parameters:
secret- Secret Manager secret resource. This parameter is required.- Returns:
this
-
secretData
@Stability(Stable) public SecretManagerSecretVersion.Builder secretData(String secretData)
The secret data. Must be no larger than 64KiB.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret_version#secret_data SecretManagerSecretVersion#secret_data}
- Parameters:
secretData- The secret data. Must be no larger than 64KiB. This parameter is required.- Returns:
this
-
deletionPolicy
@Stability(Stable) public SecretManagerSecretVersion.Builder deletionPolicy(String deletionPolicy)
The deletion policy for the secret version.Setting 'ABANDON' allows the resource to be abandoned rather than deleted. Setting 'DISABLE' allows the resource to be disabled rather than deleted. Default is 'DELETE'. Possible values are: * DELETE * DISABLE * ABANDON Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret_version#deletion_policy SecretManagerSecretVersion#deletion_policy}
- Parameters:
deletionPolicy- The deletion policy for the secret version. This parameter is required.- Returns:
this
-
enabled
@Stability(Stable) public SecretManagerSecretVersion.Builder enabled(Boolean enabled)
The current state of the SecretVersion.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret_version#enabled SecretManagerSecretVersion#enabled}
- Parameters:
enabled- The current state of the SecretVersion. This parameter is required.- Returns:
this
-
enabled
@Stability(Stable) public SecretManagerSecretVersion.Builder enabled(com.hashicorp.cdktf.IResolvable enabled)
The current state of the SecretVersion.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret_version#enabled SecretManagerSecretVersion#enabled}
- Parameters:
enabled- The current state of the SecretVersion. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public SecretManagerSecretVersion.Builder id(String id)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret_version#id SecretManagerSecretVersion#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/secret_manager_secret_version#id SecretManagerSecretVersion#id}. This parameter is required.- Returns:
this
-
isSecretDataBase64
@Stability(Stable) public SecretManagerSecretVersion.Builder isSecretDataBase64(Boolean isSecretDataBase64)
If set to 'true', the secret data is expected to be base64-encoded string and would be sent as is.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret_version#is_secret_data_base64 SecretManagerSecretVersion#is_secret_data_base64}
- Parameters:
isSecretDataBase64- If set to 'true', the secret data is expected to be base64-encoded string and would be sent as is. This parameter is required.- Returns:
this
-
isSecretDataBase64
@Stability(Stable) public SecretManagerSecretVersion.Builder isSecretDataBase64(com.hashicorp.cdktf.IResolvable isSecretDataBase64)
If set to 'true', the secret data is expected to be base64-encoded string and would be sent as is.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret_version#is_secret_data_base64 SecretManagerSecretVersion#is_secret_data_base64}
- Parameters:
isSecretDataBase64- If set to 'true', the secret data is expected to be base64-encoded string and would be sent as is. This parameter is required.- Returns:
this
-
timeouts
@Stability(Stable) public SecretManagerSecretVersion.Builder timeouts(SecretManagerSecretVersionTimeouts timeouts)
timeouts block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret_version#timeouts SecretManagerSecretVersion#timeouts}
- Parameters:
timeouts- timeouts block. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public SecretManagerSecretVersion build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SecretManagerSecretVersion>- Returns:
- a newly built instance of
SecretManagerSecretVersion.
-
-