Interface GrantConstraints.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GrantConstraints.Builder,,GrantConstraints> SdkBuilder<GrantConstraints.Builder,,GrantConstraints> SdkPojo
- Enclosing class:
GrantConstraints
-
Method Summary
Modifier and TypeMethodDescriptionencryptionContextEquals(Map<String, String> encryptionContextEquals) A list of key-value pairs that must match the encryption context in the cryptographic operation request.encryptionContextSubset(Map<String, String> encryptionContextSubset) A list of key-value pairs that must be included in the encryption context of the cryptographic operation request.The Amazon Resource Name (ARN) of an Amazon Web Services resource on behalf of which the request is made.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
encryptionContextSubset
A list of key-value pairs that must be included in the encryption context of the cryptographic operation request. The grant allows the cryptographic operation only when the encryption context in the request includes the key-value pairs specified in this constraint, although it can include additional key-value pairs.
- Parameters:
encryptionContextSubset- A list of key-value pairs that must be included in the encryption context of the cryptographic operation request. The grant allows the cryptographic operation only when the encryption context in the request includes the key-value pairs specified in this constraint, although it can include additional key-value pairs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encryptionContextEquals
A list of key-value pairs that must match the encryption context in the cryptographic operation request. The grant allows the operation only when the encryption context in the request is the same as the encryption context specified in this constraint.
- Parameters:
encryptionContextEquals- A list of key-value pairs that must match the encryption context in the cryptographic operation request. The grant allows the operation only when the encryption context in the request is the same as the encryption context specified in this constraint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceArn
The Amazon Resource Name (ARN) of an Amazon Web Services resource on behalf of which the request is made. This is effectively the same as having the aws:SourceArn global condition key in the grant. The SourceArn constraint ensures that the principal can use the KMS key only when the request is made on behalf of the specified resource.
- Parameters:
sourceArn- The Amazon Resource Name (ARN) of an Amazon Web Services resource on behalf of which the request is made. This is effectively the same as having the aws:SourceArn global condition key in the grant. The SourceArn constraint ensures that the principal can use the KMS key only when the request is made on behalf of the specified resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-