amazonka-alexa-business-1.6.1: Amazon Alexa For Business SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.AlexaBusiness.CreateContact

Contents

Description

Creates a contact with the specified details.

Synopsis

Creating a Request

createContact Source #

Creates a value of CreateContact with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • ccLastName - The last name of the contact that is used to call the contact on the device.
  • ccDisplayName - The name of the contact to display on the console.
  • ccClientRequestToken - A unique, user-specified identifier for this request that ensures idempotency.
  • ccFirstName - The first name of the contact that is used to call the contact on the device.
  • ccPhoneNumber - The phone number of the contact in E.164 format.

data CreateContact Source #

See: createContact smart constructor.

Instances
Eq CreateContact Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.CreateContact

Data CreateContact Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.CreateContact

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateContact -> c CreateContact #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateContact #

toConstr :: CreateContact -> Constr #

dataTypeOf :: CreateContact -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateContact) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateContact) #

gmapT :: (forall b. Data b => b -> b) -> CreateContact -> CreateContact #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateContact -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateContact -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateContact -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateContact -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateContact -> m CreateContact #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateContact -> m CreateContact #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateContact -> m CreateContact #

Read CreateContact Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.CreateContact

Show CreateContact Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.CreateContact

Generic CreateContact Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.CreateContact

Associated Types

type Rep CreateContact :: Type -> Type #

Hashable CreateContact Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.CreateContact

ToJSON CreateContact Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.CreateContact

AWSRequest CreateContact Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.CreateContact

Associated Types

type Rs CreateContact :: Type #

ToHeaders CreateContact Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.CreateContact

ToPath CreateContact Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.CreateContact

ToQuery CreateContact Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.CreateContact

NFData CreateContact Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.CreateContact

Methods

rnf :: CreateContact -> () #

type Rep CreateContact Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.CreateContact

type Rep CreateContact = D1 (MetaData "CreateContact" "Network.AWS.AlexaBusiness.CreateContact" "amazonka-alexa-business-1.6.1-FQuG4RoJ6vRJhvV2Vb1OnQ" False) (C1 (MetaCons "CreateContact'" PrefixI True) ((S1 (MetaSel (Just "_ccLastName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ccDisplayName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_ccClientRequestToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_ccFirstName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ccPhoneNumber") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs CreateContact Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.CreateContact

Request Lenses

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

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

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

The name of the contact to display on the console.

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

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

ccFirstName :: Lens' CreateContact Text Source #

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

ccPhoneNumber :: Lens' CreateContact Text Source #

The phone number of the contact in E.164 format.

Destructuring the Response

createContactResponse Source #

Creates a value of CreateContactResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateContactResponse Source #

See: createContactResponse smart constructor.

Instances
Eq CreateContactResponse Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.CreateContact

Data CreateContactResponse Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.CreateContact

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateContactResponse -> c CreateContactResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateContactResponse #

toConstr :: CreateContactResponse -> Constr #

dataTypeOf :: CreateContactResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateContactResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateContactResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateContactResponse -> CreateContactResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateContactResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateContactResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateContactResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateContactResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateContactResponse -> m CreateContactResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateContactResponse -> m CreateContactResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateContactResponse -> m CreateContactResponse #

Read CreateContactResponse Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.CreateContact

Show CreateContactResponse Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.CreateContact

Generic CreateContactResponse Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.CreateContact

Associated Types

type Rep CreateContactResponse :: Type -> Type #

NFData CreateContactResponse Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.CreateContact

Methods

rnf :: CreateContactResponse -> () #

type Rep CreateContactResponse Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.CreateContact

type Rep CreateContactResponse = D1 (MetaData "CreateContactResponse" "Network.AWS.AlexaBusiness.CreateContact" "amazonka-alexa-business-1.6.1-FQuG4RoJ6vRJhvV2Vb1OnQ" False) (C1 (MetaCons "CreateContactResponse'" PrefixI True) (S1 (MetaSel (Just "_ccrsContactARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ccrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

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

The ARN of the newly created address book.

ccrsResponseStatus :: Lens' CreateContactResponse Int Source #

  • - | The response status code.