Class KmsGrantConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • granteePrincipal

        @Stability(Stable)
        public KmsGrantConfig.Builder granteePrincipal​(String granteePrincipal)
        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 of KmsGrantConfig.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)
        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)
        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)
        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)
        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 of KmsGrantConfig.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 of KmsGrantConfig.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)
        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)
        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)
        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 of TerraformMetaArguments.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 of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public KmsGrantConfig.Builder count​(Number count)
        Sets the value of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.getProvider()
        Parameters:
        provider - the value to be set.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public KmsGrantConfig.Builder provisioners​(List<? extends Object> provisioners)
        Sets the value of TerraformMetaArguments.getProvisioners()
        Parameters:
        provisioners - the value to be set.
        Returns:
        this