SDK for PHP V3

Client: Aws\ConnectCases\ConnectCasesClient
Service ID: connectcases
Version: 2022-10-03

This page describes the parameters and results for the operations of the Amazon Connect Cases (2022-10-03), and shows how to use the Aws\ConnectCases\ConnectCasesClient object to call the described operations. This documentation is specific to the 2022-10-03 API version of the service.

Operation Summary

Each of the following operations can be created from a client using $client->getCommand('CommandName'), where "CommandName" is the name of one of the following operations. Note: a command is a value that encapsulates an operation and the parameters used to create an HTTP request.

You can also create and send a command immediately using the magic methods available on a client object: $client->commandName(/* parameters */). You can send the command asynchronously (returning a promise) by appending the word "Async" to the operation name: $client->commandNameAsync(/* parameters */).

BatchGetCaseRule ( array $params = [] )
Gets a batch of case rules.
BatchGetField ( array $params = [] )
Returns the description for the list of fields in the request parameters.
BatchPutFieldOptions ( array $params = [] )
Creates and updates a set of field options for a single select field in a Cases domain.
CreateCase ( array $params = [] )
If you provide a value for PerformedBy.
CreateCaseRule ( array $params = [] )
Creates a new case rule.
CreateDomain ( array $params = [] )
Creates a domain, which is a container for all case data, such as cases, fields, templates and layouts.
CreateField ( array $params = [] )
Creates a field in the Cases domain.
CreateLayout ( array $params = [] )
Creates a layout in the Cases domain.
CreateRelatedItem ( array $params = [] )
Creates a related item (comments, tasks, and contacts) and associates it with a case.
CreateTemplate ( array $params = [] )
Creates a template in the Cases domain.
DeleteCase ( array $params = [] )
The DeleteCase API permanently deletes a case and all its associated resources from the cases data store.
DeleteCaseRule ( array $params = [] )
Deletes a case rule.
DeleteDomain ( array $params = [] )
Deletes a Cases domain.
DeleteField ( array $params = [] )
Deletes a field from a cases template.
DeleteLayout ( array $params = [] )
Deletes a layout from a cases template.
DeleteRelatedItem ( array $params = [] )
Deletes the related item resource under a case.
DeleteTemplate ( array $params = [] )
Deletes a cases template.
GetCase ( array $params = [] )
Returns information about a specific case if it exists.
GetCaseAuditEvents ( array $params = [] )
Returns the audit history about a specific case if it exists.
GetCaseEventConfiguration ( array $params = [] )
Returns the case event publishing configuration.
GetDomain ( array $params = [] )
Returns information about a specific domain if it exists.
GetLayout ( array $params = [] )
Returns the details for the requested layout.
GetTemplate ( array $params = [] )
Returns the details for the requested template.
ListCaseRules ( array $params = [] )
Lists all case rules in a Cases domain.
ListCasesForContact ( array $params = [] )
Lists cases for a given contact.
ListDomains ( array $params = [] )
Lists all cases domains in the Amazon Web Services account.
ListFieldOptions ( array $params = [] )
Lists all of the field options for a field identifier in the domain.
ListFields ( array $params = [] )
Lists all fields in a Cases domain.
ListLayouts ( array $params = [] )
Lists all layouts in the given cases domain.
ListTagsForResource ( array $params = [] )
Lists tags for a resource.
ListTemplates ( array $params = [] )
Lists all of the templates in a Cases domain.
PutCaseEventConfiguration ( array $params = [] )
Adds case event publishing configuration.
SearchAllRelatedItems ( array $params = [] )
Searches for related items across all cases within a domain.
SearchCases ( array $params = [] )
Searches for cases within their associated Cases domain.
SearchRelatedItems ( array $params = [] )
Searches for related items that are associated with a case.
TagResource ( array $params = [] )
Adds tags to a resource.
UntagResource ( array $params = [] )
Untags a resource.
UpdateCase ( array $params = [] )
If you provide a value for PerformedBy.
UpdateCaseRule ( array $params = [] )
Updates a case rule.
UpdateField ( array $params = [] )
Updates the properties of an existing field.
UpdateLayout ( array $params = [] )
Updates the attributes of an existing layout.
UpdateRelatedItem ( array $params = [] )
Updates the content of a related item associated with a case.
UpdateTemplate ( array $params = [] )
Updates the attributes of an existing template.

Paginators

Paginators handle automatically iterating over paginated API results. Paginators are associated with specific API operations, and they accept the parameters that the corresponding API operation accepts. You can get a paginator from a client class using getPaginator($paginatorName, $operationParameters). This client supports the following paginators:

GetCase
GetCaseAuditEvents
ListCaseRules
ListCasesForContact
ListDomains
ListFieldOptions
ListFields
ListLayouts
ListTemplates
SearchAllRelatedItems
SearchCases
SearchRelatedItems

Operations

BatchGetCaseRule

$result = $client->batchGetCaseRule([/* ... */]);
$promise = $client->batchGetCaseRuleAsync([/* ... */]);

Gets a batch of case rules. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template.

Parameter Syntax

$result = $client->batchGetCaseRule([
    'caseRules' => [ // REQUIRED
        [
            'id' => '<string>', // REQUIRED
        ],
        // ...
    ],
    'domainId' => '<string>', // REQUIRED
]);

Parameter Details

Members
caseRules
Required: Yes
Type: Array of CaseRuleIdentifier structures

A list of case rule identifiers.

domainId
Required: Yes
Type: string

Unique identifier of a Cases domain.

Result Syntax

