@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Secret extends Object implements Serializable, Cloneable, StructuredPojo
An object that represents the secret to expose to your container. Secrets can be exposed to a container in the following ways:
To inject sensitive data into your containers as environment variables, use the secrets
container
definition parameter.
To reference sensitive information in the log configuration of a container, use the secretOptions
container definition parameter.
For more information, see Specifying sensitive data in the Batch User Guide.
Constructor and Description |
---|
Secret() |
Modifier and Type | Method and Description |
---|---|
Secret |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the secret.
|
String |
getValueFrom()
The secret to expose to the container.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The name of the secret.
|
void |
setValueFrom(String valueFrom)
The secret to expose to the container.
|
String |
toString()
Returns a string representation of this object.
|
Secret |
withName(String name)
The name of the secret.
|
Secret |
withValueFrom(String valueFrom)
The secret to expose to the container.
|
public void setName(String name)
The name of the secret.
name
- The name of the secret.public String getName()
The name of the secret.
public Secret withName(String name)
The name of the secret.
name
- The name of the secret.public void setValueFrom(String valueFrom)
The secret to expose to the container. The supported values are either the full Amazon Resource Name (ARN) of the Secrets Manager secret or the full ARN of the parameter in the Amazon Web Services Systems Manager Parameter Store.
If the Amazon Web Services 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.
valueFrom
- The secret to expose to the container. The supported values are either the full Amazon Resource Name (ARN)
of the Secrets Manager secret or the full ARN of the parameter in the Amazon Web Services Systems Manager
Parameter Store. If the Amazon Web Services 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.
public String getValueFrom()
The secret to expose to the container. The supported values are either the full Amazon Resource Name (ARN) of the Secrets Manager secret or the full ARN of the parameter in the Amazon Web Services Systems Manager Parameter Store.
If the Amazon Web Services 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.
If the Amazon Web Services 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.
public Secret withValueFrom(String valueFrom)
The secret to expose to the container. The supported values are either the full Amazon Resource Name (ARN) of the Secrets Manager secret or the full ARN of the parameter in the Amazon Web Services Systems Manager Parameter Store.
If the Amazon Web Services 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.
valueFrom
- The secret to expose to the container. The supported values are either the full Amazon Resource Name (ARN)
of the Secrets Manager secret or the full ARN of the parameter in the Amazon Web Services Systems Manager
Parameter Store. If the Amazon Web Services 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.
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.