amazonka-maciev2-2.0: Amazon Macie 2 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

  • 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.

  • name :: Maybe Text

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

Instances

Instances details
FromJSON 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 #

Read IpCountry Source # 
Instance details

Defined in Amazonka.MacieV2.Types.IpCountry

Show IpCountry Source # 
Instance details

Defined in Amazonka.MacieV2.Types.IpCountry

NFData IpCountry Source # 
Instance details

Defined in Amazonka.MacieV2.Types.IpCountry

Methods

rnf :: IpCountry -> () #

Eq IpCountry Source # 
Instance details

Defined in Amazonka.MacieV2.Types.IpCountry

Hashable 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" "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.

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.

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

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