public static interface KmsKeyConfiguration.Builder extends SdkPojo, CopyableBuilder<KmsKeyConfiguration.Builder,KmsKeyConfiguration>
| Modifier and Type | Method and Description |
|---|---|
KmsKeyConfiguration.Builder |
grants(Collection<KmsGrantConfiguration> grants)
A list of proposed grant configurations for the KMS key.
|
KmsKeyConfiguration.Builder |
grants(Consumer<KmsGrantConfiguration.Builder>... grants)
A list of proposed grant configurations for the KMS key.
|
KmsKeyConfiguration.Builder |
grants(KmsGrantConfiguration... grants)
A list of proposed grant configurations for the KMS key.
|
KmsKeyConfiguration.Builder |
keyPolicies(Map<String,String> keyPolicies)
Resource policy configuration for the KMS key.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildKmsKeyConfiguration.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.
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.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.
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.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.
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.KmsKeyConfiguration.Builder grants(Consumer<KmsGrantConfiguration.Builder>... 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.
This is a convenience method that creates an instance of theKmsGrantConfiguration.Builder avoiding the need
to create one manually via
KmsGrantConfiguration.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #grants(List.
grants - a consumer that will call methods on
KmsGrantConfiguration.Builder#grants(java.util.Collection) Copyright © 2023. All rights reserved.