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