Class ReplicaKeyState.Builder

  • Enclosing class:
    ReplicaKeyState

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

      • Builder

        public Builder()
    • Method Detail

      • arn

        public ReplicaKeyState.Builder arn​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - ARN of the replica key. The key ARNs of related multi-Region keys differ only in the Region value.
        Returns:
        builder
      • arn

        public ReplicaKeyState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - ARN of the replica key. The key ARNs of related multi-Region keys differ only in the Region value.
        Returns:
        builder
      • bypassPolicyLockoutSafetyCheck

        public ReplicaKeyState.Builder bypassPolicyLockoutSafetyCheck​(@Nullable
                                                                      com.pulumi.core.Output<java.lang.Boolean> bypassPolicyLockoutSafetyCheck)
        Parameters:
        bypassPolicyLockoutSafetyCheck - Whether to bypass the key policy lockout safety check. Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately. For more information, refer to the scenario in the [Default Key Policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) section in the _AWS KMS Developer Guide_. The default value is `false`.
        Returns:
        builder
      • bypassPolicyLockoutSafetyCheck

        public ReplicaKeyState.Builder bypassPolicyLockoutSafetyCheck​(java.lang.Boolean bypassPolicyLockoutSafetyCheck)
        Parameters:
        bypassPolicyLockoutSafetyCheck - Whether to bypass the key policy lockout safety check. Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately. For more information, refer to the scenario in the [Default Key Policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) section in the _AWS KMS Developer Guide_. The default value is `false`.
        Returns:
        builder
      • deletionWindowInDays

        public ReplicaKeyState.Builder deletionWindowInDays​(@Nullable
                                                            com.pulumi.core.Output<java.lang.Integer> deletionWindowInDays)
        Parameters:
        deletionWindowInDays - Waiting period, specified in number of days. After the waiting period ends, AWS KMS deletes the KMS key. If you specify a value, it must be between `7` and `30`, inclusive. If you do not specify a value, it defaults to `30`.
        Returns:
        builder
      • deletionWindowInDays

        public ReplicaKeyState.Builder deletionWindowInDays​(java.lang.Integer deletionWindowInDays)
        Parameters:
        deletionWindowInDays - Waiting period, specified in number of days. After the waiting period ends, AWS KMS deletes the KMS key. If you specify a value, it must be between `7` and `30`, inclusive. If you do not specify a value, it defaults to `30`.
        Returns:
        builder
      • description

        public ReplicaKeyState.Builder description​(@Nullable
                                                   com.pulumi.core.Output<java.lang.String> description)
        Parameters:
        description - Description of the KMS key.
        Returns:
        builder
      • description

        public ReplicaKeyState.Builder description​(java.lang.String description)
        Parameters:
        description - Description of the KMS key.
        Returns:
        builder
      • enabled

        public ReplicaKeyState.Builder enabled​(@Nullable
                                               com.pulumi.core.Output<java.lang.Boolean> enabled)
        Parameters:
        enabled - Whether the replica key is enabled. Disabled KMS keys cannot be used in cryptographic operations. The default value is `true`.
        Returns:
        builder
      • enabled

        public ReplicaKeyState.Builder enabled​(java.lang.Boolean enabled)
        Parameters:
        enabled - Whether the replica key is enabled. Disabled KMS keys cannot be used in cryptographic operations. The default value is `true`.
        Returns:
        builder
      • keyId

        public ReplicaKeyState.Builder keyId​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> keyId)
        Parameters:
        keyId - Key ID of the replica key. Related multi-Region keys have the same key ID.
        Returns:
        builder
      • keyId

        public ReplicaKeyState.Builder keyId​(java.lang.String keyId)
        Parameters:
        keyId - Key ID of the replica key. Related multi-Region keys have the same key ID.
        Returns:
        builder
      • keyRotationEnabled

        public ReplicaKeyState.Builder keyRotationEnabled​(@Nullable
                                                          com.pulumi.core.Output<java.lang.Boolean> keyRotationEnabled)
        Parameters:
        keyRotationEnabled - Boolean value that specifies whether key rotation is enabled. This is a shared property of multi-Region keys.
        Returns:
        builder
      • keyRotationEnabled

        public ReplicaKeyState.Builder keyRotationEnabled​(java.lang.Boolean keyRotationEnabled)
        Parameters:
        keyRotationEnabled - Boolean value that specifies whether key rotation is enabled. This is a shared property of multi-Region keys.
        Returns:
        builder
      • keySpec

        public ReplicaKeyState.Builder keySpec​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> keySpec)
        Parameters:
        keySpec - Type of key material in the KMS key. This is a shared property of multi-Region keys.
        Returns:
        builder
      • keySpec

        public ReplicaKeyState.Builder keySpec​(java.lang.String keySpec)
        Parameters:
        keySpec - Type of key material in the KMS key. This is a shared property of multi-Region keys.
        Returns:
        builder
      • keyUsage

        public ReplicaKeyState.Builder keyUsage​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> keyUsage)
        Parameters:
        keyUsage - [Cryptographic operations](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations) for which you can use the KMS key. This is a shared property of multi-Region keys.
        Returns:
        builder
      • keyUsage

        public ReplicaKeyState.Builder keyUsage​(java.lang.String keyUsage)
        Parameters:
        keyUsage - [Cryptographic operations](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations) for which you can use the KMS key. This is a shared property of multi-Region keys.
        Returns:
        builder
      • policy

        public ReplicaKeyState.Builder policy​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> policy)
        Parameters:
        policy - Key policy to attach to the KMS key. If you do not specify a key policy, AWS KMS attaches the [default key policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default) to the KMS key.
        Returns:
        builder
      • policy

        public ReplicaKeyState.Builder policy​(java.lang.String policy)
        Parameters:
        policy - Key policy to attach to the KMS key. If you do not specify a key policy, AWS KMS attaches the [default key policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default) to the KMS key.
        Returns:
        builder
      • primaryKeyArn

        public ReplicaKeyState.Builder primaryKeyArn​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> primaryKeyArn)
        Parameters:
        primaryKeyArn - ARN of the multi-Region primary key to replicate. The primary key must be in a different AWS Region of the same AWS Partition. You can create only one replica of a given primary key in each AWS Region.
        Returns:
        builder
      • primaryKeyArn

        public ReplicaKeyState.Builder primaryKeyArn​(java.lang.String primaryKeyArn)
        Parameters:
        primaryKeyArn - ARN of the multi-Region primary key to replicate. The primary key must be in a different AWS Region of the same AWS Partition. You can create only one replica of a given primary key in each AWS Region.
        Returns:
        builder
      • region

        public ReplicaKeyState.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 ReplicaKeyState.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
      • tags

        public ReplicaKeyState.Builder tags​(@Nullable
                                            com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - Map of tags to assign to the replica key. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tags

        public ReplicaKeyState.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - Map of tags to assign to the replica key. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tagsAll

        public ReplicaKeyState.Builder tagsAll​(@Nullable
                                               com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • tagsAll

        public ReplicaKeyState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder