libZSservicesZSamazonka-alexa-businessZSamazonka-alexa-business
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.AlexaBusiness.CreateContact

Description

Creates a contact with the specified details.

Synopsis

Creating a Request

data CreateContact Source #

See: newCreateContact smart constructor.

Constructors

CreateContact' 

Fields

  • lastName :: Maybe Text

    The last name of the contact that is used to call the contact on the device.

  • phoneNumbers :: Maybe [PhoneNumber]

    The list of phone numbers for the contact.

  • phoneNumber :: Maybe (Sensitive Text)

    The phone number of the contact in E.164 format. The phone number type defaults to WORK. You can specify PhoneNumber or PhoneNumbers. We recommend that you use PhoneNumbers, which lets you specify the phone number type and multiple numbers.

  • sipAddresses :: Maybe [SipAddress]

    The list of SIP addresses for the contact.

  • displayName :: Maybe Text

    The name of the contact to display on the console.

  • clientRequestToken :: Maybe Text

    A unique, user-specified identifier for this request that ensures idempotency.

  • tags :: Maybe [Tag]

    The tags to be added to the specified resource. Do not provide system tags.

  • firstName :: Text

    The first name of the contact that is used to call the contact on the device.

Instances

Instances details
Eq CreateContact Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

Show CreateContact Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

Generic CreateContact Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

Associated Types

type Rep CreateContact :: Type -> Type #

NFData CreateContact Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

Methods

rnf :: CreateContact -> () #

Hashable CreateContact Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

ToJSON CreateContact Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

AWSRequest CreateContact Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

Associated Types

type AWSResponse CreateContact #

ToHeaders CreateContact Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

ToPath CreateContact Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

ToQuery CreateContact Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

type Rep CreateContact Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

type Rep CreateContact = D1 ('MetaData "CreateContact" "Amazonka.AlexaBusiness.CreateContact" "libZSservicesZSamazonka-alexa-businessZSamazonka-alexa-business" 'False) (C1 ('MetaCons "CreateContact'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "lastName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "phoneNumbers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PhoneNumber]))) :*: (S1 ('MetaSel ('Just "phoneNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 ('MetaSel ('Just "sipAddresses") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SipAddress])))) :*: ((S1 ('MetaSel ('Just "displayName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "firstName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse CreateContact Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

newCreateContact Source #

Create a value of CreateContact 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:lastName:CreateContact', createContact_lastName - The last name of the contact that is used to call the contact on the device.

$sel:phoneNumbers:CreateContact', createContact_phoneNumbers - The list of phone numbers for the contact.

$sel:phoneNumber:CreateContact', createContact_phoneNumber - The phone number of the contact in E.164 format. The phone number type defaults to WORK. You can specify PhoneNumber or PhoneNumbers. We recommend that you use PhoneNumbers, which lets you specify the phone number type and multiple numbers.

$sel:sipAddresses:CreateContact', createContact_sipAddresses - The list of SIP addresses for the contact.

$sel:displayName:CreateContact', createContact_displayName - The name of the contact to display on the console.

$sel:clientRequestToken:CreateContact', createContact_clientRequestToken - A unique, user-specified identifier for this request that ensures idempotency.

$sel:tags:CreateContact', createContact_tags - The tags to be added to the specified resource. Do not provide system tags.

$sel:firstName:CreateContact', createContact_firstName - The first name of the contact that is used to call the contact on the device.

Request Lenses

createContact_lastName :: Lens' CreateContact (Maybe Text) Source #

The last name of the contact that is used to call the contact on the device.

createContact_phoneNumbers :: Lens' CreateContact (Maybe [PhoneNumber]) Source #

The list of phone numbers for the contact.

createContact_phoneNumber :: Lens' CreateContact (Maybe Text) Source #

The phone number of the contact in E.164 format. The phone number type defaults to WORK. You can specify PhoneNumber or PhoneNumbers. We recommend that you use PhoneNumbers, which lets you specify the phone number type and multiple numbers.

createContact_sipAddresses :: Lens' CreateContact (Maybe [SipAddress]) Source #

The list of SIP addresses for the contact.

createContact_displayName :: Lens' CreateContact (Maybe Text) Source #

The name of the contact to display on the console.

createContact_clientRequestToken :: Lens' CreateContact (Maybe Text) Source #

A unique, user-specified identifier for this request that ensures idempotency.

createContact_tags :: Lens' CreateContact (Maybe [Tag]) Source #

The tags to be added to the specified resource. Do not provide system tags.

createContact_firstName :: Lens' CreateContact Text Source #

The first name of the contact that is used to call the contact on the device.

Destructuring the Response

data CreateContactResponse Source #

See: newCreateContactResponse smart constructor.

Constructors

CreateContactResponse' 

Fields

Instances

Instances details
Eq CreateContactResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

Read CreateContactResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

Show CreateContactResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

Generic CreateContactResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

Associated Types

type Rep CreateContactResponse :: Type -> Type #

NFData CreateContactResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

Methods

rnf :: CreateContactResponse -> () #

type Rep CreateContactResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

type Rep CreateContactResponse = D1 ('MetaData "CreateContactResponse" "Amazonka.AlexaBusiness.CreateContact" "libZSservicesZSamazonka-alexa-businessZSamazonka-alexa-business" 'False) (C1 ('MetaCons "CreateContactResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "contactArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateContactResponse Source #

Create a value of CreateContactResponse 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:contactArn:CreateContactResponse', createContactResponse_contactArn - The ARN of the newly created address book.

$sel:httpStatus:CreateContactResponse', createContactResponse_httpStatus - The response's http status code.

Response Lenses

createContactResponse_contactArn :: Lens' CreateContactResponse (Maybe Text) Source #

The ARN of the newly created address book.