Class SecretManagerSecretConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.secret_manager_secret.SecretManagerSecretConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecretManagerSecretConfig>
- Enclosing interface:
- SecretManagerSecretConfig
@Stability(Stable) public static final class SecretManagerSecretConfig.Builder extends Object implements software.amazon.jsii.Builder<SecretManagerSecretConfig>
A builder forSecretManagerSecretConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
replication
@Stability(Stable) public SecretManagerSecretConfig.Builder replication(SecretManagerSecretReplication replication)
Sets the value ofSecretManagerSecretConfig.getReplication()- Parameters:
replication- replication block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret#replication SecretManagerSecret#replication}- Returns:
this
-
secretId
@Stability(Stable) public SecretManagerSecretConfig.Builder secretId(String secretId)
Sets the value ofSecretManagerSecretConfig.getSecretId()- Parameters:
secretId- This must be unique within the project. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret#secret_id SecretManagerSecret#secret_id}- Returns:
this
-
annotations
@Stability(Stable) public SecretManagerSecretConfig.Builder annotations(Map<String,String> annotations)
Sets the value ofSecretManagerSecretConfig.getAnnotations()- Parameters:
annotations- Custom metadata about the secret. Annotations are distinct from various forms of labels. Annotations exist to allow client tools to store their own state information without requiring a database. Annotation keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may have dashes (-), underscores (_), dots (.), and alphanumerics in between these symbols. The total size of annotation keys and values must be less than 16KiB. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. **Note**: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret#annotations SecretManagerSecret#annotations}- Returns:
this
-
expireTime
@Stability(Stable) public SecretManagerSecretConfig.Builder expireTime(String expireTime)
Sets the value ofSecretManagerSecretConfig.getExpireTime()- Parameters:
expireTime- Timestamp in UTC when the Secret is scheduled to expire. This is always provided on output, regardless of what was sent on input. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". Only one of 'expire_time' or 'ttl' can be provided. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret#expire_time SecretManagerSecret#expire_time}- Returns:
this
-
id
@Stability(Stable) public SecretManagerSecretConfig.Builder id(String id)
Sets the value ofSecretManagerSecretConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret#id SecretManagerSecret#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
-
labels
@Stability(Stable) public SecretManagerSecretConfig.Builder labels(Map<String,String> labels)
Sets the value ofSecretManagerSecretConfig.getLabels()- Parameters:
labels- The labels assigned to this Secret. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62} Label values must be between 0 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be assigned to a given resource. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret#labels SecretManagerSecret#labels}- Returns:
this
-
project
@Stability(Stable) public SecretManagerSecretConfig.Builder project(String project)
Sets the value ofSecretManagerSecretConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret#project SecretManagerSecret#project}.- Returns:
this
-
rotation
@Stability(Stable) public SecretManagerSecretConfig.Builder rotation(SecretManagerSecretRotation rotation)
Sets the value ofSecretManagerSecretConfig.getRotation()- Parameters:
rotation- rotation block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret#rotation SecretManagerSecret#rotation}- Returns:
this
-
timeouts
@Stability(Stable) public SecretManagerSecretConfig.Builder timeouts(SecretManagerSecretTimeouts timeouts)
Sets the value ofSecretManagerSecretConfig.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#timeouts SecretManagerSecret#timeouts}- Returns:
this
-
topics
@Stability(Stable) public SecretManagerSecretConfig.Builder topics(com.hashicorp.cdktf.IResolvable topics)
Sets the value ofSecretManagerSecretConfig.getTopics()- Parameters:
topics- topics block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret#topics SecretManagerSecret#topics}- Returns:
this
-
topics
@Stability(Stable) public SecretManagerSecretConfig.Builder topics(List<? extends SecretManagerSecretTopics> topics)
Sets the value ofSecretManagerSecretConfig.getTopics()- Parameters:
topics- topics block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret#topics SecretManagerSecret#topics}- Returns:
this
-
ttl
@Stability(Stable) public SecretManagerSecretConfig.Builder ttl(String ttl)
Sets the value ofSecretManagerSecretConfig.getTtl()- Parameters:
ttl- The TTL for the Secret. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s". Only one of 'ttl' or 'expire_time' can be provided. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret#ttl SecretManagerSecret#ttl}- Returns:
this
-
versionAliases
@Stability(Stable) public SecretManagerSecretConfig.Builder versionAliases(Map<String,String> versionAliases)
Sets the value ofSecretManagerSecretConfig.getVersionAliases()- Parameters:
versionAliases- Mapping from version alias to version name. A version alias is a string with a maximum length of 63 characters and can contain uppercase and lowercase letters, numerals, and the hyphen (-) and underscore ('_') characters. An alias string must start with a letter and cannot be the string 'latest' or 'NEW'. No more than 50 aliases can be assigned to a given secret. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret#version_aliases SecretManagerSecret#version_aliases}- Returns:
this
-
versionDestroyTtl
@Stability(Stable) public SecretManagerSecretConfig.Builder versionDestroyTtl(String versionDestroyTtl)
Sets the value ofSecretManagerSecretConfig.getVersionDestroyTtl()- Parameters:
versionDestroyTtl- Secret Version TTL after destruction request. This is a part of the delayed delete feature on Secret Version. For secret with versionDestroyTtl>0, version destruction doesn't happen immediately on calling destroy instead the version goes to a disabled state and the actual destruction happens after this TTL expires. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret#version_destroy_ttl SecretManagerSecret#version_destroy_ttl}- Returns:
this
-
connection
@Stability(Experimental) public SecretManagerSecretConfig.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 SecretManagerSecretConfig.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 SecretManagerSecretConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public SecretManagerSecretConfig.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 SecretManagerSecretConfig.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 SecretManagerSecretConfig.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 SecretManagerSecretConfig.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 SecretManagerSecretConfig.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 SecretManagerSecretConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public SecretManagerSecretConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SecretManagerSecretConfig>- Returns:
- a new instance of
SecretManagerSecretConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-