libZSservicesZSamazonka-maciev2ZSamazonka-maciev2
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.MacieV2.Types.IpCountry

Description

 
Synopsis

Documentation

data IpCountry Source #

Provides information about the country that an IP address originated from.

See: newIpCountry smart constructor.

Constructors

IpCountry' 

Fields

  • name :: Maybe Text

    The name of the country that the IP address originated from.

  • code :: Maybe Text

    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.

Instances

Instances details
Eq IpCountry Source # 
Instance details

Defined in Amazonka.MacieV2.Types.IpCountry

Read IpCountry Source # 
Instance details

Defined in Amazonka.MacieV2.Types.IpCountry

Show IpCountry Source # 
Instance details

Defined in Amazonka.MacieV2.Types.IpCountry

Generic IpCountry Source # 
Instance details

Defined in Amazonka.MacieV2.Types.IpCountry

Associated Types

type Rep IpCountry :: Type -> Type #

NFData IpCountry Source # 
Instance details

Defined in Amazonka.MacieV2.Types.IpCountry

Methods

rnf :: IpCountry -> () #

Hashable IpCountry Source # 
Instance details

Defined in Amazonka.MacieV2.Types.IpCountry

FromJSON IpCountry Source # 
Instance details

Defined in Amazonka.MacieV2.Types.IpCountry

type Rep IpCountry Source # 
Instance details

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.

ipCountry_name :: Lens' IpCountry (Maybe Text) Source #

The name of the country that the IP address originated from.

ipCountry_code :: Lens' IpCountry (Maybe Text) Source #

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.