| 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 |
Amazonka.ECS.Types.HostEntry
Description
Synopsis
- data HostEntry = HostEntry' {}
- newHostEntry :: Text -> Text -> HostEntry
- hostEntry_hostname :: Lens' HostEntry Text
- hostEntry_ipAddress :: Lens' HostEntry Text
Documentation
Hostnames and IP address entries that are added to the /etc/hosts
file of a container via the extraHosts parameter of its
ContainerDefinition.
See: newHostEntry smart constructor.
Constructors
| HostEntry' | |
Instances
| FromJSON HostEntry Source # | |
| ToJSON HostEntry Source # | |
Defined in Amazonka.ECS.Types.HostEntry | |
| Generic HostEntry Source # | |
| Read HostEntry Source # | |
| Show HostEntry Source # | |
| NFData HostEntry Source # | |
Defined in Amazonka.ECS.Types.HostEntry | |
| Eq HostEntry Source # | |
| Hashable HostEntry Source # | |
Defined in Amazonka.ECS.Types.HostEntry | |
| type Rep HostEntry Source # | |
Defined in Amazonka.ECS.Types.HostEntry type Rep HostEntry = D1 ('MetaData "HostEntry" "Amazonka.ECS.Types.HostEntry" "amazonka-ecs-2.0-3xFxVqi9x5nBZ44jBEC5G8" 'False) (C1 ('MetaCons "HostEntry'" 'PrefixI 'True) (S1 ('MetaSel ('Just "hostname") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "ipAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) | |
Create a value of HostEntry 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:hostname:HostEntry', hostEntry_hostname - The hostname to use in the /etc/hosts entry.
$sel:ipAddress:HostEntry', hostEntry_ipAddress - The IP address to use in the /etc/hosts entry.