Class GrantState.Builder

  • Enclosing class:
    GrantState

    public static final class GrantState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
      • Builder

        public Builder​(GrantState defaults)
    • Method Detail

      • constraints

        public GrantState.Builder constraints​(@Nullable
                                              com.pulumi.core.Output<java.util.List<GrantConstraintArgs>> constraints)
        Parameters:
        constraints - Structure that you can use to allow certain operations in the grant only when the desired encryption context is present. See `constraints` Block for details. For more information about encryption context, see [Encryption Context](https://docs.aws.amazon.com/kms/latest/developerguide/encrypt_context.html).
        Returns:
        builder
      • constraints

        public GrantState.Builder constraints​(java.util.List<GrantConstraintArgs> constraints)
        Parameters:
        constraints - Structure that you can use to allow certain operations in the grant only when the desired encryption context is present. See `constraints` Block for details. For more information about encryption context, see [Encryption Context](https://docs.aws.amazon.com/kms/latest/developerguide/encrypt_context.html).
        Returns:
        builder
      • constraints

        public GrantState.Builder constraints​(GrantConstraintArgs... constraints)
        Parameters:
        constraints - Structure that you can use to allow certain operations in the grant only when the desired encryption context is present. See `constraints` Block for details. For more information about encryption context, see [Encryption Context](https://docs.aws.amazon.com/kms/latest/developerguide/encrypt_context.html).
        Returns:
        builder
      • grantCreationTokens

        public GrantState.Builder grantCreationTokens​(@Nullable
                                                      com.pulumi.core.Output<java.util.List<java.lang.String>> grantCreationTokens)
        Parameters:
        grantCreationTokens - List of grant tokens to be used when creating the grant. See [Grant Tokens](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token) for more information about grant tokens.
        Returns:
        builder
      • grantCreationTokens

        public GrantState.Builder grantCreationTokens​(java.util.List<java.lang.String> grantCreationTokens)
        Parameters:
        grantCreationTokens - List of grant tokens to be used when creating the grant. See [Grant Tokens](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token) for more information about grant tokens.
        Returns:
        builder
      • grantCreationTokens

        public GrantState.Builder grantCreationTokens​(java.lang.String... grantCreationTokens)
        Parameters:
        grantCreationTokens - List of grant tokens to be used when creating the grant. See [Grant Tokens](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token) for more information about grant tokens.
        Returns:
        builder
      • grantId

        public GrantState.Builder grantId​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> grantId)
        Parameters:
        grantId - Unique identifier for the grant.
        Returns:
        builder
      • grantId

        public GrantState.Builder grantId​(java.lang.String grantId)
        Parameters:
        grantId - Unique identifier for the grant.
        Returns:
        builder
      • grantToken

        public GrantState.Builder grantToken​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> grantToken)
        Parameters:
        grantToken - Grant token for the created grant. For more information, see [Grant Tokens](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token).
        Returns:
        builder
      • grantToken

        public GrantState.Builder grantToken​(java.lang.String grantToken)
        Parameters:
        grantToken - Grant token for the created grant. For more information, see [Grant Tokens](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token).
        Returns:
        builder
      • granteePrincipal

        public GrantState.Builder granteePrincipal​(@Nullable
                                                   com.pulumi.core.Output<java.lang.String> granteePrincipal)
        Parameters:
        granteePrincipal - Principal that is given permission to perform the operations that the grant permits in ARN format. Note that due to eventual consistency issues around IAM principals, Terraform's state may not always be refreshed to reflect what is true in AWS.
        Returns:
        builder
      • granteePrincipal

        public GrantState.Builder granteePrincipal​(java.lang.String granteePrincipal)
        Parameters:
        granteePrincipal - Principal that is given permission to perform the operations that the grant permits in ARN format. Note that due to eventual consistency issues around IAM principals, Terraform's state may not always be refreshed to reflect what is true in AWS.
        Returns:
        builder
      • keyId

        public GrantState.Builder keyId​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> keyId)
        Parameters:
        keyId - Unique identifier for the customer master key (CMK) that the grant applies to. Specify the key ID or the ARN of the CMK. To specify a CMK in a different AWS account, you must use the key ARN.
        Returns:
        builder
      • keyId

        public GrantState.Builder keyId​(java.lang.String keyId)
        Parameters:
        keyId - Unique identifier for the customer master key (CMK) that the grant applies to. Specify the key ID or the ARN of the CMK. To specify a CMK in a different AWS account, you must use the key ARN.
        Returns:
        builder
      • name

        public GrantState.Builder name​(@Nullable
                                       com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - Friendly name for identifying the grant.
        Returns:
        builder
      • name

        public GrantState.Builder name​(java.lang.String name)
        Parameters:
        name - Friendly name for identifying the grant.
        Returns:
        builder
      • operations

        public GrantState.Builder operations​(@Nullable
                                             com.pulumi.core.Output<java.util.List<java.lang.String>> operations)
        Parameters:
        operations - List of operations that the grant permits. The permitted values are: `Decrypt`, `Encrypt`, `GenerateDataKey`, `GenerateDataKeyWithoutPlaintext`, `ReEncryptFrom`, `ReEncryptTo`, `Sign`, `Verify`, `GetPublicKey`, `CreateGrant`, `RetireGrant`, `DescribeKey`, `GenerateDataKeyPair`, or `GenerateDataKeyPairWithoutPlaintext`.
        Returns:
        builder
      • operations

        public GrantState.Builder operations​(java.util.List<java.lang.String> operations)
        Parameters:
        operations - List of operations that the grant permits. The permitted values are: `Decrypt`, `Encrypt`, `GenerateDataKey`, `GenerateDataKeyWithoutPlaintext`, `ReEncryptFrom`, `ReEncryptTo`, `Sign`, `Verify`, `GetPublicKey`, `CreateGrant`, `RetireGrant`, `DescribeKey`, `GenerateDataKeyPair`, or `GenerateDataKeyPairWithoutPlaintext`.
        Returns:
        builder
      • operations

        public GrantState.Builder operations​(java.lang.String... operations)
        Parameters:
        operations - List of operations that the grant permits. The permitted values are: `Decrypt`, `Encrypt`, `GenerateDataKey`, `GenerateDataKeyWithoutPlaintext`, `ReEncryptFrom`, `ReEncryptTo`, `Sign`, `Verify`, `GetPublicKey`, `CreateGrant`, `RetireGrant`, `DescribeKey`, `GenerateDataKeyPair`, or `GenerateDataKeyPairWithoutPlaintext`.
        Returns:
        builder
      • region

        public GrantState.Builder region​(@Nullable
                                         com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public GrantState.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • retireOnDelete

        public GrantState.Builder retireOnDelete​(@Nullable
                                                 com.pulumi.core.Output<java.lang.Boolean> retireOnDelete)
        Parameters:
        retireOnDelete - If set to false (the default) the grants will be revoked upon deletion, and if set to true the grants will try to be retired upon deletion. Note that retiring grants requires special permissions, hence why we default to revoking grants. See [RetireGrant](https://docs.aws.amazon.com/kms/latest/APIReference/API_RetireGrant.html) for more information.
        Returns:
        builder
      • retireOnDelete

        public GrantState.Builder retireOnDelete​(java.lang.Boolean retireOnDelete)
        Parameters:
        retireOnDelete - If set to false (the default) the grants will be revoked upon deletion, and if set to true the grants will try to be retired upon deletion. Note that retiring grants requires special permissions, hence why we default to revoking grants. See [RetireGrant](https://docs.aws.amazon.com/kms/latest/APIReference/API_RetireGrant.html) for more information.
        Returns:
        builder
      • retiringPrincipal

        public GrantState.Builder retiringPrincipal​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> retiringPrincipal)
        Parameters:
        retiringPrincipal - Principal that is given permission to retire the grant by using RetireGrant operation in ARN format. Note that due to eventual consistency issues around IAM principals, Terraform's state may not always be refreshed to reflect what is true in AWS.
        Returns:
        builder
      • retiringPrincipal

        public GrantState.Builder retiringPrincipal​(java.lang.String retiringPrincipal)
        Parameters:
        retiringPrincipal - Principal that is given permission to retire the grant by using RetireGrant operation in ARN format. Note that due to eventual consistency issues around IAM principals, Terraform's state may not always be refreshed to reflect what is true in AWS.
        Returns:
        builder