amazonka-snowball-2.0: Amazon Import/Export Snowball 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.Snowball.CreateAddress

Description

Creates an address for a Snow device to be shipped to. In most regions, addresses are validated at the time of creation. The address you provide must be located within the serviceable area of your region. If the address is invalid or unsupported, then an exception is thrown.

Synopsis

Creating a Request

data CreateAddress Source #

See: newCreateAddress smart constructor.

Constructors

CreateAddress' 

Fields

  • address :: Address

    The address that you want the Snow device shipped to.

Instances

Instances details
ToJSON CreateAddress Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

ToHeaders CreateAddress Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

ToPath CreateAddress Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

ToQuery CreateAddress Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

AWSRequest CreateAddress Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

Associated Types

type AWSResponse CreateAddress #

Generic CreateAddress Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

Associated Types

type Rep CreateAddress :: Type -> Type #

Read CreateAddress Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

Show CreateAddress Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

NFData CreateAddress Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

Methods

rnf :: CreateAddress -> () #

Eq CreateAddress Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

Hashable CreateAddress Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

type AWSResponse CreateAddress Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

type Rep CreateAddress Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

type Rep CreateAddress = D1 ('MetaData "CreateAddress" "Amazonka.Snowball.CreateAddress" "amazonka-snowball-2.0-6vnXQdr1CFv4zLyXDWX7zH" 'False) (C1 ('MetaCons "CreateAddress'" 'PrefixI 'True) (S1 ('MetaSel ('Just "address") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Address)))

newCreateAddress Source #

Create a value of CreateAddress 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:address:CreateAddress', createAddress_address - The address that you want the Snow device shipped to.

Request Lenses

createAddress_address :: Lens' CreateAddress Address Source #

The address that you want the Snow device shipped to.

Destructuring the Response

data CreateAddressResponse Source #

See: newCreateAddressResponse smart constructor.

Constructors

CreateAddressResponse' 

Fields

  • addressId :: Maybe Text

    The automatically generated ID for a specific address. You'll use this ID when you create a job to specify which address you want the Snow device for that job shipped to.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic CreateAddressResponse Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

Associated Types

type Rep CreateAddressResponse :: Type -> Type #

Read CreateAddressResponse Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

Show CreateAddressResponse Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

NFData CreateAddressResponse Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

Methods

rnf :: CreateAddressResponse -> () #

Eq CreateAddressResponse Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

type Rep CreateAddressResponse Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

type Rep CreateAddressResponse = D1 ('MetaData "CreateAddressResponse" "Amazonka.Snowball.CreateAddress" "amazonka-snowball-2.0-6vnXQdr1CFv4zLyXDWX7zH" 'False) (C1 ('MetaCons "CreateAddressResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "addressId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateAddressResponse Source #

Create a value of CreateAddressResponse 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:

CreateAddressResponse, createAddressResponse_addressId - The automatically generated ID for a specific address. You'll use this ID when you create a job to specify which address you want the Snow device for that job shipped to.

$sel:httpStatus:CreateAddressResponse', createAddressResponse_httpStatus - The response's http status code.

Response Lenses

createAddressResponse_addressId :: Lens' CreateAddressResponse (Maybe Text) Source #

The automatically generated ID for a specific address. You'll use this ID when you create a job to specify which address you want the Snow device for that job shipped to.