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
Information about a country.
See: newCountry
smart constructor.
Country' | |
|
Instances
Eq Country Source # | |
Read Country Source # | |
Show Country Source # | |
Generic Country Source # | |
NFData Country Source # | |
Defined in Amazonka.SecurityHub.Types.Country | |
Hashable Country Source # | |
Defined in Amazonka.SecurityHub.Types.Country | |
ToJSON Country Source # | |
Defined in Amazonka.SecurityHub.Types.Country | |
FromJSON Country Source # | |
type Rep Country Source # | |
Defined in Amazonka.SecurityHub.Types.Country type Rep Country = D1 ('MetaData "Country" "Amazonka.SecurityHub.Types.Country" "libZSservicesZSamazonka-securityhubZSamazonka-securityhub" '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 name of the country.
$sel:countryCode:Country'
, country_countryCode
- The 2-letter ISO 3166 country code for the country.