Class CfnJobDefinitionPropsMixin.SecretProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.batch.CfnJobDefinitionPropsMixin.SecretProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobDefinitionPropsMixin.SecretProperty>
- Enclosing interface:
CfnJobDefinitionPropsMixin.SecretProperty
@Stability(Stable)
public static final class CfnJobDefinitionPropsMixin.SecretProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobDefinitionPropsMixin.SecretProperty>
A builder for
CfnJobDefinitionPropsMixin.SecretProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnJobDefinitionPropsMixin.SecretProperty.getName()Sets the value ofCfnJobDefinitionPropsMixin.SecretProperty.getValueFrom()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnJobDefinitionPropsMixin.SecretProperty.getName()- Parameters:
name- The name of the secret.- Returns:
this
-
valueFrom
@Stability(Stable) public CfnJobDefinitionPropsMixin.SecretProperty.Builder valueFrom(String valueFrom) Sets the value ofCfnJobDefinitionPropsMixin.SecretProperty.getValueFrom()- Parameters:
valueFrom- The secret to expose to the container. The supported values are either the full Amazon Resource Name (ARN) of the AWS Secrets Manager secret or the full ARN of the parameter in the AWS Systems Manager Parameter Store.If the AWS Systems Manager Parameter Store parameter exists in the same Region as the job you're launching, then you can use either the full Amazon Resource Name (ARN) or name of the parameter. If the parameter exists in a different Region, then the full ARN must be specified.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnJobDefinitionPropsMixin.SecretProperty>- Returns:
- a new instance of
CfnJobDefinitionPropsMixin.SecretProperty - Throws:
NullPointerException- if any required attribute was not provided
-