Interface KmsKeyConfiguration.Builder

    • Method Detail

      • keyPolicies

        KmsKeyConfiguration.Builder keyPolicies​(Map<String,​String> keyPolicies)

        Resource policy configuration for the KMS key. The only valid value for the name of the key policy is default. For more information, see Default key policy.

        Parameters:
        keyPolicies - Resource policy configuration for the KMS key. The only valid value for the name of the key policy is default. For more information, see Default key policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • grants

        KmsKeyConfiguration.Builder grants​(Collection<KmsGrantConfiguration> grants)

        A list of proposed grant configurations for the KMS key. If the proposed grant configuration is for an existing key, the access preview uses the proposed list of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing grants for the key.

        Parameters:
        grants - A list of proposed grant configurations for the KMS key. If the proposed grant configuration is for an existing key, the access preview uses the proposed list of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing grants for the key.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • grants

        KmsKeyConfiguration.Builder grants​(KmsGrantConfiguration... grants)

        A list of proposed grant configurations for the KMS key. If the proposed grant configuration is for an existing key, the access preview uses the proposed list of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing grants for the key.

        Parameters:
        grants - A list of proposed grant configurations for the KMS key. If the proposed grant configuration is for an existing key, the access preview uses the proposed list of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing grants for the key.
        Returns:
        Returns a reference to this object so that method calls can be chained together.