| 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.GuardDuty.Types.Country
Description
Synopsis
- data Country = Country' {
- countryCode :: Maybe Text
- countryName :: Maybe Text
- newCountry :: Country
- country_countryCode :: Lens' Country (Maybe Text)
- country_countryName :: Lens' Country (Maybe Text)
Documentation
Contains information about the country where the remote IP address is located.
See: newCountry smart constructor.
Constructors
| Country' | |
Fields
| |
Instances
| FromJSON Country Source # | |
| Generic Country Source # | |
| Read Country Source # | |
| Show Country Source # | |
| NFData Country Source # | |
Defined in Amazonka.GuardDuty.Types.Country | |
| Eq Country Source # | |
| Hashable Country Source # | |
Defined in Amazonka.GuardDuty.Types.Country | |
| type Rep Country Source # | |
Defined in Amazonka.GuardDuty.Types.Country type Rep Country = D1 ('MetaData "Country" "Amazonka.GuardDuty.Types.Country" "amazonka-guardduty-2.0-2NN502sGcQRH5risQZb24c" 'False) (C1 ('MetaCons "Country'" 'PrefixI 'True) (S1 ('MetaSel ('Just "countryCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "countryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) | |
newCountry :: Country Source #
Create a value of Country 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:countryCode:Country', country_countryCode - The country code of the remote IP address.
$sel:countryName:Country', country_countryName - The country name of the remote IP address.