amazonka-connect-2.0: Amazon Connect Service 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.Connect.CreateQueue

Description

This API is in preview release for Amazon Connect and is subject to change.

Creates a new queue for the specified Amazon Connect instance.

If the number being used in the input is claimed to a traffic distribution group, and you are calling this API using an instance in the Amazon Web Services Region where the traffic distribution group was created, you can use either a full phone number ARN or UUID value for the OutboundCallerIdNumberId value of the OutboundCallerConfig request body parameter. However, if the number is claimed to a traffic distribution group and you are calling this API using an instance in the alternate Amazon Web Services Region associated with the traffic distribution group, you must provide a full phone number ARN. If a UUID is provided in this scenario, you will receive a ResourceNotFoundException.

Synopsis

Creating a Request

data CreateQueue Source #

See: newCreateQueue smart constructor.

Constructors

CreateQueue' 

Fields

Instances

Instances details
ToJSON CreateQueue Source # 
Instance details

Defined in Amazonka.Connect.CreateQueue

ToHeaders CreateQueue Source # 
Instance details

Defined in Amazonka.Connect.CreateQueue

Methods

toHeaders :: CreateQueue -> [Header] #

ToPath CreateQueue Source # 
Instance details

Defined in Amazonka.Connect.CreateQueue

ToQuery CreateQueue Source # 
Instance details

Defined in Amazonka.Connect.CreateQueue

AWSRequest CreateQueue Source # 
Instance details

Defined in Amazonka.Connect.CreateQueue

Associated Types

type AWSResponse CreateQueue #

Generic CreateQueue Source # 
Instance details

Defined in Amazonka.Connect.CreateQueue

Associated Types

type Rep CreateQueue :: Type -> Type #

Read CreateQueue Source # 
Instance details

Defined in Amazonka.Connect.CreateQueue

Show CreateQueue Source # 
Instance details

Defined in Amazonka.Connect.CreateQueue

NFData CreateQueue Source # 
Instance details

Defined in Amazonka.Connect.CreateQueue

Methods

rnf :: CreateQueue -> () #

Eq CreateQueue Source # 
Instance details

Defined in Amazonka.Connect.CreateQueue

Hashable CreateQueue Source # 
Instance details

Defined in Amazonka.Connect.CreateQueue

type AWSResponse CreateQueue Source # 
Instance details

Defined in Amazonka.Connect.CreateQueue

type Rep CreateQueue Source # 
Instance details

Defined in Amazonka.Connect.CreateQueue

newCreateQueue Source #

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

CreateQueue, createQueue_description - The description of the queue.

CreateQueue, createQueue_maxContacts - The maximum number of contacts that can be in the queue before it is considered full.

CreateQueue, createQueue_outboundCallerConfig - The outbound caller ID name, number, and outbound whisper flow.

$sel:quickConnectIds:CreateQueue', createQueue_quickConnectIds - The quick connects available to agents who are working the queue.

CreateQueue, createQueue_tags - The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

CreateQueue, createQueue_instanceId - The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

CreateQueue, createQueue_name - The name of the queue.

CreateQueue, createQueue_hoursOfOperationId - The identifier for the hours of operation.

Request Lenses

createQueue_description :: Lens' CreateQueue (Maybe Text) Source #

The description of the queue.

createQueue_maxContacts :: Lens' CreateQueue (Maybe Natural) Source #

The maximum number of contacts that can be in the queue before it is considered full.

createQueue_outboundCallerConfig :: Lens' CreateQueue (Maybe OutboundCallerConfig) Source #

The outbound caller ID name, number, and outbound whisper flow.

createQueue_quickConnectIds :: Lens' CreateQueue (Maybe (NonEmpty Text)) Source #

The quick connects available to agents who are working the queue.

createQueue_tags :: Lens' CreateQueue (Maybe (HashMap Text Text)) Source #

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

createQueue_instanceId :: Lens' CreateQueue Text Source #

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

createQueue_name :: Lens' CreateQueue Text Source #

The name of the queue.

createQueue_hoursOfOperationId :: Lens' CreateQueue Text Source #

The identifier for the hours of operation.

Destructuring the Response

data CreateQueueResponse Source #

See: newCreateQueueResponse smart constructor.

Constructors

CreateQueueResponse' 

Fields

Instances

Instances details
Generic CreateQueueResponse Source # 
Instance details

Defined in Amazonka.Connect.CreateQueue

Associated Types

type Rep CreateQueueResponse :: Type -> Type #

Read CreateQueueResponse Source # 
Instance details

Defined in Amazonka.Connect.CreateQueue

Show CreateQueueResponse Source # 
Instance details

Defined in Amazonka.Connect.CreateQueue

NFData CreateQueueResponse Source # 
Instance details

Defined in Amazonka.Connect.CreateQueue

Methods

rnf :: CreateQueueResponse -> () #

Eq CreateQueueResponse Source # 
Instance details

Defined in Amazonka.Connect.CreateQueue

type Rep CreateQueueResponse Source # 
Instance details

Defined in Amazonka.Connect.CreateQueue

type Rep CreateQueueResponse = D1 ('MetaData "CreateQueueResponse" "Amazonka.Connect.CreateQueue" "amazonka-connect-2.0-IAACrecRcUS5AABe9BOFyN" 'False) (C1 ('MetaCons "CreateQueueResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "queueArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "queueId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newCreateQueueResponse Source #

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

CreateQueueResponse, createQueueResponse_queueArn - The Amazon Resource Name (ARN) of the queue.

CreateQueueResponse, createQueueResponse_queueId - The identifier for the queue.

$sel:httpStatus:CreateQueueResponse', createQueueResponse_httpStatus - The response's http status code.

Response Lenses

createQueueResponse_queueArn :: Lens' CreateQueueResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the queue.