public static interface CfnTaskDefinition.SecretProperty
Secrets can be exposed to a container in the following ways:
secrets
container definition parameter.secretOptions
container definition parameter.For more information, see Specifying sensitive data in the Amazon Elastic Container Service Developer Guide .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.ecs.*; SecretProperty secretProperty = SecretProperty.builder() .name("name") .valueFrom("valueFrom") .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnTaskDefinition.SecretProperty.Builder
A builder for
CfnTaskDefinition.SecretProperty |
static class |
CfnTaskDefinition.SecretProperty.Jsii$Proxy
An implementation for
CfnTaskDefinition.SecretProperty |
Modifier and Type | Method and Description |
---|---|
static CfnTaskDefinition.SecretProperty.Builder |
builder() |
java.lang.String |
getName()
The name of the secret.
|
java.lang.String |
getValueFrom()
The secret to expose to the container.
|
java.lang.String getName()
java.lang.String getValueFrom()
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.
static CfnTaskDefinition.SecretProperty.Builder builder()