Class SecretManagerSecretVersionConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.secret_manager_secret_version.SecretManagerSecretVersionConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecretManagerSecretVersionConfig>
- Enclosing interface:
- SecretManagerSecretVersionConfig
@Stability(Stable) public static final class SecretManagerSecretVersionConfig.Builder extends Object implements software.amazon.jsii.Builder<SecretManagerSecretVersionConfig>
A builder forSecretManagerSecretVersionConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
secret
@Stability(Stable) public SecretManagerSecretVersionConfig.Builder secret(String secret)
Sets the value ofSecretManagerSecretVersionConfig.getSecret()- Parameters:
secret- Secret Manager secret resource. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret_version#secret SecretManagerSecretVersion#secret}- Returns:
this
-
secretData
@Stability(Stable) public SecretManagerSecretVersionConfig.Builder secretData(String secretData)
Sets the value ofSecretManagerSecretVersionConfig.getSecretData()- Parameters:
secretData- The secret data. Must be no larger than 64KiB. This parameter is required. 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}- Returns:
this
-
deletionPolicy
@Stability(Stable) public SecretManagerSecretVersionConfig.Builder deletionPolicy(String deletionPolicy)
Sets the value ofSecretManagerSecretVersionConfig.getDeletionPolicy()- Parameters:
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}- Returns:
this
-
enabled
@Stability(Stable) public SecretManagerSecretVersionConfig.Builder enabled(Boolean enabled)
Sets the value ofSecretManagerSecretVersionConfig.getEnabled()- Parameters:
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}- Returns:
this
-
enabled
@Stability(Stable) public SecretManagerSecretVersionConfig.Builder enabled(com.hashicorp.cdktf.IResolvable enabled)
Sets the value ofSecretManagerSecretVersionConfig.getEnabled()- Parameters:
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}- Returns:
this
-
id
@Stability(Stable) public SecretManagerSecretVersionConfig.Builder id(String id)
Sets the value ofSecretManagerSecretVersionConfig.getId()- 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}. 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.- Returns:
this
-
isSecretDataBase64
@Stability(Stable) public SecretManagerSecretVersionConfig.Builder isSecretDataBase64(Boolean isSecretDataBase64)
Sets the value ofSecretManagerSecretVersionConfig.getIsSecretDataBase64()- Parameters:
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}- Returns:
this
-
isSecretDataBase64
@Stability(Stable) public SecretManagerSecretVersionConfig.Builder isSecretDataBase64(com.hashicorp.cdktf.IResolvable isSecretDataBase64)
Sets the value ofSecretManagerSecretVersionConfig.getIsSecretDataBase64()- Parameters:
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}- Returns:
this
-
timeouts
@Stability(Stable) public SecretManagerSecretVersionConfig.Builder timeouts(SecretManagerSecretVersionTimeouts timeouts)
Sets the value ofSecretManagerSecretVersionConfig.getTimeouts()- Parameters:
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}- Returns:
this
-
connection
@Stability(Experimental) public SecretManagerSecretVersionConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public SecretManagerSecretVersionConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public SecretManagerSecretVersionConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public SecretManagerSecretVersionConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public SecretManagerSecretVersionConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public SecretManagerSecretVersionConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public SecretManagerSecretVersionConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public SecretManagerSecretVersionConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public SecretManagerSecretVersionConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public SecretManagerSecretVersionConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SecretManagerSecretVersionConfig>- Returns:
- a new instance of
SecretManagerSecretVersionConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-