You are viewing the documentation for an older major version of the AWS SDK for JavaScript.
The modular AWS SDK for JavaScript (v3), the latest major version of AWS SDK for JavaScript, is now stable and recommended for general use. For more information, see the Migration Guide and API Reference.

Class: AWS.Connect

Inherits:
AWS.Service show all
Identifier:
connect
API Version:
2017-08-08
Defined in:
(unknown)

Overview

Constructs a service interface object. Each API operation is exposed as a function on service.

Service Description

Amazon Connect is a cloud-based contact center solution that you use to set up and manage a customer contact center and provide reliable customer engagement at any scale.

Amazon Connect provides metrics and real-time reporting that enable you to optimize contact routing. You can also resolve customer issues more efficiently by getting customers in touch with the appropriate agents.

There are limits to the number of Amazon Connect resources that you can create. There are also limits to the number of requests that you can make per second. For more information, see Amazon Connect Service Quotas in the Amazon Connect Administrator Guide.

You can connect programmatically to an Amazon Web Services service by using an endpoint. For a list of Amazon Connect endpoints, see Amazon Connect Endpoints.

Note: Working with contact flows? Check out the Amazon Connect Flow language.

Sending a Request Using Connect

var connect = new AWS.Connect();
connect.associateApprovedOrigin(params, function (err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Locking the API Version

In order to ensure that the Connect object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var connect = new AWS.Connect({apiVersion: '2017-08-08'});

You can also set the API version globally in AWS.config.apiVersions using the connect service identifier:

AWS.config.apiVersions = {
  connect: '2017-08-08',
  // other service API versions
};

var connect = new AWS.Connect();

Version:

  • 2017-08-08

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService

Constructor Details

new AWS.Connect(options = {}) ⇒ Object

Constructs a service object. This object has one method for each API operation.

Examples:

Constructing a Connect object

var connect = new AWS.Connect({apiVersion: '2017-08-08'});

Options Hash (options):

  • params (map)

    An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.

  • endpoint (String|AWS.Endpoint)

    The endpoint URI to send requests to. The default endpoint is built from the configured region. The endpoint should be a string like 'https://{service}.{region}.amazonaws.com' or an Endpoint object.

  • accessKeyId (String)

    your AWS access key ID.

  • secretAccessKey (String)

    your AWS secret access key.

  • sessionToken (AWS.Credentials)

    the optional AWS session token to sign requests with.

  • credentials (AWS.Credentials)

    the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.

  • credentialProvider (AWS.CredentialProviderChain)

    the provider chain used to resolve credentials if no static credentials property is set.

  • region (String)

    the region to send service requests to. See AWS.Connect.region for more information.

  • maxRetries (Integer)

    the maximum amount of retries to attempt with a request. See AWS.Connect.maxRetries for more information.

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.Connect.maxRedirects for more information.

  • sslEnabled (Boolean)

    whether to enable SSL for requests.

  • paramValidation (Boolean|map)

    whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:

    • min [Boolean] — Validates that a value meets the min constraint. This is enabled by default when paramValidation is set to true.
    • max [Boolean] — Validates that a value meets the max constraint.
    • pattern [Boolean] — Validates that a string value matches a regular expression.
    • enum [Boolean] — Validates that a string value matches one of the allowable enum values.
  • computeChecksums (Boolean)

    whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)

  • convertResponseTypes (Boolean)

    whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to true.

  • correctClockSkew (Boolean)

    whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to false.

  • s3ForcePathStyle (Boolean)

    whether to force path style URLs for S3 objects.

  • s3BucketEndpoint (Boolean)

    whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an endpoint to be provided explicitly to the service constructor.

  • s3DisableBodySigning (Boolean)

    whether S3 body signing should be disabled when using signature version v4. Body signing can only be disabled when using https. Defaults to true.

  • s3UsEast1RegionalEndpoint ('legacy'|'regional')

    when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to legacy

  • s3UseArnRegion (Boolean)

    whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to true

  • retryDelayOptions (map)

    A set of options to configure the retry delay on retryable errors. Currently supported options are:

    • base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
    • customBackoff [function] — A custom function that accepts a retry count and error and returns the amount of time to delay in milliseconds. If the result is a non-zero negative value, no further retry attempts will be made. The base option will be ignored if this option is supplied. The function is only called for retryable errors.
  • httpOptions (map)

    A set of options to pass to the low-level HTTP request. Currently supported options are:

    • proxy [String] — the URL to proxy requests through
    • agent [http.Agent, https.Agent] — the Agent object to perform HTTP requests with. Used for connection pooling. Defaults to the global agent (http.globalAgent) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment.
    • connectTimeout [Integer] — Sets the socket to timeout after failing to establish a connection with the server after connectTimeout milliseconds. This timeout has no effect once a socket connection has been established.
    • timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
    • xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
    • xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
  • apiVersion (String, Date)

    a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by apiVersions). Specify 'latest' to use the latest possible version.

  • apiVersions (map<String, String|Date>)

    a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.

  • logger (#write, #log)

    an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests

  • systemClockOffset (Number)

    an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global AWS.config object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds.

  • signatureVersion (String)

    the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.

  • signatureCache (Boolean)

    whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to true.

  • dynamoDbCrc32 (Boolean)

    whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default: true.

  • useAccelerateEndpoint (Boolean)

    Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default: false.

  • clientSideMonitoring (Boolean)

    whether to collect and publish this client's performance metrics of all its API requests.

  • endpointDiscoveryEnabled (Boolean|undefined)

    whether to call operations with endpoints given by service dynamically. Setting this

  • endpointCacheSize (Number)

    the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000

  • hostPrefixEnabled (Boolean)

    whether to marshal request parameters to the prefix of hostname. Defaults to true.

  • stsRegionalEndpoints ('legacy'|'regional')

    whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.

Property Details

endpointAWS.Endpoint (readwrite)

Returns an Endpoint object representing the endpoint URL for service requests.

Returns:

  • (AWS.Endpoint)

    an Endpoint object representing the endpoint URL for service requests.

Method Details

associateApprovedOrigin(params = {}, callback) ⇒ AWS.Request

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

Associates an approved origin to an Amazon Connect instance.

Service Reference:

Examples:

Calling the associateApprovedOrigin operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  Origin: 'STRING_VALUE' /* required */
};
connect.associateApprovedOrigin(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • Origin — (String)

      The domain to add to your allow list.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

associateBot(params = {}, callback) ⇒ AWS.Request

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

Allows the specified Amazon Connect instance to access the specified Amazon Lex or Amazon Lex V2 bot.

Service Reference:

Examples:

Calling the associateBot operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  LexBot: {
    LexRegion: 'STRING_VALUE',
    Name: 'STRING_VALUE'
  },
  LexV2Bot: {
    AliasArn: 'STRING_VALUE'
  }
};
connect.associateBot(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • LexBot — (map)

      Configuration information of an Amazon Lex bot.

      • Name — (String)

        The name of the Amazon Lex bot.

      • LexRegion — (String)

        The Region that the Amazon Lex bot was created in.

    • LexV2Bot — (map)

      The Amazon Lex V2 bot to associate with the instance.

      • AliasArn — (String)

        The Amazon Resource Name (ARN) of the Amazon Lex V2 bot.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

associateInstanceStorageConfig(params = {}, callback) ⇒ AWS.Request

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

Associates a storage resource type for the first time. You can only associate one type of storage configuration in a single call. This means, for example, that you can't define an instance with multiple S3 buckets for storing chat transcripts.

This API does not create a resource that doesn't exist. It only associates it to the instance. Ensure that the resource being specified in the storage configuration, like an S3 bucket, exists when being used for association.

Service Reference:

Examples:

Calling the associateInstanceStorageConfig operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  ResourceType: CHAT_TRANSCRIPTS | CALL_RECORDINGS | SCHEDULED_REPORTS | MEDIA_STREAMS | CONTACT_TRACE_RECORDS | AGENT_EVENTS, /* required */
  StorageConfig: { /* required */
    StorageType: S3 | KINESIS_VIDEO_STREAM | KINESIS_STREAM | KINESIS_FIREHOSE, /* required */
    AssociationId: 'STRING_VALUE',
    KinesisFirehoseConfig: {
      FirehoseArn: 'STRING_VALUE' /* required */
    },
    KinesisStreamConfig: {
      StreamArn: 'STRING_VALUE' /* required */
    },
    KinesisVideoStreamConfig: {
      EncryptionConfig: { /* required */
        EncryptionType: KMS, /* required */
        KeyId: 'STRING_VALUE' /* required */
      },
      Prefix: 'STRING_VALUE', /* required */
      RetentionPeriodHours: 'NUMBER_VALUE' /* required */
    },
    S3Config: {
      BucketName: 'STRING_VALUE', /* required */
      BucketPrefix: 'STRING_VALUE', /* required */
      EncryptionConfig: {
        EncryptionType: KMS, /* required */
        KeyId: 'STRING_VALUE' /* required */
      }
    }
  }
};
connect.associateInstanceStorageConfig(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • ResourceType — (String)

      A valid resource type.

      Possible values include:
      • "CHAT_TRANSCRIPTS"
      • "CALL_RECORDINGS"
      • "SCHEDULED_REPORTS"
      • "MEDIA_STREAMS"
      • "CONTACT_TRACE_RECORDS"
      • "AGENT_EVENTS"
    • StorageConfig — (map)

      A valid storage type.

      • AssociationId — (String)

        The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.

      • StorageTyperequired — (String)

        A valid storage type.

        Possible values include:
        • "S3"
        • "KINESIS_VIDEO_STREAM"
        • "KINESIS_STREAM"
        • "KINESIS_FIREHOSE"
      • S3Config — (map)

        The S3 bucket configuration.

        • BucketNamerequired — (String)

          The S3 bucket name.

        • BucketPrefixrequired — (String)

          The S3 bucket prefix.

        • EncryptionConfig — (map)

          The Amazon S3 encryption configuration.

          • EncryptionTyperequired — (String)

            The type of encryption.

            Possible values include:
            • "KMS"
          • KeyIdrequired — (String)

            The full ARN of the encryption key.

            Note: Be sure to provide the full ARN of the encryption key, not just the ID.
      • KinesisVideoStreamConfig — (map)

        The configuration of the Kinesis video stream.

        • Prefixrequired — (String)

          The prefix of the video stream.

        • RetentionPeriodHoursrequired — (Integer)

          The number of hours data is retained in the stream. Kinesis Video Streams retains the data in a data store that is associated with the stream.

          The default value is 0, indicating that the stream does not persist data.

        • EncryptionConfigrequired — (map)

          The encryption configuration.

          • EncryptionTyperequired — (String)

            The type of encryption.

            Possible values include:
            • "KMS"
          • KeyIdrequired — (String)

            The full ARN of the encryption key.

            Note: Be sure to provide the full ARN of the encryption key, not just the ID.
      • KinesisStreamConfig — (map)

        The configuration of the Kinesis data stream.

        • StreamArnrequired — (String)

          The Amazon Resource Name (ARN) of the data stream.

      • KinesisFirehoseConfig — (map)

        The configuration of the Kinesis Firehose delivery stream.

        • FirehoseArnrequired — (String)

          The Amazon Resource Name (ARN) of the delivery stream.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • AssociationId — (String)

        The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

associateLambdaFunction(params = {}, callback) ⇒ AWS.Request

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

Allows the specified Amazon Connect instance to access the specified Lambda function.

Service Reference:

Examples:

Calling the associateLambdaFunction operation

var params = {
  FunctionArn: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE' /* required */
};
connect.associateLambdaFunction(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • FunctionArn — (String)

      The Amazon Resource Name (ARN) for the Lambda function being associated. Maximum number of characters allowed is 140.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

associateLexBot(params = {}, callback) ⇒ AWS.Request

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

Allows the specified Amazon Connect instance to access the specified Amazon Lex bot.

Service Reference:

Examples:

Calling the associateLexBot operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  LexBot: { /* required */
    LexRegion: 'STRING_VALUE',
    Name: 'STRING_VALUE'
  }
};
connect.associateLexBot(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • LexBot — (map)

      The Amazon Lex bot to associate with the instance.

      • Name — (String)

        The name of the Amazon Lex bot.

      • LexRegion — (String)

        The Region that the Amazon Lex bot was created in.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

associateQueueQuickConnects(params = {}, callback) ⇒ AWS.Request

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

Associates a set of quick connects with a queue.

Service Reference:

Examples:

Calling the associateQueueQuickConnects operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  QueueId: 'STRING_VALUE', /* required */
  QuickConnectIds: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
connect.associateQueueQuickConnects(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • QueueId — (String)

      The identifier for the queue.

    • QuickConnectIds — (Array<String>)

      The quick connects to associate with this queue.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

associateRoutingProfileQueues(params = {}, callback) ⇒ AWS.Request

Associates a set of queues with a routing profile.

Service Reference:

Examples:

Calling the associateRoutingProfileQueues operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  QueueConfigs: [ /* required */
    {
      Delay: 'NUMBER_VALUE', /* required */
      Priority: 'NUMBER_VALUE', /* required */
      QueueReference: { /* required */
        Channel: VOICE | CHAT | TASK, /* required */
        QueueId: 'STRING_VALUE' /* required */
      }
    },
    /* more items */
  ],
  RoutingProfileId: 'STRING_VALUE' /* required */
};
connect.associateRoutingProfileQueues(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • RoutingProfileId — (String)

      The identifier of the routing profile.

    • QueueConfigs — (Array<map>)

      The queues to associate with this routing profile.

      • QueueReferencerequired — (map)

        Contains information about a queue resource.

        • QueueIdrequired — (String)

          The identifier for the queue.

        • Channelrequired — (String)

          The channels agents can handle in the Contact Control Panel (CCP) for this routing profile.

          Possible values include:
          • "VOICE"
          • "CHAT"
          • "TASK"
      • Priorityrequired — (Integer)

        The order in which contacts are to be handled for the queue. For more information, see Queues: priority and delay.

      • Delayrequired — (Integer)

        The delay, in seconds, a contact should be in the queue before they are routed to an available agent. For more information, see Queues: priority and delay in the Amazon Connect Administrator Guide.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

associateSecurityKey(params = {}, callback) ⇒ AWS.Request

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

Associates a security key to the instance.

Service Reference:

Examples:

Calling the associateSecurityKey operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  Key: 'STRING_VALUE' /* required */
};
connect.associateSecurityKey(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • Key — (String)

      A valid security key in PEM format.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • AssociationId — (String)

        The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createAgentStatus(params = {}, callback) ⇒ AWS.Request

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

Creates an agent status for the specified Amazon Connect instance.

Service Reference:

Examples:

Calling the createAgentStatus operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE', /* required */
  State: ENABLED | DISABLED, /* required */
  Description: 'STRING_VALUE',
  DisplayOrder: 'NUMBER_VALUE',
  Tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
connect.createAgentStatus(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • Name — (String)

      The name of the status.

    • Description — (String)

      The description of the status.

    • State — (String)

      The state of the status.

      Possible values include:
      • "ENABLED"
      • "DISABLED"
    • DisplayOrder — (Integer)

      The display order of the status.

    • Tags — (map<String>)

      The tags used to organize, track, or control access for this resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • AgentStatusARN — (String)

        The Amazon Resource Name (ARN) of the agent status.

      • AgentStatusId — (String)

        The identifier of the agent status.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createContactFlow(params = {}, callback) ⇒ AWS.Request

Creates a contact flow for the specified Amazon Connect instance.

You can also create and update contact flows using the Amazon Connect Flow language.

Service Reference:

Examples:

Calling the createContactFlow operation

var params = {
  Content: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE', /* required */
  Type: CONTACT_FLOW | CUSTOMER_QUEUE | CUSTOMER_HOLD | CUSTOMER_WHISPER | AGENT_HOLD | AGENT_WHISPER | OUTBOUND_WHISPER | AGENT_TRANSFER | QUEUE_TRANSFER, /* required */
  Description: 'STRING_VALUE',
  Tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
connect.createContactFlow(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

      The identifier of the Amazon Connect instance.

    • Name — (String)

      The name of the contact flow.

    • Type — (String)

      The type of the contact flow. For descriptions of the available types, see Choose a Contact Flow Type in the Amazon Connect Administrator Guide.

      Possible values include:
      • "CONTACT_FLOW"
      • "CUSTOMER_QUEUE"
      • "CUSTOMER_HOLD"
      • "CUSTOMER_WHISPER"
      • "AGENT_HOLD"
      • "AGENT_WHISPER"
      • "OUTBOUND_WHISPER"
      • "AGENT_TRANSFER"
      • "QUEUE_TRANSFER"
    • Description — (String)

      The description of the contact flow.

    • Content — (String)

      The content of the contact flow.

    • Tags — (map<String>)

      One or more tags.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ContactFlowId — (String)

        The identifier of the contact flow.

      • ContactFlowArn — (String)

        The Amazon Resource Name (ARN) of the contact flow.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createHoursOfOperation(params = {}, callback) ⇒ AWS.Request

Creates hours of operation.

Service Reference:

Examples:

Calling the createHoursOfOperation operation

var params = {
  Config: [ /* required */
    {
      Day: SUNDAY | MONDAY | TUESDAY | WEDNESDAY | THURSDAY | FRIDAY | SATURDAY, /* required */
      EndTime: { /* required */
        Hours: 'NUMBER_VALUE', /* required */
        Minutes: 'NUMBER_VALUE' /* required */
      },
      StartTime: { /* required */
        Hours: 'NUMBER_VALUE', /* required */
        Minutes: 'NUMBER_VALUE' /* required */
      }
    },
    /* more items */
  ],
  InstanceId: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE', /* required */
  TimeZone: 'STRING_VALUE', /* required */
  Description: 'STRING_VALUE',
  Tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
connect.createHoursOfOperation(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • Name — (String)

      The name of the hours of operation.

    • Description — (String)

      The description of the hours of operation.

    • TimeZone — (String)

      The time zone of the hours of operation.

    • Config — (Array<map>)

      Configuration information for the hours of operation: day, start time, and end time.

      • Dayrequired — (String)

        The day that the hours of operation applies to.

        Possible values include:
        • "SUNDAY"
        • "MONDAY"
        • "TUESDAY"
        • "WEDNESDAY"
        • "THURSDAY"
        • "FRIDAY"
        • "SATURDAY"
      • StartTimerequired — (map)

        The start time that your contact center opens.

        • Hoursrequired — (Integer)

          The hours.

        • Minutesrequired — (Integer)

          The minutes.

      • EndTimerequired — (map)

        The end time that your contact center closes.

        • Hoursrequired — (Integer)

          The hours.

        • Minutesrequired — (Integer)

          The minutes.

    • Tags — (map<String>)

      The tags used to organize, track, or control access for this resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • HoursOfOperationId — (String)

        The identifier for the hours of operation.

      • HoursOfOperationArn — (String)

        The Amazon Resource Name (ARN) for the hours of operation.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createInstance(params = {}, callback) ⇒ AWS.Request

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

Initiates an Amazon Connect instance with all the supported channels enabled. It does not attach any storage, such as Amazon Simple Storage Service (Amazon S3) or Amazon Kinesis. It also does not allow for any configurations on features, such as Contact Lens for Amazon Connect.

Amazon Connect enforces a limit on the total number of instances that you can create or delete in 30 days. If you exceed this limit, you will get an error message indicating there has been an excessive number of attempts at creating or deleting instances. You must wait 30 days before you can restart creating and deleting instances in your account.

Service Reference:

Examples:

Calling the createInstance operation

var params = {
  IdentityManagementType: SAML | CONNECT_MANAGED | EXISTING_DIRECTORY, /* required */
  InboundCallsEnabled: true || false, /* required */
  OutboundCallsEnabled: true || false, /* required */
  ClientToken: 'STRING_VALUE',
  DirectoryId: 'STRING_VALUE',
  InstanceAlias: 'STRING_VALUE'
};
connect.createInstance(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ClientToken — (String)

      The idempotency token.

    • IdentityManagementType — (String)

      The type of identity management for your Amazon Connect users.

      Possible values include:
      • "SAML"
      • "CONNECT_MANAGED"
      • "EXISTING_DIRECTORY"
    • InstanceAlias — (String)

      The name for your instance.

    • DirectoryId — (String)

      The identifier for the directory.

    • InboundCallsEnabled — (Boolean)

      Your contact center handles incoming contacts.

    • OutboundCallsEnabled — (Boolean)

      Your contact center allows outbound calls.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Id — (String)

        The identifier for the instance.

      • Arn — (String)

        The Amazon Resource Name (ARN) of the instance.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createIntegrationAssociation(params = {}, callback) ⇒ AWS.Request

Creates an Amazon Web Services resource association with an Amazon Connect instance.

Service Reference:

Examples:

Calling the createIntegrationAssociation operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  IntegrationArn: 'STRING_VALUE', /* required */
  IntegrationType: EVENT | VOICE_ID | PINPOINT_APP | WISDOM_ASSISTANT | WISDOM_KNOWLEDGE_BASE, /* required */
  SourceApplicationName: 'STRING_VALUE',
  SourceApplicationUrl: 'STRING_VALUE',
  SourceType: SALESFORCE | ZENDESK,
  Tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
connect.createIntegrationAssociation(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • IntegrationType — (String)

      The type of information to be ingested.

      Possible values include:
      • "EVENT"
      • "VOICE_ID"
      • "PINPOINT_APP"
      • "WISDOM_ASSISTANT"
      • "WISDOM_KNOWLEDGE_BASE"
    • IntegrationArn — (String)

      The Amazon Resource Name (ARN) of the integration.

    • SourceApplicationUrl — (String)

      The URL for the external application. This field is only required for the EVENT integration type.

    • SourceApplicationName — (String)

      The name of the external application. This field is only required for the EVENT integration type.

    • SourceType — (String)

      The type of the data source. This field is only required for the EVENT integration type.

      Possible values include:
      • "SALESFORCE"
      • "ZENDESK"
    • Tags — (map<String>)

      The tags used to organize, track, or control access for this resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • IntegrationAssociationId — (String)

        The identifier for the integration association.

      • IntegrationAssociationArn — (String)

        The Amazon Resource Name (ARN) for the association.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createQueue(params = {}, callback) ⇒ AWS.Request

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

Creates a new queue for the specified Amazon Connect instance.

Service Reference:

Examples:

Calling the createQueue operation

var params = {
  HoursOfOperationId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE', /* required */
  Description: 'STRING_VALUE',
  MaxContacts: 'NUMBER_VALUE',
  OutboundCallerConfig: {
    OutboundCallerIdName: 'STRING_VALUE',
    OutboundCallerIdNumberId: 'STRING_VALUE',
    OutboundFlowId: 'STRING_VALUE'
  },
  QuickConnectIds: [
    'STRING_VALUE',
    /* more items */
  ],
  Tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
connect.createQueue(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • Name — (String)

      The name of the queue.

    • Description — (String)

      The description of the queue.

    • OutboundCallerConfig — (map)

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

      • OutboundCallerIdName — (String)

        The caller ID name.

      • OutboundCallerIdNumberId — (String)

        The caller ID number.

      • OutboundFlowId — (String)

        The outbound whisper flow to be used during an outbound call.

    • HoursOfOperationId — (String)

      The identifier for the hours of operation.

    • MaxContacts — (Integer)

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

    • QuickConnectIds — (Array<String>)

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

    • Tags — (map<String>)

      The tags used to organize, track, or control access for this resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • QueueArn — (String)

        The Amazon Resource Name (ARN) of the queue.

      • QueueId — (String)

        The identifier for the queue.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createQuickConnect(params = {}, callback) ⇒ AWS.Request

Creates a quick connect for the specified Amazon Connect instance.

Service Reference:

Examples:

Calling the createQuickConnect operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE', /* required */
  QuickConnectConfig: { /* required */
    QuickConnectType: USER | QUEUE | PHONE_NUMBER, /* required */
    PhoneConfig: {
      PhoneNumber: 'STRING_VALUE' /* required */
    },
    QueueConfig: {
      ContactFlowId: 'STRING_VALUE', /* required */
      QueueId: 'STRING_VALUE' /* required */
    },
    UserConfig: {
      ContactFlowId: 'STRING_VALUE', /* required */
      UserId: 'STRING_VALUE' /* required */
    }
  },
  Description: 'STRING_VALUE',
  Tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
connect.createQuickConnect(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • Name — (String)

      The name of the quick connect.

    • Description — (String)

      The description of the quick connect.

    • QuickConnectConfig — (map)

      Configuration settings for the quick connect.

      • QuickConnectTyperequired — (String)

        The type of quick connect. In the Amazon Connect console, when you create a quick connect, you are prompted to assign one of the following types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE).

        Possible values include:
        • "USER"
        • "QUEUE"
        • "PHONE_NUMBER"
      • UserConfig — (map)

        The user configuration. This is required only if QuickConnectType is USER.

        • UserIdrequired — (String)

          The identifier of the user.

        • ContactFlowIdrequired — (String)

          The identifier of the contact flow.

      • QueueConfig — (map)

        The queue configuration. This is required only if QuickConnectType is QUEUE.

        • QueueIdrequired — (String)

          The identifier for the queue.

        • ContactFlowIdrequired — (String)

          The identifier of the contact flow.

      • PhoneConfig — (map)

        The phone configuration. This is required only if QuickConnectType is PHONE_NUMBER.

        • PhoneNumberrequired — (String)

          The phone number in E.164 format.

    • Tags — (map<String>)

      The tags used to organize, track, or control access for this resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • QuickConnectARN — (String)

        The Amazon Resource Name (ARN) for the quick connect.

      • QuickConnectId — (String)

        The identifier for the quick connect.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createRoutingProfile(params = {}, callback) ⇒ AWS.Request

Creates a new routing profile.

Service Reference:

Examples:

Calling the createRoutingProfile operation

var params = {
  DefaultOutboundQueueId: 'STRING_VALUE', /* required */
  Description: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE', /* required */
  MediaConcurrencies: [ /* required */
    {
      Channel: VOICE | CHAT | TASK, /* required */
      Concurrency: 'NUMBER_VALUE' /* required */
    },
    /* more items */
  ],
  Name: 'STRING_VALUE', /* required */
  QueueConfigs: [
    {
      Delay: 'NUMBER_VALUE', /* required */
      Priority: 'NUMBER_VALUE', /* required */
      QueueReference: { /* required */
        Channel: VOICE | CHAT | TASK, /* required */
        QueueId: 'STRING_VALUE' /* required */
      }
    },
    /* more items */
  ],
  Tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
connect.createRoutingProfile(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • Name — (String)

      The name of the routing profile. Must not be more than 127 characters.

    • Description — (String)

      Description of the routing profile. Must not be more than 250 characters.

    • DefaultOutboundQueueId — (String)

      The default outbound queue for the routing profile.

    • QueueConfigs — (Array<map>)

      The inbound queues associated with the routing profile. If no queue is added, the agent can make only outbound calls.

      • QueueReferencerequired — (map)

        Contains information about a queue resource.

        • QueueIdrequired — (String)

          The identifier for the queue.

        • Channelrequired — (String)

          The channels agents can handle in the Contact Control Panel (CCP) for this routing profile.

          Possible values include:
          • "VOICE"
          • "CHAT"
          • "TASK"
      • Priorityrequired — (Integer)

        The order in which contacts are to be handled for the queue. For more information, see Queues: priority and delay.

      • Delayrequired — (Integer)

        The delay, in seconds, a contact should be in the queue before they are routed to an available agent. For more information, see Queues: priority and delay in the Amazon Connect Administrator Guide.

    • MediaConcurrencies — (Array<map>)

      The channels that agents can handle in the Contact Control Panel (CCP) for this routing profile.

      • Channelrequired — (String)

        The channels that agents can handle in the Contact Control Panel (CCP).

        Possible values include:
        • "VOICE"
        • "CHAT"
        • "TASK"
      • Concurrencyrequired — (Integer)

        The number of contacts an agent can have on a channel simultaneously.

        Valid Range for VOICE: Minimum value of 1. Maximum value of 1.

        Valid Range for CHAT: Minimum value of 1. Maximum value of 10.

        Valid Range for TASK: Minimum value of 1. Maximum value of 10.

    • Tags — (map<String>)

      One or more tags.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • RoutingProfileArn — (String)

        The Amazon Resource Name (ARN) of the routing profile.

      • RoutingProfileId — (String)

        The identifier of the routing profile.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createSecurityProfile(params = {}, callback) ⇒ AWS.Request

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

Creates a security profile.

Service Reference:

Examples:

Calling the createSecurityProfile operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  SecurityProfileName: 'STRING_VALUE', /* required */
  Description: 'STRING_VALUE',
  Permissions: [
    'STRING_VALUE',
    /* more items */
  ],
  Tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
connect.createSecurityProfile(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • SecurityProfileName — (String)

      The name of the security profile.

    • Description — (String)

      The description of the security profile.

    • Permissions — (Array<String>)

      Permissions assigned to the security profile.

    • InstanceId — (String)

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

    • Tags — (map<String>)

      The tags used to organize, track, or control access for this resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • SecurityProfileId — (String)

        The identifier for the security profle.

      • SecurityProfileArn — (String)

        The Amazon Resource Name (ARN) for the security profile.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createUseCase(params = {}, callback) ⇒ AWS.Request

Creates a use case for an integration association.

Service Reference:

Examples:

Calling the createUseCase operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  IntegrationAssociationId: 'STRING_VALUE', /* required */
  UseCaseType: RULES_EVALUATION | CONNECT_CAMPAIGNS, /* required */
  Tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
connect.createUseCase(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • IntegrationAssociationId — (String)

      The identifier for the integration association.

    • UseCaseType — (String)

      The type of use case to associate to the integration association. Each integration association can have only one of each use case type.

      Possible values include:
      • "RULES_EVALUATION"
      • "CONNECT_CAMPAIGNS"
    • Tags — (map<String>)

      The tags used to organize, track, or control access for this resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • UseCaseId — (String)

        The identifier of the use case.

      • UseCaseArn — (String)

        The Amazon Resource Name (ARN) for the use case.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createUser(params = {}, callback) ⇒ AWS.Request

Creates a user account for the specified Amazon Connect instance.

For information about how to create user accounts using the Amazon Connect console, see Add Users in the Amazon Connect Administrator Guide.

Service Reference:

Examples:

Calling the createUser operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  PhoneConfig: { /* required */
    PhoneType: SOFT_PHONE | DESK_PHONE, /* required */
    AfterContactWorkTimeLimit: 'NUMBER_VALUE',
    AutoAccept: true || false,
    DeskPhoneNumber: 'STRING_VALUE'
  },
  RoutingProfileId: 'STRING_VALUE', /* required */
  SecurityProfileIds: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  Username: 'STRING_VALUE', /* required */
  DirectoryUserId: 'STRING_VALUE',
  HierarchyGroupId: 'STRING_VALUE',
  IdentityInfo: {
    Email: 'STRING_VALUE',
    FirstName: 'STRING_VALUE',
    LastName: 'STRING_VALUE'
  },
  Password: 'STRING_VALUE',
  Tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
connect.createUser(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Username — (String)

      The user name for the account. For instances not using SAML for identity management, the user name can include up to 20 characters. If you are using SAML for identity management, the user name can include up to 64 characters from [a-zA-Z0-9_-.\@]+.

    • Password — (String)

      The password for the user account. A password is required if you are using Amazon Connect for identity management. Otherwise, it is an error to include a password.

    • IdentityInfo — (map)

      The information about the identity of the user.

      • FirstName — (String)

        The first name. This is required if you are using Amazon Connect or SAML for identity management.

      • LastName — (String)

        The last name. This is required if you are using Amazon Connect or SAML for identity management.

      • Email — (String)

        The email address. If you are using SAML for identity management and include this parameter, an error is returned.

    • PhoneConfig — (map)

      The phone settings for the user.

      • PhoneTyperequired — (String)

        The phone type.

        Possible values include:
        • "SOFT_PHONE"
        • "DESK_PHONE"
      • AutoAccept — (Boolean)

        The Auto accept setting.

      • AfterContactWorkTimeLimit — (Integer)

        The After Call Work (ACW) timeout setting, in seconds.

      • DeskPhoneNumber — (String)

        The phone number for the user's desk phone.

    • DirectoryUserId — (String)

      The identifier of the user account in the directory used for identity management. If Amazon Connect cannot access the directory, you can specify this identifier to authenticate users. If you include the identifier, we assume that Amazon Connect cannot access the directory. Otherwise, the identity information is used to authenticate users from your directory.

      This parameter is required if you are using an existing directory for identity management in Amazon Connect when Amazon Connect cannot access your directory to authenticate users. If you are using SAML for identity management and include this parameter, an error is returned.

    • SecurityProfileIds — (Array<String>)

      The identifier of the security profile for the user.

    • RoutingProfileId — (String)

      The identifier of the routing profile for the user.

    • HierarchyGroupId — (String)

      The identifier of the hierarchy group for the user.

    • InstanceId — (String)

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

    • Tags — (map<String>)

      One or more tags.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • UserId — (String)

        The identifier of the user account.

      • UserArn — (String)

        The Amazon Resource Name (ARN) of the user account.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createUserHierarchyGroup(params = {}, callback) ⇒ AWS.Request

Creates a new user hierarchy group.

Service Reference:

Examples:

Calling the createUserHierarchyGroup operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE', /* required */
  ParentGroupId: 'STRING_VALUE'
};
connect.createUserHierarchyGroup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      The name of the user hierarchy group. Must not be more than 100 characters.

    • ParentGroupId — (String)

      The identifier for the parent hierarchy group. The user hierarchy is created at level one if the parent group ID is null.

    • InstanceId — (String)

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

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • HierarchyGroupId — (String)

        The identifier of the hierarchy group.

      • HierarchyGroupArn — (String)

        The Amazon Resource Name (ARN) of the hierarchy group.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteHoursOfOperation(params = {}, callback) ⇒ AWS.Request

Deletes an hours of operation.

Service Reference:

Examples:

Calling the deleteHoursOfOperation operation

var params = {
  HoursOfOperationId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE' /* required */
};
connect.deleteHoursOfOperation(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • HoursOfOperationId — (String)

      The identifier for the hours of operation.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteInstance(params = {}, callback) ⇒ AWS.Request

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

Deletes the Amazon Connect instance.

Amazon Connect enforces a limit on the total number of instances that you can create or delete in 30 days. If you exceed this limit, you will get an error message indicating there has been an excessive number of attempts at creating or deleting instances. You must wait 30 days before you can restart creating and deleting instances in your account.

Service Reference:

Examples:

Calling the deleteInstance operation

var params = {
  InstanceId: 'STRING_VALUE' /* required */
};
connect.deleteInstance(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteIntegrationAssociation(params = {}, callback) ⇒ AWS.Request

Deletes an Amazon Web Services resource association from an Amazon Connect instance. The association must not have any use cases associated with it.

Service Reference:

Examples:

Calling the deleteIntegrationAssociation operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  IntegrationAssociationId: 'STRING_VALUE' /* required */
};
connect.deleteIntegrationAssociation(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • IntegrationAssociationId — (String)

      The identifier for the integration association.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteQuickConnect(params = {}, callback) ⇒ AWS.Request

Deletes a quick connect.

Service Reference:

Examples:

Calling the deleteQuickConnect operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  QuickConnectId: 'STRING_VALUE' /* required */
};
connect.deleteQuickConnect(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • QuickConnectId — (String)

      The identifier for the quick connect.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteSecurityProfile(params = {}, callback) ⇒ AWS.Request

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

Deletes a security profile.

Service Reference:

Examples:

Calling the deleteSecurityProfile operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  SecurityProfileId: 'STRING_VALUE' /* required */
};
connect.deleteSecurityProfile(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • SecurityProfileId — (String)

      The identifier for the security profle.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteUseCase(params = {}, callback) ⇒ AWS.Request

Deletes a use case from an integration association.

Service Reference:

Examples:

Calling the deleteUseCase operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  IntegrationAssociationId: 'STRING_VALUE', /* required */
  UseCaseId: 'STRING_VALUE' /* required */
};
connect.deleteUseCase(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • IntegrationAssociationId — (String)

      The identifier for the integration association.

    • UseCaseId — (String)

      The identifier for the use case.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteUser(params = {}, callback) ⇒ AWS.Request

Deletes a user account from the specified Amazon Connect instance.

For information about what happens to a user's data when their account is deleted, see Delete Users from Your Amazon Connect Instance in the Amazon Connect Administrator Guide.

Service Reference:

Examples:

Calling the deleteUser operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  UserId: 'STRING_VALUE' /* required */
};
connect.deleteUser(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • UserId — (String)

      The identifier of the user.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteUserHierarchyGroup(params = {}, callback) ⇒ AWS.Request

Deletes an existing user hierarchy group. It must not be associated with any agents or have any active child groups.

Service Reference:

Examples:

Calling the deleteUserHierarchyGroup operation

var params = {
  HierarchyGroupId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE' /* required */
};
connect.deleteUserHierarchyGroup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • HierarchyGroupId — (String)

      The identifier of the hierarchy group.

    • InstanceId — (String)

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

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeAgentStatus(params = {}, callback) ⇒ AWS.Request

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

Describes an agent status.

Service Reference:

Examples:

Calling the describeAgentStatus operation

var params = {
  AgentStatusId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE' /* required */
};
connect.describeAgentStatus(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • AgentStatusId — (String)

      The identifier for the agent status.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • AgentStatus — (map)

        The agent status.

        • AgentStatusARN — (String)

          The Amazon Resource Name (ARN) of the agent status.

        • AgentStatusId — (String)

          The identifier of the agent status.

        • Name — (String)

          The name of the agent status.

        • Description — (String)

          The description of the agent status.

        • Type — (String)

          The type of agent status.

          Possible values include:
          • "ROUTABLE"
          • "CUSTOM"
          • "OFFLINE"
        • DisplayOrder — (Integer)

          The display order of the agent status.

        • State — (String)

          The state of the agent status.

          Possible values include:
          • "ENABLED"
          • "DISABLED"
        • Tags — (map<String>)

          The tags used to organize, track, or control access for this resource.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeContactFlow(params = {}, callback) ⇒ AWS.Request

Describes the specified contact flow.

You can also create and update contact flows using the Amazon Connect Flow language.

Service Reference:

Examples:

Calling the describeContactFlow operation

var params = {
  ContactFlowId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE' /* required */
};
connect.describeContactFlow(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

      The identifier of the Amazon Connect instance.

    • ContactFlowId — (String)

      The identifier of the contact flow.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ContactFlow — (map)

        Information about the contact flow.

        • Arn — (String)

          The Amazon Resource Name (ARN) of the contact flow.

        • Id — (String)

          The identifier of the contact flow.

        • Name — (String)

          The name of the contact flow.

        • Type — (String)

          The type of the contact flow. For descriptions of the available types, see Choose a Contact Flow Type in the Amazon Connect Administrator Guide.

          Possible values include:
          • "CONTACT_FLOW"
          • "CUSTOMER_QUEUE"
          • "CUSTOMER_HOLD"
          • "CUSTOMER_WHISPER"
          • "AGENT_HOLD"
          • "AGENT_WHISPER"
          • "OUTBOUND_WHISPER"
          • "AGENT_TRANSFER"
          • "QUEUE_TRANSFER"
        • Description — (String)

          The description of the contact flow.

        • Content — (String)

          The content of the contact flow.

        • Tags — (map<String>)

          One or more tags.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeHoursOfOperation(params = {}, callback) ⇒ AWS.Request

Describes the hours of operation.

Service Reference:

Examples:

Calling the describeHoursOfOperation operation

var params = {
  HoursOfOperationId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE' /* required */
};
connect.describeHoursOfOperation(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • HoursOfOperationId — (String)

      The identifier for the hours of operation.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • HoursOfOperation — (map)

        The hours of operation.

        • HoursOfOperationId — (String)

          The identifier for the hours of operation.

        • HoursOfOperationArn — (String)

          The Amazon Resource Name (ARN) for the hours of operation.

        • Name — (String)

          The name for the hours of operation.

        • Description — (String)

          The description for the hours of operation.

        • TimeZone — (String)

          The time zone for the hours of operation.

        • Config — (Array<map>)

          Configuration information for the hours of operation.

          • Dayrequired — (String)

            The day that the hours of operation applies to.

            Possible values include:
            • "SUNDAY"
            • "MONDAY"
            • "TUESDAY"
            • "WEDNESDAY"
            • "THURSDAY"
            • "FRIDAY"
            • "SATURDAY"
          • StartTimerequired — (map)

            The start time that your contact center opens.

            • Hoursrequired — (Integer)

              The hours.

            • Minutesrequired — (Integer)

              The minutes.

          • EndTimerequired — (map)

            The end time that your contact center closes.

            • Hoursrequired — (Integer)

              The hours.

            • Minutesrequired — (Integer)

              The minutes.

        • Tags — (map<String>)

          The tags used to organize, track, or control access for this resource.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeInstance(params = {}, callback) ⇒ AWS.Request

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

Returns the current state of the specified instance identifier. It tracks the instance while it is being created and returns an error status, if applicable.

If an instance is not created successfully, the instance status reason field returns details relevant to the reason. The instance in a failed state is returned only for 24 hours after the CreateInstance API was invoked.

Service Reference:

Examples:

Calling the describeInstance operation

var params = {
  InstanceId: 'STRING_VALUE' /* required */
};
connect.describeInstance(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Instance — (map)

        The name of the instance.

        • Id — (String)

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

        • Arn — (String)

          The Amazon Resource Name (ARN) of the instance.

        • IdentityManagementType — (String)

          The identity management type.

          Possible values include:
          • "SAML"
          • "CONNECT_MANAGED"
          • "EXISTING_DIRECTORY"
        • InstanceAlias — (String)

          The alias of instance.

        • CreatedTime — (Date)

          When the instance was created.

        • ServiceRole — (String)

          The service role of the instance.

        • InstanceStatus — (String)

          The state of the instance.

          Possible values include:
          • "CREATION_IN_PROGRESS"
          • "ACTIVE"
          • "CREATION_FAILED"
        • StatusReason — (map)

          Relevant details why the instance was not successfully created.

          • Message — (String)

            The message.

        • InboundCallsEnabled — (Boolean)

          Whether inbound calls are enabled.

        • OutboundCallsEnabled — (Boolean)

          Whether outbound calls are enabled.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeInstanceAttribute(params = {}, callback) ⇒ AWS.Request

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

Describes the specified instance attribute.

Service Reference:

Examples:

Calling the describeInstanceAttribute operation

var params = {
  AttributeType: INBOUND_CALLS | OUTBOUND_CALLS | CONTACTFLOW_LOGS | CONTACT_LENS | AUTO_RESOLVE_BEST_VOICES | USE_CUSTOM_TTS_VOICES | EARLY_MEDIA, /* required */
  InstanceId: 'STRING_VALUE' /* required */
};
connect.describeInstanceAttribute(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • AttributeType — (String)

      The type of attribute.

      Possible values include:
      • "INBOUND_CALLS"
      • "OUTBOUND_CALLS"
      • "CONTACTFLOW_LOGS"
      • "CONTACT_LENS"
      • "AUTO_RESOLVE_BEST_VOICES"
      • "USE_CUSTOM_TTS_VOICES"
      • "EARLY_MEDIA"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Attribute — (map)

        The type of attribute.

        • AttributeType — (String)

          The type of attribute.

          Possible values include:
          • "INBOUND_CALLS"
          • "OUTBOUND_CALLS"
          • "CONTACTFLOW_LOGS"
          • "CONTACT_LENS"
          • "AUTO_RESOLVE_BEST_VOICES"
          • "USE_CUSTOM_TTS_VOICES"
          • "EARLY_MEDIA"
        • Value — (String)

          The value of the attribute.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeInstanceStorageConfig(params = {}, callback) ⇒ AWS.Request

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

Retrieves the current storage configurations for the specified resource type, association ID, and instance ID.

Service Reference:

Examples:

Calling the describeInstanceStorageConfig operation

var params = {
  AssociationId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE', /* required */
  ResourceType: CHAT_TRANSCRIPTS | CALL_RECORDINGS | SCHEDULED_REPORTS | MEDIA_STREAMS | CONTACT_TRACE_RECORDS | AGENT_EVENTS /* required */
};
connect.describeInstanceStorageConfig(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • AssociationId — (String)

      The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.

    • ResourceType — (String)

      A valid resource type.

      Possible values include:
      • "CHAT_TRANSCRIPTS"
      • "CALL_RECORDINGS"
      • "SCHEDULED_REPORTS"
      • "MEDIA_STREAMS"
      • "CONTACT_TRACE_RECORDS"
      • "AGENT_EVENTS"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • StorageConfig — (map)

        A valid storage type.

        • AssociationId — (String)

          The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.

        • StorageTyperequired — (String)

          A valid storage type.

          Possible values include:
          • "S3"
          • "KINESIS_VIDEO_STREAM"
          • "KINESIS_STREAM"
          • "KINESIS_FIREHOSE"
        • S3Config — (map)

          The S3 bucket configuration.

          • BucketNamerequired — (String)

            The S3 bucket name.

          • BucketPrefixrequired — (String)

            The S3 bucket prefix.

          • EncryptionConfig — (map)

            The Amazon S3 encryption configuration.

            • EncryptionTyperequired — (String)

              The type of encryption.

              Possible values include:
              • "KMS"
            • KeyIdrequired — (String)

              The full ARN of the encryption key.

              Note: Be sure to provide the full ARN of the encryption key, not just the ID.
        • KinesisVideoStreamConfig — (map)

          The configuration of the Kinesis video stream.

          • Prefixrequired — (String)

            The prefix of the video stream.

          • RetentionPeriodHoursrequired — (Integer)

            The number of hours data is retained in the stream. Kinesis Video Streams retains the data in a data store that is associated with the stream.

            The default value is 0, indicating that the stream does not persist data.

          • EncryptionConfigrequired — (map)

            The encryption configuration.

            • EncryptionTyperequired — (String)

              The type of encryption.

              Possible values include:
              • "KMS"
            • KeyIdrequired — (String)

              The full ARN of the encryption key.

              Note: Be sure to provide the full ARN of the encryption key, not just the ID.
        • KinesisStreamConfig — (map)

          The configuration of the Kinesis data stream.

          • StreamArnrequired — (String)

            The Amazon Resource Name (ARN) of the data stream.

        • KinesisFirehoseConfig — (map)

          The configuration of the Kinesis Firehose delivery stream.

          • FirehoseArnrequired — (String)

            The Amazon Resource Name (ARN) of the delivery stream.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeQueue(params = {}, callback) ⇒ AWS.Request

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

Describes the specified queue.

Service Reference:

Examples:

Calling the describeQueue operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  QueueId: 'STRING_VALUE' /* required */
};
connect.describeQueue(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • QueueId — (String)

      The identifier for the queue.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Queue — (map)

        The name of the queue.

        • Name — (String)

          The name of the queue.

        • QueueArn — (String)

          The Amazon Resource Name (ARN) for the queue.

        • QueueId — (String)

          The identifier for the queue.

        • Description — (String)

          The description of the queue.

        • OutboundCallerConfig — (map)

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

          • OutboundCallerIdName — (String)

            The caller ID name.

          • OutboundCallerIdNumberId — (String)

            The caller ID number.

          • OutboundFlowId — (String)

            The outbound whisper flow to be used during an outbound call.

        • HoursOfOperationId — (String)

          The identifier for the hours of operation.

        • MaxContacts — (Integer)

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

        • Status — (String)

          The status of the queue.

          Possible values include:
          • "ENABLED"
          • "DISABLED"
        • Tags — (map<String>)

          The tags used to organize, track, or control access for this resource.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeQuickConnect(params = {}, callback) ⇒ AWS.Request

Describes the quick connect.

Service Reference:

Examples:

Calling the describeQuickConnect operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  QuickConnectId: 'STRING_VALUE' /* required */
};
connect.describeQuickConnect(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • QuickConnectId — (String)

      The identifier for the quick connect.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • QuickConnect — (map)

        Information about the quick connect.

        • QuickConnectARN — (String)

          The Amazon Resource Name (ARN) of the quick connect.

        • QuickConnectId — (String)

          The identifier for the quick connect.

        • Name — (String)

          The name of the quick connect.

        • Description — (String)

          The description.

        • QuickConnectConfig — (map)

          Contains information about the quick connect.

          • QuickConnectTyperequired — (String)

            The type of quick connect. In the Amazon Connect console, when you create a quick connect, you are prompted to assign one of the following types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE).

            Possible values include:
            • "USER"
            • "QUEUE"
            • "PHONE_NUMBER"
          • UserConfig — (map)

            The user configuration. This is required only if QuickConnectType is USER.

            • UserIdrequired — (String)

              The identifier of the user.

            • ContactFlowIdrequired — (String)

              The identifier of the contact flow.

          • QueueConfig — (map)

            The queue configuration. This is required only if QuickConnectType is QUEUE.

            • QueueIdrequired — (String)

              The identifier for the queue.

            • ContactFlowIdrequired — (String)

              The identifier of the contact flow.

          • PhoneConfig — (map)

            The phone configuration. This is required only if QuickConnectType is PHONE_NUMBER.

            • PhoneNumberrequired — (String)

              The phone number in E.164 format.

        • Tags — (map<String>)

          The tags used to organize, track, or control access for this resource.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeRoutingProfile(params = {}, callback) ⇒ AWS.Request

Describes the specified routing profile.

Service Reference:

Examples:

Calling the describeRoutingProfile operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  RoutingProfileId: 'STRING_VALUE' /* required */
};
connect.describeRoutingProfile(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • RoutingProfileId — (String)

      The identifier of the routing profile.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • RoutingProfile — (map)

        The routing profile.

        • InstanceId — (String)

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

        • Name — (String)

          The name of the routing profile.

        • RoutingProfileArn — (String)

          The Amazon Resource Name (ARN) of the routing profile.

        • RoutingProfileId — (String)

          The identifier of the routing profile.

        • Description — (String)

          The description of the routing profile.

        • MediaConcurrencies — (Array<map>)

          The channels agents can handle in the Contact Control Panel (CCP) for this routing profile.

          • Channelrequired — (String)

            The channels that agents can handle in the Contact Control Panel (CCP).

            Possible values include:
            • "VOICE"
            • "CHAT"
            • "TASK"
          • Concurrencyrequired — (Integer)

            The number of contacts an agent can have on a channel simultaneously.

            Valid Range for VOICE: Minimum value of 1. Maximum value of 1.

            Valid Range for CHAT: Minimum value of 1. Maximum value of 10.

            Valid Range for TASK: Minimum value of 1. Maximum value of 10.

        • DefaultOutboundQueueId — (String)

          The identifier of the default outbound queue for this routing profile.

        • Tags — (map<String>)

          One or more tags.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeSecurityProfile(params = {}, callback) ⇒ AWS.Request

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

Gets basic information about the security profle.

Service Reference:

Examples:

Calling the describeSecurityProfile operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  SecurityProfileId: 'STRING_VALUE' /* required */
};
connect.describeSecurityProfile(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • SecurityProfileId — (String)

      The identifier for the security profle.

    • InstanceId — (String)

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

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • SecurityProfile — (map)

        The security profile.

        • Id — (String)

          The identifier for the security profile.

        • OrganizationResourceId — (String)

          The organization resource identifier for the security profile.

        • Arn — (String)

          The Amazon Resource Name (ARN) for the secruity profile.

        • SecurityProfileName — (String)

          The name for the security profile.

        • Description — (String)

          The description of the security profile.

        • Tags — (map<String>)

          The tags used to organize, track, or control access for this resource.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeUser(params = {}, callback) ⇒ AWS.Request

Describes the specified user account. You can find the instance ID in the console (it’s the final part of the ARN). The console does not display the user IDs. Instead, list the users and note the IDs provided in the output.

Service Reference:

Examples:

Calling the describeUser operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  UserId: 'STRING_VALUE' /* required */
};
connect.describeUser(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • UserId — (String)

      The identifier of the user account.

    • InstanceId — (String)

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

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • User — (map)

        Information about the user account and configuration settings.

        • Id — (String)

          The identifier of the user account.

        • Arn — (String)

          The Amazon Resource Name (ARN) of the user account.

        • Username — (String)

          The user name assigned to the user account.

        • IdentityInfo — (map)

          Information about the user identity.

          • FirstName — (String)

            The first name. This is required if you are using Amazon Connect or SAML for identity management.

          • LastName — (String)

            The last name. This is required if you are using Amazon Connect or SAML for identity management.

          • Email — (String)

            The email address. If you are using SAML for identity management and include this parameter, an error is returned.

        • PhoneConfig — (map)

          Information about the phone configuration for the user.

          • PhoneTyperequired — (String)

            The phone type.

            Possible values include:
            • "SOFT_PHONE"
            • "DESK_PHONE"
          • AutoAccept — (Boolean)

            The Auto accept setting.

          • AfterContactWorkTimeLimit — (Integer)

            The After Call Work (ACW) timeout setting, in seconds.

          • DeskPhoneNumber — (String)

            The phone number for the user's desk phone.

        • DirectoryUserId — (String)

          The identifier of the user account in the directory used for identity management.

        • SecurityProfileIds — (Array<String>)

          The identifiers of the security profiles for the user.

        • RoutingProfileId — (String)

          The identifier of the routing profile for the user.

        • HierarchyGroupId — (String)

          The identifier of the hierarchy group for the user.

        • Tags — (map<String>)

          The tags.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeUserHierarchyGroup(params = {}, callback) ⇒ AWS.Request

Describes the specified hierarchy group.

Service Reference:

Examples:

Calling the describeUserHierarchyGroup operation

var params = {
  HierarchyGroupId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE' /* required */
};
connect.describeUserHierarchyGroup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • HierarchyGroupId — (String)

      The identifier of the hierarchy group.

    • InstanceId — (String)

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

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • HierarchyGroup — (map)

        Information about the hierarchy group.

        • Id — (String)

          The identifier of the hierarchy group.

        • Arn — (String)

          The Amazon Resource Name (ARN) of the hierarchy group.

        • Name — (String)

          The name of the hierarchy group.

        • LevelId — (String)

          The identifier of the level in the hierarchy group.

        • HierarchyPath — (map)

          Information about the levels in the hierarchy group.

          • LevelOne — (map)

            Information about level one.

            • Id — (String)

              The identifier of the hierarchy group.

            • Arn — (String)

              The Amazon Resource Name (ARN) of the hierarchy group.

            • Name — (String)

              The name of the hierarchy group.

          • LevelTwo — (map)

            Information about level two.

            • Id — (String)

              The identifier of the hierarchy group.

            • Arn — (String)

              The Amazon Resource Name (ARN) of the hierarchy group.

            • Name — (String)

              The name of the hierarchy group.

          • LevelThree — (map)

            Information about level three.

            • Id — (String)

              The identifier of the hierarchy group.

            • Arn — (String)

              The Amazon Resource Name (ARN) of the hierarchy group.

            • Name — (String)

              The name of the hierarchy group.

          • LevelFour — (map)

            Information about level four.

            • Id — (String)

              The identifier of the hierarchy group.

            • Arn — (String)

              The Amazon Resource Name (ARN) of the hierarchy group.

            • Name — (String)

              The name of the hierarchy group.

          • LevelFive — (map)

            Information about level five.

            • Id — (String)

              The identifier of the hierarchy group.

            • Arn — (String)

              The Amazon Resource Name (ARN) of the hierarchy group.

            • Name — (String)

              The name of the hierarchy group.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeUserHierarchyStructure(params = {}, callback) ⇒ AWS.Request

Describes the hierarchy structure of the specified Amazon Connect instance.

Service Reference:

Examples:

Calling the describeUserHierarchyStructure operation

var params = {
  InstanceId: 'STRING_VALUE' /* required */
};
connect.describeUserHierarchyStructure(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • HierarchyStructure — (map)

        Information about the hierarchy structure.

        • LevelOne — (map)

          Information about level one.

          • Id — (String)

            The identifier of the hierarchy level.

          • Arn — (String)

            The Amazon Resource Name (ARN) of the hierarchy level.

          • Name — (String)

            The name of the hierarchy level.

        • LevelTwo — (map)

          Information about level two.

          • Id — (String)

            The identifier of the hierarchy level.

          • Arn — (String)

            The Amazon Resource Name (ARN) of the hierarchy level.

          • Name — (String)

            The name of the hierarchy level.

        • LevelThree — (map)

          Information about level three.

          • Id — (String)

            The identifier of the hierarchy level.

          • Arn — (String)

            The Amazon Resource Name (ARN) of the hierarchy level.

          • Name — (String)

            The name of the hierarchy level.

        • LevelFour — (map)

          Information about level four.

          • Id — (String)

            The identifier of the hierarchy level.

          • Arn — (String)

            The Amazon Resource Name (ARN) of the hierarchy level.

          • Name — (String)

            The name of the hierarchy level.

        • LevelFive — (map)

          Information about level five.

          • Id — (String)

            The identifier of the hierarchy level.

          • Arn — (String)

            The Amazon Resource Name (ARN) of the hierarchy level.

          • Name — (String)

            The name of the hierarchy level.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

disassociateApprovedOrigin(params = {}, callback) ⇒ AWS.Request

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

Revokes access to integrated applications from Amazon Connect.

Service Reference:

Examples:

Calling the disassociateApprovedOrigin operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  Origin: 'STRING_VALUE' /* required */
};
connect.disassociateApprovedOrigin(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • Origin — (String)

      The domain URL of the integrated application.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

disassociateBot(params = {}, callback) ⇒ AWS.Request

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

Revokes authorization from the specified instance to access the specified Amazon Lex or Amazon Lex V2 bot.

Service Reference:

Examples:

Calling the disassociateBot operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  LexBot: {
    LexRegion: 'STRING_VALUE',
    Name: 'STRING_VALUE'
  },
  LexV2Bot: {
    AliasArn: 'STRING_VALUE'
  }
};
connect.disassociateBot(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • LexBot — (map)

      Configuration information of an Amazon Lex bot.

      • Name — (String)

        The name of the Amazon Lex bot.

      • LexRegion — (String)

        The Region that the Amazon Lex bot was created in.

    • LexV2Bot — (map)

      The Amazon Lex V2 bot to disassociate from the instance.

      • AliasArn — (String)

        The Amazon Resource Name (ARN) of the Amazon Lex V2 bot.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

disassociateInstanceStorageConfig(params = {}, callback) ⇒ AWS.Request

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

Removes the storage type configurations for the specified resource type and association ID.

Examples:

Calling the disassociateInstanceStorageConfig operation

var params = {
  AssociationId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE', /* required */
  ResourceType: CHAT_TRANSCRIPTS | CALL_RECORDINGS | SCHEDULED_REPORTS | MEDIA_STREAMS | CONTACT_TRACE_RECORDS | AGENT_EVENTS /* required */
};
connect.disassociateInstanceStorageConfig(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • AssociationId — (String)

      The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.

    • ResourceType — (String)

      A valid resource type.

      Possible values include:
      • "CHAT_TRANSCRIPTS"
      • "CALL_RECORDINGS"
      • "SCHEDULED_REPORTS"
      • "MEDIA_STREAMS"
      • "CONTACT_TRACE_RECORDS"
      • "AGENT_EVENTS"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

disassociateLambdaFunction(params = {}, callback) ⇒ AWS.Request

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

Remove the Lambda function from the dropdown options available in the relevant contact flow blocks.

Service Reference:

Examples:

Calling the disassociateLambdaFunction operation

var params = {
  FunctionArn: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE' /* required */
};
connect.disassociateLambdaFunction(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • FunctionArn — (String)

      The Amazon Resource Name (ARN) of the Lambda function being disassociated.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

disassociateLexBot(params = {}, callback) ⇒ AWS.Request

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

Revokes authorization from the specified instance to access the specified Amazon Lex bot.

Service Reference:

Examples:

Calling the disassociateLexBot operation

var params = {
  BotName: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE', /* required */
  LexRegion: 'STRING_VALUE' /* required */
};
connect.disassociateLexBot(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • BotName — (String)

      The name of the Amazon Lex bot. Maximum character limit of 50.

    • LexRegion — (String)

      The Region in which the Amazon Lex bot has been created.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

disassociateQueueQuickConnects(params = {}, callback) ⇒ AWS.Request

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

Disassociates a set of quick connects from a queue.

Service Reference:

Examples:

Calling the disassociateQueueQuickConnects operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  QueueId: 'STRING_VALUE', /* required */
  QuickConnectIds: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
connect.disassociateQueueQuickConnects(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • QueueId — (String)

      The identifier for the queue.

    • QuickConnectIds — (Array<String>)

      The quick connects to disassociate from the queue.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

disassociateRoutingProfileQueues(params = {}, callback) ⇒ AWS.Request

Disassociates a set of queues from a routing profile.

Examples:

Calling the disassociateRoutingProfileQueues operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  QueueReferences: [ /* required */
    {
      Channel: VOICE | CHAT | TASK, /* required */
      QueueId: 'STRING_VALUE' /* required */
    },
    /* more items */
  ],
  RoutingProfileId: 'STRING_VALUE' /* required */
};
connect.disassociateRoutingProfileQueues(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • RoutingProfileId — (String)

      The identifier of the routing profile.

    • QueueReferences — (Array<map>)

      The queues to disassociate from this routing profile.

      • QueueIdrequired — (String)

        The identifier for the queue.

      • Channelrequired — (String)

        The channels agents can handle in the Contact Control Panel (CCP) for this routing profile.

        Possible values include:
        • "VOICE"
        • "CHAT"
        • "TASK"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

disassociateSecurityKey(params = {}, callback) ⇒ AWS.Request

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

Deletes the specified security key.

Service Reference:

Examples:

Calling the disassociateSecurityKey operation

var params = {
  AssociationId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE' /* required */
};
connect.disassociateSecurityKey(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • AssociationId — (String)

      The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getContactAttributes(params = {}, callback) ⇒ AWS.Request

Retrieves the contact attributes for the specified contact.

Service Reference:

Examples:

Calling the getContactAttributes operation

var params = {
  InitialContactId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE' /* required */
};
connect.getContactAttributes(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

      The identifier of the Amazon Connect instance.

    • InitialContactId — (String)

      The identifier of the initial contact.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Attributes — (map<String>)

        Information about the attributes.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getCurrentMetricData(params = {}, callback) ⇒ AWS.Request

Gets the real-time metric data from the specified Amazon Connect instance.

For a description of each metric, see Real-time Metrics Definitions in the Amazon Connect Administrator Guide.

Service Reference:

Examples:

Calling the getCurrentMetricData operation

var params = {
  CurrentMetrics: [ /* required */
    {
      Name: AGENTS_ONLINE | AGENTS_AVAILABLE | AGENTS_ON_CALL | AGENTS_NON_PRODUCTIVE | AGENTS_AFTER_CONTACT_WORK | AGENTS_ERROR | AGENTS_STAFFED | CONTACTS_IN_QUEUE | OLDEST_CONTACT_AGE | CONTACTS_SCHEDULED | AGENTS_ON_CONTACT | SLOTS_ACTIVE | SLOTS_AVAILABLE,
      Unit: SECONDS | COUNT | PERCENT
    },
    /* more items */
  ],
  Filters: { /* required */
    Channels: [
      VOICE | CHAT | TASK,
      /* more items */
    ],
    Queues: [
      'STRING_VALUE',
      /* more items */
    ]
  },
  InstanceId: 'STRING_VALUE', /* required */
  Groupings: [
    QUEUE | CHANNEL,
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
connect.getCurrentMetricData(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • Filters — (map)

      The queues, up to 100, or channels, to use to filter the metrics returned. Metric data is retrieved only for the resources associated with the queues or channels included in the filter. You can include both queue IDs and queue ARNs in the same request. VOICE, CHAT, and TASK channels are supported.

      • Queues — (Array<String>)

        The queues to use to filter the metrics. You can specify up to 100 queues per request.

      • Channels — (Array<String>)

        The channel to use to filter the metrics.

    • Groupings — (Array<String>)

      The grouping applied to the metrics returned. For example, when grouped by QUEUE, the metrics returned apply to each queue rather than aggregated for all queues. If you group by CHANNEL, you should include a Channels filter. VOICE, CHAT, and TASK channels are supported.

      If no Grouping is included in the request, a summary of metrics is returned.

    • CurrentMetrics — (Array<map>)

      The metrics to retrieve. Specify the name and unit for each metric. The following metrics are available. For a description of all the metrics, see Real-time Metrics Definitions in the Amazon Connect Administrator Guide.

      AGENTS_AFTER_CONTACT_WORK

      Unit: COUNT

      Name in real-time metrics report: ACW

      AGENTS_AVAILABLE

      Unit: COUNT

      Name in real-time metrics report: Available

      AGENTS_ERROR

      Unit: COUNT

      Name in real-time metrics report: Error

      AGENTS_NON_PRODUCTIVE

      Unit: COUNT

      Name in real-time metrics report: NPT (Non-Productive Time)

      AGENTS_ON_CALL

      Unit: COUNT

      Name in real-time metrics report: On contact

      AGENTS_ON_CONTACT

      Unit: COUNT

      Name in real-time metrics report: On contact

      AGENTS_ONLINE

      Unit: COUNT

      Name in real-time metrics report: Online

      AGENTS_STAFFED

      Unit: COUNT

      Name in real-time metrics report: Staffed

      CONTACTS_IN_QUEUE

      Unit: COUNT

      Name in real-time metrics report: In queue

      CONTACTS_SCHEDULED

      Unit: COUNT

      Name in real-time metrics report: Scheduled

      OLDEST_CONTACT_AGE

      Unit: SECONDS

      When you use groupings, Unit says SECONDS and the Value is returned in SECONDS.

      When you do not use groupings, Unit says SECONDS but the Value is returned in MILLISECONDS. For example, if you get a response like this:

      { "Metric": { "Name": "OLDEST_CONTACT_AGE", "Unit": "SECONDS" }, "Value": 24113.0 }

      The actual OLDEST_CONTACT_AGE is 24 seconds.

      Name in real-time metrics report: Oldest

      SLOTS_ACTIVE

      Unit: COUNT

      Name in real-time metrics report: Active

      SLOTS_AVAILABLE

      Unit: COUNT

      Name in real-time metrics report: Availability

      • Name — (String)

        The name of the metric.

        Possible values include:
        • "AGENTS_ONLINE"
        • "AGENTS_AVAILABLE"
        • "AGENTS_ON_CALL"
        • "AGENTS_NON_PRODUCTIVE"
        • "AGENTS_AFTER_CONTACT_WORK"
        • "AGENTS_ERROR"
        • "AGENTS_STAFFED"
        • "CONTACTS_IN_QUEUE"
        • "OLDEST_CONTACT_AGE"
        • "CONTACTS_SCHEDULED"
        • "AGENTS_ON_CONTACT"
        • "SLOTS_ACTIVE"
        • "SLOTS_AVAILABLE"
      • Unit — (String)

        The unit for the metric.

        Possible values include:
        • "SECONDS"
        • "COUNT"
        • "PERCENT"
    • NextToken — (String)

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

      The token expires after 5 minutes from the time it is created. Subsequent requests that use the token must use the same request parameters as the request that generated the token.

    • MaxResults — (Integer)

      The maximum number of results to return per page.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • NextToken — (String)

        If there are additional results, this is the token for the next set of results.

        The token expires after 5 minutes from the time it is created. Subsequent requests that use the token must use the same request parameters as the request that generated the token.

      • MetricResults — (Array<map>)

        Information about the real-time metrics.

        • Dimensions — (map)

          The dimensions for the metrics.

          • Queue — (map)

            Information about the queue for which metrics are returned.

            • Id — (String)

              The identifier of the queue.

            • Arn — (String)

              The Amazon Resource Name (ARN) of the queue.

          • Channel — (String)

            The channel used for grouping and filters.

            Possible values include:
            • "VOICE"
            • "CHAT"
            • "TASK"
        • Collections — (Array<map>)

          The set of metrics.

          • Metric — (map)

            Information about the metric.

            • Name — (String)

              The name of the metric.

              Possible values include:
              • "AGENTS_ONLINE"
              • "AGENTS_AVAILABLE"
              • "AGENTS_ON_CALL"
              • "AGENTS_NON_PRODUCTIVE"
              • "AGENTS_AFTER_CONTACT_WORK"
              • "AGENTS_ERROR"
              • "AGENTS_STAFFED"
              • "CONTACTS_IN_QUEUE"
              • "OLDEST_CONTACT_AGE"
              • "CONTACTS_SCHEDULED"
              • "AGENTS_ON_CONTACT"
              • "SLOTS_ACTIVE"
              • "SLOTS_AVAILABLE"
            • Unit — (String)

              The unit for the metric.

              Possible values include:
              • "SECONDS"
              • "COUNT"
              • "PERCENT"
          • Value — (Float)

            The value of the metric.

      • DataSnapshotTime — (Date)

        The time at which the metrics were retrieved and cached for pagination.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getFederationToken(params = {}, callback) ⇒ AWS.Request

Retrieves a token for federation.

Note: This API doesn't support root users. If you try to invoke GetFederationToken with root credentials, an error message similar to the following one appears: Provided identity: Principal: .... User: .... cannot be used for federation with Amazon Connect

Service Reference:

Examples:

Calling the getFederationToken operation

var params = {
  InstanceId: 'STRING_VALUE' /* required */
};
connect.getFederationToken(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Credentials — (map)

        The credentials to use for federation.

        • AccessToken — (String)

          An access token generated for a federated user to access Amazon Connect.

        • AccessTokenExpiration — (Date)

          A token generated with an expiration time for the session a user is logged in to Amazon Connect.

        • RefreshToken — (String)

          Renews a token generated for a user to access the Amazon Connect instance.

        • RefreshTokenExpiration — (Date)

          Renews the expiration timer for a generated token.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getMetricData(params = {}, callback) ⇒ AWS.Request

Gets historical metric data from the specified Amazon Connect instance.

For a description of each historical metric, see Historical Metrics Definitions in the Amazon Connect Administrator Guide.

Service Reference:

Examples:

Calling the getMetricData operation

var params = {
  EndTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
  Filters: { /* required */
    Channels: [
      VOICE | CHAT | TASK,
      /* more items */
    ],
    Queues: [
      'STRING_VALUE',
      /* more items */
    ]
  },
  HistoricalMetrics: [ /* required */
    {
      Name: CONTACTS_QUEUED | CONTACTS_HANDLED | CONTACTS_ABANDONED | CONTACTS_CONSULTED | CONTACTS_AGENT_HUNG_UP_FIRST | CONTACTS_HANDLED_INCOMING | CONTACTS_HANDLED_OUTBOUND | CONTACTS_HOLD_ABANDONS | CONTACTS_TRANSFERRED_IN | CONTACTS_TRANSFERRED_OUT | CONTACTS_TRANSFERRED_IN_FROM_QUEUE | CONTACTS_TRANSFERRED_OUT_FROM_QUEUE | CONTACTS_MISSED | CALLBACK_CONTACTS_HANDLED | API_CONTACTS_HANDLED | OCCUPANCY | HANDLE_TIME | AFTER_CONTACT_WORK_TIME | QUEUED_TIME | ABANDON_TIME | QUEUE_ANSWER_TIME | HOLD_TIME | INTERACTION_TIME | INTERACTION_AND_HOLD_TIME | SERVICE_LEVEL,
      Statistic: SUM | MAX | AVG,
      Threshold: {
        Comparison: LT,
        ThresholdValue: 'NUMBER_VALUE'
      },
      Unit: SECONDS | COUNT | PERCENT
    },
    /* more items */
  ],
  InstanceId: 'STRING_VALUE', /* required */
  StartTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
  Groupings: [
    QUEUE | CHANNEL,
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
connect.getMetricData(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • StartTime — (Date)

      The timestamp, in UNIX Epoch time format, at which to start the reporting interval for the retrieval of historical metrics data. The time must be specified using a multiple of 5 minutes, such as 10:05, 10:10, 10:15.

      The start time cannot be earlier than 24 hours before the time of the request. Historical metrics are available only for 24 hours.

    • EndTime — (Date)

      The timestamp, in UNIX Epoch time format, at which to end the reporting interval for the retrieval of historical metrics data. The time must be specified using an interval of 5 minutes, such as 11:00, 11:05, 11:10, and must be later than the start time timestamp.

      The time range between the start and end time must be less than 24 hours.

    • Filters — (map)

      The queues, up to 100, or channels, to use to filter the metrics returned. Metric data is retrieved only for the resources associated with the queues or channels included in the filter. You can include both queue IDs and queue ARNs in the same request. VOICE, CHAT, and TASK channels are supported.

      Note: To filter by Queues, enter the queue ID/ARN, not the name of the queue.
      • Queues — (Array<String>)

        The queues to use to filter the metrics. You can specify up to 100 queues per request.

      • Channels — (Array<String>)

        The channel to use to filter the metrics.

    • Groupings — (Array<String>)

      The grouping applied to the metrics returned. For example, when results are grouped by queue, the metrics returned are grouped by queue. The values returned apply to the metrics for each queue rather than aggregated for all queues.

      If no grouping is specified, a summary of metrics for all queues is returned.

    • HistoricalMetrics — (Array<map>)

      The metrics to retrieve. Specify the name, unit, and statistic for each metric. The following historical metrics are available. For a description of each metric, see Historical Metrics Definitions in the Amazon Connect Administrator Guide.

      Note: This API does not support a contacts incoming metric (there's no CONTACTS_INCOMING metric missing from the documented list).
      ABANDON_TIME

      Unit: SECONDS

      Statistic: AVG

      AFTER_CONTACT_WORK_TIME

      Unit: SECONDS

      Statistic: AVG

      API_CONTACTS_HANDLED

      Unit: COUNT

      Statistic: SUM

      CALLBACK_CONTACTS_HANDLED

      Unit: COUNT

      Statistic: SUM

      CONTACTS_ABANDONED

      Unit: COUNT

      Statistic: SUM

      CONTACTS_AGENT_HUNG_UP_FIRST

      Unit: COUNT

      Statistic: SUM

      CONTACTS_CONSULTED

      Unit: COUNT

      Statistic: SUM

      CONTACTS_HANDLED

      Unit: COUNT

      Statistic: SUM

      CONTACTS_HANDLED_INCOMING

      Unit: COUNT

      Statistic: SUM

      CONTACTS_HANDLED_OUTBOUND

      Unit: COUNT

      Statistic: SUM

      CONTACTS_HOLD_ABANDONS

      Unit: COUNT

      Statistic: SUM

      CONTACTS_MISSED

      Unit: COUNT

      Statistic: SUM

      CONTACTS_QUEUED

      Unit: COUNT

      Statistic: SUM

      CONTACTS_TRANSFERRED_IN

      Unit: COUNT

      Statistic: SUM

      CONTACTS_TRANSFERRED_IN_FROM_QUEUE

      Unit: COUNT

      Statistic: SUM

      CONTACTS_TRANSFERRED_OUT

      Unit: COUNT

      Statistic: SUM

      CONTACTS_TRANSFERRED_OUT_FROM_QUEUE

      Unit: COUNT

      Statistic: SUM

      HANDLE_TIME

      Unit: SECONDS

      Statistic: AVG

      HOLD_TIME

      Unit: SECONDS

      Statistic: AVG

      INTERACTION_AND_HOLD_TIME

      Unit: SECONDS

      Statistic: AVG

      INTERACTION_TIME

      Unit: SECONDS

      Statistic: AVG

      OCCUPANCY

      Unit: PERCENT

      Statistic: AVG

      QUEUE_ANSWER_TIME

      Unit: SECONDS

      Statistic: AVG

      QUEUED_TIME

      Unit: SECONDS

      Statistic: MAX

      SERVICE_LEVEL

      You can include up to 20 SERVICE_LEVEL metrics in a request.

      Unit: PERCENT

      Statistic: AVG

      Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in seconds. For Comparison, you must enter LT (for "Less than").

      • Name — (String)

        The name of the metric.

        Possible values include:
        • "CONTACTS_QUEUED"
        • "CONTACTS_HANDLED"
        • "CONTACTS_ABANDONED"
        • "CONTACTS_CONSULTED"
        • "CONTACTS_AGENT_HUNG_UP_FIRST"
        • "CONTACTS_HANDLED_INCOMING"
        • "CONTACTS_HANDLED_OUTBOUND"
        • "CONTACTS_HOLD_ABANDONS"
        • "CONTACTS_TRANSFERRED_IN"
        • "CONTACTS_TRANSFERRED_OUT"
        • "CONTACTS_TRANSFERRED_IN_FROM_QUEUE"
        • "CONTACTS_TRANSFERRED_OUT_FROM_QUEUE"
        • "CONTACTS_MISSED"
        • "CALLBACK_CONTACTS_HANDLED"
        • "API_CONTACTS_HANDLED"
        • "OCCUPANCY"
        • "HANDLE_TIME"
        • "AFTER_CONTACT_WORK_TIME"
        • "QUEUED_TIME"
        • "ABANDON_TIME"
        • "QUEUE_ANSWER_TIME"
        • "HOLD_TIME"
        • "INTERACTION_TIME"
        • "INTERACTION_AND_HOLD_TIME"
        • "SERVICE_LEVEL"
      • Threshold — (map)

        The threshold for the metric, used with service level metrics.

        • Comparison — (String)

          The type of comparison. Only "less than" (LT) comparisons are supported.

          Possible values include:
          • "LT"
        • ThresholdValue — (Float)

          The threshold value to compare.

      • Statistic — (String)

        The statistic for the metric.

        Possible values include:
        • "SUM"
        • "MAX"
        • "AVG"
      • Unit — (String)

        The unit for the metric.

        Possible values include:
        • "SECONDS"
        • "COUNT"
        • "PERCENT"
    • NextToken — (String)

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    • MaxResults — (Integer)

      The maximum number of results to return per page.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • NextToken — (String)

        If there are additional results, this is the token for the next set of results.

        The token expires after 5 minutes from the time it is created. Subsequent requests that use the token must use the same request parameters as the request that generated the token.

      • MetricResults — (Array<map>)

        Information about the historical metrics.

        If no grouping is specified, a summary of metric data is returned.

        • Dimensions — (map)

          The dimension for the metrics.

          • Queue — (map)

            Information about the queue for which metrics are returned.

            • Id — (String)

              The identifier of the queue.

            • Arn — (String)

              The Amazon Resource Name (ARN) of the queue.

          • Channel — (String)

            The channel used for grouping and filters.

            Possible values include:
            • "VOICE"
            • "CHAT"
            • "TASK"
        • Collections — (Array<map>)

          The set of metrics.

          • Metric — (map)

            Information about the metric.

            • Name — (String)

              The name of the metric.

              Possible values include:
              • "CONTACTS_QUEUED"
              • "CONTACTS_HANDLED"
              • "CONTACTS_ABANDONED"
              • "CONTACTS_CONSULTED"
              • "CONTACTS_AGENT_HUNG_UP_FIRST"
              • "CONTACTS_HANDLED_INCOMING"
              • "CONTACTS_HANDLED_OUTBOUND"
              • "CONTACTS_HOLD_ABANDONS"
              • "CONTACTS_TRANSFERRED_IN"
              • "CONTACTS_TRANSFERRED_OUT"
              • "CONTACTS_TRANSFERRED_IN_FROM_QUEUE"
              • "CONTACTS_TRANSFERRED_OUT_FROM_QUEUE"
              • "CONTACTS_MISSED"
              • "CALLBACK_CONTACTS_HANDLED"
              • "API_CONTACTS_HANDLED"
              • "OCCUPANCY"
              • "HANDLE_TIME"
              • "AFTER_CONTACT_WORK_TIME"
              • "QUEUED_TIME"
              • "ABANDON_TIME"
              • "QUEUE_ANSWER_TIME"
              • "HOLD_TIME"
              • "INTERACTION_TIME"
              • "INTERACTION_AND_HOLD_TIME"
              • "SERVICE_LEVEL"
            • Threshold — (map)

              The threshold for the metric, used with service level metrics.

              • Comparison — (String)

                The type of comparison. Only "less than" (LT) comparisons are supported.

                Possible values include:
                • "LT"
              • ThresholdValue — (Float)

                The threshold value to compare.

            • Statistic — (String)

              The statistic for the metric.

              Possible values include:
              • "SUM"
              • "MAX"
              • "AVG"
            • Unit — (String)

              The unit for the metric.

              Possible values include:
              • "SECONDS"
              • "COUNT"
              • "PERCENT"
          • Value — (Float)

            The value of the metric.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listAgentStatuses(params = {}, callback) ⇒ AWS.Request

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

Lists agent statuses.

Service Reference:

Examples:

Calling the listAgentStatuses operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  AgentStatusTypes: [
    ROUTABLE | CUSTOM | OFFLINE,
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
connect.listAgentStatuses(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • NextToken — (String)

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    • MaxResults — (Integer)

      The maximum number of results to return per page.

    • AgentStatusTypes — (Array<String>)

      Available agent status types.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • NextToken — (String)

        If there are additional results, this is the token for the next set of results.

      • AgentStatusSummaryList — (Array<map>)

        A summary of agent statuses.

        • Id — (String)

          The identifier for an agent status.

        • Arn — (String)

          The Amazon Resource Name (ARN) for the agent status.

        • Name — (String)

          The name of the agent status.

        • Type — (String)

          The type of the agent status.

          Possible values include:
          • "ROUTABLE"
          • "CUSTOM"
          • "OFFLINE"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listApprovedOrigins(params = {}, callback) ⇒ AWS.Request

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

Returns a paginated list of all approved origins associated with the instance.

Service Reference:

Examples:

Calling the listApprovedOrigins operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
connect.listApprovedOrigins(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • NextToken — (String)

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    • MaxResults — (Integer)

      The maximum number of results to return per page.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Origins — (Array<String>)

        The approved origins.

      • NextToken — (String)

        If there are additional results, this is the token for the next set of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listBots(params = {}, callback) ⇒ AWS.Request

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

For the specified version of Amazon Lex, returns a paginated list of all the Amazon Lex bots currently associated with the instance.

Service Reference:

Examples:

Calling the listBots operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  LexVersion: V1 | V2, /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
connect.listBots(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • NextToken — (String)

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    • MaxResults — (Integer)

      The maximum number of results to return per page.

    • LexVersion — (String)

      The version of Amazon Lex or Amazon Lex V2.

      Possible values include:
      • "V1"
      • "V2"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • LexBots — (Array<map>)

        The names and Regions of the Amazon Lex or Amazon Lex V2 bots associated with the specified instance.

        • LexBot — (map)

          Configuration information of an Amazon Lex bot.

          • Name — (String)

            The name of the Amazon Lex bot.

          • LexRegion — (String)

            The Region that the Amazon Lex bot was created in.

        • LexV2Bot — (map)

          Configuration information of an Amazon Lex V2 bot.

          • AliasArn — (String)

            The Amazon Resource Name (ARN) of the Amazon Lex V2 bot.

      • NextToken — (String)

        If there are additional results, this is the token for the next set of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listContactFlows(params = {}, callback) ⇒ AWS.Request

Provides information about the contact flows for the specified Amazon Connect instance.

You can also create and update contact flows using the Amazon Connect Flow language.

For more information about contact flows, see Contact Flows in the Amazon Connect Administrator Guide.

Service Reference:

Examples:

Calling the listContactFlows operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  ContactFlowTypes: [
    CONTACT_FLOW | CUSTOMER_QUEUE | CUSTOMER_HOLD | CUSTOMER_WHISPER | AGENT_HOLD | AGENT_WHISPER | OUTBOUND_WHISPER | AGENT_TRANSFER | QUEUE_TRANSFER,
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
connect.listContactFlows(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • ContactFlowTypes — (Array<String>)

      The type of contact flow.

    • NextToken — (String)

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    • MaxResults — (Integer)

      The maximum number of results to return per page.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ContactFlowSummaryList — (Array<map>)

        Information about the contact flows.

        • Id — (String)

          The identifier of the contact flow.

        • Arn — (String)

          The Amazon Resource Name (ARN) of the contact flow.

        • Name — (String)

          The name of the contact flow.

        • ContactFlowType — (String)

          The type of contact flow.

          Possible values include:
          • "CONTACT_FLOW"
          • "CUSTOMER_QUEUE"
          • "CUSTOMER_HOLD"
          • "CUSTOMER_WHISPER"
          • "AGENT_HOLD"
          • "AGENT_WHISPER"
          • "OUTBOUND_WHISPER"
          • "AGENT_TRANSFER"
          • "QUEUE_TRANSFER"
      • NextToken — (String)

        If there are additional results, this is the token for the next set of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listHoursOfOperations(params = {}, callback) ⇒ AWS.Request

Provides information about the hours of operation for the specified Amazon Connect instance.

For more information about hours of operation, see Set the Hours of Operation for a Queue in the Amazon Connect Administrator Guide.

Service Reference:

Examples:

Calling the listHoursOfOperations operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
connect.listHoursOfOperations(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • NextToken — (String)

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    • MaxResults — (Integer)

      The maximum number of results to return per page.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • HoursOfOperationSummaryList — (Array<map>)

        Information about the hours of operation.

        • Id — (String)

          The identifier of the hours of operation.

        • Arn — (String)

          The Amazon Resource Name (ARN) of the hours of operation.

        • Name — (String)

          The name of the hours of operation.

      • NextToken — (String)

        If there are additional results, this is the token for the next set of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listInstanceAttributes(params = {}, callback) ⇒ AWS.Request

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

Returns a paginated list of all attribute types for the given instance.

Service Reference:

Examples:

Calling the listInstanceAttributes operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
connect.listInstanceAttributes(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • NextToken — (String)

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    • MaxResults — (Integer)

      The maximum number of results to return per page.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Attributes — (Array<map>)

        The attribute types.

        • AttributeType — (String)

          The type of attribute.

          Possible values include:
          • "INBOUND_CALLS"
          • "OUTBOUND_CALLS"
          • "CONTACTFLOW_LOGS"
          • "CONTACT_LENS"
          • "AUTO_RESOLVE_BEST_VOICES"
          • "USE_CUSTOM_TTS_VOICES"
          • "EARLY_MEDIA"
        • Value — (String)

          The value of the attribute.

      • NextToken — (String)

        If there are additional results, this is the token for the next set of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listInstances(params = {}, callback) ⇒ AWS.Request

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

Return a list of instances which are in active state, creation-in-progress state, and failed state. Instances that aren't successfully created (they are in a failed state) are returned only for 24 hours after the CreateInstance API was invoked.

Service Reference:

Examples:

Calling the listInstances operation

var params = {
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
connect.listInstances(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • NextToken — (String)

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    • MaxResults — (Integer)

      The maximum number of results to return per page.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • InstanceSummaryList — (Array<map>)

        Information about the instances.

        • Id — (String)

          The identifier of the instance.

        • Arn — (String)

          The Amazon Resource Name (ARN) of the instance.

        • IdentityManagementType — (String)

          The identity management type of the instance.

          Possible values include:
          • "SAML"
          • "CONNECT_MANAGED"
          • "EXISTING_DIRECTORY"
        • InstanceAlias — (String)

          The alias of the instance.

        • CreatedTime — (Date)

          When the instance was created.

        • ServiceRole — (String)

          The service role of the instance.

        • InstanceStatus — (String)

          The state of the instance.

          Possible values include:
          • "CREATION_IN_PROGRESS"
          • "ACTIVE"
          • "CREATION_FAILED"
        • InboundCallsEnabled — (Boolean)

          Whether inbound calls are enabled.

        • OutboundCallsEnabled — (Boolean)

          Whether outbound calls are enabled.

      • NextToken — (String)

        If there are additional results, this is the token for the next set of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listInstanceStorageConfigs(params = {}, callback) ⇒ AWS.Request

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

Returns a paginated list of storage configs for the identified instance and resource type.

Service Reference:

Examples:

Calling the listInstanceStorageConfigs operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  ResourceType: CHAT_TRANSCRIPTS | CALL_RECORDINGS | SCHEDULED_REPORTS | MEDIA_STREAMS | CONTACT_TRACE_RECORDS | AGENT_EVENTS, /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
connect.listInstanceStorageConfigs(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • ResourceType — (String)

      A valid resource type.

      Possible values include:
      • "CHAT_TRANSCRIPTS"
      • "CALL_RECORDINGS"
      • "SCHEDULED_REPORTS"
      • "MEDIA_STREAMS"
      • "CONTACT_TRACE_RECORDS"
      • "AGENT_EVENTS"
    • NextToken — (String)

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    • MaxResults — (Integer)

      The maximum number of results to return per page.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • StorageConfigs — (Array<map>)

        A valid storage type.

        • AssociationId — (String)

          The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.

        • StorageTyperequired — (String)

          A valid storage type.

          Possible values include:
          • "S3"
          • "KINESIS_VIDEO_STREAM"
          • "KINESIS_STREAM"
          • "KINESIS_FIREHOSE"
        • S3Config — (map)

          The S3 bucket configuration.

          • BucketNamerequired — (String)

            The S3 bucket name.

          • BucketPrefixrequired — (String)

            The S3 bucket prefix.

          • EncryptionConfig — (map)

            The Amazon S3 encryption configuration.

            • EncryptionTyperequired — (String)

              The type of encryption.

              Possible values include:
              • "KMS"
            • KeyIdrequired — (String)

              The full ARN of the encryption key.

              Note: Be sure to provide the full ARN of the encryption key, not just the ID.
        • KinesisVideoStreamConfig — (map)

          The configuration of the Kinesis video stream.

          • Prefixrequired — (String)

            The prefix of the video stream.

          • RetentionPeriodHoursrequired — (Integer)

            The number of hours data is retained in the stream. Kinesis Video Streams retains the data in a data store that is associated with the stream.

            The default value is 0, indicating that the stream does not persist data.

          • EncryptionConfigrequired — (map)

            The encryption configuration.

            • EncryptionTyperequired — (String)

              The type of encryption.

              Possible values include:
              • "KMS"
            • KeyIdrequired — (String)

              The full ARN of the encryption key.

              Note: Be sure to provide the full ARN of the encryption key, not just the ID.
        • KinesisStreamConfig — (map)

          The configuration of the Kinesis data stream.

          • StreamArnrequired — (String)

            The Amazon Resource Name (ARN) of the data stream.

        • KinesisFirehoseConfig — (map)

          The configuration of the Kinesis Firehose delivery stream.

          • FirehoseArnrequired — (String)

            The Amazon Resource Name (ARN) of the delivery stream.

      • NextToken — (String)

        If there are additional results, this is the token for the next set of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listIntegrationAssociations(params = {}, callback) ⇒ AWS.Request

Provides summary information about the Amazon Web Services resource associations for the specified Amazon Connect instance.

Service Reference:

Examples:

Calling the listIntegrationAssociations operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  IntegrationType: EVENT | VOICE_ID | PINPOINT_APP | WISDOM_ASSISTANT | WISDOM_KNOWLEDGE_BASE,
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
connect.listIntegrationAssociations(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • IntegrationType — (String)

      The type of integration.

      Possible values include:
      • "EVENT"
      • "VOICE_ID"
      • "PINPOINT_APP"
      • "WISDOM_ASSISTANT"
      • "WISDOM_KNOWLEDGE_BASE"
    • NextToken — (String)

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    • MaxResults — (Integer)

      The maximum number of results to return per page.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • IntegrationAssociationSummaryList — (Array<map>)

        The associations.

        • IntegrationAssociationId — (String)

          The identifier for the AppIntegration association.

        • IntegrationAssociationArn — (String)

          The Amazon Resource Name (ARN) for the AppIntegration association.

        • InstanceId — (String)

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

        • IntegrationType — (String)

          The integration type.

          Possible values include:
          • "EVENT"
          • "VOICE_ID"
          • "PINPOINT_APP"
          • "WISDOM_ASSISTANT"
          • "WISDOM_KNOWLEDGE_BASE"
        • IntegrationArn — (String)

          The Amazon Resource Name (ARN) for the AppIntegration.

        • SourceApplicationUrl — (String)

          The URL for the external application.

        • SourceApplicationName — (String)

          The user-provided, friendly name for the external application.

        • SourceType — (String)

          The name of the source.

          Possible values include:
          • "SALESFORCE"
          • "ZENDESK"
      • NextToken — (String)

        If there are additional results, this is the token for the next set of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listLambdaFunctions(params = {}, callback) ⇒ AWS.Request

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

Returns a paginated list of all Lambda functions that display in the dropdown options in the relevant contact flow blocks.

Service Reference:

Examples:

Calling the listLambdaFunctions operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
connect.listLambdaFunctions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • NextToken — (String)

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    • MaxResults — (Integer)

      The maximum number of results to return per page.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • LambdaFunctions — (Array<String>)

        The Lambda function ARNs associated with the specified instance.

      • NextToken — (String)

        If there are additional results, this is the token for the next set of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listLexBots(params = {}, callback) ⇒ AWS.Request

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

Returns a paginated list of all the Amazon Lex bots currently associated with the instance.

Service Reference:

Examples:

Calling the listLexBots operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
connect.listLexBots(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • NextToken — (String)

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    • MaxResults — (Integer)

      The maximum number of results to return per page. If no value is specified, the default is 10.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • LexBots — (Array<map>)

        The names and Regions of the Amazon Lex bots associated with the specified instance.

        • Name — (String)

          The name of the Amazon Lex bot.

        • LexRegion — (String)

          The Region that the Amazon Lex bot was created in.

      • NextToken — (String)

        If there are additional results, this is the token for the next set of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listPhoneNumbers(params = {}, callback) ⇒ AWS.Request

Provides information about the phone numbers for the specified Amazon Connect instance.

For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon Connect Administrator Guide.

Service Reference:

Examples:

Calling the listPhoneNumbers operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  PhoneNumberCountryCodes: [
    AF | AL | DZ | AS | AD | AO | AI | AQ | AG | AR | AM | AW | AU | AT | AZ | BS | BH | BD | BB | BY | BE | BZ | BJ | BM | BT | BO | BA | BW | BR | IO | VG | BN | BG | BF | BI | KH | CM | CA | CV | KY | CF | TD | CL | CN | CX | CC | CO | KM | CK | CR | HR | CU | CW | CY | CZ | CD | DK | DJ | DM | DO | TL | EC | EG | SV | GQ | ER | EE | ET | FK | FO | FJ | FI | FR | PF | GA | GM | GE | DE | GH | GI | GR | GL | GD | GU | GT | GG | GN | GW | GY | HT | HN | HK | HU | IS | IN | ID | IR | IQ | IE | IM | IL | IT | CI | JM | JP | JE | JO | KZ | KE | KI | KW | KG | LA | LV | LB | LS | LR | LY | LI | LT | LU | MO | MK | MG | MW | MY | MV | ML | MT | MH | MR | MU | YT | MX | FM | MD | MC | MN | ME | MS | MA | MZ | MM | NA | NR | NP | NL | AN | NC | NZ | NI | NE | NG | NU | KP | MP | NO | OM | PK | PW | PA | PG | PY | PE | PH | PN | PL | PT | PR | QA | CG | RE | RO | RU | RW | BL | SH | KN | LC | MF | PM | VC | WS | SM | ST | SA | SN | RS | SC | SL | SG | SX | SK | SI | SB | SO | ZA | KR | ES | LK | SD | SR | SJ | SZ | SE | CH | SY | TW | TJ | TZ | TH | TG | TK | TO | TT | TN | TR | TM | TC | TV | VI | UG | UA | AE | GB | US | UY | UZ | VU | VA | VE | VN | WF | EH | YE | ZM | ZW,
    /* more items */
  ],
  PhoneNumberTypes: [
    TOLL_FREE | DID,
    /* more items */
  ]
};
connect.listPhoneNumbers(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • PhoneNumberTypes — (Array<String>)

      The type of phone number.

    • PhoneNumberCountryCodes — (Array<String>)

      The ISO country code.

    • NextToken — (String)

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    • MaxResults — (Integer)

      The maximum number of results to return per page.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • PhoneNumberSummaryList — (Array<map>)

        Information about the phone numbers.

        • Id — (String)

          The identifier of the phone number.

        • Arn — (String)

          The Amazon Resource Name (ARN) of the phone number.

        • PhoneNumber — (String)

          The phone number.

        • PhoneNumberType — (String)

          The type of phone number.

          Possible values include:
          • "TOLL_FREE"
          • "DID"
        • PhoneNumberCountryCode — (String)

          The ISO country code.

          Possible values include:
          • "AF"
          • "AL"
          • "DZ"
          • "AS"
          • "AD"
          • "AO"
          • "AI"
          • "AQ"
          • "AG"
          • "AR"
          • "AM"
          • "AW"
          • "AU"
          • "AT"
          • "AZ"
          • "BS"
          • "BH"
          • "BD"
          • "BB"
          • "BY"
          • "BE"
          • "BZ"
          • "BJ"
          • "BM"
          • "BT"
          • "BO"
          • "BA"
          • "BW"
          • "BR"
          • "IO"
          • "VG"
          • "BN"
          • "BG"
          • "BF"
          • "BI"
          • "KH"
          • "CM"
          • "CA"
          • "CV"
          • "KY"
          • "CF"
          • "TD"
          • "CL"
          • "CN"
          • "CX"
          • "CC"
          • "CO"
          • "KM"
          • "CK"
          • "CR"
          • "HR"
          • "CU"
          • "CW"
          • "CY"
          • "CZ"
          • "CD"
          • "DK"
          • "DJ"
          • "DM"
          • "DO"
          • "TL"
          • "EC"
          • "EG"
          • "SV"
          • "GQ"
          • "ER"
          • "EE"
          • "ET"
          • "FK"
          • "FO"
          • "FJ"
          • "FI"
          • "FR"
          • "PF"
          • "GA"
          • "GM"
          • "GE"
          • "DE"
          • "GH"
          • "GI"
          • "GR"
          • "GL"
          • "GD"
          • "GU"
          • "GT"
          • "GG"
          • "GN"
          • "GW"
          • "GY"
          • "HT"
          • "HN"
          • "HK"
          • "HU"
          • "IS"
          • "IN"
          • "ID"
          • "IR"
          • "IQ"
          • "IE"
          • "IM"
          • "IL"
          • "IT"
          • "CI"
          • "JM"
          • "JP"
          • "JE"
          • "JO"
          • "KZ"
          • "KE"
          • "KI"
          • "KW"
          • "KG"
          • "LA"
          • "LV"
          • "LB"
          • "LS"
          • "LR"
          • "LY"
          • "LI"
          • "LT"
          • "LU"
          • "MO"
          • "MK"
          • "MG"
          • "MW"
          • "MY"
          • "MV"
          • "ML"
          • "MT"
          • "MH"
          • "MR"
          • "MU"
          • "YT"
          • "MX"
          • "FM"
          • "MD"
          • "MC"
          • "MN"
          • "ME"
          • "MS"
          • "MA"
          • "MZ"
          • "MM"
          • "NA"
          • "NR"
          • "NP"
          • "NL"
          • "AN"
          • "NC"
          • "NZ"
          • "NI"
          • "NE"
          • "NG"
          • "NU"
          • "KP"
          • "MP"
          • "NO"
          • "OM"
          • "PK"
          • "PW"
          • "PA"
          • "PG"
          • "PY"
          • "PE"
          • "PH"
          • "PN"
          • "PL"
          • "PT"
          • "PR"
          • "QA"
          • "CG"
          • "RE"
          • "RO"
          • "RU"
          • "RW"
          • "BL"
          • "SH"
          • "KN"
          • "LC"
          • "MF"
          • "PM"
          • "VC"
          • "WS"
          • "SM"
          • "ST"
          • "SA"
          • "SN"
          • "RS"
          • "SC"
          • "SL"
          • "SG"
          • "SX"
          • "SK"
          • "SI"
          • "SB"
          • "SO"
          • "ZA"
          • "KR"
          • "ES"
          • "LK"
          • "SD"
          • "SR"
          • "SJ"
          • "SZ"
          • "SE"
          • "CH"
          • "SY"
          • "TW"
          • "TJ"
          • "TZ"
          • "TH"
          • "TG"
          • "TK"
          • "TO"
          • "TT"
          • "TN"
          • "TR"
          • "TM"
          • "TC"
          • "TV"
          • "VI"
          • "UG"
          • "UA"
          • "AE"
          • "GB"
          • "US"
          • "UY"
          • "UZ"
          • "VU"
          • "VA"
          • "VE"
          • "VN"
          • "WF"
          • "EH"
          • "YE"
          • "ZM"
          • "ZW"
      • NextToken — (String)

        If there are additional results, this is the token for the next set of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listPrompts(params = {}, callback) ⇒ AWS.Request

Provides information about the prompts for the specified Amazon Connect instance.

Service Reference:

Examples:

Calling the listPrompts operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
connect.listPrompts(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

      The identifier of the Amazon Connect instance.

    • NextToken — (String)

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    • MaxResults — (Integer)

      The maximum number of results to return per page.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • PromptSummaryList — (Array<map>)

        Information about the prompts.

        • Id — (String)

          The identifier of the prompt.

        • Arn — (String)

          The Amazon Resource Name (ARN) of the prompt.

        • Name — (String)

          The name of the prompt.

      • NextToken — (String)

        If there are additional results, this is the token for the next set of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listQueueQuickConnects(params = {}, callback) ⇒ AWS.Request

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

Lists the quick connects associated with a queue.

Service Reference:

Examples:

Calling the listQueueQuickConnects operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  QueueId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
connect.listQueueQuickConnects(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • QueueId — (String)

      The identifier for the queue.

    • NextToken — (String)

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    • MaxResults — (Integer)

      The maximum number of results to return per page.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • NextToken — (String)

        If there are additional results, this is the token for the next set of results.

      • QuickConnectSummaryList — (Array<map>)

        Information about the quick connects.

        • Id — (String)

          The identifier for the quick connect.

        • Arn — (String)

          The Amazon Resource Name (ARN) of the quick connect.

        • Name — (String)

          The name of the quick connect.

        • QuickConnectType — (String)

          The type of quick connect. In the Amazon Connect console, when you create a quick connect, you are prompted to assign one of the following types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE).

          Possible values include:
          • "USER"
          • "QUEUE"
          • "PHONE_NUMBER"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listQueues(params = {}, callback) ⇒ AWS.Request

Provides information about the queues for the specified Amazon Connect instance.

If you do not specify a QueueTypes parameter, both standard and agent queues are returned. This might cause an unexpected truncation of results if you have more than 1000 agents and you limit the number of results of the API call in code.

For more information about queues, see Queues: Standard and Agent in the Amazon Connect Administrator Guide.

Service Reference:

Examples:

Calling the listQueues operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  QueueTypes: [
    STANDARD | AGENT,
    /* more items */
  ]
};
connect.listQueues(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • QueueTypes — (Array<String>)

      The type of queue.

    • NextToken — (String)

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    • MaxResults — (Integer)

      The maximum number of results to return per page.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • QueueSummaryList — (Array<map>)

        Information about the queues.

        • Id — (String)

          The identifier of the queue.

        • Arn — (String)

          The Amazon Resource Name (ARN) of the queue.

        • Name — (String)

          The name of the queue.

        • QueueType — (String)

          The type of queue.

          Possible values include:
          • "STANDARD"
          • "AGENT"
      • NextToken — (String)

        If there are additional results, this is the token for the next set of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listQuickConnects(params = {}, callback) ⇒ AWS.Request

Provides information about the quick connects for the specified Amazon Connect instance.

Service Reference:

Examples:

Calling the listQuickConnects operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  QuickConnectTypes: [
    USER | QUEUE | PHONE_NUMBER,
    /* more items */
  ]
};
connect.listQuickConnects(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • NextToken — (String)

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    • MaxResults — (Integer)

      The maximum number of results to return per page.

    • QuickConnectTypes — (Array<String>)

      The type of quick connect. In the Amazon Connect console, when you create a quick connect, you are prompted to assign one of the following types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE).

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • QuickConnectSummaryList — (Array<map>)

        Information about the quick connects.

        • Id — (String)

          The identifier for the quick connect.

        • Arn — (String)

          The Amazon Resource Name (ARN) of the quick connect.

        • Name — (String)

          The name of the quick connect.

        • QuickConnectType — (String)

          The type of quick connect. In the Amazon Connect console, when you create a quick connect, you are prompted to assign one of the following types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE).

          Possible values include:
          • "USER"
          • "QUEUE"
          • "PHONE_NUMBER"
      • NextToken — (String)

        If there are additional results, this is the token for the next set of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listRoutingProfileQueues(params = {}, callback) ⇒ AWS.Request

Lists the queues associated with a routing profile.

Service Reference:

Examples:

Calling the listRoutingProfileQueues operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  RoutingProfileId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
connect.listRoutingProfileQueues(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • RoutingProfileId — (String)

      The identifier of the routing profile.

    • NextToken — (String)

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    • MaxResults — (Integer)

      The maximum number of results to return per page.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • NextToken — (String)

        If there are additional results, this is the token for the next set of results.

      • RoutingProfileQueueConfigSummaryList — (Array<map>)

        Information about the routing profiles.

        • QueueIdrequired — (String)

          The identifier for the queue.

        • QueueArnrequired — (String)

          The Amazon Resource Name (ARN) of the queue.

        • QueueNamerequired — (String)

          The name of the queue.

        • Priorityrequired — (Integer)

          The order in which contacts are to be handled for the queue. For more information, see Queues: priority and delay.

        • Delayrequired — (Integer)

          The delay, in seconds, that a contact should be in the queue before they are routed to an available agent. For more information, see Queues: priority and delay in the Amazon Connect Administrator Guide.

        • Channelrequired — (String)

          The channels this queue supports.

          Possible values include:
          • "VOICE"
          • "CHAT"
          • "TASK"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listRoutingProfiles(params = {}, callback) ⇒ AWS.Request

Provides summary information about the routing profiles for the specified Amazon Connect instance.

For more information about routing profiles, see Routing Profiles and Create a Routing Profile in the Amazon Connect Administrator Guide.

Service Reference:

Examples:

Calling the listRoutingProfiles operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
connect.listRoutingProfiles(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • NextToken — (String)

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    • MaxResults — (Integer)

      The maximum number of results to return per page.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • RoutingProfileSummaryList — (Array<map>)

        Information about the routing profiles.

        • Id — (String)

          The identifier of the routing profile.

        • Arn — (String)

          The Amazon Resource Name (ARN) of the routing profile.

        • Name — (String)

          The name of the routing profile.

      • NextToken — (String)

        If there are additional results, this is the token for the next set of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listSecurityKeys(params = {}, callback) ⇒ AWS.Request

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

Returns a paginated list of all security keys associated with the instance.

Service Reference:

Examples:

Calling the listSecurityKeys operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
connect.listSecurityKeys(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • NextToken — (String)

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    • MaxResults — (Integer)

      The maximum number of results to return per page.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • SecurityKeys — (Array<map>)

        The security keys.

        • AssociationId — (String)

          The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.

        • Key — (String)

          The key of the security key.

        • CreationTime — (Date)

          When the security key was created.

      • NextToken — (String)

        If there are additional results, this is the token for the next set of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listSecurityProfilePermissions(params = {}, callback) ⇒ AWS.Request

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

Lists the permissions granted to a security profile.

Service Reference:

Examples:

Calling the listSecurityProfilePermissions operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  SecurityProfileId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
connect.listSecurityProfilePermissions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • SecurityProfileId — (String)

      The identifier for the security profle.

    • InstanceId — (String)

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

    • NextToken — (String)

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    • MaxResults — (Integer)

      The maximum number of results to return per page.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Permissions — (Array<String>)

        The permissions granted to the security profile.

      • NextToken — (String)

        If there are additional results, this is the token for the next set of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listSecurityProfiles(params = {}, callback) ⇒ AWS.Request

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

Provides summary information about the security profiles for the specified Amazon Connect instance.

For more information about security profiles, see Security Profiles in the Amazon Connect Administrator Guide.

Service Reference:

Examples:

Calling the listSecurityProfiles operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
connect.listSecurityProfiles(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • NextToken — (String)

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    • MaxResults — (Integer)

      The maximum number of results to return per page.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • SecurityProfileSummaryList — (Array<map>)

        Information about the security profiles.

        • Id — (String)

          The identifier of the security profile.

        • Arn — (String)

          The Amazon Resource Name (ARN) of the security profile.

        • Name — (String)

          The name of the security profile.

      • NextToken — (String)

        If there are additional results, this is the token for the next set of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listTagsForResource(params = {}, callback) ⇒ AWS.Request

Lists the tags for the specified resource.

For sample policies that use tags, see Amazon Connect Identity-Based Policy Examples in the Amazon Connect Administrator Guide.

Service Reference:

Examples:

Calling the listTagsForResource operation

var params = {
  resourceArn: 'STRING_VALUE' /* required */
};
connect.listTagsForResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceArn — (String)

      The Amazon Resource Name (ARN) of the resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • tags — (map<String>)

        Information about the tags.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listUseCases(params = {}, callback) ⇒ AWS.Request

Lists the use cases for the integration association.

Service Reference:

Examples:

Calling the listUseCases operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  IntegrationAssociationId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
connect.listUseCases(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • IntegrationAssociationId — (String)

      The identifier for the integration association.

    • NextToken — (String)

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    • MaxResults — (Integer)

      The maximum number of results to return per page.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • UseCaseSummaryList — (Array<map>)

        The use cases.

        • UseCaseId — (String)

          The identifier for the use case.

        • UseCaseArn — (String)

          The Amazon Resource Name (ARN) for the use case.

        • UseCaseType — (String)

          The type of use case to associate to the integration association. Each integration association can have only one of each use case type.

          Possible values include:
          • "RULES_EVALUATION"
          • "CONNECT_CAMPAIGNS"
      • NextToken — (String)

        If there are additional results, this is the token for the next set of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listUserHierarchyGroups(params = {}, callback) ⇒ AWS.Request

Provides summary information about the hierarchy groups for the specified Amazon Connect instance.

For more information about agent hierarchies, see Set Up Agent Hierarchies in the Amazon Connect Administrator Guide.

Service Reference:

Examples:

Calling the listUserHierarchyGroups operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
connect.listUserHierarchyGroups(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • NextToken — (String)

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    • MaxResults — (Integer)

      The maximum number of results to return per page.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • UserHierarchyGroupSummaryList — (Array<map>)

        Information about the hierarchy groups.

        • Id — (String)

          The identifier of the hierarchy group.

        • Arn — (String)

          The Amazon Resource Name (ARN) of the hierarchy group.

        • Name — (String)

          The name of the hierarchy group.

      • NextToken — (String)

        If there are additional results, this is the token for the next set of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listUsers(params = {}, callback) ⇒ AWS.Request

Provides summary information about the users for the specified Amazon Connect instance.

Service Reference:

Examples:

Calling the listUsers operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
connect.listUsers(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • NextToken — (String)

      The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    • MaxResults — (Integer)

      The maximum number of results to return per page.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • UserSummaryList — (Array<map>)

        Information about the users.

        • Id — (String)

          The identifier of the user account.

        • Arn — (String)

          The Amazon Resource Name (ARN) of the user account.

        • Username — (String)

          The Amazon Connect user name of the user account.

      • NextToken — (String)

        If there are additional results, this is the token for the next set of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

resumeContactRecording(params = {}, callback) ⇒ AWS.Request

When a contact is being recorded, and the recording has been suspended using SuspendContactRecording, this API resumes recording the call.

Only voice recordings are supported at this time.

Service Reference:

Examples:

Calling the resumeContactRecording operation

var params = {
  ContactId: 'STRING_VALUE', /* required */
  InitialContactId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE' /* required */
};
connect.resumeContactRecording(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • ContactId — (String)

      The identifier of the contact.

    • InitialContactId — (String)

      The identifier of the contact. This is the identifier of the contact associated with the first interaction with the contact center.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

startChatContact(params = {}, callback) ⇒ AWS.Request

Initiates a contact flow to start a new chat for the customer. Response of this API provides a token required to obtain credentials from the CreateParticipantConnection API in the Amazon Connect Participant Service.

When a new chat contact is successfully created, clients must subscribe to the participant’s connection for the created chat within 5 minutes. This is achieved by invoking CreateParticipantConnection with WEBSOCKET and CONNECTION_CREDENTIALS.

A 429 error occurs in two situations:

  • API rate limit is exceeded. API TPS throttling returns a TooManyRequests exception.

  • The quota for concurrent active chats is exceeded. Active chat throttling returns a LimitExceededException.

For more information about chat, see Chat in the Amazon Connect Administrator Guide.

Service Reference:

Examples:

Calling the startChatContact operation

var params = {
  ContactFlowId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE', /* required */
  ParticipantDetails: { /* required */
    DisplayName: 'STRING_VALUE' /* required */
  },
  Attributes: {
    '<AttributeName>': 'STRING_VALUE',
    /* '<AttributeName>': ... */
  },
  ClientToken: 'STRING_VALUE',
  InitialMessage: {
    Content: 'STRING_VALUE', /* required */
    ContentType: 'STRING_VALUE' /* required */
  }
};
connect.startChatContact(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • ContactFlowId — (String)

      The identifier of the contact flow for initiating the chat. To see the ContactFlowId in the Amazon Connect console user interface, on the navigation menu go to Routing, Contact Flows. Choose the contact flow. On the contact flow page, under the name of the contact flow, choose Show additional flow information. The ContactFlowId is the last part of the ARN, shown here in bold:

      arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/contact-flow/846ec553-a005-41c0-8341-xxxxxxxxxxxx

    • Attributes — (map<String>)

      A custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes. They can be accessed in contact flows just like any other contact attributes.

      There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can include only alphanumeric, dash, and underscore characters.

    • ParticipantDetails — (map)

      Information identifying the participant.

      • DisplayNamerequired — (String)

        Display name of the participant.

    • InitialMessage — (map)

      The initial message to be sent to the newly created chat.

      • ContentTyperequired — (String)

        The type of the content. Supported types are text and plain.

      • Contentrequired — (String)

        The content of the chat message.

    • ClientToken — (String)

      A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

      If a token is not provided, the SDK will use a version 4 UUID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ContactId — (String)

        The identifier of this contact within the Amazon Connect instance.

      • ParticipantId — (String)

        The identifier for a chat participant. The participantId for a chat participant is the same throughout the chat lifecycle.

      • ParticipantToken — (String)

        The token used by the chat participant to call CreateParticipantConnection. The participant token is valid for the lifetime of a chat participant.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

startContactRecording(params = {}, callback) ⇒ AWS.Request

Starts recording the contact when the agent joins the call. StartContactRecording is a one-time action. For example, if you use StopContactRecording to stop recording an ongoing call, you can't use StartContactRecording to restart it. For scenarios where the recording has started and you want to suspend and resume it, such as when collecting sensitive information (for example, a credit card number), use SuspendContactRecording and ResumeContactRecording.

You can use this API to override the recording behavior configured in the Set recording behavior block.

Only voice recordings are supported at this time.

Service Reference:

Examples:

Calling the startContactRecording operation

var params = {
  ContactId: 'STRING_VALUE', /* required */
  InitialContactId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE', /* required */
  VoiceRecordingConfiguration: { /* required */
    VoiceRecordingTrack: FROM_AGENT | TO_AGENT | ALL
  }
};
connect.startContactRecording(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • ContactId — (String)

      The identifier of the contact.

    • InitialContactId — (String)

      The identifier of the contact. This is the identifier of the contact associated with the first interaction with the contact center.

    • VoiceRecordingConfiguration — (map)

      The person being recorded.

      • VoiceRecordingTrack — (String)

        Identifies which track is being recorded.

        Possible values include:
        • "FROM_AGENT"
        • "TO_AGENT"
        • "ALL"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

startContactStreaming(params = {}, callback) ⇒ AWS.Request

Initiates real-time message streaming for a new chat contact.

For more information about message streaming, see Enable real-time chat message streaming in the Amazon Connect Administrator Guide.

Service Reference:

Examples:

Calling the startContactStreaming operation

var params = {
  ChatStreamingConfiguration: { /* required */
    StreamingEndpointArn: 'STRING_VALUE' /* required */
  },
  ClientToken: 'STRING_VALUE', /* required */
  ContactId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE' /* required */
};
connect.startContactStreaming(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • ContactId — (String)

      The identifier of the contact. This is the identifier of the contact associated with the first interaction with the contact center.

    • ChatStreamingConfiguration — (map)

      The streaming configuration, such as the Amazon SNS streaming endpoint.

      • StreamingEndpointArnrequired — (String)

        The Amazon Resource Name (ARN) of the standard Amazon SNS topic. The Amazon Resource Name (ARN) of the streaming endpoint that is used to publish real-time message streaming for chat conversations.

    • ClientToken — (String)

      A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

      If a token is not provided, the SDK will use a version 4 UUID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • StreamingId — (String)

        The identifier of the streaming configuration enabled.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

startOutboundVoiceContact(params = {}, callback) ⇒ AWS.Request

Places an outbound call to a contact, and then initiates the contact flow. It performs the actions in the contact flow that's specified (in ContactFlowId).

Agents do not initiate the outbound API, which means that they do not dial the contact. If the contact flow places an outbound call to a contact, and then puts the contact in queue, the call is then routed to the agent, like any other inbound case.

There is a 60-second dialing timeout for this operation. If the call is not connected after 60 seconds, it fails.

Note: UK numbers with a 447 prefix are not allowed by default. Before you can dial these UK mobile numbers, you must submit a service quota increase request. For more information, see Amazon Connect Service Quotas in the Amazon Connect Administrator Guide.
Note: Campaign calls are not allowed by default. Before you can make a call with TrafficType = CAMPAIGN, you must submit a service quota increase request. For more information, see Amazon Connect Service Quotas in the Amazon Connect Administrator Guide.

Service Reference:

Examples:

Calling the startOutboundVoiceContact operation

var params = {
  ContactFlowId: 'STRING_VALUE', /* required */
  DestinationPhoneNumber: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE', /* required */
  AnswerMachineDetectionConfig: {
    AwaitAnswerMachinePrompt: true || false,
    EnableAnswerMachineDetection: true || false
  },
  Attributes: {
    '<AttributeName>': 'STRING_VALUE',
    /* '<AttributeName>': ... */
  },
  CampaignId: 'STRING_VALUE',
  ClientToken: 'STRING_VALUE',
  QueueId: 'STRING_VALUE',
  SourcePhoneNumber: 'STRING_VALUE',
  TrafficType: GENERAL | CAMPAIGN
};
connect.startOutboundVoiceContact(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DestinationPhoneNumber — (String)

      The phone number of the customer, in E.164 format.

    • ContactFlowId — (String)

      The identifier of the contact flow for the outbound call. To see the ContactFlowId in the Amazon Connect console user interface, on the navigation menu go to Routing, Contact Flows. Choose the contact flow. On the contact flow page, under the name of the contact flow, choose Show additional flow information. The ContactFlowId is the last part of the ARN, shown here in bold:

      arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/contact-flow/846ec553-a005-41c0-8341-xxxxxxxxxxxx

    • InstanceId — (String)

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

    • ClientToken — (String)

      A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. The token is valid for 7 days after creation. If a contact is already started, the contact ID is returned.

      If a token is not provided, the SDK will use a version 4 UUID.
    • SourcePhoneNumber — (String)

      The phone number associated with the Amazon Connect instance, in E.164 format. If you do not specify a source phone number, you must specify a queue.

    • QueueId — (String)

      The queue for the call. If you specify a queue, the phone displayed for caller ID is the phone number specified in the queue. If you do not specify a queue, the queue defined in the contact flow is used. If you do not specify a queue, you must specify a source phone number.

    • Attributes — (map<String>)

      A custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes, and can be accessed in contact flows just like any other contact attributes.

      There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can include only alphanumeric, dash, and underscore characters.

    • AnswerMachineDetectionConfig — (map)

      Configuration of the answering machine detection for this outbound call.

      • EnableAnswerMachineDetection — (Boolean)

        The flag to indicate if answer machine detection analysis needs to be performed for a voice call. If set to true, TrafficType must be set as CAMPAIGN.

      • AwaitAnswerMachinePrompt — (Boolean)

        Wait for the answering machine prompt.

    • CampaignId — (String)

      The campaign identifier of the outbound communication.

    • TrafficType — (String)

      Denotes the class of traffic. Calls with different traffic types are handled differently by Amazon Connect. The default value is GENERAL. Use CAMPAIGN if EnableAnswerMachineDetection is set to true. For all other cases, use GENERAL.

      Possible values include:
      • "GENERAL"
      • "CAMPAIGN"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ContactId — (String)

        The identifier of this contact within the Amazon Connect instance.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

startTaskContact(params = {}, callback) ⇒ AWS.Request

Initiates a contact flow to start a new task.

Service Reference:

Examples:

Calling the startTaskContact operation

var params = {
  ContactFlowId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE', /* required */
  Attributes: {
    '<AttributeName>': 'STRING_VALUE',
    /* '<AttributeName>': ... */
  },
  ClientToken: 'STRING_VALUE',
  Description: 'STRING_VALUE',
  PreviousContactId: 'STRING_VALUE',
  References: {
    '<ReferenceKey>': {
      Type: URL, /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* '<ReferenceKey>': ... */
  }
};
connect.startTaskContact(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • PreviousContactId — (String)

      The identifier of the previous chat, voice, or task contact.

    • ContactFlowId — (String)

      The identifier of the contact flow for initiating the tasks. To see the ContactFlowId in the Amazon Connect console user interface, on the navigation menu go to Routing, Contact Flows. Choose the contact flow. On the contact flow page, under the name of the contact flow, choose Show additional flow information. The ContactFlowId is the last part of the ARN, shown here in bold:

      arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/contact-flow/846ec553-a005-41c0-8341-xxxxxxxxxxxx

    • Attributes — (map<String>)

      A custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes, and can be accessed in contact flows just like any other contact attributes.

      There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can include only alphanumeric, dash, and underscore characters.

    • Name — (String)

      The name of a task that is shown to an agent in the Contact Control Panel (CCP).

    • References — (map<map>)

      A formatted URL that is shown to an agent in the Contact Control Panel (CCP).

      • Valuerequired — (String)

        A formatted URL that displays to an agent in the Contact Control Panel (CCP)

      • Typerequired — (String)

        A valid URL.

        Possible values include:
        • "URL"
    • Description — (String)

      A description of the task that is shown to an agent in the Contact Control Panel (CCP).

    • ClientToken — (String)

      A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

      If a token is not provided, the SDK will use a version 4 UUID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ContactId — (String)

        The identifier of this contact within the Amazon Connect instance.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

stopContact(params = {}, callback) ⇒ AWS.Request

Ends the specified contact.

Service Reference:

Examples:

Calling the stopContact operation

var params = {
  ContactId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE' /* required */
};
connect.stopContact(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ContactId — (String)

      The ID of the contact.

    • InstanceId — (String)

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

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

stopContactRecording(params = {}, callback) ⇒ AWS.Request

Stops recording a call when a contact is being recorded. StopContactRecording is a one-time action. If you use StopContactRecording to stop recording an ongoing call, you can't use StartContactRecording to restart it. For scenarios where the recording has started and you want to suspend it for sensitive information (for example, to collect a credit card number), and then restart it, use SuspendContactRecording and ResumeContactRecording.

Only voice recordings are supported at this time.

Service Reference:

Examples:

Calling the stopContactRecording operation

var params = {
  ContactId: 'STRING_VALUE', /* required */
  InitialContactId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE' /* required */
};
connect.stopContactRecording(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • ContactId — (String)

      The identifier of the contact.

    • InitialContactId — (String)

      The identifier of the contact. This is the identifier of the contact associated with the first interaction with the contact center.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

stopContactStreaming(params = {}, callback) ⇒ AWS.Request

Ends message streaming on a specified contact. To restart message streaming on that contact, call the StartContactStreaming API.

Service Reference:

Examples:

Calling the stopContactStreaming operation

var params = {
  ContactId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE', /* required */
  StreamingId: 'STRING_VALUE' /* required */
};
connect.stopContactStreaming(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • ContactId — (String)

      The identifier of the contact. This is the identifier of the contact that is associated with the first interaction with the contact center.

    • StreamingId — (String)

      The identifier of the streaming configuration enabled.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

suspendContactRecording(params = {}, callback) ⇒ AWS.Request

When a contact is being recorded, this API suspends recording the call. For example, you might suspend the call recording while collecting sensitive information, such as a credit card number. Then use ResumeContactRecording to restart recording.

The period of time that the recording is suspended is filled with silence in the final recording.

Only voice recordings are supported at this time.

Service Reference:

Examples:

Calling the suspendContactRecording operation

var params = {
  ContactId: 'STRING_VALUE', /* required */
  InitialContactId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE' /* required */
};
connect.suspendContactRecording(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • ContactId — (String)

      The identifier of the contact.

    • InitialContactId — (String)

      The identifier of the contact. This is the identifier of the contact associated with the first interaction with the contact center.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

tagResource(params = {}, callback) ⇒ AWS.Request

Adds the specified tags to the specified resource.

The supported resource types are users, routing profiles, queues, quick connects, contact flows, agent status, and hours of operation.

For sample policies that use tags, see Amazon Connect Identity-Based Policy Examples in the Amazon Connect Administrator Guide.

Service Reference:

Examples:

Calling the tagResource operation

var params = {
  resourceArn: 'STRING_VALUE', /* required */
  tags: { /* required */
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
connect.tagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceArn — (String)

      The Amazon Resource Name (ARN) of the resource.

    • tags — (map<String>)

      One or more tags. For example, { "tags": "key2":"value2" }.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

untagResource(params = {}, callback) ⇒ AWS.Request

Removes the specified tags from the specified resource.

Service Reference:

Examples:

Calling the untagResource operation

var params = {
  resourceArn: 'STRING_VALUE', /* required */
  tagKeys: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
connect.untagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceArn — (String)

      The Amazon Resource Name (ARN) of the resource.

    • tagKeys — (Array<String>)

      The tag keys.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateAgentStatus(params = {}, callback) ⇒ AWS.Request

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

Updates agent status.

Service Reference:

Examples:

Calling the updateAgentStatus operation

var params = {
  AgentStatusId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE', /* required */
  Description: 'STRING_VALUE',
  DisplayOrder: 'NUMBER_VALUE',
  Name: 'STRING_VALUE',
  ResetOrderNumber: true || false,
  State: ENABLED | DISABLED
};
connect.updateAgentStatus(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • AgentStatusId — (String)

      The identifier of the agent status.

    • Name — (String)

      The name of the agent status.

    • Description — (String)

      The description of the agent status.

    • State — (String)

      The state of the agent status.

      Possible values include:
      • "ENABLED"
      • "DISABLED"
    • DisplayOrder — (Integer)

      The display order of the agent status.

    • ResetOrderNumber — (Boolean)

      A number indicating the reset order of the agent status.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateContactAttributes(params = {}, callback) ⇒ AWS.Request

Creates or updates user-defined contact attributes associated with the specified contact.

You can create or update user-defined attributes for both ongoing and completed contacts. For example, while the call is active, you can update the customer's name or the reason the customer called. You can add notes about steps that the agent took during the call that display to the next agent that takes the call. You can also update attributes for a contact using data from your CRM application and save the data with the contact in Amazon Connect. You could also flag calls for additional analysis, such as legal review or to identify abusive callers.

Contact attributes are available in Amazon Connect for 24 months, and are then deleted. For information about CTR retention and the maximum size of the CTR attributes section, see Feature specifications in the Amazon Connect Administrator Guide.

Important: You cannot use the operation to update attributes for contacts that occurred prior to the release of the API, which was September 12, 2018. You can update attributes only for contacts that started after the release of the API. If you attempt to update attributes for a contact that occurred prior to the release of the API, a 400 error is returned. This applies also to queued callbacks that were initiated prior to the release of the API but are still active in your instance.

Service Reference:

Examples:

Calling the updateContactAttributes operation

var params = {
  Attributes: { /* required */
    '<AttributeName>': 'STRING_VALUE',
    /* '<AttributeName>': ... */
  },
  InitialContactId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE' /* required */
};
connect.updateContactAttributes(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InitialContactId — (String)

      The identifier of the contact. This is the identifier of the contact associated with the first interaction with the contact center.

    • InstanceId — (String)

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

    • Attributes — (map<String>)

      The Amazon Connect attributes. These attributes can be accessed in contact flows just like any other contact attributes.

      You can have up to 32,768 UTF-8 bytes across all attributes for a contact. Attribute keys can include only alphanumeric, dash, and underscore characters.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateContactFlowContent(params = {}, callback) ⇒ AWS.Request

Updates the specified contact flow.

You can also create and update contact flows using the Amazon Connect Flow language.

Service Reference:

Examples:

Calling the updateContactFlowContent operation

var params = {
  ContactFlowId: 'STRING_VALUE', /* required */
  Content: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE' /* required */
};
connect.updateContactFlowContent(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

      The identifier of the Amazon Connect instance.

    • ContactFlowId — (String)

      The identifier of the contact flow.

    • Content — (String)

      The JSON string that represents contact flow’s content. For an example, see Example contact flow in Amazon Connect Flow language in the Amazon Connect Administrator Guide.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateContactFlowName(params = {}, callback) ⇒ AWS.Request

The name of the contact flow.

You can also create and update contact flows using the Amazon Connect Flow language.

Service Reference:

Examples:

Calling the updateContactFlowName operation

var params = {
  ContactFlowId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE', /* required */
  Description: 'STRING_VALUE',
  Name: 'STRING_VALUE'
};
connect.updateContactFlowName(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

      The identifier of the Amazon Connect instance.

    • ContactFlowId — (String)

      The identifier of the contact flow.

    • Name — (String)

      The name of the contact flow.

    • Description — (String)

      The description of the contact flow.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateHoursOfOperation(params = {}, callback) ⇒ AWS.Request

Updates the hours of operation.

Service Reference:

Examples:

Calling the updateHoursOfOperation operation

var params = {
  HoursOfOperationId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE', /* required */
  Config: [
    {
      Day: SUNDAY | MONDAY | TUESDAY | WEDNESDAY | THURSDAY | FRIDAY | SATURDAY, /* required */
      EndTime: { /* required */
        Hours: 'NUMBER_VALUE', /* required */
        Minutes: 'NUMBER_VALUE' /* required */
      },
      StartTime: { /* required */
        Hours: 'NUMBER_VALUE', /* required */
        Minutes: 'NUMBER_VALUE' /* required */
      }
    },
    /* more items */
  ],
  Description: 'STRING_VALUE',
  Name: 'STRING_VALUE',
  TimeZone: 'STRING_VALUE'
};
connect.updateHoursOfOperation(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • HoursOfOperationId — (String)

      The identifier of the hours of operation.

    • Name — (String)

      The name of the hours of operation.

    • Description — (String)

      The description of the hours of operation.

    • TimeZone — (String)

      The time zone of the hours of operation.

    • Config — (Array<map>)

      Configuration information of the hours of operation.

      • Dayrequired — (String)

        The day that the hours of operation applies to.

        Possible values include:
        • "SUNDAY"
        • "MONDAY"
        • "TUESDAY"
        • "WEDNESDAY"
        • "THURSDAY"
        • "FRIDAY"
        • "SATURDAY"
      • StartTimerequired — (map)

        The start time that your contact center opens.

        • Hoursrequired — (Integer)

          The hours.

        • Minutesrequired — (Integer)

          The minutes.

      • EndTimerequired — (map)

        The end time that your contact center closes.

        • Hoursrequired — (Integer)

          The hours.

        • Minutesrequired — (Integer)

          The minutes.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateInstanceAttribute(params = {}, callback) ⇒ AWS.Request

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

Updates the value for the specified attribute type.

Service Reference:

Examples:

Calling the updateInstanceAttribute operation

var params = {
  AttributeType: INBOUND_CALLS | OUTBOUND_CALLS | CONTACTFLOW_LOGS | CONTACT_LENS | AUTO_RESOLVE_BEST_VOICES | USE_CUSTOM_TTS_VOICES | EARLY_MEDIA, /* required */
  InstanceId: 'STRING_VALUE', /* required */
  Value: 'STRING_VALUE' /* required */
};
connect.updateInstanceAttribute(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • AttributeType — (String)

      The type of attribute.

      Note: Only allowlisted customers can consume USE_CUSTOM_TTS_VOICES. To access this feature, contact Amazon Web Services Support for allowlisting.
      Possible values include:
      • "INBOUND_CALLS"
      • "OUTBOUND_CALLS"
      • "CONTACTFLOW_LOGS"
      • "CONTACT_LENS"
      • "AUTO_RESOLVE_BEST_VOICES"
      • "USE_CUSTOM_TTS_VOICES"
      • "EARLY_MEDIA"
    • Value — (String)

      The value for the attribute. Maximum character limit is 100.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateInstanceStorageConfig(params = {}, callback) ⇒ AWS.Request

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

Updates an existing configuration for a resource type. This API is idempotent.

Service Reference:

Examples:

Calling the updateInstanceStorageConfig operation

var params = {
  AssociationId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE', /* required */
  ResourceType: CHAT_TRANSCRIPTS | CALL_RECORDINGS | SCHEDULED_REPORTS | MEDIA_STREAMS | CONTACT_TRACE_RECORDS | AGENT_EVENTS, /* required */
  StorageConfig: { /* required */
    StorageType: S3 | KINESIS_VIDEO_STREAM | KINESIS_STREAM | KINESIS_FIREHOSE, /* required */
    AssociationId: 'STRING_VALUE',
    KinesisFirehoseConfig: {
      FirehoseArn: 'STRING_VALUE' /* required */
    },
    KinesisStreamConfig: {
      StreamArn: 'STRING_VALUE' /* required */
    },
    KinesisVideoStreamConfig: {
      EncryptionConfig: { /* required */
        EncryptionType: KMS, /* required */
        KeyId: 'STRING_VALUE' /* required */
      },
      Prefix: 'STRING_VALUE', /* required */
      RetentionPeriodHours: 'NUMBER_VALUE' /* required */
    },
    S3Config: {
      BucketName: 'STRING_VALUE', /* required */
      BucketPrefix: 'STRING_VALUE', /* required */
      EncryptionConfig: {
        EncryptionType: KMS, /* required */
        KeyId: 'STRING_VALUE' /* required */
      }
    }
  }
};
connect.updateInstanceStorageConfig(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • AssociationId — (String)

      The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.

    • ResourceType — (String)

      A valid resource type.

      Possible values include:
      • "CHAT_TRANSCRIPTS"
      • "CALL_RECORDINGS"
      • "SCHEDULED_REPORTS"
      • "MEDIA_STREAMS"
      • "CONTACT_TRACE_RECORDS"
      • "AGENT_EVENTS"
    • StorageConfig — (map)

      The storage configuration for the instance.

      • AssociationId — (String)

        The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.

      • StorageTyperequired — (String)

        A valid storage type.

        Possible values include:
        • "S3"
        • "KINESIS_VIDEO_STREAM"
        • "KINESIS_STREAM"
        • "KINESIS_FIREHOSE"
      • S3Config — (map)

        The S3 bucket configuration.

        • BucketNamerequired — (String)

          The S3 bucket name.

        • BucketPrefixrequired — (String)

          The S3 bucket prefix.

        • EncryptionConfig — (map)

          The Amazon S3 encryption configuration.

          • EncryptionTyperequired — (String)

            The type of encryption.

            Possible values include:
            • "KMS"
          • KeyIdrequired — (String)

            The full ARN of the encryption key.

            Note: Be sure to provide the full ARN of the encryption key, not just the ID.
      • KinesisVideoStreamConfig — (map)

        The configuration of the Kinesis video stream.

        • Prefixrequired — (String)

          The prefix of the video stream.

        • RetentionPeriodHoursrequired — (Integer)

          The number of hours data is retained in the stream. Kinesis Video Streams retains the data in a data store that is associated with the stream.

          The default value is 0, indicating that the stream does not persist data.

        • EncryptionConfigrequired — (map)

          The encryption configuration.

          • EncryptionTyperequired — (String)

            The type of encryption.

            Possible values include:
            • "KMS"
          • KeyIdrequired — (String)

            The full ARN of the encryption key.

            Note: Be sure to provide the full ARN of the encryption key, not just the ID.
      • KinesisStreamConfig — (map)

        The configuration of the Kinesis data stream.

        • StreamArnrequired — (String)

          The Amazon Resource Name (ARN) of the data stream.

      • KinesisFirehoseConfig — (map)

        The configuration of the Kinesis Firehose delivery stream.

        • FirehoseArnrequired — (String)

          The Amazon Resource Name (ARN) of the delivery stream.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateQueueHoursOfOperation(params = {}, callback) ⇒ AWS.Request

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

Updates the hours of operation for the specified queue.

Service Reference:

Examples:

Calling the updateQueueHoursOfOperation operation

var params = {
  HoursOfOperationId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE', /* required */
  QueueId: 'STRING_VALUE' /* required */
};
connect.updateQueueHoursOfOperation(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • QueueId — (String)

      The identifier for the queue.

    • HoursOfOperationId — (String)

      The identifier for the hours of operation.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateQueueMaxContacts(params = {}, callback) ⇒ AWS.Request

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

Updates the maximum number of contacts allowed in a queue before it is considered full.

Service Reference:

Examples:

Calling the updateQueueMaxContacts operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  QueueId: 'STRING_VALUE', /* required */
  MaxContacts: 'NUMBER_VALUE'
};
connect.updateQueueMaxContacts(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • QueueId — (String)

      The identifier for the queue.

    • MaxContacts — (Integer)

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

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateQueueName(params = {}, callback) ⇒ AWS.Request

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

Updates the name and description of a queue. At least Name or Description must be provided.

Service Reference:

Examples:

Calling the updateQueueName operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  QueueId: 'STRING_VALUE', /* required */
  Description: 'STRING_VALUE',
  Name: 'STRING_VALUE'
};
connect.updateQueueName(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • QueueId — (String)

      The identifier for the queue.

    • Name — (String)

      The name of the queue.

    • Description — (String)

      The description of the queue.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateQueueOutboundCallerConfig(params = {}, callback) ⇒ AWS.Request

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

Updates the outbound caller ID name, number, and outbound whisper flow for a specified queue.

Service Reference:

Examples:

Calling the updateQueueOutboundCallerConfig operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  OutboundCallerConfig: { /* required */
    OutboundCallerIdName: 'STRING_VALUE',
    OutboundCallerIdNumberId: 'STRING_VALUE',
    OutboundFlowId: 'STRING_VALUE'
  },
  QueueId: 'STRING_VALUE' /* required */
};
connect.updateQueueOutboundCallerConfig(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • QueueId — (String)

      The identifier for the queue.

    • OutboundCallerConfig — (map)

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

      • OutboundCallerIdName — (String)

        The caller ID name.

      • OutboundCallerIdNumberId — (String)

        The caller ID number.

      • OutboundFlowId — (String)

        The outbound whisper flow to be used during an outbound call.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateQueueStatus(params = {}, callback) ⇒ AWS.Request

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

Updates the status of the queue.

Service Reference:

Examples:

Calling the updateQueueStatus operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  QueueId: 'STRING_VALUE', /* required */
  Status: ENABLED | DISABLED /* required */
};
connect.updateQueueStatus(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • QueueId — (String)

      The identifier for the queue.

    • Status — (String)

      The status of the queue.

      Possible values include:
      • "ENABLED"
      • "DISABLED"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateQuickConnectConfig(params = {}, callback) ⇒ AWS.Request

Updates the configuration settings for the specified quick connect.

Service Reference:

Examples:

Calling the updateQuickConnectConfig operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  QuickConnectConfig: { /* required */
    QuickConnectType: USER | QUEUE | PHONE_NUMBER, /* required */
    PhoneConfig: {
      PhoneNumber: 'STRING_VALUE' /* required */
    },
    QueueConfig: {
      ContactFlowId: 'STRING_VALUE', /* required */
      QueueId: 'STRING_VALUE' /* required */
    },
    UserConfig: {
      ContactFlowId: 'STRING_VALUE', /* required */
      UserId: 'STRING_VALUE' /* required */
    }
  },
  QuickConnectId: 'STRING_VALUE' /* required */
};
connect.updateQuickConnectConfig(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • QuickConnectId — (String)

      The identifier for the quick connect.

    • QuickConnectConfig — (map)

      Information about the configuration settings for the quick connect.

      • QuickConnectTyperequired — (String)

        The type of quick connect. In the Amazon Connect console, when you create a quick connect, you are prompted to assign one of the following types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE).

        Possible values include:
        • "USER"
        • "QUEUE"
        • "PHONE_NUMBER"
      • UserConfig — (map)

        The user configuration. This is required only if QuickConnectType is USER.

        • UserIdrequired — (String)

          The identifier of the user.

        • ContactFlowIdrequired — (String)

          The identifier of the contact flow.

      • QueueConfig — (map)

        The queue configuration. This is required only if QuickConnectType is QUEUE.

        • QueueIdrequired — (String)

          The identifier for the queue.

        • ContactFlowIdrequired — (String)

          The identifier of the contact flow.

      • PhoneConfig — (map)

        The phone configuration. This is required only if QuickConnectType is PHONE_NUMBER.

        • PhoneNumberrequired — (String)

          The phone number in E.164 format.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateQuickConnectName(params = {}, callback) ⇒ AWS.Request

Updates the name and description of a quick connect. The request accepts the following data in JSON format. At least Name or Description must be provided.

Service Reference:

Examples:

Calling the updateQuickConnectName operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  QuickConnectId: 'STRING_VALUE', /* required */
  Description: 'STRING_VALUE',
  Name: 'STRING_VALUE'
};
connect.updateQuickConnectName(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • QuickConnectId — (String)

      The identifier for the quick connect.

    • Name — (String)

      The name of the quick connect.

    • Description — (String)

      The description of the quick connect.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateRoutingProfileConcurrency(params = {}, callback) ⇒ AWS.Request

Updates the channels that agents can handle in the Contact Control Panel (CCP) for a routing profile.

Service Reference:

Examples:

Calling the updateRoutingProfileConcurrency operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  MediaConcurrencies: [ /* required */
    {
      Channel: VOICE | CHAT | TASK, /* required */
      Concurrency: 'NUMBER_VALUE' /* required */
    },
    /* more items */
  ],
  RoutingProfileId: 'STRING_VALUE' /* required */
};
connect.updateRoutingProfileConcurrency(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • RoutingProfileId — (String)

      The identifier of the routing profile.

    • MediaConcurrencies — (Array<map>)

      The channels that agents can handle in the Contact Control Panel (CCP).

      • Channelrequired — (String)

        The channels that agents can handle in the Contact Control Panel (CCP).

        Possible values include:
        • "VOICE"
        • "CHAT"
        • "TASK"
      • Concurrencyrequired — (Integer)

        The number of contacts an agent can have on a channel simultaneously.

        Valid Range for VOICE: Minimum value of 1. Maximum value of 1.

        Valid Range for CHAT: Minimum value of 1. Maximum value of 10.

        Valid Range for TASK: Minimum value of 1. Maximum value of 10.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateRoutingProfileDefaultOutboundQueue(params = {}, callback) ⇒ AWS.Request

Updates the default outbound queue of a routing profile.

Examples:

Calling the updateRoutingProfileDefaultOutboundQueue operation

var params = {
  DefaultOutboundQueueId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE', /* required */
  RoutingProfileId: 'STRING_VALUE' /* required */
};
connect.updateRoutingProfileDefaultOutboundQueue(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • RoutingProfileId — (String)

      The identifier of the routing profile.

    • DefaultOutboundQueueId — (String)

      The identifier for the default outbound queue.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateRoutingProfileName(params = {}, callback) ⇒ AWS.Request

Updates the name and description of a routing profile. The request accepts the following data in JSON format. At least Name or Description must be provided.

Service Reference:

Examples:

Calling the updateRoutingProfileName operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  RoutingProfileId: 'STRING_VALUE', /* required */
  Description: 'STRING_VALUE',
  Name: 'STRING_VALUE'
};
connect.updateRoutingProfileName(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • RoutingProfileId — (String)

      The identifier of the routing profile.

    • Name — (String)

      The name of the routing profile. Must not be more than 127 characters.

    • Description — (String)

      The description of the routing profile. Must not be more than 250 characters.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateRoutingProfileQueues(params = {}, callback) ⇒ AWS.Request

Updates the properties associated with a set of queues for a routing profile.

Service Reference:

Examples:

Calling the updateRoutingProfileQueues operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  QueueConfigs: [ /* required */
    {
      Delay: 'NUMBER_VALUE', /* required */
      Priority: 'NUMBER_VALUE', /* required */
      QueueReference: { /* required */
        Channel: VOICE | CHAT | TASK, /* required */
        QueueId: 'STRING_VALUE' /* required */
      }
    },
    /* more items */
  ],
  RoutingProfileId: 'STRING_VALUE' /* required */
};
connect.updateRoutingProfileQueues(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • InstanceId — (String)

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

    • RoutingProfileId — (String)

      The identifier of the routing profile.

    • QueueConfigs — (Array<map>)

      The queues to be updated for this routing profile. Queues must first be associated to the routing profile. You can do this using AssociateRoutingProfileQueues.

      • QueueReferencerequired — (map)

        Contains information about a queue resource.

        • QueueIdrequired — (String)

          The identifier for the queue.

        • Channelrequired — (String)

          The channels agents can handle in the Contact Control Panel (CCP) for this routing profile.

          Possible values include:
          • "VOICE"
          • "CHAT"
          • "TASK"
      • Priorityrequired — (Integer)

        The order in which contacts are to be handled for the queue. For more information, see Queues: priority and delay.

      • Delayrequired — (Integer)

        The delay, in seconds, a contact should be in the queue before they are routed to an available agent. For more information, see Queues: priority and delay in the Amazon Connect Administrator Guide.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateSecurityProfile(params = {}, callback) ⇒ AWS.Request

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

Updates a security profile.

Service Reference:

Examples:

Calling the updateSecurityProfile operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  SecurityProfileId: 'STRING_VALUE', /* required */
  Description: 'STRING_VALUE',
  Permissions: [
    'STRING_VALUE',
    /* more items */
  ]
};
connect.updateSecurityProfile(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Description — (String)

      The description of the security profile.

    • Permissions — (Array<String>)

      The permissions granted to a security profile.

    • SecurityProfileId — (String)

      The identifier for the security profle.

    • InstanceId — (String)

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

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateUserHierarchy(params = {}, callback) ⇒ AWS.Request

Assigns the specified hierarchy group to the specified user.

Service Reference:

Examples:

Calling the updateUserHierarchy operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  UserId: 'STRING_VALUE', /* required */
  HierarchyGroupId: 'STRING_VALUE'
};
connect.updateUserHierarchy(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • HierarchyGroupId — (String)

      The identifier of the hierarchy group.

    • UserId — (String)

      The identifier of the user account.

    • InstanceId — (String)

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

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateUserHierarchyGroupName(params = {}, callback) ⇒ AWS.Request

Updates the name of the user hierarchy group.

Service Reference:

Examples:

Calling the updateUserHierarchyGroupName operation

var params = {
  HierarchyGroupId: 'STRING_VALUE', /* required */
  InstanceId: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE' /* required */
};
connect.updateUserHierarchyGroupName(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      The name of the hierarchy group. Must not be more than 100 characters.

    • HierarchyGroupId — (String)

      The identifier of the hierarchy group.

    • InstanceId — (String)

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

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateUserHierarchyStructure(params = {}, callback) ⇒ AWS.Request

Updates the user hierarchy structure: add, remove, and rename user hierarchy levels.

Service Reference:

Examples:

Calling the updateUserHierarchyStructure operation

var params = {
  HierarchyStructure: { /* required */
    LevelFive: {
      Name: 'STRING_VALUE' /* required */
    },
    LevelFour: {
      Name: 'STRING_VALUE' /* required */
    },
    LevelOne: {
      Name: 'STRING_VALUE' /* required */
    },
    LevelThree: {
      Name: 'STRING_VALUE' /* required */
    },
    LevelTwo: {
      Name: 'STRING_VALUE' /* required */
    }
  },
  InstanceId: 'STRING_VALUE' /* required */
};
connect.updateUserHierarchyStructure(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • HierarchyStructure — (map)

      The hierarchy levels to update.

      • LevelOne — (map)

        The update for level one.

        • Namerequired — (String)

          The name of the user hierarchy level. Must not be more than 50 characters.

      • LevelTwo — (map)

        The update for level two.

        • Namerequired — (String)

          The name of the user hierarchy level. Must not be more than 50 characters.

      • LevelThree — (map)

        The update for level three.

        • Namerequired — (String)

          The name of the user hierarchy level. Must not be more than 50 characters.

      • LevelFour — (map)

        The update for level four.

        • Namerequired — (String)

          The name of the user hierarchy level. Must not be more than 50 characters.

      • LevelFive — (map)

        The update for level five.

        • Namerequired — (String)

          The name of the user hierarchy level. Must not be more than 50 characters.

    • InstanceId — (String)

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

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateUserIdentityInfo(params = {}, callback) ⇒ AWS.Request

Updates the identity information for the specified user.

We strongly recommend limiting who has the ability to invoke UpdateUserIdentityInfo. Someone with that ability can change the login credentials of other users by changing their email address. This poses a security risk to your organization. They can change the email address of a user to the attacker's email address, and then reset the password through email. For more information, see Best Practices for Security Profiles in the Amazon Connect Administrator Guide.

Service Reference:

Examples:

Calling the updateUserIdentityInfo operation

var params = {
  IdentityInfo: { /* required */
    Email: 'STRING_VALUE',
    FirstName: 'STRING_VALUE',
    LastName: 'STRING_VALUE'
  },
  InstanceId: 'STRING_VALUE', /* required */
  UserId: 'STRING_VALUE' /* required */
};
connect.updateUserIdentityInfo(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IdentityInfo — (map)

      The identity information for the user.

      • FirstName — (String)

        The first name. This is required if you are using Amazon Connect or SAML for identity management.

      • LastName — (String)

        The last name. This is required if you are using Amazon Connect or SAML for identity management.

      • Email — (String)

        The email address. If you are using SAML for identity management and include this parameter, an error is returned.

    • UserId — (String)

      The identifier of the user account.

    • InstanceId — (String)

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

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateUserPhoneConfig(params = {}, callback) ⇒ AWS.Request

Updates the phone configuration settings for the specified user.

Service Reference:

Examples:

Calling the updateUserPhoneConfig operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  PhoneConfig: { /* required */
    PhoneType: SOFT_PHONE | DESK_PHONE, /* required */
    AfterContactWorkTimeLimit: 'NUMBER_VALUE',
    AutoAccept: true || false,
    DeskPhoneNumber: 'STRING_VALUE'
  },
  UserId: 'STRING_VALUE' /* required */
};
connect.updateUserPhoneConfig(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • PhoneConfig — (map)

      Information about phone configuration settings for the user.

      • PhoneTyperequired — (String)

        The phone type.

        Possible values include:
        • "SOFT_PHONE"
        • "DESK_PHONE"
      • AutoAccept — (Boolean)

        The Auto accept setting.

      • AfterContactWorkTimeLimit — (Integer)

        The After Call Work (ACW) timeout setting, in seconds.

      • DeskPhoneNumber — (String)

        The phone number for the user's desk phone.

    • UserId — (String)

      The identifier of the user account.

    • InstanceId — (String)

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

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateUserRoutingProfile(params = {}, callback) ⇒ AWS.Request

Assigns the specified routing profile to the specified user.

Service Reference:

Examples:

Calling the updateUserRoutingProfile operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  RoutingProfileId: 'STRING_VALUE', /* required */
  UserId: 'STRING_VALUE' /* required */
};
connect.updateUserRoutingProfile(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • RoutingProfileId — (String)

      The identifier of the routing profile for the user.

    • UserId — (String)

      The identifier of the user account.

    • InstanceId — (String)

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

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateUserSecurityProfiles(params = {}, callback) ⇒ AWS.Request

Assigns the specified security profiles to the specified user.

Service Reference:

Examples:

Calling the updateUserSecurityProfiles operation

var params = {
  InstanceId: 'STRING_VALUE', /* required */
  SecurityProfileIds: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  UserId: 'STRING_VALUE' /* required */
};
connect.updateUserSecurityProfiles(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • SecurityProfileIds — (Array<String>)

      The identifiers of the security profiles for the user.

    • UserId — (String)

      The identifier of the user account.

    • InstanceId — (String)

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

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.