AWS.ConnectCases — AWS SDK for JavaScript (original) (raw)
We recommend that you migrate to AWS SDK for JavaScript v3. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
With Amazon Connect Cases, your agents can track and manage customer issues that require multiple interactions, follow-up tasks, and teams in your contact center. A case represents a customer issue. It records the issue, the steps and interactions taken to resolve the issue, and the outcome. For more information, see Amazon Connect Cases in the Amazon Connect Administrator Guide.
Sending a Request Using ConnectCases
var connectcases = new AWS.ConnectCases();
connectcases.batchGetField(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 ConnectCases object uses this specific API, you can construct the object by passing the apiVersion
option to the constructor:
var connectcases = new AWS.ConnectCases({apiVersion: '2022-10-03'});
You can also set the API version globally in AWS.config.apiVersions
using the connectcases service identifier:
AWS.config.apiVersions = {
connectcases: '2022-10-03',
// other service API versions
};
var connectcases = new AWS.ConnectCases();
Constructor Summarycollapse
- new AWS.ConnectCases(options = {}) ⇒ Object constructor
Constructs a service object.
Property Summarycollapse
- endpoint ⇒ AWS.Endpoint readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summarycollapse
- batchGetField(params = {}, callback) ⇒ AWS.Request
Returns the description for the list of fields in the request parameters. - batchPutFieldOptions(params = {}, callback) ⇒ AWS.Request
Creates and updates a set of field options for a single select field in a Cases domain.
. - createCase(params = {}, callback) ⇒ AWS.Request
Note: If you provide a value forPerformedBy.UserArn
you must also have connect:DescribeUser permission on the User ARN resource that you provide
<p>Creates a case in the specified Cases domain.
``
````` * createDomain(params = {}, callback) ⇒ AWS.Request
Creates a domain, which is a container for all case data, such as cases, fields, templates and layouts.
- createField(params = {}, callback) ⇒ AWS.Request
Creates a field in the Cases domain. - createLayout(params = {}, callback) ⇒ AWS.Request
Creates a layout in the Cases domain. - createRelatedItem(params = {}, callback) ⇒ AWS.Request
Creates a related item (comments, tasks, and contacts) and associates it with a case.- A Related Item is a resource that is associated with a case.
- createTemplate(params = {}, callback) ⇒ AWS.Request
Creates a template in the Cases domain. - deleteDomain(params = {}, callback) ⇒ AWS.Request
Deletes a Cases domain.
<note> <p>After deleting your domain you must disassociate the deleted domain from your Amazon Connect instance with another API call before being able to use Cases again with this Amazon Connect instance.
``
```` * deleteField(params = {}, callback) ⇒ AWS.Request
Deletes a field from a cases template.
- deleteLayout(params = {}, callback) ⇒ AWS.Request
Deletes a layout from a cases template. - deleteTemplate(params = {}, callback) ⇒ AWS.Request
Deletes a cases template. - getCase(params = {}, callback) ⇒ AWS.Request
Returns information about a specific case if it exists. - getCaseAuditEvents(params = {}, callback) ⇒ AWS.Request
Returns the audit history about a specific case if it exists.
. - getCaseEventConfiguration(params = {}, callback) ⇒ AWS.Request
Returns the case event publishing configuration.
. - getDomain(params = {}, callback) ⇒ AWS.Request
Returns information about a specific domain if it exists. - getLayout(params = {}, callback) ⇒ AWS.Request
Returns the details for the requested layout.
. - getTemplate(params = {}, callback) ⇒ AWS.Request
Returns the details for the requested template. - listCasesForContact(params = {}, callback) ⇒ AWS.Request
Lists cases for a given contact.
. - listDomains(params = {}, callback) ⇒ AWS.Request
Lists all cases domains in the Amazon Web Services account. - listFieldOptions(params = {}, callback) ⇒ AWS.Request
Lists all of the field options for a field identifier in the domain. - listFields(params = {}, callback) ⇒ AWS.Request
Lists all fields in a Cases domain.
. - listLayouts(params = {}, callback) ⇒ AWS.Request
Lists all layouts in the given cases domain. - listTagsForResource(params = {}, callback) ⇒ AWS.Request
Lists tags for a resource.
. - listTemplates(params = {}, callback) ⇒ AWS.Request
Lists all of the templates in a Cases domain. - putCaseEventConfiguration(params = {}, callback) ⇒ AWS.Request
Adds case event publishing configuration. - searchCases(params = {}, callback) ⇒ AWS.Request
Searches for cases within their associated Cases domain. - searchRelatedItems(params = {}, callback) ⇒ AWS.Request
Searches for related items that are associated with a case.
Note: If no filters are provided, this returns all related items associated with a case. - tagResource(params = {}, callback) ⇒ AWS.Request
Adds tags to a resource.
. - untagResource(params = {}, callback) ⇒ AWS.Request
Untags a resource.
. - updateCase(params = {}, callback) ⇒ AWS.Request
Note: If you provide a value forPerformedBy.UserArn
you must also have connect:DescribeUser permission on the User ARN resource that you provide
<p>Updates the values of fields on a case.
* updateField(params = {}, callback) ⇒ AWS.Request
Updates the properties of an existing field.
- updateLayout(params = {}, callback) ⇒ AWS.Request
Updates the attributes of an existing layout.
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
AValidationException
is returned when you add non-existentfieldIds
to a layout.
Note: Title and Status fields cannot be part of layouts because they are not configurable. - updateTemplate(params = {}, callback) ⇒ AWS.Request
Updates the attributes of an existing template. `` ```` `````
````` ```` ### Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.ConnectCases(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Examples:
Constructing a ConnectCases object
var connectcases = new AWS.ConnectCases({apiVersion: '2022-10-03'});
Options Hash (options):
- params (map) —
- endpoint (String|AWS.Endpoint) —
The endpoint URI to send requests to. The default endpoint is built from the configuredregion
. 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 staticcredentials
property is set. - region (String) —
the region to send service requests to. See AWS.ConnectCases.region for more information. - maxRetries (Integer) —
the maximum amount of retries to attempt with a request. See AWS.ConnectCases.maxRetries for more information. - maxRedirects (Integer) —
the maximum amount of redirects to follow with a request. See AWS.ConnectCases.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.
- min [Boolean] — Validates that a value meets the min constraint. This is enabled by default when paramValidation is set to
- 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 totrue
. - correctClockSkew (Boolean) —
whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults tofalse
. - 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 anendpoint
to be provided explicitly to the service constructor. - s3DisableBodySigning (Boolean) —
whether S3 body signing should be disabled when using signature versionv4
. Body signing can only be disabled when using https. Defaults totrue
. - 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 tolegacy
- s3UseArnRegion (Boolean) —
whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults totrue
- 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 byapiVersions
). 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 globalAWS.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 totrue
. - 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 totrue
. - stsRegionalEndpoints ('legacy'|'regional') —
whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'. - useFipsEndpoint (Boolean) —
Enables FIPS compatible endpoints. Defaults tofalse
. - useDualstackEndpoint (Boolean) —
Enables IPv6 dualstack endpoint. Defaults tofalse
.
Property Details
endpoint ⇒ AWS.Endpoint (readwrite)
Returns an Endpoint object representing the endpoint URL for service requests.
Returns:
Method Details
batchGetField(params = {}, callback) ⇒ AWS.Request
Returns the description for the list of fields in the request parameters.
Examples:
Calling the batchGetField operation
var params = {
domainId: 'STRING_VALUE', /* required */
fields: [ /* required */
{
id: 'STRING_VALUE' /* required */
},
/* more items */
]
};
connectcases.batchGetField(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: {}) —
domainId
— (String
)
The unique identifier of the Cases domain.fields
— (Array<map>
)
A list of unique field identifiers.
*id
— required — (String
)
Unique identifier of a field.
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.
Returns:
batchPutFieldOptions(params = {}, callback) ⇒ AWS.Request
Creates and updates a set of field options for a single select field in a Cases domain.
Examples:
Calling the batchPutFieldOptions operation
var params = {
domainId: 'STRING_VALUE', /* required */
fieldId: 'STRING_VALUE', /* required */
options: [ /* required */
{
active: true || false, /* required */
name: 'STRING_VALUE', /* required */
value: 'STRING_VALUE' /* required */
},
/* more items */
]
};
connectcases.batchPutFieldOptions(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: {}) —
domainId
— (String
)
The unique identifier of the Cases domain.fieldId
— (String
)
The unique identifier of a field.options
— (Array<map>
)
A list ofFieldOption
objects.
*active
— required — (Boolean
)
Describes whether theFieldOption
is active (displayed) or inactive.
*name
— required — (String
)FieldOptionName
has max length 100 and disallows trailing spaces.
*value
— required — (String
)FieldOptionValue
has max length 100 and must be alphanumeric with hyphens and underscores.
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.
Returns:
createCase(params = {}, callback) ⇒ AWS.Request
Note: If you provide a value for PerformedBy.UserArn
you must also have connect:DescribeUser permission on the User ARN resource that you provide
<p>Creates a case in the specified Cases domain. Case system and custom fields are taken as an array id/value pairs with a declared data types.</p> <p>The following fields are required when creating a case:</p> <ul> <li> <p> <code>customer_id</code> - You must provide the full customer profile ARN in this format: <code>arn:aws:profile:your_AWS_Region:your_AWS_account ID:domains/your_profiles_domain_name/profiles/profile_ID</code> </p> </li> <li> <p> <code>title</code> </p> </li> </ul>
Examples:
Calling the createCase operation
var params = {
domainId: 'STRING_VALUE', /* required */
fields: [ /* required */
{
id: 'STRING_VALUE', /* required */
value: { /* required */
booleanValue: true || false,
doubleValue: 'NUMBER_VALUE',
emptyValue: {
},
stringValue: 'STRING_VALUE',
userArnValue: 'STRING_VALUE'
}
},
/* more items */
],
templateId: 'STRING_VALUE', /* required */
clientToken: 'STRING_VALUE',
performedBy: {
userArn: 'STRING_VALUE'
}
};
connectcases.createCase(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
)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
If a token is not provided, the SDK will use a version 4 UUID.domainId
— (String
)
The unique identifier of the Cases domain.fields
— (Array<map>
)
An array of objects with field ID (matching ListFields/DescribeField) and value union data.
*id
— required — (String
)
Unique identifier of a field.
*value
— required — (map
)
Union of potential field value types.
*booleanValue
— (Boolean
)
Can be either null, or have a Boolean value type. Only one value can be provided.
*doubleValue
— (Float
)
Can be either null, or have a Double number value type. Only one value can be provided.
*emptyValue
— (map
)
An empty value.
*stringValue
— (String
)
String value type.
*userArnValue
— (String
)
Represents the user that performed the audit.performedBy
— (map
)
Represents the identity of the person who performed the action.
*userArn
— (String
)
Represents the Amazon Connect ARN of the user.templateId
— (String
)
A unique identifier of a template.
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.
Returns:
createDomain(params = {}, callback) ⇒ AWS.Request
Creates a domain, which is a container for all case data, such as cases, fields, templates and layouts. Each Amazon Connect instance can be associated with only one Cases domain.
This will not associate your connect instance to Cases domain. Instead, use the Amazon Connect CreateIntegrationAssociation API. You need specific IAM permissions to successfully associate the Cases domain. For more information, see Onboard to Cases.
</important>
Examples:
Calling the createDomain operation
var params = {
name: 'STRING_VALUE' /* required */
};
connectcases.createDomain(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 for your Cases domain. It must be unique for your Amazon Web Services account.
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.
Returns:
createField(params = {}, callback) ⇒ AWS.Request
Creates a field in the Cases domain. This field is used to define the case object model (that is, defines what data can be captured on cases) in a Cases domain.
Examples:
Calling the createField operation
var params = {
domainId: 'STRING_VALUE', /* required */
name: 'STRING_VALUE', /* required */
type: Text | Number | Boolean | DateTime | SingleSelect | Url | User, /* required */
description: 'STRING_VALUE'
};
connectcases.createField(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 field.domainId
— (String
)
The unique identifier of the Cases domain.name
— (String
)
The name of the field.type
— (String
)
Defines the data type, some system constraints, and default display of the field.
Possible values include:
*"Text"
*"Number"
*"Boolean"
*"DateTime"
*"SingleSelect"
*"Url"
*"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.
Returns:
createLayout(params = {}, callback) ⇒ AWS.Request
Creates a layout in the Cases domain. Layouts define the following configuration in the top section and More Info tab of the Cases user interface:
- Fields to display to the users
- Field ordering
Note: Title and Status fields cannot be part of layouts since they are not configurable.
Examples:
Calling the createLayout operation
var params = {
content: { /* required */
basic: {
moreInfo: {
sections: [
{
fieldGroup: {
fields: [ /* required */
{
id: 'STRING_VALUE' /* required */
},
/* more items */
],
name: 'STRING_VALUE'
}
},
/* more items */
]
},
topPanel: {
sections: [
{
fieldGroup: {
fields: [ /* required */
{
id: 'STRING_VALUE' /* required */
},
/* more items */
],
name: 'STRING_VALUE'
}
},
/* more items */
]
}
}
},
domainId: 'STRING_VALUE', /* required */
name: 'STRING_VALUE' /* required */
};
connectcases.createLayout(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: {}) —
content
— (map
)
Information about which fields will be present in the layout, and information about the order of the fields.
*basic
— (map
)
Content specific toBasicLayout
type. It configures fields in the top panel and More Info tab of Cases user interface.
*moreInfo
— (map
)
This represents sections in a tab of the page layout.
*sections
— (Array<map>
)
Ordered list containing different kinds of sections that can be added.
*fieldGroup
— (map
)
Consists of a group of fields and associated properties.
*fields
— required — (Array<map>
)
Represents an ordered list containing field related information.
*id
— required — (String
)
Unique identifier of a field.
*name
— (String
)
Name of the field group.
*topPanel
— (map
)
This represents sections in a panel of the page layout.
*sections
— (Array<map>
)
Ordered list containing different kinds of sections that can be added.
*fieldGroup
— (map
)
Consists of a group of fields and associated properties.
*fields
— required — (Array<map>
)
Represents an ordered list containing field related information.
*id
— required — (String
)
Unique identifier of a field.
*name
— (String
)
Name of the field group.domainId
— (String
)
The unique identifier of the Cases domain.name
— (String
)
The name of the layout. It must be unique for the Cases domain.
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.
Returns:
createRelatedItem(params = {}, callback) ⇒ AWS.Request
Creates a related item (comments, tasks, and contacts) and associates it with a case.
- A Related Item is a resource that is associated with a case. It may or may not have an external identifier linking it to an external resource (for example, a
contactArn
). All Related Items have their own internal identifier, therelatedItemArn
. Examples of related items includecomments
andcontacts
. - If you provide a value for
performedBy.userArn
you must also have DescribeUser permission on the ARN of the user that you provide.
</note>
Examples:
Calling the createRelatedItem operation
var params = {
caseId: 'STRING_VALUE', /* required */
content: { /* required */
comment: {
body: 'STRING_VALUE', /* required */
contentType: Text/Plain /* required */
},
contact: {
contactArn: 'STRING_VALUE' /* required */
},
file: {
fileArn: 'STRING_VALUE' /* required */
}
},
domainId: 'STRING_VALUE', /* required */
type: Contact | Comment | File, /* required */
performedBy: {
userArn: 'STRING_VALUE'
}
};
connectcases.createRelatedItem(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: {}) —
caseId
— (String
)
A unique identifier of the case.content
— (map
)
The content of a related item to be created.
*comment
— (map
)
Represents the content of a comment to be returned to agents.
*body
— required — (String
)
Text in the body of aComment
on a case.
*contentType
— required — (String
)
Type of the text in the box of aComment
on a case.
Possible values include:
*"Text/Plain"
*contact
— (map
)
Object representing a contact in Amazon Connect as an API request field.
*contactArn
— required — (String
)
A unique identifier of a contact in Amazon Connect.
*file
— (map
)
A file of related items.
*fileArn
— required — (String
)
The Amazon Resource Name (ARN) of a File in Amazon Connect.domainId
— (String
)
The unique identifier of the Cases domain.performedBy
— (map
)
Represents the creator of the related item.
*userArn
— (String
)
Represents the Amazon Connect ARN of the user.type
— (String
)
The type of a related item.
Possible values include:
*"Contact"
*"Comment"
*"File"
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.
Returns:
createTemplate(params = {}, callback) ⇒ AWS.Request
Creates a template in the Cases domain. This template is used to define the case object model (that is, to define what data can be captured on cases) in a Cases domain. A template must have a unique name within a domain, and it must reference existing field IDs and layout IDs. Additionally, multiple fields with same IDs are not allowed within the same Template. A template can be either Active or Inactive, as indicated by its status. Inactive templates cannot be used to create cases.
Examples:
Calling the createTemplate operation
var params = {
domainId: 'STRING_VALUE', /* required */
name: 'STRING_VALUE', /* required */
description: 'STRING_VALUE',
layoutConfiguration: {
defaultLayout: 'STRING_VALUE'
},
requiredFields: [
{
fieldId: 'STRING_VALUE' /* required */
},
/* more items */
],
status: Active | Inactive
};
connectcases.createTemplate(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
)
A brief description of the template.domainId
— (String
)
The unique identifier of the Cases domain.layoutConfiguration
— (map
)
Configuration of layouts associated to the template.
*defaultLayout
— (String
)
Unique identifier of a layout.name
— (String
)
A name for the template. It must be unique per domain.requiredFields
— (Array<map>
)
A list of fields that must contain a value for a case to be successfully created with this template.
*fieldId
— required — (String
)
Unique identifier of a field.status
— (String
)
The status of the template.
Possible values include:
*"Active"
*"Inactive"
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.
Returns:
deleteDomain(params = {}, callback) ⇒ AWS.Request
Deletes a Cases domain.
<note> <p>After deleting your domain you must disassociate the deleted domain from your Amazon Connect instance with another API call before being able to use Cases again with this Amazon Connect instance. See <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_DeleteIntegrationAssociation.html">DeleteIntegrationAssociation</a>.</p> </note>
Examples:
Calling the deleteDomain operation
var params = {
domainId: 'STRING_VALUE' /* required */
};
connectcases.deleteDomain(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: {}) —
domainId
— (String
)
The unique identifier of the Cases domain.
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.
Returns:
deleteField(params = {}, callback) ⇒ AWS.Request
Deletes a field from a cases template. You can delete up to 100 fields per domain.
After a field is deleted:
- You can still retrieve the field by calling
BatchGetField
. - You cannot update a deleted field by calling
UpdateField
; it throws aValidationException
. - Deleted fields are not included in the
ListFields
response. - Calling
CreateCase
with a deleted field throws aValidationException
denoting which field IDs in the request have been deleted. - Calling
GetCase
with a deleted field ID returns the deleted field's value if one exists. - Calling
UpdateCase
with a deleted field ID throws aValidationException
if the case does not already contain a value for the deleted field. Otherwise it succeeds, allowing you to update or remove (usingemptyValue: {}
) the field's value from the case. GetTemplate
does not return field IDs for deleted fields.GetLayout
does not return field IDs for deleted fields.- Calling
SearchCases
with the deleted field ID as a filter returns any cases that have a value for the deleted field that matches the filter criteria. - Calling
SearchCases
with asearchTerm
value that matches a deleted field's value on a case returns the case in the response. - Calling
BatchPutFieldOptions
with a deleted field ID throw aValidationException
. - Calling
GetCaseEventConfiguration
does not return field IDs for deleted fields.
Examples:
Calling the deleteField operation
var params = {
domainId: 'STRING_VALUE', /* required */
fieldId: 'STRING_VALUE' /* required */
};
connectcases.deleteField(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: {}) —
domainId
— (String
)
The unique identifier of the Cases domain.fieldId
— (String
)
Unique identifier of the field.
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.
Returns:
deleteLayout(params = {}, callback) ⇒ AWS.Request
Deletes a layout from a cases template. You can delete up to 100 layouts per domain.
<p>After a layout is deleted:</p> <ul> <li> <p>You can still retrieve the layout by calling <code>GetLayout</code>.</p> </li> <li> <p>You cannot update a deleted layout by calling <code>UpdateLayout</code>; it throws a <code>ValidationException</code>.</p> </li> <li> <p>Deleted layouts are not included in the <code>ListLayouts</code> response.</p> </li> </ul>
Examples:
Calling the deleteLayout operation
var params = {
domainId: 'STRING_VALUE', /* required */
layoutId: 'STRING_VALUE' /* required */
};
connectcases.deleteLayout(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: {}) —
domainId
— (String
)
The unique identifier of the Cases domain.layoutId
— (String
)
The unique identifier of the layout.
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.
Returns:
deleteTemplate(params = {}, callback) ⇒ AWS.Request
Deletes a cases template. You can delete up to 100 templates per domain.
<p>After a cases template is deleted:</p> <ul> <li> <p>You can still retrieve the template by calling <code>GetTemplate</code>.</p> </li> <li> <p>You cannot update the template. </p> </li> <li> <p>You cannot create a case by using the deleted template.</p> </li> <li> <p>Deleted templates are not included in the <code>ListTemplates</code> response.</p> </li> </ul>
Examples:
Calling the deleteTemplate operation
var params = {
domainId: 'STRING_VALUE', /* required */
templateId: 'STRING_VALUE' /* required */
};
connectcases.deleteTemplate(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: {}) —
domainId
— (String
)
The unique identifier of the Cases domain.templateId
— (String
)
A unique identifier of a template.
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.
Returns:
getCase(params = {}, callback) ⇒ AWS.Request
Returns information about a specific case if it exists.
Examples:
Calling the getCase operation
var params = {
caseId: 'STRING_VALUE', /* required */
domainId: 'STRING_VALUE', /* required */
fields: [ /* required */
{
id: 'STRING_VALUE' /* required */
},
/* more items */
],
nextToken: 'STRING_VALUE'
};
connectcases.getCase(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: {}) —
caseId
— (String
)
A unique identifier of the case.domainId
— (String
)
The unique identifier of the Cases domain.fields
— (Array<map>
)
A list of unique field identifiers.
*id
— required — (String
)
Unique identifier of a field.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.
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.
Returns:
getCaseAuditEvents(params = {}, callback) ⇒ AWS.Request
Returns the audit history about a specific case if it exists.
Examples:
Calling the getCaseAuditEvents operation
var params = {
caseId: 'STRING_VALUE', /* required */
domainId: 'STRING_VALUE', /* required */
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE'
};
connectcases.getCaseAuditEvents(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: {}) —
caseId
— (String
)
A unique identifier of the case.domainId
— (String
)
The unique identifier of the Cases domain.maxResults
— (Integer
)
The maximum number of audit events to return. The current maximum supported value is 25. This is also the default when no other value is provided.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.
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.
Returns:
getCaseEventConfiguration(params = {}, callback) ⇒ AWS.Request
Returns the case event publishing configuration.
Examples:
Calling the getCaseEventConfiguration operation
var params = {
domainId: 'STRING_VALUE' /* required */
};
connectcases.getCaseEventConfiguration(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: {}) —
domainId
— (String
)
The unique identifier of the Cases domain.
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.
Returns:
getDomain(params = {}, callback) ⇒ AWS.Request
Returns information about a specific domain if it exists.
Examples:
Calling the getDomain operation
var params = {
domainId: 'STRING_VALUE' /* required */
};
connectcases.getDomain(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: {}) —
domainId
— (String
)
The unique identifier of the Cases domain.
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.
Returns:
getLayout(params = {}, callback) ⇒ AWS.Request
Returns the details for the requested layout.
Examples:
Calling the getLayout operation
var params = {
domainId: 'STRING_VALUE', /* required */
layoutId: 'STRING_VALUE' /* required */
};
connectcases.getLayout(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: {}) —
domainId
— (String
)
The unique identifier of the Cases domain.layoutId
— (String
)
The unique identifier of the layout.
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.
Returns:
getTemplate(params = {}, callback) ⇒ AWS.Request
Returns the details for the requested template.
Examples:
Calling the getTemplate operation
var params = {
domainId: 'STRING_VALUE', /* required */
templateId: 'STRING_VALUE' /* required */
};
connectcases.getTemplate(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: {}) —
domainId
— (String
)
The unique identifier of the Cases domain.templateId
— (String
)
A unique identifier of a template.
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.
Returns:
listCasesForContact(params = {}, callback) ⇒ AWS.Request
Lists cases for a given contact.
Examples:
Calling the listCasesForContact operation
var params = {
contactArn: 'STRING_VALUE', /* required */
domainId: 'STRING_VALUE', /* required */
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE'
};
connectcases.listCasesForContact(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: {}) —
contactArn
— (String
)
A unique identifier of a contact in Amazon Connect.domainId
— (String
)
The unique identifier of the Cases domain.maxResults
— (Integer
)
The maximum number of results to return per page.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.
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.
Returns:
listDomains(params = {}, callback) ⇒ AWS.Request
Lists all cases domains in the Amazon Web Services account. Each list item is a condensed summary object of the domain.
Examples:
Calling the listDomains operation
var params = {
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE'
};
connectcases.listDomains(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: {}) —
maxResults
— (Integer
)
The maximum number of results to return per page.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.
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.
Returns:
listFieldOptions(params = {}, callback) ⇒ AWS.Request
Lists all of the field options for a field identifier in the domain.
Examples:
Calling the listFieldOptions operation
var params = {
domainId: 'STRING_VALUE', /* required */
fieldId: 'STRING_VALUE', /* required */
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE',
values: [
'STRING_VALUE',
/* more items */
]
};
connectcases.listFieldOptions(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: {}) —
domainId
— (String
)
The unique identifier of the Cases domain.fieldId
— (String
)
The unique identifier of a field.maxResults
— (Integer
)
The maximum number of results to return per page.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.values
— (Array<String>
)
A list ofFieldOption
values to filter on forListFieldOptions
.
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.
Returns:
listFields(params = {}, callback) ⇒ AWS.Request
Lists all fields in a Cases domain.
Examples:
Calling the listFields operation
var params = {
domainId: 'STRING_VALUE', /* required */
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE'
};
connectcases.listFields(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: {}) —
domainId
— (String
)
The unique identifier of the Cases domain.maxResults
— (Integer
)
The maximum number of results to return per page.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.
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.
Returns:
listLayouts(params = {}, callback) ⇒ AWS.Request
Lists all layouts in the given cases domain. Each list item is a condensed summary object of the layout.
Examples:
Calling the listLayouts operation
var params = {
domainId: 'STRING_VALUE', /* required */
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE'
};
connectcases.listLayouts(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: {}) —
domainId
— (String
)
The unique identifier of the Cases domain.maxResults
— (Integer
)
The maximum number of results to return per page.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.
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.
Returns:
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Lists tags for a resource.
Examples:
Calling the listTagsForResource operation
var params = {
arn: 'STRING_VALUE' /* required */
};
connectcases.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: {}) —
arn
— (String
)
The Amazon Resource Name (ARN)
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.
Returns:
listTemplates(params = {}, callback) ⇒ AWS.Request
Lists all of the templates in a Cases domain. Each list item is a condensed summary object of the template.
Examples:
Calling the listTemplates operation
var params = {
domainId: 'STRING_VALUE', /* required */
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE',
status: [
Active | Inactive,
/* more items */
]
};
connectcases.listTemplates(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: {}) —
domainId
— (String
)
The unique identifier of the Cases domain.maxResults
— (Integer
)
The maximum number of results to return per page.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.status
— (Array<String>
)
A list of status values to filter on.
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.
Returns:
putCaseEventConfiguration(params = {}, callback) ⇒ AWS.Request
Adds case event publishing configuration. For a complete list of fields you can add to the event message, see Create case fields in the Amazon Connect Administrator Guide
Examples:
Calling the putCaseEventConfiguration operation
var params = {
domainId: 'STRING_VALUE', /* required */
eventBridge: { /* required */
enabled: true || false, /* required */
includedData: {
caseData: {
fields: [ /* required */
{
id: 'STRING_VALUE' /* required */
},
/* more items */
]
},
relatedItemData: {
includeContent: true || false /* required */
}
}
}
};
connectcases.putCaseEventConfiguration(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: {}) —
domainId
— (String
)
The unique identifier of the Cases domain.eventBridge
— (map
)
Configuration to enable EventBridge case event delivery and determine what data is delivered.
*enabled
— required — (Boolean
)
Indicates whether the to broadcast case event data to the customer.
*includedData
— (map
)
Details of what case and related item data is published through the case event stream.
*caseData
— (map
)
Details of what case data is published through the case event stream.
*fields
— required — (Array<map>
)
List of field identifiers.
*id
— required — (String
)
Unique identifier of a field.
*relatedItemData
— (map
)
Details of what related item data is published through the case event stream.
*includeContent
— required — (Boolean
)
Details of what related item data is published through the case event 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.
Returns:
searchCases(params = {}, callback) ⇒ AWS.Request
Searches for cases within their associated Cases domain. Search results are returned as a paginated list of abridged case documents.
Note: For customer_id
you must provide the full customer profile ARN in this format: arn:aws:profile:your AWS Region:your AWS account ID:domains/profiles domain name/profiles/profile ID
.
Examples:
Calling the searchCases operation
var params = {
domainId: 'STRING_VALUE', /* required */
fields: [
{
id: 'STRING_VALUE' /* required */
},
/* more items */
],
filter: { /* CaseFilter */
andAll: [
/* recursive CaseFilter */,
/* more items */
],
field: {
contains: {
id: 'STRING_VALUE', /* required */
value: { /* required */
booleanValue: true || false,
doubleValue: 'NUMBER_VALUE',
emptyValue: {
},
stringValue: 'STRING_VALUE',
userArnValue: 'STRING_VALUE'
}
},
equalTo: {
id: 'STRING_VALUE', /* required */
value: { /* required */
booleanValue: true || false,
doubleValue: 'NUMBER_VALUE',
emptyValue: {
},
stringValue: 'STRING_VALUE',
userArnValue: 'STRING_VALUE'
}
},
greaterThan: {
id: 'STRING_VALUE', /* required */
value: { /* required */
booleanValue: true || false,
doubleValue: 'NUMBER_VALUE',
emptyValue: {
},
stringValue: 'STRING_VALUE',
userArnValue: 'STRING_VALUE'
}
},
greaterThanOrEqualTo: {
id: 'STRING_VALUE', /* required */
value: { /* required */
booleanValue: true || false,
doubleValue: 'NUMBER_VALUE',
emptyValue: {
},
stringValue: 'STRING_VALUE',
userArnValue: 'STRING_VALUE'
}
},
lessThan: {
id: 'STRING_VALUE', /* required */
value: { /* required */
booleanValue: true || false,
doubleValue: 'NUMBER_VALUE',
emptyValue: {
},
stringValue: 'STRING_VALUE',
userArnValue: 'STRING_VALUE'
}
},
lessThanOrEqualTo: {
id: 'STRING_VALUE', /* required */
value: { /* required */
booleanValue: true || false,
doubleValue: 'NUMBER_VALUE',
emptyValue: {
},
stringValue: 'STRING_VALUE',
userArnValue: 'STRING_VALUE'
}
}
},
not: /* recursive CaseFilter */,
orAll: [
/* recursive CaseFilter */,
/* more items */
]
},
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE',
searchTerm: 'STRING_VALUE',
sorts: [
{
fieldId: 'STRING_VALUE', /* required */
sortOrder: Asc | Desc /* required */
},
/* more items */
]
};
connectcases.searchCases(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: {}) —
domainId
— (String
)
The unique identifier of the Cases domain.fields
— (Array<map>
)
The list of field identifiers to be returned as part of the response.
*id
— required — (String
)
Unique identifier of a field.filter
— (map
)
A list of filter objects.
*andAll
— (Array<map>
)
Provides "and all" filtering.
*field
— (map
)
A list of fields to filter on.
*contains
— (map
)
Object containing field identifier and value information.
*id
— required — (String
)
Unique identifier of a field.
*value
— required — (map
)
Union of potential field value types.
*booleanValue
— (Boolean
)
Can be either null, or have a Boolean value type. Only one value can be provided.
*doubleValue
— (Float
)
Can be either null, or have a Double number value type. Only one value can be provided.
*emptyValue
— (map
)
An empty value.
*stringValue
— (String
)
String value type.
*userArnValue
— (String
)
Represents the user that performed the audit.
*equalTo
— (map
)
Object containing field identifier and value information.
*id
— required — (String
)
Unique identifier of a field.
*value
— required — (map
)
Union of potential field value types.
*booleanValue
— (Boolean
)
Can be either null, or have a Boolean value type. Only one value can be provided.
*doubleValue
— (Float
)
Can be either null, or have a Double number value type. Only one value can be provided.
*emptyValue
— (map
)
An empty value.
*stringValue
— (String
)
String value type.
*userArnValue
— (String
)
Represents the user that performed the audit.
*greaterThan
— (map
)
Object containing field identifier and value information.
*id
— required — (String
)
Unique identifier of a field.
*value
— required — (map
)
Union of potential field value types.
*booleanValue
— (Boolean
)
Can be either null, or have a Boolean value type. Only one value can be provided.
*doubleValue
— (Float
)
Can be either null, or have a Double number value type. Only one value can be provided.
*emptyValue
— (map
)
An empty value.
*stringValue
— (String
)
String value type.
*userArnValue
— (String
)
Represents the user that performed the audit.
*greaterThanOrEqualTo
— (map
)
Object containing field identifier and value information.
*id
— required — (String
)
Unique identifier of a field.
*value
— required — (map
)
Union of potential field value types.
*booleanValue
— (Boolean
)
Can be either null, or have a Boolean value type. Only one value can be provided.
*doubleValue
— (Float
)
Can be either null, or have a Double number value type. Only one value can be provided.
*emptyValue
— (map
)
An empty value.
*stringValue
— (String
)
String value type.
*userArnValue
— (String
)
Represents the user that performed the audit.
*lessThan
— (map
)
Object containing field identifier and value information.
*id
— required — (String
)
Unique identifier of a field.
*value
— required — (map
)
Union of potential field value types.
*booleanValue
— (Boolean
)
Can be either null, or have a Boolean value type. Only one value can be provided.
*doubleValue
— (Float
)
Can be either null, or have a Double number value type. Only one value can be provided.
*emptyValue
— (map
)
An empty value.
*stringValue
— (String
)
String value type.
*userArnValue
— (String
)
Represents the user that performed the audit.
*lessThanOrEqualTo
— (map
)
Object containing field identifier and value information.
*id
— required — (String
)
Unique identifier of a field.
*value
— required — (map
)
Union of potential field value types.
*booleanValue
— (Boolean
)
Can be either null, or have a Boolean value type. Only one value can be provided.
*doubleValue
— (Float
)
Can be either null, or have a Double number value type. Only one value can be provided.
*emptyValue
— (map
)
An empty value.
*stringValue
— (String
)
String value type.
*userArnValue
— (String
)
Represents the user that performed the audit.
*orAll
— (Array<map>
)
Provides "or all" filtering.
*field
— (map
)
A list of fields to filter on.
*contains
— (map
)
Object containing field identifier and value information.
*id
— required — (String
)
Unique identifier of a field.
*value
— required — (map
)
Union of potential field value types.
*booleanValue
— (Boolean
)
Can be either null, or have a Boolean value type. Only one value can be provided.
*doubleValue
— (Float
)
Can be either null, or have a Double number value type. Only one value can be provided.
*emptyValue
— (map
)
An empty value.
*stringValue
— (String
)
String value type.
*userArnValue
— (String
)
Represents the user that performed the audit.
*equalTo
— (map
)
Object containing field identifier and value information.
*id
— required — (String
)
Unique identifier of a field.
*value
— required — (map
)
Union of potential field value types.
*booleanValue
— (Boolean
)
Can be either null, or have a Boolean value type. Only one value can be provided.
*doubleValue
— (Float
)
Can be either null, or have a Double number value type. Only one value can be provided.
*emptyValue
— (map
)
An empty value.
*stringValue
— (String
)
String value type.
*userArnValue
— (String
)
Represents the user that performed the audit.
*greaterThan
— (map
)
Object containing field identifier and value information.
*id
— required — (String
)
Unique identifier of a field.
*value
— required — (map
)
Union of potential field value types.
*booleanValue
— (Boolean
)
Can be either null, or have a Boolean value type. Only one value can be provided.
*doubleValue
— (Float
)
Can be either null, or have a Double number value type. Only one value can be provided.
*emptyValue
— (map
)
An empty value.
*stringValue
— (String
)
String value type.
*userArnValue
— (String
)
Represents the user that performed the audit.
*greaterThanOrEqualTo
— (map
)
Object containing field identifier and value information.
*id
— required — (String
)
Unique identifier of a field.
*value
— required — (map
)
Union of potential field value types.
*booleanValue
— (Boolean
)
Can be either null, or have a Boolean value type. Only one value can be provided.
*doubleValue
— (Float
)
Can be either null, or have a Double number value type. Only one value can be provided.
*emptyValue
— (map
)
An empty value.
*stringValue
— (String
)
String value type.
*userArnValue
— (String
)
Represents the user that performed the audit.
*lessThan
— (map
)
Object containing field identifier and value information.
*id
— required — (String
)
Unique identifier of a field.
*value
— required — (map
)
Union of potential field value types.
*booleanValue
— (Boolean
)
Can be either null, or have a Boolean value type. Only one value can be provided.
*doubleValue
— (Float
)
Can be either null, or have a Double number value type. Only one value can be provided.
*emptyValue
— (map
)
An empty value.
*stringValue
— (String
)
String value type.
*userArnValue
— (String
)
Represents the user that performed the audit.
*lessThanOrEqualTo
— (map
)
Object containing field identifier and value information.
*id
— required — (String
)
Unique identifier of a field.
*value
— required — (map
)
Union of potential field value types.
*booleanValue
— (Boolean
)
Can be either null, or have a Boolean value type. Only one value can be provided.
*doubleValue
— (Float
)
Can be either null, or have a Double number value type. Only one value can be provided.
*emptyValue
— (map
)
An empty value.
*stringValue
— (String
)
String value type.
*userArnValue
— (String
)
Represents the user that performed the audit.
*not
— (map
)
A filter for cases. Only one value can be provided.
*andAll
— (Array<map>
)
Provides "and all" filtering.
*field
— (map
)
A list of fields to filter on.
*contains
— (map
)
Object containing field identifier and value information.
*id
— required — (String
)
Unique identifier of a field.
*value
— required — (map
)
Union of potential field value types.
*booleanValue
— (Boolean
)
Can be either null, or have a Boolean value type. Only one value can be provided.
*doubleValue
— (Float
)
Can be either null, or have a Double number value type. Only one value can be provided.
*emptyValue
— (map
)
An empty value.
*stringValue
— (String
)
String value type.
*userArnValue
— (String
)
Represents the user that performed the audit.
*equalTo
— (map
)
Object containing field identifier and value information.
*id
— required — (String
)
Unique identifier of a field.
*value
— required — (map
)
Union of potential field value types.
*booleanValue
— (Boolean
)
Can be either null, or have a Boolean value type. Only one value can be provided.
*doubleValue
— (Float
)
Can be either null, or have a Double number value type. Only one value can be provided.
*emptyValue
— (map
)
An empty value.
*stringValue
— (String
)
String value type.
*userArnValue
— (String
)
Represents the user that performed the audit.
*greaterThan
— (map
)
Object containing field identifier and value information.
*id
— required — (String
)
Unique identifier of a field.
*value
— required — (map
)
Union of potential field value types.
*booleanValue
— (Boolean
)
Can be either null, or have a Boolean value type. Only one value can be provided.
*doubleValue
— (Float
)
Can be either null, or have a Double number value type. Only one value can be provided.
*emptyValue
— (map
)
An empty value.
*stringValue
— (String
)
String value type.
*userArnValue
— (String
)
Represents the user that performed the audit.
*greaterThanOrEqualTo
— (map
)
Object containing field identifier and value information.
*id
— required — (String
)
Unique identifier of a field.
*value
— required — (map
)
Union of potential field value types.
*booleanValue
— (Boolean
)
Can be either null, or have a Boolean value type. Only one value can be provided.
*doubleValue
— (Float
)
Can be either null, or have a Double number value type. Only one value can be provided.
*emptyValue
— (map
)
An empty value.
*stringValue
— (String
)
String value type.
*userArnValue
— (String
)
Represents the user that performed the audit.
*lessThan
— (map
)
Object containing field identifier and value information.
*id
— required — (String
)
Unique identifier of a field.
*value
— required — (map
)
Union of potential field value types.
*booleanValue
— (Boolean
)
Can be either null, or have a Boolean value type. Only one value can be provided.
*doubleValue
— (Float
)
Can be either null, or have a Double number value type. Only one value can be provided.
*emptyValue
— (map
)
An empty value.
*stringValue
— (String
)
String value type.
*userArnValue
— (String
)
Represents the user that performed the audit.
*lessThanOrEqualTo
— (map
)
Object containing field identifier and value information.
*id
— required — (String
)
Unique identifier of a field.
*value
— required — (map
)
Union of potential field value types.
*booleanValue
— (Boolean
)
Can be either null, or have a Boolean value type. Only one value can be provided.
*doubleValue
— (Float
)
Can be either null, or have a Double number value type. Only one value can be provided.
*emptyValue
— (map
)
An empty value.
*stringValue
— (String
)
String value type.
*userArnValue
— (String
)
Represents the user that performed the audit.
*orAll
— (Array<map>
)
Provides "or all" filtering.
*orAll
— (Array<map>
)
Provides "or all" filtering.
*andAll
— (Array<map>
)
Provides "and all" filtering.
*field
— (map
)
A list of fields to filter on.
*contains
— (map
)
Object containing field identifier and value information.
*id
— required — (String
)
Unique identifier of a field.
*value
— required — (map
)
Union of potential field value types.
*booleanValue
— (Boolean
)
Can be either null, or have a Boolean value type. Only one value can be provided.
*doubleValue
— (Float
)
Can be either null, or have a Double number value type. Only one value can be provided.
*emptyValue
— (map
)
An empty value.
*stringValue
— (String
)
String value type.
*userArnValue
— (String
)
Represents the user that performed the audit.
*equalTo
— (map
)
Object containing field identifier and value information.
*id
— required — (String
)
Unique identifier of a field.
*value
— required — (map
)
Union of potential field value types.
*booleanValue
— (Boolean
)
Can be either null, or have a Boolean value type. Only one value can be provided.
*doubleValue
— (Float
)
Can be either null, or have a Double number value type. Only one value can be provided.
*emptyValue
— (map
)
An empty value.
*stringValue
— (String
)
String value type.
*userArnValue
— (String
)
Represents the user that performed the audit.
*greaterThan
— (map
)
Object containing field identifier and value information.
*id
— required — (String
)
Unique identifier of a field.
*value
— required — (map
)
Union of potential field value types.
*booleanValue
— (Boolean
)
Can be either null, or have a Boolean value type. Only one value can be provided.
*doubleValue
— (Float
)
Can be either null, or have a Double number value type. Only one value can be provided.
*emptyValue
— (map
)
An empty value.
*stringValue
— (String
)
String value type.
*userArnValue
— (String
)
Represents the user that performed the audit.
*greaterThanOrEqualTo
— (map
)
Object containing field identifier and value information.
*id
— required — (String
)
Unique identifier of a field.
*value
— required — (map
)
Union of potential field value types.
*booleanValue
— (Boolean
)
Can be either null, or have a Boolean value type. Only one value can be provided.
*doubleValue
— (Float
)
Can be either null, or have a Double number value type. Only one value can be provided.
*emptyValue
— (map
)
An empty value.
*stringValue
— (String
)
String value type.
*userArnValue
— (String
)
Represents the user that performed the audit.
*lessThan
— (map
)
Object containing field identifier and value information.
*id
— required — (String
)
Unique identifier of a field.
*value
— required — (map
)
Union of potential field value types.
*booleanValue
— (Boolean
)
Can be either null, or have a Boolean value type. Only one value can be provided.
*doubleValue
— (Float
)
Can be either null, or have a Double number value type. Only one value can be provided.
*emptyValue
— (map
)
An empty value.
*stringValue
— (String
)
String value type.
*userArnValue
— (String
)
Represents the user that performed the audit.
*lessThanOrEqualTo
— (map
)
Object containing field identifier and value information.
*id
— required — (String
)
Unique identifier of a field.
*value
— required — (map
)
Union of potential field value types.
*booleanValue
— (Boolean
)
Can be either null, or have a Boolean value type. Only one value can be provided.
*doubleValue
— (Float
)
Can be either null, or have a Double number value type. Only one value can be provided.
*emptyValue
— (map
)
An empty value.
*stringValue
— (String
)
String value type.
*userArnValue
— (String
)
Represents the user that performed the audit.maxResults
— (Integer
)
The maximum number of cases to return. The current maximum supported value is 25. This is also the default value when no other value is provided.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.searchTerm
— (String
)
A word or phrase used to perform a quick search.sorts
— (Array<map>
)
A list of sorts where each sort specifies a field and their sort order to be applied to the results.
*fieldId
— required — (String
)
Unique identifier of a field.
*sortOrder
— required — (String
)
A structured set of sort terms
Possible values include:
*"Asc"
*"Desc"
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.
Returns:
searchRelatedItems(params = {}, callback) ⇒ AWS.Request
Searches for related items that are associated with a case.
Note: If no filters are provided, this returns all related items associated with a case.
Examples:
Calling the searchRelatedItems operation
var params = {
caseId: 'STRING_VALUE', /* required */
domainId: 'STRING_VALUE', /* required */
filters: [
{
comment: {
},
contact: {
channel: [
'STRING_VALUE',
/* more items */
],
contactArn: 'STRING_VALUE'
},
file: {
fileArn: 'STRING_VALUE'
}
},
/* more items */
],
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE'
};
connectcases.searchRelatedItems(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: {}) —
caseId
— (String
)
A unique identifier of the case.domainId
— (String
)
The unique identifier of the Cases domain.filters
— (Array<map>
)
The list of types of related items and their parameters to use for filtering.
*comment
— (map
)
A filter for related items of typeComment
.
*contact
— (map
)
A filter for related items of typeContact
.
*channel
— (Array<String>
)
A list of channels to filter on for related items of typeContact
.
*contactArn
— (String
)
A unique identifier of a contact in Amazon Connect.
*file
— (map
)
A filter for related items of this type ofFile
.
*fileArn
— (String
)
The Amazon Resource Name (ARN) of the file.maxResults
— (Integer
)
The maximum number of results to return per page.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.
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.
Returns:
tagResource(params = {}, callback) ⇒ AWS.Request
Adds tags to a resource.
Examples:
Calling the tagResource operation
var params = {
arn: 'STRING_VALUE', /* required */
tags: { /* required */
'<String>': 'STRING_VALUE',
/* '<String>': ... */
}
};
connectcases.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: {}) —
arn
— (String
)
The Amazon Resource Name (ARN)tags
— (map<String>
)
A map of of key-value pairs that represent tags on a resource. Tags are 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.
Returns:
untagResource(params = {}, callback) ⇒ AWS.Request
Untags a resource.
Examples:
Calling the untagResource operation
var params = {
arn: 'STRING_VALUE', /* required */
tagKeys: [ /* required */
'STRING_VALUE',
/* more items */
]
};
connectcases.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: {}) —
arn
— (String
)
The Amazon Resource Name (ARN)tagKeys
— (Array<String>
)
List of 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.
Returns:
updateCase(params = {}, callback) ⇒ AWS.Request
Note: If you provide a value for PerformedBy.UserArn
you must also have connect:DescribeUser permission on the User ARN resource that you provide
<p>Updates the values of fields on a case. Fields to be updated are received as an array of id/value pairs identical to the <code>CreateCase</code> input .</p> <p>If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.</p>
Examples:
Calling the updateCase operation
var params = {
caseId: 'STRING_VALUE', /* required */
domainId: 'STRING_VALUE', /* required */
fields: [ /* required */
{
id: 'STRING_VALUE', /* required */
value: { /* required */
booleanValue: true || false,
doubleValue: 'NUMBER_VALUE',
emptyValue: {
},
stringValue: 'STRING_VALUE',
userArnValue: 'STRING_VALUE'
}
},
/* more items */
],
performedBy: {
userArn: 'STRING_VALUE'
}
};
connectcases.updateCase(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: {}) —
caseId
— (String
)
A unique identifier of the case.domainId
— (String
)
The unique identifier of the Cases domain.fields
— (Array<map>
)
An array of objects withfieldId
(matching ListFields/DescribeField) and value union data, structured identical toCreateCase
.
*id
— required — (String
)
Unique identifier of a field.
*value
— required — (map
)
Union of potential field value types.
*booleanValue
— (Boolean
)
Can be either null, or have a Boolean value type. Only one value can be provided.
*doubleValue
— (Float
)
Can be either null, or have a Double number value type. Only one value can be provided.
*emptyValue
— (map
)
An empty value.
*stringValue
— (String
)
String value type.
*userArnValue
— (String
)
Represents the user that performed the audit.performedBy
— (map
)
Represents the identity of the person who performed the action.
*userArn
— (String
)
Represents the Amazon Connect ARN 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.
Returns:
updateField(params = {}, callback) ⇒ AWS.Request
Updates the properties of an existing field.
Examples:
Calling the updateField operation
var params = {
domainId: 'STRING_VALUE', /* required */
fieldId: 'STRING_VALUE', /* required */
description: 'STRING_VALUE',
name: 'STRING_VALUE'
};
connectcases.updateField(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 a field.domainId
— (String
)
The unique identifier of the Cases domain.fieldId
— (String
)
The unique identifier of a field.name
— (String
)
The name of the field.
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.
Returns:
updateLayout(params = {}, callback) ⇒ AWS.Request
Updates the attributes of an existing layout.
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
A ValidationException
is returned when you add non-existent fieldIds
to a layout.
Note: Title and Status fields cannot be part of layouts because they are not configurable.
Examples:
Calling the updateLayout operation
var params = {
domainId: 'STRING_VALUE', /* required */
layoutId: 'STRING_VALUE', /* required */
content: {
basic: {
moreInfo: {
sections: [
{
fieldGroup: {
fields: [ /* required */
{
id: 'STRING_VALUE' /* required */
},
/* more items */
],
name: 'STRING_VALUE'
}
},
/* more items */
]
},
topPanel: {
sections: [
{
fieldGroup: {
fields: [ /* required */
{
id: 'STRING_VALUE' /* required */
},
/* more items */
],
name: 'STRING_VALUE'
}
},
/* more items */
]
}
}
},
name: 'STRING_VALUE'
};
connectcases.updateLayout(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: {}) —
content
— (map
)
Information about which fields will be present in the layout, the order of the fields.
*basic
— (map
)
Content specific toBasicLayout
type. It configures fields in the top panel and More Info tab of Cases user interface.
*moreInfo
— (map
)
This represents sections in a tab of the page layout.
*sections
— (Array<map>
)
Ordered list containing different kinds of sections that can be added.
*fieldGroup
— (map
)
Consists of a group of fields and associated properties.
*fields
— required — (Array<map>
)
Represents an ordered list containing field related information.
*id
— required — (String
)
Unique identifier of a field.
*name
— (String
)
Name of the field group.
*topPanel
— (map
)
This represents sections in a panel of the page layout.
*sections
— (Array<map>
)
Ordered list containing different kinds of sections that can be added.
*fieldGroup
— (map
)
Consists of a group of fields and associated properties.
*fields
— required — (Array<map>
)
Represents an ordered list containing field related information.
*id
— required — (String
)
Unique identifier of a field.
*name
— (String
)
Name of the field group.domainId
— (String
)
The unique identifier of the Cases domain.layoutId
— (String
)
The unique identifier of the layout.name
— (String
)
The name of the layout. It must be unique per domain.
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.
Returns:
updateTemplate(params = {}, callback) ⇒ AWS.Request
Updates the attributes of an existing template. The template attributes that can be modified include name
, description
, layoutConfiguration
, requiredFields
, and status
. At least one of these attributes must not be null. If a null value is provided for a given attribute, that attribute is ignored and its current value is preserved.
Examples:
Calling the updateTemplate operation
var params = {
domainId: 'STRING_VALUE', /* required */
templateId: 'STRING_VALUE', /* required */
description: 'STRING_VALUE',
layoutConfiguration: {
defaultLayout: 'STRING_VALUE'
},
name: 'STRING_VALUE',
requiredFields: [
{
fieldId: 'STRING_VALUE' /* required */
},
/* more items */
],
status: Active | Inactive
};
connectcases.updateTemplate(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
)
A brief description of the template.domainId
— (String
)
The unique identifier of the Cases domain.layoutConfiguration
— (map
)
Configuration of layouts associated to the template.
*defaultLayout
— (String
)
Unique identifier of a layout.name
— (String
)
The name of the template. It must be unique per domain.requiredFields
— (Array<map>
)
A list of fields that must contain a value for a case to be successfully created with this template.
*fieldId
— required — (String
)
Unique identifier of a field.status
— (String
)
The status of the template.
Possible values include:
*"Active"
*"Inactive"
templateId
— (String
)
A unique identifier for the template.
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.
Returns:
```` `````