Class SecureStringParameterAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.ssm.SecureStringParameterAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecureStringParameterAttributes>
- Enclosing interface:
- SecureStringParameterAttributes
@Stability(Stable)
public static final class SecureStringParameterAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<SecureStringParameterAttributes>
A builder for
SecureStringParameterAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.encryptionKey(IKey encryptionKey) Sets the value ofSecureStringParameterAttributes.getEncryptionKey()parameterName(String parameterName) Sets the value ofCommonStringParameterAttributes.getParameterName()simpleName(Boolean simpleName) Sets the value ofCommonStringParameterAttributes.getSimpleName()Sets the value ofSecureStringParameterAttributes.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encryptionKey
Sets the value ofSecureStringParameterAttributes.getEncryptionKey()- Parameters:
encryptionKey- The encryption key that is used to encrypt this parameter.- Returns:
this
-
version
Sets the value ofSecureStringParameterAttributes.getVersion()- Parameters:
version- The version number of the value you wish to retrieve.- Returns:
this
-
parameterName
@Stability(Stable) public SecureStringParameterAttributes.Builder parameterName(String parameterName) Sets the value ofCommonStringParameterAttributes.getParameterName()- Parameters:
parameterName- The name of the parameter store value. This parameter is required. This value can be a token or a concrete string. If it is a concrete string and includes "/" it must also be prefixed with a "/" (fully-qualified).- Returns:
this
-
simpleName
Sets the value ofCommonStringParameterAttributes.getSimpleName()- Parameters:
simpleName- Indicates of the parameter name is a simple name (i.e. does not include "/" separators). This is only required only ifparameterNameis a token, which means we are unable to detect if the name is simple or "path-like" for the purpose of rendering SSM parameter ARNs.If
parameterNameis not specified,simpleNamemust betrue(or undefined) since the name generated by AWS CloudFormation is always a simple name.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SecureStringParameterAttributes>- Returns:
- a new instance of
SecureStringParameterAttributes - Throws:
NullPointerException- if any required attribute was not provided
-