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 Batch User 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.Batch.Types.Secret | |
Hashable Secret Source # | |
Defined in Amazonka.Batch.Types.Secret | |
ToJSON Secret Source # | |
Defined in Amazonka.Batch.Types.Secret | |
FromJSON Secret Source # | |
type Rep Secret Source # | |
Defined in Amazonka.Batch.Types.Secret type Rep Secret = D1 ('MetaData "Secret" "Amazonka.Batch.Types.Secret" "libZSservicesZSamazonka-batchZSamazonka-batch" '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 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 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 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 ARN or name of the parameter. If the parameter exists in a different Region, then the full ARN must be specified.