[
    'caseRules' => [
        [
            'caseRuleArn' => '<string>',
            'caseRuleId' => '<string>',
            'createdTime' => <DateTime>,
            'deleted' => true || false,
            'description' => '<string>',
            'lastModifiedTime' => <DateTime>,
            'name' => '<string>',
            'rule' => [
                'fieldOptions' => [
                    'childFieldId' => '<string>',
                    'parentChildFieldOptionsMappings' => [
                        [
                            'childFieldOptionValues' => ['<string>', ...],
                            'parentFieldOptionValue' => '<string>',
                        ],
                        // ...
                    ],
                    'parentFieldId' => '<string>',
                ],
                'hidden' => [
                    'conditions' => [
                        [
                            'andAll' => [
                                'conditions' => [...], // RECURSIVE
                            ],
                            'equalTo' => [
                                'operandOne' => [
                                    'fieldId' => '<string>',
                                ],
                                'operandTwo' => [
                                    'booleanValue' => true || false,
                                    'doubleValue' => <float>,
                                    'emptyValue' => [
                                    ],
                                    'stringValue' => '<string>',
                                ],
                                'result' => true || false,
                            ],
                            'notEqualTo' => [
                                'operandOne' => [
                                    'fieldId' => '<string>',
                                ],
                                'operandTwo' => [
                                    'booleanValue' => true || false,
                                    'doubleValue' => <float>,
                                    'emptyValue' => [
                                    ],
                                    'stringValue' => '<string>',
                                ],
                                'result' => true || false,
                            ],
                            'orAll' => [
                                'conditions' => [...], // RECURSIVE
                            ],
                        ],
                        // ...
                    ],
                    'defaultValue' => true || false,
                ],
                'required' => [
                    'conditions' => [
                        [
                            'andAll' => [
                                'conditions' => [...], // RECURSIVE
                            ],
                            'equalTo' => [
                                'operandOne' => [
                                    'fieldId' => '<string>',
                                ],
                                'operandTwo' => [
                                    'booleanValue' => true || false,
                                    'doubleValue' => <float>,
                                    'emptyValue' => [
                                    ],
                                    'stringValue' => '<string>',
                                ],
                                'result' => true || false,
                            ],
                            'notEqualTo' => [
                                'operandOne' => [
                                    'fieldId' => '<string>',
                                ],
                                'operandTwo' => [
                                    'booleanValue' => true || false,
                                    'doubleValue' => <float>,
                                    'emptyValue' => [
                                    ],
                                    'stringValue' => '<string>',
                                ],
                                'result' => true || false,
                            ],
                            'orAll' => [
                                'conditions' => [...], // RECURSIVE
                            ],
                        ],
                        // ...
                    ],
                    'defaultValue' => true || false,
                ],
            ],
            'tags' => ['<string>', ...],
        ],
        // ...
    ],
    'errors' => [
        [
            'errorCode' => '<string>',
            'id' => '<string>',
            'message' => '<string>',
        ],
        // ...
    ],
    'unprocessedCaseRules' => ['<string>', ...],
]

Result Details

Members
caseRules
Required: Yes
Type: Array of GetCaseRuleResponse structures

A list of detailed case rule information.

errors
Required: Yes
Type: Array of CaseRuleError structures

A list of case rule errors.

unprocessedCaseRules
Type: Array of strings

A list of unprocessed case rule identifiers.

Errors

InternalServerException:

We couldn't process your request because of an issue with the server. Try again later.

ResourceNotFoundException:

We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.

ValidationException:

The request isn't valid. Check the syntax and try again.

ThrottlingException:

The rate has been exceeded for this API. Please try again after a few minutes.

AccessDeniedException:

You do not have sufficient access to perform this action.

BatchGetField

$result = $client->batchGetField([/* ... */]);
$promise = $client->batchGetFieldAsync([/* ... */]);

Returns the description for the list of fields in the request parameters.

Parameter Syntax

$result = $client->batchGetField([
    'domainId' => '<string>', // REQUIRED
    'fields' => [ // REQUIRED
        [
            'id' => '<string>', // REQUIRED
        ],
        // ...
    ],
]);

Parameter Details

Members
domainId
Required: Yes
Type: string

The unique identifier of the Cases domain.

fields
Required: Yes
Type: Array of FieldIdentifier structures

A list of unique field identifiers.

Result Syntax

[
    'errors' => [
        [
            'errorCode' => '<string>',
            'id' => '<string>',
            'message' => '<string>',
        ],
        // ...
    ],
    'fields' => [
        [
            'attributes' => [
                'text' => [
                    'isMultiline' => true || false,
                ],
            ],
            'createdTime' => <DateTime>,
            'deleted' => true || false,
            'description' => '<string>',
            'fieldArn' => '<string>',
            'fieldId' => '<string>',
            'lastModifiedTime' => <DateTime>,
            'name' => '<string>',
            'namespace' => 'System|Custom',
            'tags' => ['<string>', ...],
            'type' => 'Text|Number|Boolean|DateTime|SingleSelect|Url|User',
        ],
        // ...
    ],
]

Result Details

Members
errors
Required: Yes
Type: Array of FieldError structures

A list of field errors.

fields
Required: Yes
Type: Array of GetFieldResponse structures

A list of detailed field information.

Errors

InternalServerException:

We couldn't process your request because of an issue with the server. Try again later.

ResourceNotFoundException:

We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.

ValidationException:

The request isn't valid. Check the syntax and try again.

ThrottlingException:

The rate has been exceeded for this API. Please try again after a few minutes.

AccessDeniedException:

You do not have sufficient access to perform this action.

BatchPutFieldOptions

$result = $client->batchPutFieldOptions([/* ... */]);
$promise = $client->batchPutFieldOptionsAsync([/* ... */]);

Creates and updates a set of field options for a single select field in a Cases domain.

Parameter Syntax

$result = $client->batchPutFieldOptions([
    'domainId' => '<string>', // REQUIRED
    'fieldId' => '<string>', // REQUIRED
    'options' => [ // REQUIRED
        [
            'active' => true || false, // REQUIRED
            'name' => '<string>', // REQUIRED
            'value' => '<string>', // REQUIRED
        ],
        // ...
    ],
]);

Parameter Details

Members
domainId
Required: Yes
Type: string

The unique identifier of the Cases domain.

fieldId
Required: Yes
Type: string

