amazonka-alexa-business-2.0: Amazon Alexa For Business 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.AlexaBusiness.CreateContact

Description

Creates a contact with the specified details.

Synopsis

Creating a Request

data CreateContact Source #

See: newCreateContact smart constructor.

Constructors

CreateContact' 

Fields

  • clientRequestToken :: Maybe Text

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

  • displayName :: Maybe Text

    The name of the contact to display on the console.

  • lastName :: Maybe Text

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

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

  • phoneNumbers :: Maybe [PhoneNumber]

    The list of phone numbers for the contact.

  • sipAddresses :: Maybe [SipAddress]

    The list of SIP addresses for the contact.

  • 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
ToJSON CreateContact Source # 
Instance details

Defined in Amazonka.AlexaBusiness.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

AWSRequest CreateContact Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

Associated Types

type AWSResponse CreateContact #

Generic CreateContact Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

Associated Types

type Rep CreateContact :: Type -> Type #

Show CreateContact Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

NFData CreateContact Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

Methods

rnf :: CreateContact -> () #

Eq CreateContact Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

Hashable CreateContact Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

type AWSResponse CreateContact Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

type Rep 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:clientRequestToken:CreateContact', createContact_clientRequestToken - A unique, user-specified identifier for this request that ensures idempotency.

CreateContact, createContact_displayName - The name of the contact to display on the console.

CreateContact, createContact_lastName - The last name of the contact that is used to call the contact on the device.

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.

CreateContact, createContact_phoneNumbers - The list of phone numbers for the contact.

CreateContact, createContact_sipAddresses - The list of SIP addresses for the contact.

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

CreateContact, createContact_firstName - The first name of the contact that is used to call the contact on the device.

Request Lenses

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

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

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

The name of the contact to display on the console.

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

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

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_phoneNumbers :: Lens' CreateContact (Maybe [PhoneNumber]) Source #

The list of phone numbers for the contact.

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

The list of SIP addresses for the contact.

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
Generic CreateContactResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

Associated Types

type Rep CreateContactResponse :: Type -> Type #

Read CreateContactResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

Show CreateContactResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

NFData CreateContactResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

Methods

rnf :: CreateContactResponse -> () #

Eq CreateContactResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

type Rep CreateContactResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.CreateContact

type Rep CreateContactResponse = D1 ('MetaData "CreateContactResponse" "Amazonka.AlexaBusiness.CreateContact" "amazonka-alexa-business-2.0-BWvKfxFukoyBarGovAkdOS" '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:

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.