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 - The Amazon Resource Name (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 - The Amazon Resource Name (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 - A flag to indicate 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 Key Management Service Developer Guide_. The default value is `false`.
        Returns:
        builder
      • bypassPolicyLockoutSafetyCheck

        public ReplicaKeyState.Builder bypassPolicyLockoutSafetyCheck​(java.lang.Boolean bypassPolicyLockoutSafetyCheck)
        Parameters:
        bypassPolicyLockoutSafetyCheck - A flag to indicate 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 Key Management Service 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 - The 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 - The 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 - A description of the KMS key.
        Returns:
        builder
      • description

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

        public ReplicaKeyState.Builder enabled​(@Nullable
                                               com.pulumi.core.Output<java.lang.Boolean> enabled)
        Parameters:
        enabled - Specifies 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 - Specifies 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 - The 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 - The 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 - A 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 - A 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 - The 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 - The 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 - The [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 - The [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 - The 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 - The 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 - The 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 - The 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
      • tags

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

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

        @Deprecated
        public ReplicaKeyState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Deprecated.
        Please use `tags` instead.
        Parameters:
        tagsAll - A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
        Returns:
        builder