Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Documentation
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.
See: newSecret
smart constructor.
Secret' | |
|
Instances
FromJSON Secret Source # | |
ToJSON Secret Source # | |
Defined in Amazonka.Batch.Types.Secret | |
Generic Secret Source # | |
Read Secret Source # | |
Show Secret Source # | |
NFData Secret Source # | |
Defined in Amazonka.Batch.Types.Secret | |
Eq Secret Source # | |
Hashable Secret Source # | |
Defined in Amazonka.Batch.Types.Secret | |
type Rep Secret Source # | |
Defined in Amazonka.Batch.Types.Secret type Rep Secret = D1 ('MetaData "Secret" "Amazonka.Batch.Types.Secret" "amazonka-batch-2.0-Ey2VZ5obnq65VwmlrJ2r2K" '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 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.
secret_valueFrom :: Lens' Secret Text Source #
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.