public static interface CfnJobDefinition.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 AWS Batch User 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.batch.*; SecretProperty secretProperty = SecretProperty.builder() .name("name") .valueFrom("valueFrom") .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnJobDefinition.SecretProperty.Builder
A builder for
CfnJobDefinition.SecretProperty |
static class |
CfnJobDefinition.SecretProperty.Jsii$Proxy
An implementation for
CfnJobDefinition.SecretProperty |
Modifier and Type | Method and Description |
---|---|
static CfnJobDefinition.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 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 ARN or name of the parameter. If the parameter exists in a different Region, then the full ARN must be specified.
static CfnJobDefinition.SecretProperty.Builder builder()