@Generated(value="software.amazon.awssdk:codegen") public final class Secret extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Secret.Builder,Secret>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Secret.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Secret.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
The name of the secret.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Secret.Builder> |
serializableBuilderClass() |
Secret.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
valueFrom()
The secret to expose to the container.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of the secret.
public final 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.
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.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Secret.Builder,Secret>public static Secret.Builder builder()
public static Class<? extends Secret.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.