The unique identifier of a field.

options
Required: Yes
Type: Array of FieldOption structures

A list of FieldOption objects.

Result Syntax

[
    'errors' => [
        [
            'errorCode' => '<string>',
            'message' => '<string>',
            'value' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
errors
Type: Array of FieldOptionError structures

A list of field errors.

Errors

InternalServerException:

We couldn't process your request because of an issue with the server. Try again later.

ResourceNotFoundException:

We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.

ValidationException:

The request isn't valid. Check the syntax and try again.

ThrottlingException:

The rate has been exceeded for this API. Please try again after a few minutes.

AccessDeniedException:

You do not have sufficient access to perform this action.

ServiceQuotaExceededException:

The service quota has been exceeded. For a list of service quotas, see Amazon Connect Service Quotas in the Amazon Connect Administrator Guide.

CreateCase

$result = $client->createCase([/* ... */]);
$promise = $client->createCaseAsync([/* ... */]);

If you provide a value for PerformedBy.UserArn you must also have connect:DescribeUser permission on the User ARN resource that you provide

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.

When creating a case from a template that has tag propagation configurations, the specified tags are automatically applied to the case.

The following fields are required when creating a case:

  • customer_id - You must provide the full customer profile ARN in this format: arn:aws:profile:your_AWS_Region:your_AWS_account ID:domains/your_profiles_domain_name/profiles/profile_ID

  • title

Parameter Syntax

$result = $client->createCase([
    'clientToken' => '<string>',
    'domainId' => '<string>', // REQUIRED
    'fields' => [ // REQUIRED
        [
            'id' => '<string>', // REQUIRED
            'value' => [ // REQUIRED
                'booleanValue' => true || false,
                'doubleValue' => <float>,
                'emptyValue' => [
                ],
                'stringValue' => '<string>',
                'userArnValue' => '<string>',
            ],
        ],
        // ...
    ],
    'performedBy' => [
        'customEntity' => '<string>',
        'userArn' => '<string>',
    ],
    'tags' => ['<string>', ...],
    'templateId' => '<string>', // REQUIRED
]);

Parameter Details

Members
clientToken
Type: 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.

domainId
Required: Yes
Type: string

The unique identifier of the Cases domain.

fields
Required: Yes
Type: Array of FieldValue structures

An array of objects with field ID (matching ListFields/DescribeField) and value union data.

performedBy
Type: UserUnion structure

Represents the entity that performed the action.

tags
Type: Associative array of custom strings keys (MutableTagKey) to strings

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
Required: Yes
Type: string

A unique identifier of a template.

Result Syntax

[
    'caseArn' => '<string>',
    'caseId' => '<string>',
]

Result Details

Members
caseArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the case.

caseId
Required: Yes
Type: string

A unique identifier of the case.

Errors

InternalServerException:

We couldn't process your request because of an issue with the server. Try again later.

ResourceNotFoundException:

We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.

ValidationException:

The request isn't valid. Check the syntax and try again.

ThrottlingException:

The rate has been exceeded for this API. Please try again after a few minutes.

AccessDeniedException:

You do not have sufficient access to perform this action.

ConflictException:

The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.

CreateCaseRule

$result = $client->createCaseRule([/* ... */]);
$promise = $client->createCaseRuleAsync([/* ... */]);

Creates a new case rule. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template.

Parameter Syntax

$result = $client->createCaseRule([
    'description' => '<string>',
    'domainId' => '<string>', // REQUIRED
    'name' => '<string>', // REQUIRED
    'rule' => [ // REQUIRED
        'fieldOptions' => [
            'childFieldId' => '<string>',
            'parentChildFieldOptionsMappings' => [ // REQUIRED
                [
                    'childFieldOptionValues' => ['<string>', ...], // REQUIRED
                    'parentFieldOptionValue' => '<string>', // REQUIRED
                ],
                // ...
            ],
            'parentFieldId' => '<string>',
        ],
        'hidden' => [
            'conditions' => [ // REQUIRED
                [
                    'andAll' => [
                        'conditions' => [...], // REQUIRED, RECURSIVE
                    ],
                    'equalTo' => [
                        'operandOne' => [ // REQUIRED
                            'fieldId' => '<string>',
                        ],
                        'operandTwo' => [ // REQUIRED
                            'booleanValue' => true || false,
                            'doubleValue' => <float>,
                            'emptyValue' => [
                            ],
                            'stringValue' => '<string>',
                        ],
                        'result' => true || false, // REQUIRED
                    ],
                    'notEqualTo' => [
                        'operandOne' => [ // REQUIRED
                            'fieldId' => '<string>',
                        ],
                        'operandTwo' => [ // REQUIRED
                            'booleanValue' => true || false,
                            'doubleValue' => <float>,
                            'emptyValue' => [
                            ],
                            'stringValue' => '<string>',
                        ],
                        'result' => true || false, // REQUIRED
                    ],
                    'orAll' => [
                        'conditions' => [...], // REQUIRED, RECURSIVE
                    ],
                ],
                // ...
            ],
            'defaultValue' => true || false, // REQUIRED
        ],
        'required' => [
            'conditions' => [ // REQUIRED
                [
                    'andAll' => [
                        'conditions' => [...], // REQUIRED, RECURSIVE
                    ],
                    'equalTo' => [
                        'operandOne' => [ // REQUIRED
                            'fieldId' => '<string>',
                        ],
                        'operandTwo' => [ // REQUIRED
                            'booleanValue' => true || false,
                            'doubleValue' => <float>,
                            'emptyValue' => [
                            ],
                            'stringValue' => '<string>',
                        ],
                        'result' => true || false, // REQUIRED
                    ],
                    'notEqualTo' => [
                        'operandOne' => [ // REQUIRED
                            'fieldId' => '<string>',
                        ],
                        'operandTwo' => [ // REQUIRED
                            'booleanValue' => true || false,
                            'doubleValue' => <float>,
                            'emptyValue' => [
                            ],
                            'stringValue' => '<string>',
                        ],
                        'result' => true || false, // REQUIRED
                    ],
                    'orAll' => [
                        'conditions' => [...], // REQUIRED, RECURSIVE
                    ],
                ],
                // ...
            ],
            'defaultValue' => true || false, // REQUIRED
        ],
    ],
]);

Parameter Details

Members
description
Type: string

The description of a case rule.

domainId
Required: Yes
Type: string

Unique identifier of a Cases domain.

name
Required: Yes
Type: string

Name of the case rule.

rule
Required: Yes
Type: CaseRuleDetails structure

Represents what rule type should take place, under what conditions.

Result Syntax

[
    'caseRuleArn' => '<string>',
    'caseRuleId' => '<string>',
]

Result Details

Members
caseRuleArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of a case rule.

caseRuleId
Required: Yes
Type: string

Unique identifier of a case rule.

Errors

InternalServerException:

We couldn't process your request because of an issue with the server. Try again later.

ResourceNotFoundException:

We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.

ValidationException:

The request isn't valid. Check the syntax and try again.

ThrottlingException:

The rate has been exceeded for this API. Please try again after a few minutes.

AccessDeniedException:

You do not have sufficient access to perform this action.

ConflictException:

The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.

ServiceQuotaExceededException:

The service quota has been exceeded. For a list of service quotas, see Amazon Connect Service Quotas in the Amazon Connect Administrator Guide.

CreateDomain

$result = $client->createDomain([/* ... */]);
$promise = $client->createDomainAsync([/* ... */]);

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.

Parameter Syntax

$result = $client->createDomain([
    'name' => '<string>', // REQUIRED
]);

Parameter Details

Members
name
Required: Yes
Type: string

The name for your Cases domain. It must be unique for your Amazon Web Services account.

Result Syntax

[
    'domainArn' => '<string>',
    'domainId' => '<string>',
    'domainStatus' => 'Active|CreationInProgress|CreationFailed',
]

Result Details

Members
domainArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) for the Cases domain.

domainId
Required: Yes
Type: string

The unique identifier of the Cases domain.

domainStatus
Required: Yes
Type: string

The status of the domain.

Errors

InternalServerException:

We couldn't process your request because of an issue with the server. Try again later.

ValidationException:

The request isn't valid. Check the syntax and try again.

ThrottlingException:

The rate has been exceeded for this API. Please try again after a few minutes.

AccessDeniedException:

You do not have sufficient access to perform this action.

ConflictException:

The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.

ServiceQuotaExceededException:

The service quota has been exceeded. For a list of service quotas, see Amazon Connect Service Quotas in the Amazon Connect Administrator Guide.

CreateField

$result = $client->createField([/* ... */]);
$promise = $client->createFieldAsync([/* ... */]);

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.

Parameter Syntax

$result = $client->createField([
    'attributes' => [
        'text' => [
            'isMultiline' => true || false, // REQUIRED
        ],
    ],
    'description' => '<string>',
    'domainId' => '<string>', // REQUIRED
    'name' => '<string>', // REQUIRED
    'type' => 'Text|Number|Boolean|DateTime|SingleSelect|Url|User', // REQUIRED
]);

Parameter Details

Members
attributes
Type: FieldAttributes structure

Union of field attributes.

description
Type: string

The description of the field.

domainId
Required: Yes
Type: string

The unique identifier of the Cases domain.

name
Required: Yes
Type: string

The name of the field.

type
Required: Yes
Type: string

Defines the data type, some system constraints, and default display of the field.

Result Syntax

[
    'fieldArn' => '<string>',
    'fieldId' => '<string>',
]

Result Details

Members
fieldArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the field.

fieldId
Required: Yes
Type: string

The unique identifier of a field.

Errors

InternalServerException:

We couldn't process your request because of an issue with the server. Try again later.

ResourceNotFoundException:

We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.

ValidationException:

The request isn't valid. Check the syntax and try again.

ThrottlingException:

The rate has been exceeded for this API. Please try again after a few minutes.

AccessDeniedException:

You do not have sufficient access to perform this action.

ConflictException:

The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.

ServiceQuotaExceededException:

The service quota has been exceeded. For a list of service quotas, see Amazon Connect Service Quotas in the Amazon Connect Administrator Guide.

CreateLayout

$result = $client->createLayout([/* ... */]);
$promise = $client->createLayoutAsync([/* ... */]);

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

Title and Status fields cannot be part of layouts since they are not configurable.

Parameter Syntax

$result = $client->createLayout([
    'content' => [ // REQUIRED
        'basic' => [
            'moreInfo' => [
                'sections' => [
                    [
                        'fieldGroup' => [
                            'fields' => [ // REQUIRED
                                [
                                    'id' => '<string>', // REQUIRED
                                ],
                                // ...
                            ],
                            'name' => '<string>',
                        ],
                    ],
                    // ...
                ],
            ],
            'topPanel' => [
                'sections' => [
                    [
                        'fieldGroup' => [
                            'fields' => [ // REQUIRED
                                [
                                    'id' => '<string>', // REQUIRED
                                ],
                                // ...
                            ],
                            'name' => '<string>',
                        ],
                    ],
                    // ...
                ],
            ],
        ],
    ],
    'domainId' => '<string>', // REQUIRED
    'name' => '<string>', // REQUIRED
]);

Parameter Details

Members
content
Required: Yes
Type: LayoutContent structure

Information about which fields will be present in the layout, and information about the order of the fields.

domainId
Required: Yes
Type: string

The unique identifier of the Cases domain.

name
Required: Yes
Type: string

The name of the layout. It must be unique for the Cases domain.

Result Syntax

[
    'layoutArn' => '<string>',
    'layoutId' => '<string>',
]

Result Details

Members
layoutArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the newly created layout.

layoutId
Required: Yes
Type: string

The unique identifier of the layout.

Errors

InternalServerException:

We couldn't process your request because of an issue with the server. Try again later.

ResourceNotFoundException:

We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.

ValidationException:

The request isn't valid. Check the syntax and try again.

ThrottlingException:

The rate has been exceeded for this API. Please try again after a few minutes.

AccessDeniedException:

You do not have sufficient access to perform this action.

ConflictException:

The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.

ServiceQuotaExceededException:

The service quota has been exceeded. For a list of service quotas, see Amazon Connect Service Quotas in the Amazon Connect Administrator Guide.

CreateRelatedItem

$result = $client->createRelatedItem([/* ... */]);
$promise = $client->createRelatedItemAsync([/* ... */]);

Creates a related item (comments, tasks, and contacts) and associates it with a case.

There's a quota for the number of fields allowed in a Custom type related item. See Amazon Connect Cases quotas.

Use cases

Following are examples of related items that you may want to associate with a case:

  • Related contacts, such as calls, chats, emails tasks

  • Comments, for agent notes

  • SLAs, to capture target resolution goals

  • Cases, to capture related Amazon Connect Cases

  • Files, such as policy documentation or customer-provided attachments

  • Custom related items, which provide flexibility for you to define related items that such as bookings, orders, products, notices, and more

Important things to know

  • If you are associating a contact to a case by passing in Contact for a type, you must have DescribeContact permission on the ARN of the contact that you provide in content.contact.contactArn.

  • 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.

  • If you provide a value for performedBy.userArn you must also have DescribeUser permission on the ARN of the user that you provide.

  • The type field is reserved for internal use only.

Endpoints: See Amazon Connect endpoints and quotas.

Parameter Syntax

$result = $client->createRelatedItem([
    'caseId' => '<string>', // REQUIRED
    'content' => [ // REQUIRED
        'comment' => [
            'body' => '<string>', // REQUIRED
            'contentType' => 'Text/Plain', // REQUIRED
        ],
        'connectCase' => [
            'caseId' => '<string>', // REQUIRED
        ],
        'contact' => [
            'contactArn' => '<string>', // REQUIRED
        ],
        'custom' => [
            'fields' => [ // REQUIRED
                [
                    'id' => '<string>', // REQUIRED
                    'value' => [ // REQUIRED
                        'booleanValue' => true || false,
                        'doubleValue' => <float>,
                        'emptyValue' => [
                        ],
                        'stringValue' => '<string>',
                        'userArnValue' => '<string>',
                    ],
                ],
                // ...
            ],
        ],
        'file' => [
            'fileArn' => '<string>', // REQUIRED
        ],
        'sla' => [
            'slaInputConfiguration' => [
                'fieldId' => '<string>',
                'name' => '<string>', // REQUIRED
                'targetFieldValues' => [
                    [
                        'booleanValue' => true || false,
                        'doubleValue' => <float>,
                        'emptyValue' => [
                        ],
                        'stringValue' => '<string>',
                        'userArnValue' => '<string>',
                    ],
                    // ...
                ],
                'targetSlaMinutes' => <integer>, // REQUIRED
                'type' => 'CaseField', // REQUIRED
            ],
        ],
    ],
    'domainId' => '<string>', // REQUIRED
    'performedBy' => [
        'customEntity' => '<string>',
        'userArn' => '<string>',
    ],
    'type' => 'Contact|Comment|File|Sla|ConnectCase|Custom', // REQUIRED
]);

Parameter Details

Members
caseId
Required: Yes
Type: string

A unique identifier of the case.

content
Required: Yes
Type: RelatedItemInputContent structure

The content of a related item to be created.

domainId
Required: Yes
Type: string

The unique identifier of the Cases domain.

performedBy
Type: UserUnion structure

Represents the creator of the related item.

type
Required: Yes
Type: string

The type of a related item.

Result Syntax

[
    'relatedItemArn' => '<string>',
    'relatedItemId' => '<string>',
]

Result Details

Members
relatedItemArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the related item.

relatedItemId
Required: Yes
Type: string

The unique identifier of the related item.

Errors

InternalServerException:

We couldn't process your request because of an issue with the server. Try again later.

ResourceNotFoundException:

We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.

ValidationException:

The request isn't valid. Check the syntax and try again.

ThrottlingException:

The rate has been exceeded for this API. Please try again after a few minutes.

AccessDeniedException:

You do not have sufficient access to perform this action.

ServiceQuotaExceededException:

The service quota has been exceeded. For a list of service quotas, see Amazon Connect Service Quotas in the Amazon Connect Administrator Guide.

CreateTemplate

$result = $client->createTemplate([/* ... */]);
$promise = $client->createTemplateAsync([/* ... */]);

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.

Other template APIs are:

Parameter Syntax

$result = $client->createTemplate([
    'description' => '<string>',
    'domainId' => '<string>', // REQUIRED
    'layoutConfiguration' => [
        'defaultLayout' => '<string>',
    ],
    'name' => '<string>', // REQUIRED
    'requiredFields' => [
        [
            'fieldId' => '<string>', // REQUIRED
        ],
        // ...
    ],
    'rules' => [
        [
            'caseRuleId' => '<string>', // REQUIRED
            'fieldId' => '<string>',
        ],
        // ...
    ],
    'status' => 'Active|Inactive',
    'tagPropagationConfigurations' => [
        [
            'resourceType' => 'Cases', // REQUIRED
            'tagMap' => ['<string>', ...], // REQUIRED
        ],
        // ...
    ],
]);

Parameter Details

Members
description
Type: string

A brief description of the template.

domainId
Required: Yes
Type: string

The unique identifier of the Cases domain.

layoutConfiguration
Type: LayoutConfiguration structure

Configuration of layouts associated to the template.

name
Required: Yes
Type: string

A name for the template. It must be unique per domain.

requiredFields
Type: Array of RequiredField structures

A list of fields that must contain a value for a case to be successfully created with this template.

rules
Type: Array of TemplateRule structures

A list of case rules (also known as case field conditions) on a template.

status
Type: string

The status of the template.

tagPropagationConfigurations
Type: Array of TagPropagationConfiguration structures

Defines tag propagation configuration for resources created within a domain. Tags specified here will be automatically applied to resources being created for the specified resource type.

Result Syntax

[
    'templateArn' => '<string>',
    'templateId' => '<string>',
]

Result Details

Members
templateArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the newly created template.

templateId
Required: Yes
Type: string

A unique identifier of a template.

Errors

InternalServerException:

We couldn't process your request because of an issue with the server. Try again later.

ResourceNotFoundException:

We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.

ValidationException:

The request isn't valid. Check the syntax and try again.

ThrottlingException:

The rate has been exceeded for this API. Please try again after a few minutes.

AccessDeniedException:

You do not have sufficient access to perform this action.

ConflictException:

The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.

ServiceQuotaExceededException:

The service quota has been exceeded. For a list of service quotas, see Amazon Connect Service Quotas in the Amazon Connect Administrator Guide.

DeleteCase

$result = $client->deleteCase([/* ... */]);
$promise = $client->deleteCaseAsync([/* ... */]);

The DeleteCase API permanently deletes a case and all its associated resources from the cases data store. After a successful deletion, you cannot:

  • Retrieve related items

  • Access audit history

  • Perform any operations that require the CaseID

This action is irreversible. After you delete a case, you cannot recover its data.

Parameter Syntax

$result = $client->deleteCase([
    'caseId' => '<string>', // REQUIRED
    'domainId' => '<string>', // REQUIRED
]);

Parameter Details

Members
caseId
Required: Yes
Type: string

A unique identifier of the case.

domainId
Required: Yes
Type: string

A unique identifier of the Cases domain.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InternalServerException:

We couldn't process your request because of an issue with the server. Try again later.

ResourceNotFoundException:

We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.

ValidationException:

The request isn't valid. Check the syntax and try again.

ThrottlingException:

The rate has been exceeded for this API. Please try again after a few minutes.

AccessDeniedException:

You do not have sufficient access to perform this action.

DeleteCaseRule

$result = $client->deleteCaseRule([/* ... */]);
$promise = $client->deleteCaseRuleAsync([/* ... */]);

Deletes a case rule. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template.

Parameter Syntax

$result = $client->deleteCaseRule([
    'caseRuleId' => '<string>', // REQUIRED
    'domainId' => '<string>', // REQUIRED
]);

Parameter Details

Members
caseRuleId
Required: Yes
Type: string

Unique identifier of a case rule.

domainId
Required: Yes
Type: string

Unique identifier of a Cases domain.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InternalServerException:

We couldn't process your request because of an issue with the server. Try again later.

ResourceNotFoundException:

We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.

ThrottlingException:

The rate has been exceeded for this API. Please try again after a few minutes.

AccessDeniedException:

You do not have sufficient access to perform this action.

ConflictException:

The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.

DeleteDomain

$result = $client->deleteDomain([/* ... */]);
$promise = $client->deleteDomainAsync([/* ... */]);

Deletes a Cases domain.

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 DeleteIntegrationAssociation.

Parameter Syntax

$result = $client->deleteDomain([
    'domainId' => '<string>', // REQUIRED
]);

Parameter Details

Members
domainId
Required: Yes
Type: string

The unique identifier of the Cases domain.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InternalServerException:

We couldn't process your request because of an issue with the server. Try again later.

ResourceNotFoundException:

We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.

ValidationException:

The request isn't valid. Check the syntax and try again.

ThrottlingException:

The rate has been exceeded for this API. Please try again after a few minutes.

AccessDeniedException:

You do not have sufficient access to perform this action.

ConflictException:

The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.

DeleteField

$result = $client->deleteField([/* ... */]);
$promise = $client->deleteFieldAsync([/* ... */]);

Deletes a field from a cases template.

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 a ValidationException.

  • Deleted fields are not included in the ListFields response.

  • Calling CreateCase with a deleted field throws a ValidationException denoting which field identifiers in the request have been deleted.

  • Calling GetCase with a deleted field identifier returns the deleted field's value if one exists.

  • Calling UpdateCase with a deleted field ID throws a ValidationException if the case does not already contain a value for the deleted field. Otherwise it succeeds, allowing you to update or remove (using emptyValue: {}) 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 a searchTerm 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 a ValidationException.

  • Calling GetCaseEventConfiguration does not return field IDs for deleted fields.

Parameter Syntax

$result = $client->deleteField([
    'domainId' => '<string>', // REQUIRED
    'fieldId' => '<string>', // REQUIRED
]);

Parameter Details

Members
domainId
Required: Yes
Type: string

The unique identifier of the Cases domain.

fieldId
Required: Yes
Type: string

Unique identifier of the field.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InternalServerException:

We couldn't process your request because of an issue with the server. Try again later.

ResourceNotFoundException:

We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.

ValidationException:

The request isn't valid. Check the syntax and try again.

ThrottlingException:

The rate has been exceeded for this API. Please try again after a few minutes.

AccessDeniedException:

You do not have sufficient access to perform this action.

ConflictException:

The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.

ServiceQuotaExceededException:

The service quota has been exceeded. For a list of service quotas, see Amazon Connect Service Quotas in the Amazon Connect Administrator Guide.

DeleteLayout

$result = $client->deleteLayout([/* ... */]);
$promise = $client->deleteLayoutAsync([/* ... */]);

Deletes a layout from a cases template. You can delete up to 100 layouts per domain.

After a layout is deleted:

  • You can still retrieve the layout by calling GetLayout.

  • You cannot update a deleted layout by calling UpdateLayout; it throws a ValidationException.

  • Deleted layouts are not included in the ListLayouts response.

Parameter Syntax

$result = $client->deleteLayout([
    'domainId' => '<string>', // REQUIRED
    'layoutId' => '<string>', // REQUIRED
]);

Parameter Details

Members
domainId
Required: Yes
Type: string

The unique identifier of the Cases domain.

layoutId
Required: Yes
Type: string

The unique identifier of the layout.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InternalServerException:

We couldn't process your request because of an issue with the server. Try again later.

ResourceNotFoundException:

We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.

ValidationException:

The request isn't valid. Check the syntax and try again.

ThrottlingException:

The rate has been exceeded for this API. Please try again after a few minutes.

AccessDeniedException:

You do not have sufficient access to perform this action.

ConflictException:

The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.

DeleteRelatedItem

$result = $client->deleteRelatedItem([/* ... */]);
$promise = $client->deleteRelatedItemAsync([/* ... */]);

Deletes the related item resource under a case.

This API cannot be used on a FILE type related attachment. To delete this type of file, use the DeleteAttachedFile API

Parameter Syntax

$result = $client->deleteRelatedItem([
    'caseId' => '<string>', // REQUIRED
    'domainId' => '<string>', // REQUIRED
    'relatedItemId' => '<string>', // REQUIRED
]);

Parameter Details

Members
caseId
Required: Yes
Type: string

A unique identifier of the case.

domainId
Required: Yes
Type: string

A unique identifier of the Cases domain.

relatedItemId
Required: Yes
Type: string

A unique identifier of a related item.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InternalServerException:

We couldn't process your request because of an issue with the server. Try again later.

ResourceNotFoundException:

We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.

ValidationException:

The request isn't valid. Check the syntax and try again.

ThrottlingException:

The rate has been exceeded for this API. Please try again after a few minutes.

AccessDeniedException:

You do not have sufficient access to perform this action.

DeleteTemplate

$result = $client->deleteTemplate([/* ... */]);
$promise = $client->deleteTemplateAsync([/* ... */]);

Deletes a cases template. You can delete up to 100 templates per domain.

After a cases template is deleted:

  • You can still retrieve the template by calling GetTemplate.

  • You cannot update the template.

  • You cannot create a case by using the deleted template.

  • Deleted templates are not included in the ListTemplates response.

Parameter Syntax

$result = $client->deleteTemplate([
    'domainId' => '<string>', // REQUIRED
    'templateId' => '<string>', // REQUIRED
]);

Parameter Details

Members
domainId
Required: Yes
Type: string

The unique identifier of the Cases domain.

templateId
Required: Yes
Type: string

A unique identifier of a template.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InternalServerException:

We couldn't process your request because of an issue with the server. Try again later.

ResourceNotFoundException:

We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.

ValidationException:

The request isn't valid. Check the syntax and try again.

ThrottlingException:

The rate has been exceeded for this API. Please try again after a few minutes.

AccessDeniedException:

You do not have sufficient access to perform this action.

ConflictException:

The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.

GetCase

$result = $client->getCase([/* ... */]);
$promise = $client->getCaseAsync([/* ... */]);

Returns information about a specific case if it exists.

Parameter Syntax

$result = $client->getCase([
    'caseId' => '<string>', // REQUIRED
    'domainId' => '<string>', // REQUIRED
    'fields' => [ // REQUIRED
        [
            'id' => '<string>', // REQUIRED
        ],
        // ...
    ],
    'nextToken' => '<string>',
]);

Parameter Details

Members
caseId
Required: Yes
Type: string

A unique identifier of the case.

domainId
Required: Yes
Type: string

The unique identifier of the Cases domain.

fields
Required: Yes
Type: Array of FieldIdentifier structures

A list of unique field identifiers.

nextToken
Type: 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.

Result Syntax

[
    'fields' => [
        [
            'id' => '<string>',
            'value' => [
                'booleanValue' => true || false,
                'doubleValue' => <float>,
                'emptyValue' => [
                ],
                'stringValue' => '<string>',
                'userArnValue' => '<string>',
            ],
        ],
        // ...
    ],
    'nextToken' => '<string>',
    'tags' => ['<string>', ...],
    'templateId' => '<string>',
]

Result Details

Members
fields
Required: Yes
Type: Array of FieldValue structures

A list of detailed field information.

nextToken
Type: string

The token for the next set of results. This is null if there are no more results to return.

tags
Type: Associative array of custom strings keys (String) to strings

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
Required: Yes
Type: string

A unique identifier of a template.

Errors

InternalServerException:

We couldn't process your request because of an issue with the server. Try again later.

ResourceNotFoundException:

We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.

ValidationException:

The request isn't valid. Check the syntax and try again.

ThrottlingException:

The rate has been exceeded for this API. Please try again after a few minutes.

AccessDeniedException:

You do not have sufficient access to perform this action.

GetCaseAuditEvents

$result = $client->getCaseAuditEvents([/* ... */]);
$promise = $client->getCaseAuditEventsAsync([/* ... */]);

Returns the audit history about a specific case if it exists.

Parameter Syntax

$result = $client->getCaseAuditEvents([
    'caseId' => '<string>', // REQUIRED
    'domainId' => '<string>', // REQUIRED
    'maxResults' => <integer>,
    'nextToken' => '<string>',
]);

Parameter Details

Members
caseId
Required: Yes
Type: string

A unique identifier of the case.

domainId
Required: Yes
Type: string

The unique identifier of the Cases domain.

maxResults
Type: int

The maximum number of audit events to return. When no value is provided, 25 is the default.

nextToken
Type: 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.

Result Syntax

[
    'auditEvents' => [
        [
            'eventId' => '<string>',
            'fields' => [
                [
                    'eventFieldId' => '<string>',
                    'newValue' => [
                        'booleanValue' => true || false,
                        'doubleValue' => <float>,
                        'emptyValue' => [
                        ],
                        'stringValue' => '<string>',
                        'userArnValue' => '<string>',
                    ],
                    'oldValue' => [
                        'booleanValue' => true || false,
                        'doubleValue' => <float>,
                        'emptyValue' => [
                        ],
                        'stringValue' => '<string>',
                        'userArnValue' => '<string>',
                    ],
                ],
                // ...
            ],
            'performedBy' => [
                'iamPrincipalArn' => '<string>',
                'user' => [
                    'customEntity' => '<string>',
                    'userArn' => '<string>',
                ],
            ],
            'performedTime' => <DateTime>,
            'relatedItemType' => 'Contact|Comment|File|Sla|ConnectCase|Custom',
            'type' => 'Case.Created|Case.Updated|RelatedItem.Created|RelatedItem.Deleted|RelatedItem.Updated',
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
auditEvents
Required: Yes
Type: Array of AuditEvent structures

A list of case audits where each represents a particular edit of the case.

nextToken
Type: string

The token for the next set of results. This is null if there are no more results to return.

Errors

InternalServerException:

We couldn't process your request because of an issue with the server. Try again later.

ResourceNotFoundException:

We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.

ValidationException:

The request isn't valid. Check the syntax and try again.

ThrottlingException:

The rate has been exceeded for this API. Please try again after a few minutes.

AccessDeniedException:

You do not have sufficient access to perform this action.

GetCaseEventConfiguration

$result = $client->getCaseEventConfiguration([/* ... */]);
$promise = $client->getCaseEventConfigurationAsync([/* ... */]);

Returns the case event publishing configuration.

Parameter Syntax

$result = $client->getCaseEventConfiguration([
    'domainId' => '<string>', // REQUIRED
]);

Parameter Details

Members
domainId
Required: Yes
Type: string

The unique identifier of the Cases domain.

Result Syntax

[
    'eventBridge' => [
        'enabled' => true || false,
        'includedData' => [
            'caseData' => [
                'fields' => [
                    [
                        'id' => '<string>',
                    ],
                    // ...
                ],
            ],
            'relatedItemData' => [
                'includeContent' => true || false,
            ],
        ],
    ],
]

Result Details

Members
eventBridge
Required: Yes
Type: EventBridgeConfiguration structure

Configuration to enable EventBridge case event delivery and determine what data is delivered.

Errors

InternalServerException:

We couldn't process your request because of an issue with the server. Try again later.

ResourceNotFoundException:

We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.

ValidationException:

The request isn't valid. Check the syntax and try again.

ThrottlingException:

The rate has been exceeded for this API. Please try again after a few minutes.

AccessDeniedException:

You do not have sufficient access to perform this action.

GetDomain

$result = $client->getDomain([/* ... */]);
$promise = $client->getDomainAsync([/* ... */]);

Returns information about a specific domain if it exists.

Parameter Syntax

$result = $client->getDomain([
    'domainId' => '<string>', // REQUIRED
]);

Parameter Details

Members
domainId
Required: Yes
Type: string

The unique identifier of the Cases domain.

Result Syntax

[
    'createdTime' => <DateTime>,
    'domainArn' => '<string>',
    'domainId' => '<string>',
    'domainStatus' => 'Active|CreationInProgress|CreationFailed',
    'name' => '<string>',
    'tags' => ['<string>', ...],
]

Result Details

Members
createdTime
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The timestamp when the Cases domain was created.

domainArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) for the Cases domain.

domainId
Required: Yes
Type: string

The unique identifier of the Cases domain.

domainStatus
Required: Yes
Type: string

The status of the Cases domain.

name
Required: Yes
Type: string

The name of the Cases domain.

tags
Type: Associative array of custom strings keys (String) to strings

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.

Errors

InternalServerException:

We couldn't process your request because of an issue with the server. Try again later.

ResourceNotFoundException:

We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.

ValidationException:

The request isn't valid. Check the syntax and try again.

ThrottlingException:

The rate has been exceeded for this API. Please try again after a few minutes.

AccessDeniedException:

You do not have sufficient access to perform this action.

GetLayout

$result = $client->getLayout([/* ... */]);
$promise = $client->getLayoutAsync([/* ... */]);

Returns the details for the requested layout.

Parameter Syntax

$result = $client->getLayout([
    'domainId' => '<string>', // REQUIRED
    'layoutId' => '<string>', // REQUIRED
]);

Parameter Details

Members
domainId
Required: Yes
Type: string

The unique identifier of the Cases domain.

layoutId
Required: Yes
Type: string

The unique identifier of the layout.

Result Syntax

[
    'content' => [
        'basic' => [
            'moreInfo' => [
                'sections' => [
                    [
                        'fieldGroup' => [
                            'fields' => [
                                [
                                    'id' => '<string>',
                                ],
                                // ...
                            ],
                            'name' => '<string>',
                        ],
                    ],
                    // ...
                ],
            ],
            'topPanel' => [
                'sections' => [
                    [
                        'fieldGroup' => [
                            'fields' => [
                                [
                                    'id' => '<string>',
                                ],
                                // ...
                            ],
                            'name' => '<string>',
                        ],
                    ],
                    // ...
                ],
            ],
        ],
    ],
    'createdTime' => <DateTime>,
    'deleted' => true || false,
    'lastModifiedTime' => <DateTime>,
    'layoutArn' => '<string>',
    'layoutId' => '<string>',
    'name' => '<string>',
    'tags' => ['<string>', ...],
]

Result Details

Members
content
Required: Yes
Type: LayoutContent structure

Information about which fields will be present in the layout, the order of the fields, and read-only attribute of the field.

createdTime
Type: timestamp (string|DateTime or anything parsable by strtotime)

Timestamp at which the resource was created.

deleted
Type: boolean

Denotes whether or not the resource has been deleted.

lastModifiedTime
Type: timestamp (string|DateTime or anything parsable by strtotime)

Timestamp at which the resource was created or last modified.

layoutArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the newly created layout.

layoutId
Required: Yes
Type: string

The unique identifier of the layout.

name
Required: Yes
Type: string

The name of the layout. It must be unique.

tags
Type: Associative array of custom strings keys (String) to strings

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.

Errors

InternalServerException:

We couldn't process your request because of an issue with the server. Try again later.

ResourceNotFoundException:

We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.