Class KmsGrantConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.kms_grant.KmsGrantConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KmsGrantConfig>
- Enclosing interface:
- KmsGrantConfig
@Stability(Stable) public static final class KmsGrantConfig.Builder extends Object implements software.amazon.jsii.Builder<KmsGrantConfig>
A builder forKmsGrantConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KmsGrantConfigbuild()Builds the configured instance.KmsGrantConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()KmsGrantConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()KmsGrantConfig.Builderconstraints(com.hashicorp.cdktf.IResolvable constraints)Sets the value ofKmsGrantConfig.getConstraints()KmsGrantConfig.Builderconstraints(List<? extends KmsGrantConstraints> constraints)Sets the value ofKmsGrantConfig.getConstraints()KmsGrantConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()KmsGrantConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()KmsGrantConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()KmsGrantConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()KmsGrantConfig.BuildergrantCreationTokens(List<String> grantCreationTokens)Sets the value ofKmsGrantConfig.getGrantCreationTokens()KmsGrantConfig.BuildergranteePrincipal(String granteePrincipal)Sets the value ofKmsGrantConfig.getGranteePrincipal()KmsGrantConfig.Builderid(String id)Sets the value ofKmsGrantConfig.getId()KmsGrantConfig.BuilderkeyId(String keyId)Sets the value ofKmsGrantConfig.getKeyId()KmsGrantConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()KmsGrantConfig.Buildername(String name)Sets the value ofKmsGrantConfig.getName()KmsGrantConfig.Builderoperations(List<String> operations)Sets the value ofKmsGrantConfig.getOperations()KmsGrantConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()KmsGrantConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()KmsGrantConfig.BuilderretireOnDelete(com.hashicorp.cdktf.IResolvable retireOnDelete)Sets the value ofKmsGrantConfig.getRetireOnDelete()KmsGrantConfig.BuilderretireOnDelete(Boolean retireOnDelete)Sets the value ofKmsGrantConfig.getRetireOnDelete()KmsGrantConfig.BuilderretiringPrincipal(String retiringPrincipal)Sets the value ofKmsGrantConfig.getRetiringPrincipal()
-
-
-
Method Detail
-
granteePrincipal
@Stability(Stable) public KmsGrantConfig.Builder granteePrincipal(String granteePrincipal)
Sets the value ofKmsGrantConfig.getGranteePrincipal()- Parameters:
granteePrincipal- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/kms_grant#grantee_principal KmsGrant#grantee_principal}. This parameter is required.- Returns:
this
-
keyId
@Stability(Stable) public KmsGrantConfig.Builder keyId(String keyId)
Sets the value ofKmsGrantConfig.getKeyId()- Parameters:
keyId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/kms_grant#key_id KmsGrant#key_id}. This parameter is required.- Returns:
this
-
operations
@Stability(Stable) public KmsGrantConfig.Builder operations(List<String> operations)
Sets the value ofKmsGrantConfig.getOperations()- Parameters:
operations- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/kms_grant#operations KmsGrant#operations}. This parameter is required.- Returns:
this
-
constraints
@Stability(Stable) public KmsGrantConfig.Builder constraints(com.hashicorp.cdktf.IResolvable constraints)
Sets the value ofKmsGrantConfig.getConstraints()- Parameters:
constraints- constraints block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/kms_grant#constraints KmsGrant#constraints}- Returns:
this
-
constraints
@Stability(Stable) public KmsGrantConfig.Builder constraints(List<? extends KmsGrantConstraints> constraints)
Sets the value ofKmsGrantConfig.getConstraints()- Parameters:
constraints- constraints block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/kms_grant#constraints KmsGrant#constraints}- Returns:
this
-
grantCreationTokens
@Stability(Stable) public KmsGrantConfig.Builder grantCreationTokens(List<String> grantCreationTokens)
Sets the value ofKmsGrantConfig.getGrantCreationTokens()- Parameters:
grantCreationTokens- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/kms_grant#grant_creation_tokens KmsGrant#grant_creation_tokens}.- Returns:
this
-
id
@Stability(Stable) public KmsGrantConfig.Builder id(String id)
Sets the value ofKmsGrantConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/kms_grant#id KmsGrant#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
-
name
@Stability(Stable) public KmsGrantConfig.Builder name(String name)
Sets the value ofKmsGrantConfig.getName()- Parameters:
name- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/kms_grant#name KmsGrant#name}.- Returns:
this
-
retireOnDelete
@Stability(Stable) public KmsGrantConfig.Builder retireOnDelete(Boolean retireOnDelete)
Sets the value ofKmsGrantConfig.getRetireOnDelete()- Parameters:
retireOnDelete- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/kms_grant#retire_on_delete KmsGrant#retire_on_delete}.- Returns:
this
-
retireOnDelete
@Stability(Stable) public KmsGrantConfig.Builder retireOnDelete(com.hashicorp.cdktf.IResolvable retireOnDelete)
Sets the value ofKmsGrantConfig.getRetireOnDelete()- Parameters:
retireOnDelete- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/kms_grant#retire_on_delete KmsGrant#retire_on_delete}.- Returns:
this
-
retiringPrincipal
@Stability(Stable) public KmsGrantConfig.Builder retiringPrincipal(String retiringPrincipal)
Sets the value ofKmsGrantConfig.getRetiringPrincipal()- Parameters:
retiringPrincipal- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/kms_grant#retiring_principal KmsGrant#retiring_principal}.- Returns:
this
-
connection
@Stability(Experimental) public KmsGrantConfig.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 KmsGrantConfig.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 KmsGrantConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public KmsGrantConfig.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 KmsGrantConfig.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 KmsGrantConfig.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 KmsGrantConfig.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 KmsGrantConfig.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 KmsGrantConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public KmsGrantConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KmsGrantConfig>- Returns:
- a new instance of
KmsGrantConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-