Class CfnKeyMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.paymentcryptography.CfnKeyMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKeyMixinProps>
- Enclosing interface:
CfnKeyMixinProps
@Stability(Stable)
public static final class CfnKeyMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnKeyMixinProps>
A builder for
CfnKeyMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deriveKeyUsage(String deriveKeyUsage) Sets the value ofCfnKeyMixinProps.getDeriveKeyUsage()Sets the value ofCfnKeyMixinProps.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnKeyMixinProps.getEnabled()exportable(Boolean exportable) Sets the value ofCfnKeyMixinProps.getExportable()exportable(IResolvable exportable) Sets the value ofCfnKeyMixinProps.getExportable()keyAttributes(CfnKeyPropsMixin.KeyAttributesProperty keyAttributes) Sets the value ofCfnKeyMixinProps.getKeyAttributes()keyAttributes(IResolvable keyAttributes) Sets the value ofCfnKeyMixinProps.getKeyAttributes()keyCheckValueAlgorithm(String keyCheckValueAlgorithm) Sets the value ofCfnKeyMixinProps.getKeyCheckValueAlgorithm()replicationRegions(List<String> replicationRegions) Sets the value ofCfnKeyMixinProps.getReplicationRegions()Sets the value ofCfnKeyMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deriveKeyUsage
Sets the value ofCfnKeyMixinProps.getDeriveKeyUsage()- Parameters:
deriveKeyUsage- The cryptographic usage of an ECDH derived key as deļ¬ned in section A.5.2 of the TR-31 spec.- Returns:
this
-
enabled
Sets the value ofCfnKeyMixinProps.getEnabled()- Parameters:
enabled- Specifies whether the key is enabled.- Returns:
this
-
enabled
Sets the value ofCfnKeyMixinProps.getEnabled()- Parameters:
enabled- Specifies whether the key is enabled.- Returns:
this
-
exportable
Sets the value ofCfnKeyMixinProps.getExportable()- Parameters:
exportable- Specifies whether the key is exportable. This data is immutable after the key is created.- Returns:
this
-
exportable
Sets the value ofCfnKeyMixinProps.getExportable()- Parameters:
exportable- Specifies whether the key is exportable. This data is immutable after the key is created.- Returns:
this
-
keyAttributes
Sets the value ofCfnKeyMixinProps.getKeyAttributes()- Parameters:
keyAttributes- The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the key is created.- Returns:
this
-
keyAttributes
@Stability(Stable) public CfnKeyMixinProps.Builder keyAttributes(CfnKeyPropsMixin.KeyAttributesProperty keyAttributes) Sets the value ofCfnKeyMixinProps.getKeyAttributes()- Parameters:
keyAttributes- The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the key is created.- Returns:
this
-
keyCheckValueAlgorithm
@Stability(Stable) public CfnKeyMixinProps.Builder keyCheckValueAlgorithm(String keyCheckValueAlgorithm) Sets the value ofCfnKeyMixinProps.getKeyCheckValueAlgorithm()- Parameters:
keyCheckValueAlgorithm- The algorithm that AWS Payment Cryptography uses to calculate the key check value (KCV). It is used to validate the key integrity.For TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where the input data is 16 bytes of zero and retaining the 3 highest order bytes of the encrypted result.
- Returns:
this
-
replicationRegions
@Stability(Stable) public CfnKeyMixinProps.Builder replicationRegions(List<String> replicationRegions) Sets the value ofCfnKeyMixinProps.getReplicationRegions()- Parameters:
replicationRegions- The list of AWS Regions to remove from the key's replication configuration. The key will no longer be available for cryptographic operations in these regions after removal. Ensure no active operations depend on the key in these regions before removal.- Returns:
this
-
tags
Sets the value ofCfnKeyMixinProps.getTags()- Parameters:
tags- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnKeyMixinProps>- Returns:
- a new instance of
CfnKeyMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-