Did you find this page useful? Do you have a suggestion to improve the documentation? Give us feedback.
If you would like to suggest an improvement or fix for the AWS CLI, check out our contributing guide on GitHub.
First time using the AWS CLI? See the User Guide for help getting started.
We announced the upcoming end-of-support for the AWS CLI v1. For dates, additional details, and information on how to migrate, please refer to the linked announcement. For more information see the AWS CLI version 2 installation instructions and migration guide.
[ aws . connectcases ]
Updates the content of a related item associated with a case. The following related item types are supported:
Important things to know
performedBy.userArn you must also have DescribeUser permission on the ARN of the user that you provide.Endpoints : See Amazon Connect endpoints and quotas .
See also: AWS API Documentation
update-related-item
--domain-id <value>
--case-id <value>
--related-item-id <value>
--content <value>
[--performed-by <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--v2-debug]
--domain-id (string)
The unique identifier of the Cases domain.
--case-id (string)
A unique identifier of the case.
--related-item-id (string)
Unique identifier of a related item.
--content (tagged union structure)
The content of a related item to be updated.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:comment,custom.comment -> (structure)
Represents the updated content of a
Commentrelated item.body -> (string)
Updated text in the body of aCommenton a case.contentType -> (string)
Type of the text in the box of aCommenton a case.custom -> (structure)
Represents the updated content of a
Customrelated item.fields -> (list)
List of updated field values for the
Customrelated item. All existing and new fields, and their associated values should be included. Fields not included as part of this request will be removed.(structure)
Object for case field values.
id -> (string)
Unique identifier of a field.value -> (tagged union structure)
Union of potential field value types.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:stringValue,doubleValue,booleanValue,emptyValue,userArnValue.stringValue -> (string)
String value type.doubleValue -> (double)
Can be either null, or have a Double number value type. Only one value can be provided.booleanValue -> (boolean)
Can be either null, or have a Boolean value type. Only one value can be provided.emptyValue -> (structure)
An empty value.userArnValue -> (string)
Represents the user that performed the audit.
JSON Syntax:
{
"comment": {
"body": "string",
"contentType": "Text/Plain"
},
"custom": {
"fields": [
{
"id": "string",
"value": {
"stringValue": "string",
"doubleValue": double,
"booleanValue": true|false,
"emptyValue": {
},
"userArnValue": "string"
}
}
...
]
}
}
--performed-by (tagged union structure)
Represents the user who performed the update of the related item.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:userArn,customEntity.userArn -> (string)
Represents the Amazon Connect ARN of the user.customEntity -> (string)
Any provided entity.
Shorthand Syntax:
userArn=string,customEntity=string
JSON Syntax:
{
"userArn": "string",
"customEntity": "string"
}
--cli-input-json (string)
Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally.
--generate-cli-skeleton (string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.
--debug (boolean)
Turn on debug logging.
--endpoint-url (string)
Override command’s default URL with the given URL.
--no-verify-ssl (boolean)
By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.
--no-paginate (boolean)
Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.
--output (string)
The formatting style for command output.
--query (string)
A JMESPath query to use in filtering the response data.
--profile (string)
Use a specific profile from your credential file.
--region (string)
The region to use. Overrides config/env settings.
--version (string)
Display the version of this tool.
--color (string)
Turn on/off color output.
--no-sign-request (boolean)
Do not sign requests. Credentials will not be loaded if this argument is provided.
--ca-bundle (string)
The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.
--cli-read-timeout (int)
The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.
--cli-connect-timeout (int)
The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.
--v2-debug (boolean)
Enable AWS CLI v2 migration assistance. Prints warnings if the command would face a breaking change after swapping AWS CLI v1 for AWS CLI v2 in the current environment. Prints one warning for each breaking change detected.
relatedItemId -> (string)
The unique identifier of the updated related item.
relatedItemArn -> (string)
The Amazon Resource Name (ARN) of the updated related item.
type -> (string)
Type of the updated related item.
content -> (tagged union structure)
Represents the content of the updated related item.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:contact,comment,file,sla,connectCase,custom.contact -> (structure)
Represents the content of a contact to be returned to agents.
contactArn -> (string)
A unique identifier of a contact in Amazon Connect.channel -> (string)
A list of channels to filter on for related items of typeContact.connectedToSystemTime -> (timestamp)
The difference between theInitiationTimestampand theDisconnectTimestampof the contact.comment -> (structure)
Represents the content of a comment to be returned to agents.
body -> (string)
Text in the body of aCommenton a case.contentType -> (string)
Type of the text in the box of aCommenton a case.file -> (structure)
Represents the content of a File to be returned to agents.
fileArn -> (string)
The Amazon Resource Name (ARN) of a File in Amazon Connect.sla -> (structure)
Represents the content of an SLA to be returned to agents.
slaConfiguration -> (structure)
Represents an SLA configuration.
name -> (string)
Name of an SLA.type -> (string)
Type of SLA.status -> (string)
Status of an SLA.fieldId -> (string)
Unique identifier of a field.targetFieldValues -> (list)
Represents a list of target field values for the fieldId specified in SlaConfiguration.
(tagged union structure)
Object to store union of Field values.
Note
TheSummarysystem field accepts up to 3000 characters, while all other fields accept up to 4100 characters. If you use multi-byte characters, the effective character limit may be lower.Note
This is a Tagged Union structure. Only one of the following top level keys can be set:stringValue,doubleValue,booleanValue,emptyValue,userArnValue.stringValue -> (string)
String value type.doubleValue -> (double)
Can be either null, or have a Double number value type. Only one value can be provided.booleanValue -> (boolean)
Can be either null, or have a Boolean value type. Only one value can be provided.emptyValue -> (structure)
An empty value.userArnValue -> (string)
Represents the user that performed the audit.targetTime -> (timestamp)
Target time by which an SLA should be completed.completionTime -> (timestamp)
Time at which an SLA was completed.connectCase -> (structure)
Represents the Amazon Connect case to be created as a related item.
caseId -> (string)
A unique identifier of the case.custom -> (structure)
Represents the content of a
Customtype related item.fields -> (list)
List of field values for the
Customrelated item.(structure)
Object for case field values.
id -> (string)
Unique identifier of a field.value -> (tagged union structure)
Union of potential field value types.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:stringValue,doubleValue,booleanValue,emptyValue,userArnValue.stringValue -> (string)
String value type.doubleValue -> (double)
Can be either null, or have a Double number value type. Only one value can be provided.booleanValue -> (boolean)
Can be either null, or have a Boolean value type. Only one value can be provided.emptyValue -> (structure)
An empty value.userArnValue -> (string)
Represents the user that performed the audit.
associationTime -> (timestamp)
Time at which the related item was associated with the case.
tags -> (map)
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.
key -> (string)
value -> (string)
lastUpdatedUser -> (tagged union structure)
Represents the last user that updated the related item.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:userArn,customEntity.userArn -> (string)
Represents the Amazon Connect ARN of the user.customEntity -> (string)
Any provided entity.
createdBy -> (tagged union structure)
Represents the creator of the related item.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:userArn,customEntity.userArn -> (string)
Represents the Amazon Connect ARN of the user.customEntity -> (string)
Any provided entity.