Class: Aws::ConnectCases::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::ConnectCases::Client
- Includes:
- Aws::ClientStubs
- Defined in:
- gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb
Overview
An API client for ConnectCases. To construct a client, you need to configure a :region and :credentials.
client = Aws::ConnectCases::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#batch_create_related_item(params = {}) ⇒ Types::BatchCreateRelatedItemResponse
Creates a comment and associates it with multiple cases in a single request.
-
#batch_get_case_rule(params = {}) ⇒ Types::BatchGetCaseRuleResponse
Gets a batch of case rules.
-
#batch_get_field(params = {}) ⇒ Types::BatchGetFieldResponse
Returns the description for the list of fields in the request parameters.
-
#batch_put_field_options(params = {}) ⇒ Types::BatchPutFieldOptionsResponse
Creates and updates a set of field options for a single select field in a Cases domain.
-
#batch_update_case(params = {}) ⇒ Types::BatchUpdateCaseResponse
Updates fields on multiple cases in a single request.
-
#create_case(params = {}) ⇒ Types::CreateCaseResponse
If you provide a value for PerformedBy.UserArn, you must also have the [connect:DescribeUser][1] permission on the user ARN that you provide. -
#create_case_rule(params = {}) ⇒ Types::CreateCaseRuleResponse
Creates a new case rule.
-
#create_domain(params = {}) ⇒ Types::CreateDomainResponse
Creates a domain, which is a container for all case data, such as cases, fields, templates and layouts.
-
#create_field(params = {}) ⇒ Types::CreateFieldResponse
Creates a field in the Cases domain.
-
#create_layout(params = {}) ⇒ Types::CreateLayoutResponse
Creates a layout in the Cases domain.
-
#create_related_item(params = {}) ⇒ Types::CreateRelatedItemResponse
Creates a related item (comments, tasks, and contacts) and associates it with a case.
-
#create_template(params = {}) ⇒ Types::CreateTemplateResponse
Creates a template in the Cases domain.
-
#delete_case(params = {}) ⇒ Struct
The DeleteCase API permanently deletes a case and all its associated resources from the cases data store.
-
#delete_case_rule(params = {}) ⇒ Struct
Deletes a case rule.
-
#delete_domain(params = {}) ⇒ Struct
Deletes a Cases domain.
-
#delete_field(params = {}) ⇒ Struct
Deletes a field from a Cases template.
-
#delete_layout(params = {}) ⇒ Struct
Deletes a layout from a Cases template.
-
#delete_related_item(params = {}) ⇒ Struct
Deletes the related item resource under a case.
-
#delete_template(params = {}) ⇒ Struct
Deletes a Cases template.
-
#get_case(params = {}) ⇒ Types::GetCaseResponse
Returns information about a specific case if it exists.
-
#get_case_audit_events(params = {}) ⇒ Types::GetCaseAuditEventsResponse
Returns the audit history about a specific case if it exists.
-
#get_case_event_configuration(params = {}) ⇒ Types::GetCaseEventConfigurationResponse
Returns the case event publishing configuration.
-
#get_domain(params = {}) ⇒ Types::GetDomainResponse
Returns information about a specific domain if it exists.
-
#get_layout(params = {}) ⇒ Types::GetLayoutResponse
Returns the details for the requested layout.
-
#get_merge_cases_status(params = {}) ⇒ Types::GetMergeCasesStatusResponse
Returns the merge status of a case.
-
#get_template(params = {}) ⇒ Types::GetTemplateResponse
Returns the details for the requested template.
-
#list_case_rules(params = {}) ⇒ Types::ListCaseRulesResponse
Lists all case rules in a Cases domain.
-
#list_cases_for_contact(params = {}) ⇒ Types::ListCasesForContactResponse
Lists cases for a given contact.
-
#list_domains(params = {}) ⇒ Types::ListDomainsResponse
Lists all cases domains in the Amazon Web Services account.
-
#list_field_options(params = {}) ⇒ Types::ListFieldOptionsResponse
Lists all of the field options for a field identifier in the domain.
-
#list_fields(params = {}) ⇒ Types::ListFieldsResponse
Lists all fields in a Cases domain.
-
#list_layouts(params = {}) ⇒ Types::ListLayoutsResponse
Lists all layouts in the given cases domain.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists tags for a resource.
-
#list_templates(params = {}) ⇒ Types::ListTemplatesResponse
Lists all of the templates in a Cases domain.
-
#put_case_event_configuration(params = {}) ⇒ Struct
Adds case event publishing configuration.
-
#search_all_related_items(params = {}) ⇒ Types::SearchAllRelatedItemsResponse
Searches for related items across all cases within a domain.
-
#search_cases(params = {}) ⇒ Types::SearchCasesResponse
Searches for cases within their associated Cases domain.
-
#search_related_items(params = {}) ⇒ Types::SearchRelatedItemsResponse
Searches for related items that are associated with a case.
-
#start_merge_cases(params = {}) ⇒ Struct
Merges a secondary case into a primary case.
-
#tag_resource(params = {}) ⇒ Struct
Adds tags to a resource.
-
#untag_resource(params = {}) ⇒ Struct
Untags a resource.
-
#update_case(params = {}) ⇒ Struct
If you provide a value for PerformedBy.UserArn, you must also have the [connect:DescribeUser][1] permission on the user ARN that you provide. -
#update_case_rule(params = {}) ⇒ Struct
Updates a case rule.
-
#update_field(params = {}) ⇒ Struct
Updates the properties of an existing field.
-
#update_layout(params = {}) ⇒ Struct
Updates the attributes of an existing layout.
-
#update_related_item(params = {}) ⇒ Types::UpdateRelatedItemResponse
Updates the content of a related item associated with a case.
-
#update_template(params = {}) ⇒ Struct
Updates the attributes of an existing template.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from Aws::ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
479 480 481 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 479 def initialize(*args) super end |
Instance Method Details
#batch_create_related_item(params = {}) ⇒ Types::BatchCreateRelatedItemResponse
Creates a comment and associates it with multiple cases in a single request. All cases must belong to the same domain. This operation supports only the Comment related item type.
Each case is processed independently. If some cases fail, the
remaining cases still receive the related item. To determine whether
individual items failed, inspect the failedItems array in the
response.
The entire request fails, and no related items are created, in the following cases:
The specified domain doesn't exist.
A reference ID doesn't match any case in the domain.
The request contains duplicate case IDs.
The content isn't comment content.
cases:CreateRelatedItem). You can use the cases:IsBatchAction
condition key in IAM policies to allow or deny batch operations
independently from single-case operations.
performedBy.userArn, you must also have
DescribeUser permission on the ARN of the user that you provide.
Endpoints: See Connect Customer endpoints and quotas.
649 650 651 652 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 649 def (params = {}, = {}) req = build_request(:batch_create_related_item, params) req.send_request() end |
#batch_get_case_rule(params = {}) ⇒ Types::BatchGetCaseRuleResponse
Gets a batch of case rules. In the Connect Customer 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.
743 744 745 746 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 743 def batch_get_case_rule(params = {}, = {}) req = build_request(:batch_get_case_rule, params) req.send_request() end |
#batch_get_field(params = {}) ⇒ Types::BatchGetFieldResponse
Returns the description for the list of fields in the request parameters.
797 798 799 800 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 797 def batch_get_field(params = {}, = {}) req = build_request(:batch_get_field, params) req.send_request() end |
#batch_put_field_options(params = {}) ⇒ Types::BatchPutFieldOptionsResponse
Creates and updates a set of field options for a single select field in a Cases domain.
843 844 845 846 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 843 def (params = {}, = {}) req = build_request(:batch_put_field_options, params) req.send_request() end |
#batch_update_case(params = {}) ⇒ Types::BatchUpdateCaseResponse
Updates fields on multiple cases in a single request. All cases must
belong to the same domain. Set the title, status, and customer ID
through the top-level title, status, and customerId parameters,
and set other fields through the fields array.
Each case is processed independently. If some cases fail, the
remaining cases are still updated. To determine whether individual
cases failed, inspect the failedCases array in the response.
The entire request fails, and no cases are updated, in the following cases:
The specified domain doesn't exist.
A reference ID doesn't match any case in the domain.
The request contains duplicate case IDs.
The request doesn't specify any update. Provide at least one entry in
fields, or atitle,status, orcustomerId.A field identifier in
fieldsdoesn't resolve to a field in the domain, for example, an unknown field name.A field name contains a pipe (
|) or comma (,) character.fieldsincludestitle,status, orcustomerId.
cases:UpdateCase). You can use the cases:IsBatchAction condition
key in IAM policies to allow or deny batch operations independently
from single-case operations.
performedBy.userArn, you must also have
DescribeUser permission on the ARN of the user that you provide.
Endpoints: See Connect Customer endpoints and quotas.
1004 1005 1006 1007 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 1004 def batch_update_case(params = {}, = {}) req = build_request(:batch_update_case, params) req.send_request() end |
#create_case(params = {}) ⇒ Types::CreateCaseResponse
PerformedBy.UserArn,
you must also have
the connect:DescribeUser permission on the user ARN 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 field is always required when creating a case:
title
^
The following field may be required depending on the template configuration:
customer_id- Required only if the template'srequiredFieldslist includescustomer_id. When required, 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.
When not required, the field is optional and can be omitted, added,
changed, or removed after case creation.
^
1119 1120 1121 1122 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 1119 def create_case(params = {}, = {}) req = build_request(:create_case, params) req.send_request() end |
#create_case_rule(params = {}) ⇒ Types::CreateCaseRuleResponse
Creates a new case rule. In the Connect Customer 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.
1265 1266 1267 1268 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 1265 def create_case_rule(params = {}, = {}) req = build_request(:create_case_rule, params) req.send_request() end |
#create_domain(params = {}) ⇒ Types::CreateDomainResponse
Creates a domain, which is a container for all case data, such as cases, fields, templates and layouts. Each Connect Customer instance can be associated with only one Cases domain.
This will not associate your connect instance to Cases domain. Instead, use the Connect Customer CreateIntegrationAssociation API. You need specific IAM permissions to successfully associate the Cases domain. For more information, see Onboard to Cases.
1310 1311 1312 1313 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 1310 def create_domain(params = {}, = {}) req = build_request(:create_domain, params) req.send_request() end |
#create_field(params = {}) ⇒ Types::CreateFieldResponse
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.
1363 1364 1365 1366 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 1363 def create_field(params = {}, = {}) req = build_request(:create_field, params) req.send_request() end |
#create_layout(params = {}) ⇒ Types::CreateLayoutResponse
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
1444 1445 1446 1447 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 1444 def create_layout(params = {}, = {}) req = build_request(:create_layout, params) req.send_request() end |
#create_related_item(params = {}) ⇒ Types::CreateRelatedItemResponse
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 Connect Customer Cases quotas.
There's a quota for the number of SLAs that can be attached to a case. See Connect Customer 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 Connect Customer 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
Contactfor atype, you must have DescribeContact permission on the ARN of the contact that you provide incontent.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, therelatedItemArn. Examples of related items includecommentsandcontacts.If you provide a value for
performedBy.userArn, you must also have DescribeUser permission on the ARN of the user that you provide.If the case is the secondary case of a merge that is running, the request fails with a
ConflictException. For more information, see StartMergeCases.
Endpoints: See Connect Customer endpoints and quotas.
1596 1597 1598 1599 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 1596 def (params = {}, = {}) req = build_request(:create_related_item, params) req.send_request() end |
#create_template(params = {}) ⇒ Types::CreateTemplateResponse
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:
1709 1710 1711 1712 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 1709 def create_template(params = {}, = {}) req = build_request(:create_template, params) req.send_request() end |
#delete_case(params = {}) ⇒ Struct
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
You can't delete a case while it's part of a merge that is running,
as either the primary or the secondary case. The request fails with a
ConflictException. For more information, see StartMergeCases.
This action is irreversible. After you delete a case, you cannot recover its data.
1754 1755 1756 1757 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 1754 def delete_case(params = {}, = {}) req = build_request(:delete_case, params) req.send_request() end |
#delete_case_rule(params = {}) ⇒ Struct
Deletes a case rule. In the Connect Customer 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.
1787 1788 1789 1790 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 1787 def delete_case_rule(params = {}, = {}) req = build_request(:delete_case_rule, params) req.send_request() end |
#delete_domain(params = {}) ⇒ Struct
Deletes a Cases domain.
1820 1821 1822 1823 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 1820 def delete_domain(params = {}, = {}) req = build_request(:delete_domain, params) req.send_request() end |
#delete_field(params = {}) ⇒ Struct
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 aValidationException.Deleted fields are not included in the
ListFieldsresponse.Calling
CreateCasewith a deleted field throws aValidationExceptiondenoting which field identifiers in the request have been deleted.Calling
GetCasewith a deleted field identifier returns the deleted field's value if one exists.Calling
UpdateCasewith a deleted field ID throws aValidationExceptionif the case does not already contain a value for the deleted field. Otherwise it succeeds, allowing you to update or remove (usingemptyValue: {}) the field's value from the case.GetTemplatedoes not return field IDs for deleted fields.GetLayoutdoes not return field IDs for deleted fields.Calling
SearchCaseswith the deleted field ID as a filter returns any cases that have a value for the deleted field that matches the filter criteria.Calling
SearchCaseswith asearchTermvalue that matches a deleted field's value on a case returns the case in the response.Calling
BatchPutFieldOptionswith a deleted field ID throw aValidationException.Calling
GetCaseEventConfigurationdoes not return field IDs for deleted fields.
1884 1885 1886 1887 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 1884 def delete_field(params = {}, = {}) req = build_request(:delete_field, params) req.send_request() end |
#delete_layout(params = {}) ⇒ Struct
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 aValidationException.Deleted layouts are not included in the
ListLayoutsresponse.
1920 1921 1922 1923 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 1920 def delete_layout(params = {}, = {}) req = build_request(:delete_layout, params) req.send_request() end |
#delete_related_item(params = {}) ⇒ Struct
Deletes the related item resource under a case.
If the case is the secondary case of a merge that is running, the
request fails with a ConflictException. For more information, see
StartMergeCases.
1964 1965 1966 1967 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 1964 def (params = {}, = {}) req = build_request(:delete_related_item, params) req.send_request() end |
#delete_template(params = {}) ⇒ Struct
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
ListTemplatesresponse.
2001 2002 2003 2004 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 2001 def delete_template(params = {}, = {}) req = build_request(:delete_template, params) req.send_request() end |
#get_case(params = {}) ⇒ Types::GetCaseResponse
Returns information about a specific case if it exists.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2061 2062 2063 2064 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 2061 def get_case(params = {}, = {}) req = build_request(:get_case, params) req.send_request() end |
#get_case_audit_events(params = {}) ⇒ Types::GetCaseAuditEventsResponse
Returns the audit history about a specific case if it exists.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2128 2129 2130 2131 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 2128 def get_case_audit_events(params = {}, = {}) req = build_request(:get_case_audit_events, params) req.send_request() end |
#get_case_event_configuration(params = {}) ⇒ Types::GetCaseEventConfigurationResponse
Returns the case event publishing configuration.
2160 2161 2162 2163 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 2160 def get_case_event_configuration(params = {}, = {}) req = build_request(:get_case_event_configuration, params) req.send_request() end |
#get_domain(params = {}) ⇒ Types::GetDomainResponse
Returns information about a specific domain if it exists.
2199 2200 2201 2202 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 2199 def get_domain(params = {}, = {}) req = build_request(:get_domain, params) req.send_request() end |
#get_layout(params = {}) ⇒ Types::GetLayoutResponse
Returns the details for the requested layout.
2253 2254 2255 2256 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 2253 def get_layout(params = {}, = {}) req = build_request(:get_layout, params) req.send_request() end |
#get_merge_cases_status(params = {}) ⇒ Types::GetMergeCasesStatusResponse
Returns the merge status of a case. Use this operation to track a merge that you started with StartMergeCases, or to check whether a case is part of a merge before you modify it.
The operation returns the following, depending on the case:
For the primary case or the secondary case of a merge that is running, it returns
IN_PROGRESS.For a case that was merged into another case as the secondary case, it returns
COMPLETED.For any other case, it returns a
ResourceNotFoundException. This includes the primary case after its merge finishes.
Endpoints: See Connect Customer endpoints and quotas.
2311 2312 2313 2314 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 2311 def get_merge_cases_status(params = {}, = {}) req = build_request(:get_merge_cases_status, params) req.send_request() end |
#get_template(params = {}) ⇒ Types::GetTemplateResponse
Returns the details for the requested template. Other template APIs are:
2390 2391 2392 2393 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 2390 def get_template(params = {}, = {}) req = build_request(:get_template, params) req.send_request() end |
#list_case_rules(params = {}) ⇒ Types::ListCaseRulesResponse
Lists all case rules in a Cases domain. In the Connect Customer 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.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2444 2445 2446 2447 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 2444 def list_case_rules(params = {}, = {}) req = build_request(:list_case_rules, params) req.send_request() end |
#list_cases_for_contact(params = {}) ⇒ Types::ListCasesForContactResponse
Lists cases for a given contact.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2492 2493 2494 2495 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 2492 def list_cases_for_contact(params = {}, = {}) req = build_request(:list_cases_for_contact, params) req.send_request() end |
#list_domains(params = {}) ⇒ Types::ListDomainsResponse
Lists all cases domains in the Amazon Web Services account. Each list item is a condensed summary object of the domain.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2534 2535 2536 2537 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 2534 def list_domains(params = {}, = {}) req = build_request(:list_domains, params) req.send_request() end |
#list_field_options(params = {}) ⇒ Types::ListFieldOptionsResponse
Lists all of the field options for a field identifier in the domain.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2587 2588 2589 2590 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 2587 def (params = {}, = {}) req = build_request(:list_field_options, params) req.send_request() end |
#list_fields(params = {}) ⇒ Types::ListFieldsResponse
Lists all fields in a Cases domain.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2635 2636 2637 2638 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 2635 def list_fields(params = {}, = {}) req = build_request(:list_fields, params) req.send_request() end |
#list_layouts(params = {}) ⇒ Types::ListLayoutsResponse
Lists all layouts in the given cases domain. Each list item is a condensed summary object of the layout.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2681 2682 2683 2684 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 2681 def list_layouts(params = {}, = {}) req = build_request(:list_layouts, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists tags for a resource.
2710 2711 2712 2713 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 2710 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#list_templates(params = {}) ⇒ Types::ListTemplatesResponse
Lists all of the templates in a Cases domain. Each list item is a condensed summary object of the template.
Other template APIs are:
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2782 2783 2784 2785 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 2782 def list_templates(params = {}, = {}) req = build_request(:list_templates, params) req.send_request() end |
#put_case_event_configuration(params = {}) ⇒ Struct
Adds case event publishing configuration. For a complete list of fields you can add to the event message, see Create case fields in the Connect Customer Administrator Guide.
2830 2831 2832 2833 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 2830 def put_case_event_configuration(params = {}, = {}) req = build_request(:put_case_event_configuration, params) req.send_request() end |
#search_all_related_items(params = {}) ⇒ Types::SearchAllRelatedItemsResponse
Searches for related items across all cases within a domain. This is a global search operation that returns related items from multiple cases, unlike the case-specific SearchRelatedItems API.
Use cases
Following are common uses cases for this API:
Find cases with similar issues across the domain. For example, search for all cases containing comments about "product defect" to identify patterns and existing solutions.
Locate all cases associated with specific contacts or orders. For example, find all cases linked to a contactArn to understand the complete customer journey.
Monitor SLA compliance across cases. For example, search for all cases with "Active" SLA status to prioritize remediation efforts.
Important things to know
This API returns case identifiers, not complete case objects. To retrieve full case details, you must make additional calls to the GetCase API for each returned case ID.
This API searches across related items content, not case fields. Use the SearchCases API to search within case field values.
Endpoints: See Connect Customer endpoints and quotas.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3061 3062 3063 3064 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 3061 def (params = {}, = {}) req = build_request(:search_all_related_items, params) req.send_request() end |
#search_cases(params = {}) ⇒ Types::SearchCasesResponse
Searches for cases within their associated Cases domain. Search results are returned as a paginated list of abridged case documents.
customer_id you must provide the full customer profile ARN in
this format: arn:aws:profile:your AWS Region:your AWS account
ID:domains/profiles domain name/profiles/profile ID.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3237 3238 3239 3240 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 3237 def search_cases(params = {}, = {}) req = build_request(:search_cases, params) req.send_request() end |
#search_related_items(params = {}) ⇒ Types::SearchRelatedItemsResponse
Searches for related items that are associated with a case.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3428 3429 3430 3431 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 3428 def (params = {}, = {}) req = build_request(:search_related_items, params) req.send_request() end |
#start_merge_cases(params = {}) ⇒ Struct
Merges a secondary case into a primary case. The primary case, which you specify in the request URI, remains active. Both cases must belong to the same domain.
The merge runs asynchronously. To track its progress, call GetMergeCasesStatus. When the merge finishes, the selected field values and related items from the secondary case are on the primary case, the two cases are linked, and the secondary case is closed. Both cases record the merge in their audit history. For more information, see GetCaseAuditEvents.
Important things to know
Both cases must have the same customer, or at least one of them must have no customer.
While the merge runs, you can't modify the secondary case or its related items, and you can't delete the primary case. These requests return a
ConflictException.After the merge, the secondary case can be reopened, updated, and deleted, but it can't be merged again.
The request fails with a ValidationException, and no merge starts,
if:
The primary case and the secondary case are the same case.
Either case is closed.
Both cases have a customer, and the customers are different.
fieldsConfigurationselects a field that can't be merged, or a field that the secondary case doesn't have.After the merge, the primary case would have more than 500 field values, or would exceed the maximum case size.
The request fails with a ServiceQuotaExceededException if, after the
merge, either case would exceed the quota for related items per case.
For the primary case, the count is its existing related items, plus
the related items moved from the secondary case, plus the new case
link. See Connect Customer Cases quotas.
The request fails with a ConflictException if either case is already
part of a merge that is running, or was previously merged into another
case as the secondary case.
Endpoints: See Connect Customer endpoints and quotas.
3582 3583 3584 3585 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 3582 def start_merge_cases(params = {}, = {}) req = build_request(:start_merge_cases, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds tags to a resource.
3611 3612 3613 3614 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 3611 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Untags a resource.
3637 3638 3639 3640 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 3637 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_case(params = {}) ⇒ Struct
PerformedBy.UserArn,
you must also have
the connect:DescribeUser permission on the user ARN that you
provide.
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 case is the secondary case of a merge that is running, the
request fails with a ConflictException. For more information, see
StartMergeCases.
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
3708 3709 3710 3711 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 3708 def update_case(params = {}, = {}) req = build_request(:update_case, params) req.send_request() end |
#update_case_rule(params = {}) ⇒ Struct
Updates a case rule. In the Connect Customer 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.
3850 3851 3852 3853 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 3850 def update_case_rule(params = {}, = {}) req = build_request(:update_case_rule, params) req.send_request() end |
#update_field(params = {}) ⇒ Struct
Updates the properties of an existing field.
3892 3893 3894 3895 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 3892 def update_field(params = {}, = {}) req = build_request(:update_field, params) req.send_request() end |
#update_layout(params = {}) ⇒ Struct
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.
3969 3970 3971 3972 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 3969 def update_layout(params = {}, = {}) req = build_request(:update_layout, params) req.send_request() end |
#update_related_item(params = {}) ⇒ Types::UpdateRelatedItemResponse
Updates the content of a related item associated with a case. The following related item types are supported:
Comment - Update the text content of an existing comment
Custom - Update the fields of a custom related item. You can add, modify, and remove fields from a custom related item. There's a quota for the number of fields allowed in a Custom type related item. See Connect Customer Cases quotas.
Sla - Update the target duration (
targetSlaMinutes) of an SLA. The new deadline is counted from when the SLA was created. The SLA status is recalculated against the new deadline: an open SLA becomes Active or Overdue, and a completed SLA becomes Met or NotMet.
Important things to know
When updating a Custom related item, all existing and new fields, and their associated values should be included in the request. Fields not included as part of this request will be removed.
If you provide a value for
performedBy.userArn, you must also have DescribeUser permission on the ARN of the user that you provide.System case fields cannot be used in a custom related item.
If the case is the secondary case of a merge that is running, the request fails with a
ConflictException. For more information, see StartMergeCases.
Endpoints: See Connect Customer endpoints and quotas.
4120 4121 4122 4123 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 4120 def (params = {}, = {}) req = build_request(:update_related_item, params) req.send_request() end |
#update_template(params = {}) ⇒ Struct
Updates the attributes of an existing template. The template
attributes that can be modified include name, description,
layoutConfiguration, requiredFields, and status. At least one of
these attributes must not be null. If a null value is provided for a
given attribute, that attribute is ignored and its current value is
preserved.
Other template APIs are:
4227 4228 4229 4230 |
# File 'gems/aws-sdk-connectcases/lib/aws-sdk-connectcases/client.rb', line 4227 def update_template(params = {}, = {}) req = build_request(:update_template, params) req.send_request() end |