@Stability(value=Stable) public static final class CfnTaskDefinition.SecretProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnTaskDefinition.SecretProperty>
CfnTaskDefinition.SecretProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnTaskDefinition.SecretProperty |
build()
Builds the configured instance.
|
CfnTaskDefinition.SecretProperty.Builder |
name(String name)
Sets the value of
CfnTaskDefinition.SecretProperty.getName() |
CfnTaskDefinition.SecretProperty.Builder |
valueFrom(String valueFrom)
Sets the value of
CfnTaskDefinition.SecretProperty.getValueFrom() |
@Stability(value=Stable) public CfnTaskDefinition.SecretProperty.Builder name(String name)
CfnTaskDefinition.SecretProperty.getName()name - The name of the secret. This parameter is required.this@Stability(value=Stable) public CfnTaskDefinition.SecretProperty.Builder valueFrom(String valueFrom)
CfnTaskDefinition.SecretProperty.getValueFrom()valueFrom - The secret to expose to the container. This parameter is required.
The supported values are either the full ARN of the AWS Secrets Manager secret or the full ARN of the parameter in the SSM Parameter Store.
For information about the require AWS Identity and Access Management 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.
this@Stability(value=Stable) public CfnTaskDefinition.SecretProperty build()
build in interface software.amazon.jsii.Builder<CfnTaskDefinition.SecretProperty>CfnTaskDefinition.SecretPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.