libZSservicesZSamazonka-guarddutyZSamazonka-guardduty
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.GuardDuty.Types.Country

Description

 
Synopsis

Documentation

data Country Source #

Contains information about the country where the remote IP address is located.

See: newCountry smart constructor.

Constructors

Country' 

Fields

Instances

Instances details
Eq Country Source # 
Instance details

Defined in Amazonka.GuardDuty.Types.Country

Methods

(==) :: Country -> Country -> Bool #

(/=) :: Country -> Country -> Bool #

Read Country Source # 
Instance details

Defined in Amazonka.GuardDuty.Types.Country

Show Country Source # 
Instance details

Defined in Amazonka.GuardDuty.Types.Country

Generic Country Source # 
Instance details

Defined in Amazonka.GuardDuty.Types.Country

Associated Types

type Rep Country :: Type -> Type #

Methods

from :: Country -> Rep Country x #

to :: Rep Country x -> Country #

NFData Country Source # 
Instance details

Defined in Amazonka.GuardDuty.Types.Country

Methods

rnf :: Country -> () #

Hashable Country Source # 
Instance details

Defined in Amazonka.GuardDuty.Types.Country

Methods

hashWithSalt :: Int -> Country -> Int #

hash :: Country -> Int #

FromJSON Country Source # 
Instance details

Defined in Amazonka.GuardDuty.Types.Country

type Rep Country Source # 
Instance details

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.

country_countryName :: Lens' Country (Maybe Text) Source #

The country name of the remote IP address.

country_countryCode :: Lens' Country (Maybe Text) Source #

The country code of the remote IP address.