Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Documentation
An object representing 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 Amazon Elastic Container Service Developer Guide.
See: newSecret
smart constructor.
Secret' | |
|
Instances
Eq Secret Source # | |
Read Secret Source # | |
Show Secret Source # | |
Generic Secret Source # | |
NFData Secret Source # | |
Defined in Amazonka.ECS.Types.Secret | |
Hashable Secret Source # | |
Defined in Amazonka.ECS.Types.Secret | |
ToJSON Secret Source # | |
Defined in Amazonka.ECS.Types.Secret | |
FromJSON Secret Source # | |
type Rep Secret Source # | |
Defined in Amazonka.ECS.Types.Secret type Rep Secret = D1 ('MetaData "Secret" "Amazonka.ECS.Types.Secret" "libZSservicesZSamazonka-ecsZSamazonka-ecs" 'False) (C1 ('MetaCons "Secret'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "valueFrom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
Create a value of Secret
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:name:Secret'
, secret_name
- The name of the secret.
$sel:valueFrom:Secret'
, secret_valueFrom
- The secret to expose to the container. The supported values are either
the full ARN of the Secrets Manager secret or the full ARN of the
parameter in the SSM Parameter Store.
If the SSM 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.
secret_valueFrom :: Lens' Secret Text Source #
The secret to expose to the container. The supported values are either the full ARN of the Secrets Manager secret or the full ARN of the parameter in the SSM Parameter Store.
If the SSM 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.