@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Secret extends Object implements Serializable, Cloneable, StructuredPojo
An object representing the secret to expose to your container. For more information, see Specifying Sensitive Data in the Amazon Elastic Container Service Developer Guide.
Constructor and Description |
---|
Secret() |
Modifier and Type | Method and Description |
---|---|
Secret |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The value to set as the environment variable on the container.
|
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 value to set as the environment variable on the container.
|
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 value to set as the environment variable on the container.
|
Secret |
withValueFrom(String valueFrom)
The secret to expose to the container.
|
public void setName(String name)
The value to set as the environment variable on the container.
name
- The value to set as the environment variable on the container.public String getName()
The value to set as the environment variable on the container.
public Secret withName(String name)
The value to set as the environment variable on the container.
name
- The value to set as the environment variable on the container.public void setValueFrom(String valueFrom)
The secret to expose to the container. If your task is using the EC2 launch type, then 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 your task is using the Fargate launch type, then the only supported value is 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 task you are 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.
valueFrom
- The secret to expose to the container. If your task is using the EC2 launch type, then 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 your task is using the Fargate launch type, then the only supported
value is 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 task you are 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.
public String getValueFrom()
The secret to expose to the container. If your task is using the EC2 launch type, then 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 your task is using the Fargate launch type, then the only supported value is 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 task you are 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.
If the AWS Systems Manager Parameter Store parameter exists in the same Region as the task you are 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.
public Secret withValueFrom(String valueFrom)
The secret to expose to the container. If your task is using the EC2 launch type, then 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 your task is using the Fargate launch type, then the only supported value is 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 task you are 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.
valueFrom
- The secret to expose to the container. If your task is using the EC2 launch type, then 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 your task is using the Fargate launch type, then the only supported
value is 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 task you are 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.
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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.