| 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 |
Amazonka.MacieV2.Types.IpCountry
Description
Synopsis
- data IpCountry = IpCountry' {}
- newIpCountry :: IpCountry
- ipCountry_name :: Lens' IpCountry (Maybe Text)
- ipCountry_code :: Lens' IpCountry (Maybe Text)
Documentation
Provides information about the country that an IP address originated from.
See: newIpCountry smart constructor.
Constructors
| IpCountry' | |
Instances
| Eq IpCountry Source # | |
| Read IpCountry Source # | |
| Show IpCountry Source # | |
| Generic IpCountry Source # | |
| NFData IpCountry Source # | |
Defined in Amazonka.MacieV2.Types.IpCountry | |
| Hashable IpCountry Source # | |
Defined in Amazonka.MacieV2.Types.IpCountry | |
| FromJSON IpCountry Source # | |
| type Rep IpCountry Source # | |
Defined in Amazonka.MacieV2.Types.IpCountry type Rep IpCountry = D1 ('MetaData "IpCountry" "Amazonka.MacieV2.Types.IpCountry" "libZSservicesZSamazonka-maciev2ZSamazonka-maciev2" 'False) (C1 ('MetaCons "IpCountry'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) | |
newIpCountry :: IpCountry Source #
Create a value of IpCountry 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:IpCountry', ipCountry_name - The name of the country that the IP address originated from.
$sel:code:IpCountry', ipCountry_code - The two-character code, in ISO 3166-1 alpha-2 format, for the country
that the IP address originated from. For example, US for the United
States.