Table of Contents
ConnectCases.
Client
¶A low-level client representing Amazon Connect Cases (ConnectCases)
Welcome to the Amazon Connect Cases API Reference. This guide provides information about the Amazon Connect Cases API, which you can use to create, update, get, and list Cases domains, fields, field options, layouts, templates, cases, related items, and tags.
<p>For more information about Amazon Connect Cases, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/cases.html">Amazon Connect Cases</a> in the <i>Amazon Connect Administrator Guide</i>. </p>
import boto3 client = boto3.client('connectcases')
These are the available methods:
batch_get_field()
batch_put_field_options()
can_paginate()
close()
create_case()
create_domain()
create_field()
create_layout()
create_related_item()
create_template()
get_case()
get_case_event_configuration()
get_domain()
get_layout()
get_paginator()
get_template()
get_waiter()
list_cases_for_contact()
list_domains()
list_field_options()
list_fields()
list_layouts()
list_tags_for_resource()
list_templates()
put_case_event_configuration()
search_cases()
search_related_items()
tag_resource()
untag_resource()
update_case()
update_field()
update_layout()
update_template()
batch_get_field
(**kwargs)¶Returns the description for the list of fields in the request parameters.
See also: AWS API Documentation
Request Syntax
response = client.batch_get_field(
domainId='string',
fields=[
{
'id': 'string'
},
]
)
[REQUIRED]
The unique identifier of the Cases domain.
[REQUIRED]
A list of unique field identifiers.
Object for unique identifier of a field.
Unique identifier of a field.
dict
Response Syntax
{
'errors': [
{
'errorCode': 'string',
'id': 'string',
'message': 'string'
},
],
'fields': [
{
'description': 'string',
'fieldArn': 'string',
'fieldId': 'string',
'name': 'string',
'namespace': 'System'|'Custom',
'tags': {
'string': 'string'
},
'type': 'Text'|'Number'|'Boolean'|'DateTime'|'SingleSelect'
},
]
}
Response Structure
(dict) --
errors (list) --
A list of field errors.
(dict) --
Object for errors on fields.
errorCode (string) --
The error code from getting a field.
id (string) --
The field identifier that caused the error.
message (string) --
The error message from getting a field.
fields (list) --
A list of detailed field information.
(dict) --
Object to store detailed field information.
description (string) --
Description of the field.
fieldArn (string) --
The Amazon Resource Name (ARN) of the field.
fieldId (string) --
Unique identifier of the field.
name (string) --
Name of the field.
namespace (string) --
Namespace of the field.
tags (dict) --
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.
type (string) --
Type of the field.
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
batch_put_field_options
(**kwargs)¶Creates and updates a set of field options for a single select field in a Cases domain.
See also: AWS API Documentation
Request Syntax
response = client.batch_put_field_options(
domainId='string',
fieldId='string',
options=[
{
'active': True|False,
'name': 'string',
'value': 'string'
},
]
)
[REQUIRED]
The unique identifier of the Cases domain.
[REQUIRED]
The unique identifier of a field.
[REQUIRED]
A list of FieldOption
objects.
Object for field Options information.
Describes whether the FieldOption
is active (displayed) or inactive.
FieldOptionName
has max length 100 and disallows trailing spaces.
FieldOptionValue
has max length 100 and must be alphanumeric with hyphens and underscores.
dict
Response Syntax
{
'errors': [
{
'errorCode': 'string',
'message': 'string',
'value': 'string'
},
]
}
Response Structure
(dict) --
errors (list) --
A list of field errors.
(dict) --
Object for field Options errors.
errorCode (string) --
Error code from creating or updating field option.
message (string) --
Error message from creating or updating field option.
value (string) --
The field option value that caused the error.
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
ConnectCases.Client.exceptions.ServiceQuotaExceededException
can_paginate
(operation_name)¶Check if an operation can be paginated.
create_foo
, and you'd normally invoke the
operation as client.create_foo(**kwargs)
, if the
create_foo
operation can be paginated, you can use the
call client.get_paginator("create_foo")
.True
if the operation can be paginated,
False
otherwise.close
()¶Closes underlying endpoint connections.
create_case
(**kwargs)¶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.
Note
customer_id
is a required field when creating a case.
See also: AWS API Documentation
Request Syntax
response = client.create_case(
clientToken='string',
domainId='string',
fields=[
{
'id': 'string',
'value': {
'booleanValue': True|False,
'doubleValue': 123.0,
'stringValue': 'string'
}
},
],
templateId='string'
)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
This field is autopopulated if not provided.
[REQUIRED]
The unique identifier of the Cases domain.
[REQUIRED]
An array of objects with field ID (matching ListFields/DescribeField) and value union data.
Object for case field values.
Unique identifier of a field.
Union of potential field value types.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: booleanValue
, doubleValue
, stringValue
.
Can be either null, or have a Boolean value type. Only one value can be provided.
Can be either null, or have a Double number value type. Only one value can be provided.
String value type.
[REQUIRED]
A unique identifier of a template.
dict
Response Syntax
{
'caseArn': 'string',
'caseId': 'string'
}
Response Structure
(dict) --
caseArn (string) --
The Amazon Resource Name (ARN) of the case.
caseId (string) --
A unique identifier of the case.
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
ConnectCases.Client.exceptions.ConflictException
create_domain
(**kwargs)¶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.
Warning
This will not associate your connect instance to Cases domain. Instead, use the Amazon Connect CreateIntegrationAssociation API.
See also: AWS API Documentation
Request Syntax
response = client.create_domain(
name='string'
)
[REQUIRED]
The name for your Cases domain. It must be unique for your Amazon Web Services account.
{
'domainArn': 'string',
'domainId': 'string',
'domainStatus': 'Active'|'CreationInProgress'|'CreationFailed'
}
Response Structure
The Amazon Resource Name (ARN) for the Cases domain.
The unique identifier of the Cases domain.
The status of the domain.
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
ConnectCases.Client.exceptions.ConflictException
ConnectCases.Client.exceptions.ServiceQuotaExceededException
create_field
(**kwargs)¶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.
See also: AWS API Documentation
Request Syntax
response = client.create_field(
description='string',
domainId='string',
name='string',
type='Text'|'Number'|'Boolean'|'DateTime'|'SingleSelect'
)
[REQUIRED]
The unique identifier of the Cases domain.
[REQUIRED]
The name of the field.
[REQUIRED]
Defines the data type, some system constraints, and default display of the field.
dict
Response Syntax
{
'fieldArn': 'string',
'fieldId': 'string'
}
Response Structure
(dict) --
fieldArn (string) --
The Amazon Resource Name (ARN) of the field.
fieldId (string) --
The unique identifier of a field.
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
ConnectCases.Client.exceptions.ConflictException
ConnectCases.Client.exceptions.ServiceQuotaExceededException
create_layout
(**kwargs)¶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:
Note
Title and Status fields cannot be part of layouts since they are not configurable.
See also: AWS API Documentation
Request Syntax
response = client.create_layout(
content={
'basic': {
'moreInfo': {
'sections': [
{
'fieldGroup': {
'fields': [
{
'id': 'string'
},
],
'name': 'string'
}
},
]
},
'topPanel': {
'sections': [
{
'fieldGroup': {
'fields': [
{
'id': 'string'
},
],
'name': 'string'
}
},
]
}
}
},
domainId='string',
name='string'
)
[REQUIRED]
Information about which fields will be present in the layout, and information about the order of the fields.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: basic
.
Content specific to BasicLayout
type. It configures fields in the top panel and More Info tab of Cases user interface.
This represents sections in a tab of the page layout.
Ordered list containing different kinds of sections that can be added.
This represents a sections within a panel or tab of the page layout.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: fieldGroup
.
Consists of a group of fields and associated properties.
Represents an ordered list containing field related information.
Object for field related information.
Unique identifier of a field.
Name of the field group.
This represents sections in a panel of the page layout.
Ordered list containing different kinds of sections that can be added.
This represents a sections within a panel or tab of the page layout.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: fieldGroup
.
Consists of a group of fields and associated properties.
Represents an ordered list containing field related information.
Object for field related information.
Unique identifier of a field.
Name of the field group.
[REQUIRED]
The unique identifier of the Cases domain.
[REQUIRED]
The name of the layout. It must be unique for the Cases domain.
dict
Response Syntax
{
'layoutArn': 'string',
'layoutId': 'string'
}
Response Structure
(dict) --
layoutArn (string) --
The Amazon Resource Name (ARN) of the newly created layout.
layoutId (string) --
The unique identifier of the layout.
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
ConnectCases.Client.exceptions.ConflictException
ConnectCases.Client.exceptions.ServiceQuotaExceededException
Creates a related item (comments, tasks, and contacts) and associates it with a case.
Note
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, the relatedItemArn
. Examples of related items include comments
and contacts
.
See also: AWS API Documentation
Request Syntax
response = client.create_related_item(
caseId='string',
content={
'comment': {
'body': 'string',
'contentType': 'Text/Plain'
},
'contact': {
'contactArn': 'string'
}
},
domainId='string',
type='Contact'|'Comment'
)
[REQUIRED]
A unique identifier of the case.
[REQUIRED]
The content of a related item to be created.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: comment
, contact
.
Represents the content of a comment to be returned to agents.
Text in the body of a Comment
on a case.
Type of the text in the box of a Comment
on a case.
Object representing a contact in Amazon Connect as an API request field.
A unique identifier of a contact in Amazon Connect.
[REQUIRED]
The unique identifier of the Cases domain.
[REQUIRED]
The type of a related item.
dict
Response Syntax
{
'relatedItemArn': 'string',
'relatedItemId': 'string'
}
Response Structure
(dict) --
relatedItemArn (string) --
The Amazon Resource Name (ARN) of the related item.
relatedItemId (string) --
The unique identifier of the related item.
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
ConnectCases.Client.exceptions.ServiceQuotaExceededException
create_template
(**kwargs)¶Creates a template in the Cases domain. This template is used to define the case object model (that is, 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.
See also: AWS API Documentation
Request Syntax
response = client.create_template(
description='string',
domainId='string',
layoutConfiguration={
'defaultLayout': 'string'
},
name='string',
requiredFields=[
{
'fieldId': 'string'
},
]
)
[REQUIRED]
The unique identifier of the Cases domain.
Configuration of layouts associated to the template.
Unique identifier of a layout.
[REQUIRED]
A name for the template. It must be unique per domain.
A list of fields that must contain a value for a case to be successfully created with this template.
List of fields that must have a value provided to create a case.
Unique identifier of a field.
dict
Response Syntax
{
'templateArn': 'string',
'templateId': 'string'
}
Response Structure
(dict) --
templateArn (string) --
The Amazon Resource Name (ARN) of the newly created template.
templateId (string) --
A unique identifier of a template.
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
ConnectCases.Client.exceptions.ConflictException
ConnectCases.Client.exceptions.ServiceQuotaExceededException
get_case
(**kwargs)¶Returns information about a specific case if it exists.
See also: AWS API Documentation
Request Syntax
response = client.get_case(
caseId='string',
domainId='string',
fields=[
{
'id': 'string'
},
],
nextToken='string'
)
[REQUIRED]
A unique identifier of the case.
[REQUIRED]
The unique identifier of the Cases domain.
[REQUIRED]
A list of unique field identifiers.
Object for unique identifier of a field.
Unique identifier of a field.
dict
Response Syntax
{
'fields': [
{
'id': 'string',
'value': {
'booleanValue': True|False,
'doubleValue': 123.0,
'stringValue': 'string'
}
},
],
'nextToken': 'string',
'tags': {
'string': 'string'
},
'templateId': 'string'
}
Response Structure
(dict) --
fields (list) --
A list of detailed field information.
(dict) --
Object for case field values.
id (string) --
Unique identifier of a field.
value (dict) --
Union of potential field value types.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set: booleanValue
, doubleValue
, stringValue
. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER
is as follows:
'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
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.
stringValue (string) --
String value type.
nextToken (string) --
The token for the next set of results. This is null if there are no more results to return.
tags (dict) --
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.
templateId (string) --
A unique identifier of a template.
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
get_case_event_configuration
(**kwargs)¶Returns the case event publishing configuration.
See also: AWS API Documentation
Request Syntax
response = client.get_case_event_configuration(
domainId='string'
)
[REQUIRED]
The unique identifier of the Cases domain.
{
'eventBridge': {
'enabled': True|False,
'includedData': {
'caseData': {
'fields': [
{
'id': 'string'
},
]
},
'relatedItemData': {
'includeContent': True|False
}
}
}
}
Response Structure
Configuration to enable EventBridge case event delivery and determine what data is delivered.
Indicates whether the to broadcast case event data to the customer.
Details of what case and related item data is published through the case event stream.
Details of what case data is published through the case event stream.
List of field identifiers.
Object for unique identifier of a field.
Unique identifier of a field.
Details of what related item data is published through the case event stream.
Details of what related item data is published through the case event stream.
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
get_domain
(**kwargs)¶Returns information about a specific domain if it exists.
See also: AWS API Documentation
Request Syntax
response = client.get_domain(
domainId='string'
)
[REQUIRED]
The unique identifier of the Cases domain.
{
'createdTime': datetime(2015, 1, 1),
'domainArn': 'string',
'domainId': 'string',
'domainStatus': 'Active'|'CreationInProgress'|'CreationFailed',
'name': 'string',
'tags': {
'string': 'string'
}
}
Response Structure
The timestamp when the Cases domain was created.
The Amazon Resource Name (ARN) for the Cases domain.
The unique identifier of the Cases domain.
The status of the Cases domain.
The name of the Cases domain.
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.
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
get_layout
(**kwargs)¶Returns the details for the requested layout.
See also: AWS API Documentation
Request Syntax
response = client.get_layout(
domainId='string',
layoutId='string'
)
[REQUIRED]
The unique identifier of the Cases domain.
[REQUIRED]
The unique identifier of the layout.
dict
Response Syntax
{
'content': {
'basic': {
'moreInfo': {
'sections': [
{
'fieldGroup': {
'fields': [
{
'id': 'string'
},
],
'name': 'string'
}
},
]
},
'topPanel': {
'sections': [
{
'fieldGroup': {
'fields': [
{
'id': 'string'
},
],
'name': 'string'
}
},
]
}
}
},
'layoutArn': 'string',
'layoutId': 'string',
'name': 'string',
'tags': {
'string': 'string'
}
}
Response Structure
(dict) --
content (dict) --
Information about which fields will be present in the layout, the order of the fields, and read-only attribute of the field.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set: basic
. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER
is as follows:
'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
basic (dict) --
Content specific to BasicLayout
type. It configures fields in the top panel and More Info tab of Cases user interface.
moreInfo (dict) --
This represents sections in a tab of the page layout.
sections (list) --
Ordered list containing different kinds of sections that can be added.
(dict) --
This represents a sections within a panel or tab of the page layout.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set: fieldGroup
. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER
is as follows:
'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
fieldGroup (dict) --
Consists of a group of fields and associated properties.
fields (list) --
Represents an ordered list containing field related information.
(dict) --
Object for field related information.
id (string) --
Unique identifier of a field.
name (string) --
Name of the field group.
topPanel (dict) --
This represents sections in a panel of the page layout.
sections (list) --
Ordered list containing different kinds of sections that can be added.
(dict) --
This represents a sections within a panel or tab of the page layout.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set: fieldGroup
. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER
is as follows:
'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
fieldGroup (dict) --
Consists of a group of fields and associated properties.
fields (list) --
Represents an ordered list containing field related information.
(dict) --
Object for field related information.
id (string) --
Unique identifier of a field.
name (string) --
Name of the field group.
layoutArn (string) --
The Amazon Resource Name (ARN) of the newly created layout.
layoutId (string) --
The unique identifier of the layout.
name (string) --
The name of the layout. It must be unique.
tags (dict) --
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.
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
get_paginator
(operation_name)¶Create a paginator for an operation.
create_foo
, and you'd normally invoke the
operation as client.create_foo(**kwargs)
, if the
create_foo
operation can be paginated, you can use the
call client.get_paginator("create_foo")
.client.can_paginate
method to
check if an operation is pageable.get_template
(**kwargs)¶Returns the details for the requested template.
See also: AWS API Documentation
Request Syntax
response = client.get_template(
domainId='string',
templateId='string'
)
[REQUIRED]
The unique identifier of the Cases domain.
[REQUIRED]
A unique identifier of a template.
dict
Response Syntax
{
'description': 'string',
'layoutConfiguration': {
'defaultLayout': 'string'
},
'name': 'string',
'requiredFields': [
{
'fieldId': 'string'
},
],
'tags': {
'string': 'string'
},
'templateArn': 'string',
'templateId': 'string'
}
Response Structure
(dict) --
description (string) --
A brief description of the template.
layoutConfiguration (dict) --
Configuration of layouts associated to the template.
defaultLayout (string) --
Unique identifier of a layout.
name (string) --
The name of the template.
requiredFields (list) --
A list of fields that must contain a value for a case to be successfully created with this template.
(dict) --
List of fields that must have a value provided to create a case.
fieldId (string) --
Unique identifier of a field.
tags (dict) --
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.
templateArn (string) --
The Amazon Resource Name (ARN) of the template.
templateId (string) --
A unique identifier of a template.
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
get_waiter
(waiter_name)¶Returns an object that can wait for some condition.
list_cases_for_contact
(**kwargs)¶Lists cases for a given contact.
See also: AWS API Documentation
Request Syntax
response = client.list_cases_for_contact(
contactArn='string',
domainId='string',
maxResults=123,
nextToken='string'
)
[REQUIRED]
A unique identifier of a contact in Amazon Connect.
[REQUIRED]
The unique identifier of the Cases domain.
dict
Response Syntax
{
'cases': [
{
'caseId': 'string',
'templateId': 'string'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
cases (list) --
A list of Case summary information.
(dict) --
Case summary information.
caseId (string) --
A unique identifier of the case.
templateId (string) --
A unique identifier of a template.
nextToken (string) --
The token for the next set of results. This is null if there are no more results to return.
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
list_domains
(**kwargs)¶Lists all cases domains in the Amazon Web Services account. Each list item is a condensed summary object of the domain.
See also: AWS API Documentation
Request Syntax
response = client.list_domains(
maxResults=123,
nextToken='string'
)
dict
Response Syntax
{
'domains': [
{
'domainArn': 'string',
'domainId': 'string',
'name': 'string'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
domains (list) --
The Cases domain.
(dict) --
Object for the summarized details of the domain.
domainArn (string) --
The Amazon Resource Name (ARN) of the domain.
domainId (string) --
The unique identifier of the domain.
name (string) --
The name of the domain.
nextToken (string) --
The token for the next set of results. This is null if there are no more results to return.
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
list_field_options
(**kwargs)¶Lists all of the field options for a field identifier in the domain.
See also: AWS API Documentation
Request Syntax
response = client.list_field_options(
domainId='string',
fieldId='string',
maxResults=123,
nextToken='string',
values=[
'string',
]
)
[REQUIRED]
The unique identifier of the Cases domain.
[REQUIRED]
The unique identifier of a field.
A list of FieldOption
values to filter on for ListFieldOptions
.
dict
Response Syntax
{
'nextToken': 'string',
'options': [
{
'active': True|False,
'name': 'string',
'value': 'string'
},
]
}
Response Structure
(dict) --
nextToken (string) --
The token for the next set of results. This is null if there are no more results to return.
options (list) --
A list of FieldOption
objects.
(dict) --
Object for field Options information.
active (boolean) --
Describes whether the FieldOption
is active (displayed) or inactive.
name (string) --
FieldOptionName
has max length 100 and disallows trailing spaces.
value (string) --
FieldOptionValue
has max length 100 and must be alphanumeric with hyphens and underscores.
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
list_fields
(**kwargs)¶Lists all fields in a Cases domain.
See also: AWS API Documentation
Request Syntax
response = client.list_fields(
domainId='string',
maxResults=123,
nextToken='string'
)
[REQUIRED]
The unique identifier of the Cases domain.
dict
Response Syntax
{
'fields': [
{
'fieldArn': 'string',
'fieldId': 'string',
'name': 'string',
'namespace': 'System'|'Custom',
'type': 'Text'|'Number'|'Boolean'|'DateTime'|'SingleSelect'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
fields (list) --
List of detailed field information.
(dict) --
Object for the summarized details of the field.
fieldArn (string) --
The Amazon Resource Name (ARN) of the field.
fieldId (string) --
The unique identifier of a field.
name (string) --
Name of the field.
namespace (string) --
The namespace of a field.
type (string) --
The type of a field.
nextToken (string) --
The token for the next set of results. This is null if there are no more results to return.
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
list_layouts
(**kwargs)¶Lists all layouts in the given cases domain. Each list item is a condensed summary object of the layout.
See also: AWS API Documentation
Request Syntax
response = client.list_layouts(
domainId='string',
maxResults=123,
nextToken='string'
)
[REQUIRED]
The unique identifier of the Cases domain.
dict
Response Syntax
{
'layouts': [
{
'layoutArn': 'string',
'layoutId': 'string',
'name': 'string'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
layouts (list) --
The layouts for the domain.
(dict) --
Object for the summarized details of the layout.
layoutArn (string) --
The Amazon Resource Name (ARN) of the layout.
layoutId (string) --
The unique identifier for of the layout.
name (string) --
The name of the layout.
nextToken (string) --
The token for the next set of results. This is null if there are no more results to return.
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
Lists tags for a resource.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource(
arn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN)
{
'tags': {
'string': 'string'
}
}
Response Structure
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.
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
list_templates
(**kwargs)¶Lists all of the templates in a Cases domain. Each list item is a condensed summary object of the template.
See also: AWS API Documentation
Request Syntax
response = client.list_templates(
domainId='string',
maxResults=123,
nextToken='string'
)
[REQUIRED]
The unique identifier of the Cases domain.
dict
Response Syntax
{
'nextToken': 'string',
'templates': [
{
'name': 'string',
'templateArn': 'string',
'templateId': 'string'
},
]
}
Response Structure
(dict) --
nextToken (string) --
The token for the next set of results. This is null if there are no more results to return.
templates (list) --
List of template summary objects.
(dict) --
Template summary information.
name (string) --
The template name.
templateArn (string) --
The Amazon Resource Name (ARN) of the template.
templateId (string) --
The unique identifier for the template.
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
put_case_event_configuration
(**kwargs)¶API for adding case event publishing configuration
See also: AWS API Documentation
Request Syntax
response = client.put_case_event_configuration(
domainId='string',
eventBridge={
'enabled': True|False,
'includedData': {
'caseData': {
'fields': [
{
'id': 'string'
},
]
},
'relatedItemData': {
'includeContent': True|False
}
}
}
)
[REQUIRED]
The unique identifier of the Cases domain.
[REQUIRED]
Configuration to enable EventBridge case event delivery and determine what data is delivered.
Indicates whether the to broadcast case event data to the customer.
Details of what case and related item data is published through the case event stream.
Details of what case data is published through the case event stream.
List of field identifiers.
Object for unique identifier of a field.
Unique identifier of a field.
Details of what related item data is published through the case event stream.
Details of what related item data is published through the case event stream.
dict
Response Syntax
{}
Response Structure
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
search_cases
(**kwargs)¶Searches for cases within their associated Cases domain. Search results are returned as a paginated list of abridged case documents.
See also: AWS API Documentation
Request Syntax
response = client.search_cases(
domainId='string',
fields=[
{
'id': 'string'
},
],
filter={
'andAll': [
{'... recursive ...'},
],
'field': {
'contains': {
'id': 'string',
'value': {
'booleanValue': True|False,
'doubleValue': 123.0,
'stringValue': 'string'
}
},
'equalTo': {
'id': 'string',
'value': {
'booleanValue': True|False,
'doubleValue': 123.0,
'stringValue': 'string'
}
},
'greaterThan': {
'id': 'string',
'value': {
'booleanValue': True|False,
'doubleValue': 123.0,
'stringValue': 'string'
}
},
'greaterThanOrEqualTo': {
'id': 'string',
'value': {
'booleanValue': True|False,
'doubleValue': 123.0,
'stringValue': 'string'
}
},
'lessThan': {
'id': 'string',
'value': {
'booleanValue': True|False,
'doubleValue': 123.0,
'stringValue': 'string'
}
},
'lessThanOrEqualTo': {
'id': 'string',
'value': {
'booleanValue': True|False,
'doubleValue': 123.0,
'stringValue': 'string'
}
}
},
'not': {'... recursive ...'}
},
maxResults=123,
nextToken='string',
searchTerm='string',
sorts=[
{
'fieldId': 'string',
'sortOrder': 'Asc'|'Desc'
},
]
)
[REQUIRED]
The unique identifier of the Cases domain.
The list of field identifiers to be returned as part of the response.
Object for unique identifier of a field.
Unique identifier of a field.
A list of filter objects.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: andAll
, field
, not
.
Provides "and all" filtering.
A filter for cases. Only one value can be provided.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: andAll
, field
, not
.
A list of fields to filter on.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: contains
, equalTo
, greaterThan
, greaterThanOrEqualTo
, lessThan
, lessThanOrEqualTo
.
Object containing field identifier and value information.
Unique identifier of a field.
Union of potential field value types.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: booleanValue
, doubleValue
, stringValue
.
Can be either null, or have a Boolean value type. Only one value can be provided.
Can be either null, or have a Double number value type. Only one value can be provided.
String value type.
Object containing field identifier and value information.
Unique identifier of a field.
Union of potential field value types.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: booleanValue
, doubleValue
, stringValue
.
Can be either null, or have a Boolean value type. Only one value can be provided.
Can be either null, or have a Double number value type. Only one value can be provided.
String value type.
Object containing field identifier and value information.
Unique identifier of a field.
Union of potential field value types.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: booleanValue
, doubleValue
, stringValue
.
Can be either null, or have a Boolean value type. Only one value can be provided.
Can be either null, or have a Double number value type. Only one value can be provided.
String value type.
Object containing field identifier and value information.
Unique identifier of a field.
Union of potential field value types.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: booleanValue
, doubleValue
, stringValue
.
Can be either null, or have a Boolean value type. Only one value can be provided.
Can be either null, or have a Double number value type. Only one value can be provided.
String value type.
Object containing field identifier and value information.
Unique identifier of a field.
Union of potential field value types.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: booleanValue
, doubleValue
, stringValue
.
Can be either null, or have a Boolean value type. Only one value can be provided.
Can be either null, or have a Double number value type. Only one value can be provided.
String value type.
Object containing field identifier and value information.
Unique identifier of a field.
Union of potential field value types.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: booleanValue
, doubleValue
, stringValue
.
Can be either null, or have a Boolean value type. Only one value can be provided.
Can be either null, or have a Double number value type. Only one value can be provided.
String value type.
A filter for cases. Only one value can be provided.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: andAll
, field
, not
.
A list of sorts where each sort specifies a field and their sort order to be applied to the results.
A structured set of sort terms.
Unique identifier of a field.
A structured set of sort terms
dict
Response Syntax
{
'cases': [
{
'caseId': 'string',
'fields': [
{
'id': 'string',
'value': {
'booleanValue': True|False,
'doubleValue': 123.0,
'stringValue': 'string'
}
},
],
'tags': {
'string': 'string'
},
'templateId': 'string'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
cases (list) --
A list of case documents where each case contains the properties CaseId
and Fields
where each field is a complex union structure.
(dict) --
A list of items that represent cases.
caseId (string) --
A unique identifier of the case.
fields (list) --
List of case field values.
(dict) --
Object for case field values.
id (string) --
Unique identifier of a field.
value (dict) --
Union of potential field value types.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set: booleanValue
, doubleValue
, stringValue
. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER
is as follows:
'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
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.
stringValue (string) --
String value type.
tags (dict) --
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.
templateId (string) --
A unique identifier of a template.
nextToken (string) --
The token for the next set of results. This is null if there are no more results to return.
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
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.
See also: AWS API Documentation
Request Syntax
response = client.search_related_items(
caseId='string',
domainId='string',
filters=[
{
'comment': {}
,
'contact': {
'channel': [
'string',
],
'contactArn': 'string'
}
},
],
maxResults=123,
nextToken='string'
)
[REQUIRED]
A unique identifier of the case.
[REQUIRED]
The unique identifier of the Cases domain.
The list of types of related items and their parameters to use for filtering.
The list of types of related items and their parameters to use for filtering.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: comment
, contact
.
A filter for related items of type Comment
.
A filter for related items of type Contact
.
A list of channels to filter on for related items of type Contact
.
A unique identifier of a contact in Amazon Connect.
dict
Response Syntax
{
'nextToken': 'string',
'relatedItems': [
{
'associationTime': datetime(2015, 1, 1),
'content': {
'comment': {
'body': 'string',
'contentType': 'Text/Plain'
},
'contact': {
'channel': 'string',
'connectedToSystemTime': datetime(2015, 1, 1),
'contactArn': 'string'
}
},
'relatedItemId': 'string',
'tags': {
'string': 'string'
},
'type': 'Contact'|'Comment'
},
]
}
Response Structure
(dict) --
nextToken (string) --
The token for the next set of results. This is null if there are no more results to return.
relatedItems (list) --
A list of items related to a case.
(dict) --
A list of items that represent RelatedItems.
associationTime (datetime) --
Time at which a related item was associated with a case.
content (dict) --
Represents the content of a particular type of related item.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set: comment
, contact
. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER
is as follows:
'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
comment (dict) --
Represents the content of a comment to be returned to agents.
body (string) --
Text in the body of a Comment
on a case.
contentType (string) --
Type of the text in the box of a Comment
on a case.
contact (dict) --
Represents the content of a contact to be returned to agents.
channel (string) --
A list of channels to filter on for related items of type Contact
.
connectedToSystemTime (datetime) --
The difference between the InitiationTimestamp
and the DisconnectTimestamp
of the contact.
contactArn (string) --
A unique identifier of a contact in Amazon Connect.
relatedItemId (string) --
Unique identifier of a related item.
tags (dict) --
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.
type (string) --
Type of a related item.
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
tag_resource
(**kwargs)¶Adds tags to a resource.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource(
arn='string',
tags={
'string': 'string'
}
)
[REQUIRED]
The Amazon Resource Name (ARN)
[REQUIRED]
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.
None
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
untag_resource
(**kwargs)¶Untags a resource.
See also: AWS API Documentation
Request Syntax
response = client.untag_resource(
arn='string',
tagKeys=[
'string',
]
)
[REQUIRED]
The Amazon Resource Name (ARN)
[REQUIRED]
List of tag keys.
None
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
update_case
(**kwargs)¶Updates the values of fields on a case. Fields to be updated are received as an array of id/value pairs identical to the CreateCase
input .
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
See also: AWS API Documentation
Request Syntax
response = client.update_case(
caseId='string',
domainId='string',
fields=[
{
'id': 'string',
'value': {
'booleanValue': True|False,
'doubleValue': 123.0,
'stringValue': 'string'
}
},
]
)
[REQUIRED]
A unique identifier of the case.
[REQUIRED]
The unique identifier of the Cases domain.
[REQUIRED]
An array of objects with fieldId
(matching ListFields/DescribeField) and value union data, structured identical to CreateCase
.
Object for case field values.
Unique identifier of a field.
Union of potential field value types.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: booleanValue
, doubleValue
, stringValue
.
Can be either null, or have a Boolean value type. Only one value can be provided.
Can be either null, or have a Double number value type. Only one value can be provided.
String value type.
dict
Response Syntax
{}
Response Structure
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
update_field
(**kwargs)¶Updates the properties of an existing field.
See also: AWS API Documentation
Request Syntax
response = client.update_field(
description='string',
domainId='string',
fieldId='string',
name='string'
)
[REQUIRED]
The unique identifier of the Cases domain.
[REQUIRED]
The unique identifier of a field.
dict
Response Syntax
{}
Response Structure
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
ConnectCases.Client.exceptions.ConflictException
update_layout
(**kwargs)¶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.
See also: AWS API Documentation
Request Syntax
response = client.update_layout(
content={
'basic': {
'moreInfo': {
'sections': [
{
'fieldGroup': {
'fields': [
{
'id': 'string'
},
],
'name': 'string'
}
},
]
},
'topPanel': {
'sections': [
{
'fieldGroup': {
'fields': [
{
'id': 'string'
},
],
'name': 'string'
}
},
]
}
}
},
domainId='string',
layoutId='string',
name='string'
)
Information about which fields will be present in the layout, the order of the fields, and a read-only attribute of the field.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: basic
.
Content specific to BasicLayout
type. It configures fields in the top panel and More Info tab of Cases user interface.
This represents sections in a tab of the page layout.
Ordered list containing different kinds of sections that can be added.
This represents a sections within a panel or tab of the page layout.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: fieldGroup
.
Consists of a group of fields and associated properties.
Represents an ordered list containing field related information.
Object for field related information.
Unique identifier of a field.
Name of the field group.
This represents sections in a panel of the page layout.
Ordered list containing different kinds of sections that can be added.
This represents a sections within a panel or tab of the page layout.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: fieldGroup
.
Consists of a group of fields and associated properties.
Represents an ordered list containing field related information.
Object for field related information.
Unique identifier of a field.
Name of the field group.
[REQUIRED]
The unique identifier of the Cases domain.
[REQUIRED]
The unique identifier of the layout.
dict
Response Syntax
{}
Response Structure
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
ConnectCases.Client.exceptions.ConflictException
update_template
(**kwargs)¶Updates the attributes of an existing template. The template attributes that can be modified include name
, description
, layouts
, and requiredFields
. 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.
See also: AWS API Documentation
Request Syntax
response = client.update_template(
description='string',
domainId='string',
layoutConfiguration={
'defaultLayout': 'string'
},
name='string',
requiredFields=[
{
'fieldId': 'string'
},
],
templateId='string'
)
[REQUIRED]
The unique identifier of the Cases domain.
Configuration of layouts associated to the template.
Unique identifier of a layout.
A list of fields that must contain a value for a case to be successfully created with this template.
List of fields that must have a value provided to create a case.
Unique identifier of a field.
[REQUIRED]
A unique identifier for the template.
dict
Response Syntax
{}
Response Structure
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
ConnectCases.Client.exceptions.ConflictException
The available paginators are:
ConnectCases.Paginator.
SearchCases
¶paginator = client.get_paginator('search_cases')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from ConnectCases.Client.search_cases()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
domainId='string',
fields=[
{
'id': 'string'
},
],
filter={
'andAll': [
{'... recursive ...'},
],
'field': {
'contains': {
'id': 'string',
'value': {
'booleanValue': True|False,
'doubleValue': 123.0,
'stringValue': 'string'
}
},
'equalTo': {
'id': 'string',
'value': {
'booleanValue': True|False,
'doubleValue': 123.0,
'stringValue': 'string'
}
},
'greaterThan': {
'id': 'string',
'value': {
'booleanValue': True|False,
'doubleValue': 123.0,
'stringValue': 'string'
}
},
'greaterThanOrEqualTo': {
'id': 'string',
'value': {
'booleanValue': True|False,
'doubleValue': 123.0,
'stringValue': 'string'
}
},
'lessThan': {
'id': 'string',
'value': {
'booleanValue': True|False,
'doubleValue': 123.0,
'stringValue': 'string'
}
},
'lessThanOrEqualTo': {
'id': 'string',
'value': {
'booleanValue': True|False,
'doubleValue': 123.0,
'stringValue': 'string'
}
}
},
'not': {'... recursive ...'}
},
searchTerm='string',
sorts=[
{
'fieldId': 'string',
'sortOrder': 'Asc'|'Desc'
},
],
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The unique identifier of the Cases domain.
The list of field identifiers to be returned as part of the response.
Object for unique identifier of a field.
Unique identifier of a field.
A list of filter objects.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: andAll
, field
, not
.
Provides "and all" filtering.
A filter for cases. Only one value can be provided.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: andAll
, field
, not
.
A list of fields to filter on.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: contains
, equalTo
, greaterThan
, greaterThanOrEqualTo
, lessThan
, lessThanOrEqualTo
.
Object containing field identifier and value information.
Unique identifier of a field.
Union of potential field value types.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: booleanValue
, doubleValue
, stringValue
.
Can be either null, or have a Boolean value type. Only one value can be provided.
Can be either null, or have a Double number value type. Only one value can be provided.
String value type.
Object containing field identifier and value information.
Unique identifier of a field.
Union of potential field value types.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: booleanValue
, doubleValue
, stringValue
.
Can be either null, or have a Boolean value type. Only one value can be provided.
Can be either null, or have a Double number value type. Only one value can be provided.
String value type.
Object containing field identifier and value information.
Unique identifier of a field.
Union of potential field value types.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: booleanValue
, doubleValue
, stringValue
.
Can be either null, or have a Boolean value type. Only one value can be provided.
Can be either null, or have a Double number value type. Only one value can be provided.
String value type.
Object containing field identifier and value information.
Unique identifier of a field.
Union of potential field value types.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: booleanValue
, doubleValue
, stringValue
.
Can be either null, or have a Boolean value type. Only one value can be provided.
Can be either null, or have a Double number value type. Only one value can be provided.
String value type.
Object containing field identifier and value information.
Unique identifier of a field.
Union of potential field value types.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: booleanValue
, doubleValue
, stringValue
.
Can be either null, or have a Boolean value type. Only one value can be provided.
Can be either null, or have a Double number value type. Only one value can be provided.
String value type.
Object containing field identifier and value information.
Unique identifier of a field.
Union of potential field value types.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: booleanValue
, doubleValue
, stringValue
.
Can be either null, or have a Boolean value type. Only one value can be provided.
Can be either null, or have a Double number value type. Only one value can be provided.
String value type.
A filter for cases. Only one value can be provided.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: andAll
, field
, not
.
A list of sorts where each sort specifies a field and their sort order to be applied to the results.
A structured set of sort terms.
Unique identifier of a field.
A structured set of sort terms
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'cases': [
{
'caseId': 'string',
'fields': [
{
'id': 'string',
'value': {
'booleanValue': True|False,
'doubleValue': 123.0,
'stringValue': 'string'
}
},
],
'tags': {
'string': 'string'
},
'templateId': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
cases (list) --
A list of case documents where each case contains the properties CaseId
and Fields
where each field is a complex union structure.
(dict) --
A list of items that represent cases.
caseId (string) --
A unique identifier of the case.
fields (list) --
List of case field values.
(dict) --
Object for case field values.
id (string) --
Unique identifier of a field.
value (dict) --
Union of potential field value types.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set: booleanValue
, doubleValue
, stringValue
. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER
is as follows:
'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
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.
stringValue (string) --
String value type.
tags (dict) --
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.
templateId (string) --
A unique identifier of a template.
NextToken (string) --
A token to resume pagination.
ConnectCases.Paginator.
SearchRelatedItems
¶paginator = client.get_paginator('search_related_items')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from ConnectCases.Client.search_related_items()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
caseId='string',
domainId='string',
filters=[
{
'comment': {}
,
'contact': {
'channel': [
'string',
],
'contactArn': 'string'
}
},
],
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
A unique identifier of the case.
[REQUIRED]
The unique identifier of the Cases domain.
The list of types of related items and their parameters to use for filtering.
The list of types of related items and their parameters to use for filtering.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: comment
, contact
.
A filter for related items of type Comment
.
A filter for related items of type Contact
.
A list of channels to filter on for related items of type Contact
.
A unique identifier of a contact in Amazon Connect.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'relatedItems': [
{
'associationTime': datetime(2015, 1, 1),
'content': {
'comment': {
'body': 'string',
'contentType': 'Text/Plain'
},
'contact': {
'channel': 'string',
'connectedToSystemTime': datetime(2015, 1, 1),
'contactArn': 'string'
}
},
'relatedItemId': 'string',
'tags': {
'string': 'string'
},
'type': 'Contact'|'Comment'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
relatedItems (list) --
A list of items related to a case.
(dict) --
A list of items that represent RelatedItems.
associationTime (datetime) --
Time at which a related item was associated with a case.
content (dict) --
Represents the content of a particular type of related item.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set: comment
, contact
. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER
is as follows:
'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
comment (dict) --
Represents the content of a comment to be returned to agents.
body (string) --
Text in the body of a Comment
on a case.
contentType (string) --
Type of the text in the box of a Comment
on a case.
contact (dict) --
Represents the content of a contact to be returned to agents.
channel (string) --
A list of channels to filter on for related items of type Contact
.
connectedToSystemTime (datetime) --
The difference between the InitiationTimestamp
and the DisconnectTimestamp
of the contact.
contactArn (string) --
A unique identifier of a contact in Amazon Connect.
relatedItemId (string) --
Unique identifier of a related item.
tags (dict) --
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.
type (string) --
Type of a related item.
NextToken (string) --
A token to resume pagination.