Class KmsGrant.Builder

  • All Implemented Interfaces:
    software.amazon.jsii.Builder<KmsGrant>
    Enclosing class:
    KmsGrant

    @Stability(Stable)
    public static final class KmsGrant.Builder
    extends Object
    implements software.amazon.jsii.Builder<KmsGrant>
    A fluent builder for KmsGrant.
    • Method Detail

      • create

        @Stability(Stable)
        public static KmsGrant.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 KmsGrant.Builder.
      • connection

        @Stability(Experimental)
        public KmsGrant.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public KmsGrant.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • count

        @Stability(Experimental)
        public KmsGrant.Builder count​(Number count)
        Parameters:
        count - This parameter is required.
        Returns:
        this
      • count

        @Stability(Experimental)
        public KmsGrant.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Parameters:
        count - This parameter is required.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public KmsGrant.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Parameters:
        dependsOn - This parameter is required.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public KmsGrant.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Parameters:
        forEach - This parameter is required.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public KmsGrant.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Parameters:
        lifecycle - This parameter is required.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public KmsGrant.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Parameters:
        provider - This parameter is required.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public KmsGrant.Builder provisioners​(List<? extends Object> provisioners)
        Parameters:
        provisioners - This parameter is required.
        Returns:
        this
      • granteePrincipal

        @Stability(Stable)
        public KmsGrant.Builder granteePrincipal​(String 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}.

        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 KmsGrant.Builder keyId​(String 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}.

        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 KmsGrant.Builder operations​(List<String> operations)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/kms_grant#operations KmsGrant#operations}.

        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 KmsGrant.Builder constraints​(com.hashicorp.cdktf.IResolvable 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}

        Parameters:
        constraints - constraints block. This parameter is required.
        Returns:
        this
      • constraints

        @Stability(Stable)
        public KmsGrant.Builder constraints​(List<? extends KmsGrantConstraints> 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}

        Parameters:
        constraints - constraints block. This parameter is required.
        Returns:
        this
      • grantCreationTokens

        @Stability(Stable)
        public KmsGrant.Builder grantCreationTokens​(List<String> 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}.

        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}. This parameter is required.
        Returns:
        this
      • id

        @Stability(Stable)
        public KmsGrant.Builder id​(String 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.

        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/kms_grant#id KmsGrant#id}. This parameter is required.
        Returns:
        this
      • name

        @Stability(Stable)
        public KmsGrant.Builder name​(String name)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/kms_grant#name KmsGrant#name}.

        Parameters:
        name - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/kms_grant#name KmsGrant#name}. This parameter is required.
        Returns:
        this
      • retireOnDelete

        @Stability(Stable)
        public KmsGrant.Builder retireOnDelete​(Boolean 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}.

        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}. This parameter is required.
        Returns:
        this
      • retireOnDelete

        @Stability(Stable)
        public KmsGrant.Builder retireOnDelete​(com.hashicorp.cdktf.IResolvable 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}.

        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}. This parameter is required.
        Returns:
        this
      • retiringPrincipal

        @Stability(Stable)
        public KmsGrant.Builder retiringPrincipal​(String 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}.

        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}. This parameter is required.
        Returns:
        this
      • build

        @Stability(Stable)
        public KmsGrant build()
        Specified by:
        build in interface software.amazon.jsii.Builder<KmsGrant>
        Returns:
        a newly built instance of KmsGrant.