libZSservicesZSamazonka-snowballZSamazonka-snowball
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.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
Eq CreateAddress Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

Read CreateAddress Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

Show CreateAddress Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

Generic CreateAddress Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

Associated Types

type Rep CreateAddress :: Type -> Type #

NFData CreateAddress Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

Methods

rnf :: CreateAddress -> () #

Hashable CreateAddress Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

ToJSON CreateAddress Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

AWSRequest CreateAddress Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

Associated Types

type AWSResponse 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

type Rep CreateAddress Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

type Rep CreateAddress = D1 ('MetaData "CreateAddress" "Amazonka.Snowball.CreateAddress" "libZSservicesZSamazonka-snowballZSamazonka-snowball" 'False) (C1 ('MetaCons "CreateAddress'" 'PrefixI 'True) (S1 ('MetaSel ('Just "address") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Address)))
type AWSResponse CreateAddress Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

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
Eq CreateAddressResponse Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

Read CreateAddressResponse Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

Show CreateAddressResponse Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

Generic CreateAddressResponse Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

Associated Types

type Rep CreateAddressResponse :: Type -> Type #

NFData CreateAddressResponse Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

Methods

rnf :: CreateAddressResponse -> () #

type Rep CreateAddressResponse Source # 
Instance details

Defined in Amazonka.Snowball.CreateAddress

type Rep CreateAddressResponse = D1 ('MetaData "CreateAddressResponse" "Amazonka.Snowball.CreateAddress" "libZSservicesZSamazonka-snowballZSamazonka-snowball" '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:

$sel:addressId: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.