Class CfnDaemonTaskDefinition.SecretProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnDaemonTaskDefinition.SecretProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDaemonTaskDefinition.SecretProperty>
- Enclosing interface:
CfnDaemonTaskDefinition.SecretProperty
@Stability(Stable)
public static final class CfnDaemonTaskDefinition.SecretProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDaemonTaskDefinition.SecretProperty>
A builder for
CfnDaemonTaskDefinition.SecretProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDaemonTaskDefinition.SecretProperty.getName()Sets the value ofCfnDaemonTaskDefinition.SecretProperty.getValueFrom()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnDaemonTaskDefinition.SecretProperty.getName()- Parameters:
name- The name of the secret. This parameter is required.- Returns:
this
-
valueFrom
@Stability(Stable) public CfnDaemonTaskDefinition.SecretProperty.Builder valueFrom(String valueFrom) Sets the value ofCfnDaemonTaskDefinition.SecretProperty.getValueFrom()- Parameters:
valueFrom- The secret to expose to the container. This parameter is required. The supported values are either the full ARN of the ASMlong secret or the full ARN of the parameter in the SSM Parameter Store. For information about the require IAMlong permissions, see Required IAM permissions for Amazon ECS secrets (for Secrets Manager) or Required IAM permissions for Amazon ECS secrets (for Systems Manager Parameter store) in the Amazon Elastic Container Service Developer Guide. If the SSM Parameter Store parameter exists in the same Region as the task you're launching, then you can use either the full 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<CfnDaemonTaskDefinition.SecretProperty>- Returns:
- a new instance of
CfnDaemonTaskDefinition.SecretProperty - Throws:
NullPointerException- if any required attribute was not provided
-