Interface KmsKeyConfiguration.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<KmsKeyConfiguration.Builder,,- KmsKeyConfiguration> - SdkBuilder<KmsKeyConfiguration.Builder,,- KmsKeyConfiguration> - SdkPojo
- Enclosing class:
- KmsKeyConfiguration
- 
Method SummaryModifier and TypeMethodDescriptiongrants(Collection<KmsGrantConfiguration> grants) A list of proposed grant configurations for the KMS key.grants(Consumer<KmsGrantConfiguration.Builder>... grants) A list of proposed grant configurations for the KMS key.grants(KmsGrantConfiguration... grants) A list of proposed grant configurations for the KMS key.keyPolicies(Map<String, String> keyPolicies) Resource policy configuration for the KMS key.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
keyPoliciesResource 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.
 
- 
grantsA 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.
 
- 
grantsA 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.
 
- 
grantsA 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.Builderavoiding the need to create one manually viaKmsGrantConfiguration.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed togrants(List<KmsGrantConfiguration>).- Parameters:
- grants- a consumer that will call methods on- KmsGrantConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-