| 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.MacieV2.Types.IpCountry
Description
Synopsis
- data IpCountry = IpCountry' {}
- newIpCountry :: IpCountry
- ipCountry_code :: Lens' IpCountry (Maybe Text)
- ipCountry_name :: Lens' IpCountry (Maybe Text)
Documentation
Provides information about the country that an IP address originated from.
See: newIpCountry smart constructor.
Constructors
| IpCountry' | |
Instances
| FromJSON IpCountry Source # | |
| Generic IpCountry Source # | |
| Read IpCountry Source # | |
| Show IpCountry Source # | |
| NFData IpCountry Source # | |
Defined in Amazonka.MacieV2.Types.IpCountry | |
| Eq IpCountry Source # | |
| Hashable IpCountry Source # | |
Defined in Amazonka.MacieV2.Types.IpCountry | |
| type Rep IpCountry Source # | |
Defined in Amazonka.MacieV2.Types.IpCountry type Rep IpCountry = D1 ('MetaData "IpCountry" "Amazonka.MacieV2.Types.IpCountry" "amazonka-maciev2-2.0-5WBPWSHaxt7LOrO1LzXg18" 'False) (C1 ('MetaCons "IpCountry'" 'PrefixI 'True) (S1 ('MetaSel ('Just "code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") '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: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.
$sel:name:IpCountry', ipCountry_name - The name of the country that the IP address originated from.