Struct aws_sdk_connectcases::Client 
source · pub struct Client { /* private fields */ }Expand description
Client for Amazon Connect Cases
Client for invoking operations on Amazon Connect Cases. Each operation on Amazon Connect Cases is a method on this
this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.
Constructing a Client
A Config is required to construct a client. For most use cases, the aws-config
crate should be used to automatically resolve this config using
aws_config::load_from_env(), since this will resolve an SdkConfig which can be shared
across multiple different AWS SDK clients. This config resolution process can be customized
by calling aws_config::from_env() instead, which returns a ConfigLoader that uses
the builder pattern to customize the default config.
In the simplest case, creating a client looks as follows:
let config = aws_config::load_from_env().await;
let client = aws_sdk_connectcases::Client::new(&config);Occasionally, SDKs may have additional service-specific that can be set on the Config that
is absent from SdkConfig, or slightly different settings for a specific client may be desired.
The Config struct implements From<&SdkConfig>, so setting these specific settings can be
done as follows:
let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_connectcases::config::Builder::from(&sdk_config)
    .some_service_specific_setting("value")
    .build();See the aws-config docs and Config for more information on customizing configuration.
Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.
Using the Client
A client has a function for every operation that can be performed by the service.
For example, the ListTagsForResource operation has
a Client::list_tags_for_resource, function which returns a builder for that operation.
The fluent builder ultimately has a send() function that returns an async future that
returns a result, as illustrated below:
let result = client.list_tags_for_resource()
    .arn("example")
    .send()
    .await;The underlying HTTP requests that get made by this can be modified with the customize_operation
function on the fluent builder. See the customize module for more
information.
Implementations§
source§impl Client
 
impl Client
sourcepub fn batch_get_field(&self) -> BatchGetFieldFluentBuilder
 
pub fn batch_get_field(&self) -> BatchGetFieldFluentBuilder
Constructs a fluent builder for the BatchGetField operation.
- The fluent builder is configurable:
- domain_id(impl Into<String>)/- set_domain_id(Option<String>):
 required: true- The unique identifier of the Cases domain. 
- fields(FieldIdentifier)/- set_fields(Option<Vec::<FieldIdentifier>>):
 required: true- A list of unique field identifiers. 
 
- On success, responds with BatchGetFieldOutputwith field(s):- fields(Vec::<GetFieldResponse>):- A list of detailed field information. 
- errors(Vec::<FieldError>):- A list of field errors. 
 
- On failure, responds with SdkError<BatchGetFieldError>
source§impl Client
 
impl Client
sourcepub fn batch_put_field_options(&self) -> BatchPutFieldOptionsFluentBuilder
 
pub fn batch_put_field_options(&self) -> BatchPutFieldOptionsFluentBuilder
Constructs a fluent builder for the BatchPutFieldOptions operation.
- The fluent builder is configurable:
- domain_id(impl Into<String>)/- set_domain_id(Option<String>):
 required: true- The unique identifier of the Cases domain. 
- field_id(impl Into<String>)/- set_field_id(Option<String>):
 required: true- The unique identifier of a field. 
- options(FieldOption)/- set_options(Option<Vec::<FieldOption>>):
 required: true- A list of - FieldOptionobjects.
 
- On success, responds with BatchPutFieldOptionsOutputwith field(s):- errors(Option<Vec::<FieldOptionError>>):- A list of field errors. 
 
- On failure, responds with SdkError<BatchPutFieldOptionsError>
source§impl Client
 
impl Client
sourcepub fn create_case(&self) -> CreateCaseFluentBuilder
 
pub fn create_case(&self) -> CreateCaseFluentBuilder
Constructs a fluent builder for the CreateCase operation.
- The fluent builder is configurable:
- domain_id(impl Into<String>)/- set_domain_id(Option<String>):
 required: true- The unique identifier of the Cases domain. 
- template_id(impl Into<String>)/- set_template_id(Option<String>):
 required: true- A unique identifier of a template. 
- fields(FieldValue)/- set_fields(Option<Vec::<FieldValue>>):
 required: true- An array of objects with field ID (matching ListFields/DescribeField) and value union data. 
- client_token(impl Into<String>)/- set_client_token(Option<String>):
 required: false- 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. 
 
- On success, responds with CreateCaseOutputwith field(s):- case_id(String):- A unique identifier of the case. 
- case_arn(String):- The Amazon Resource Name (ARN) of the case. 
 
- On failure, responds with SdkError<CreateCaseError>
source§impl Client
 
impl Client
sourcepub fn create_domain(&self) -> CreateDomainFluentBuilder
 
pub fn create_domain(&self) -> CreateDomainFluentBuilder
Constructs a fluent builder for the CreateDomain operation.
- The fluent builder is configurable:
- name(impl Into<String>)/- set_name(Option<String>):
 required: true- The name for your Cases domain. It must be unique for your Amazon Web Services account. 
 
- On success, responds with CreateDomainOutputwith field(s):- domain_id(String):- The unique identifier of the Cases domain. 
- domain_arn(String):- The Amazon Resource Name (ARN) for the Cases domain. 
- domain_status(DomainStatus):- The status of the domain. 
 
- On failure, responds with SdkError<CreateDomainError>
source§impl Client
 
impl Client
sourcepub fn create_field(&self) -> CreateFieldFluentBuilder
 
pub fn create_field(&self) -> CreateFieldFluentBuilder
Constructs a fluent builder for the CreateField operation.
- The fluent builder is configurable:
- domain_id(impl Into<String>)/- set_domain_id(Option<String>):
 required: true- The unique identifier of the Cases domain. 
- name(impl Into<String>)/- set_name(Option<String>):
 required: true- The name of the field. 
- r#type(FieldType)/- set_type(Option<FieldType>):
 required: true- Defines the data type, some system constraints, and default display of the field. 
- description(impl Into<String>)/- set_description(Option<String>):
 required: false- The description of the field. 
 
- On success, responds with CreateFieldOutputwith field(s):- field_id(String):- The unique identifier of a field. 
- field_arn(String):- The Amazon Resource Name (ARN) of the field. 
 
- On failure, responds with SdkError<CreateFieldError>
source§impl Client
 
impl Client
sourcepub fn create_layout(&self) -> CreateLayoutFluentBuilder
 
pub fn create_layout(&self) -> CreateLayoutFluentBuilder
Constructs a fluent builder for the CreateLayout operation.
- The fluent builder is configurable:
- domain_id(impl Into<String>)/- set_domain_id(Option<String>):
 required: true- The unique identifier of the Cases domain. 
- name(impl Into<String>)/- set_name(Option<String>):
 required: true- The name of the layout. It must be unique for the Cases domain. 
- content(LayoutContent)/- set_content(Option<LayoutContent>):
 required: true- Information about which fields will be present in the layout, and information about the order of the fields. 
 
- On success, responds with CreateLayoutOutputwith field(s):- layout_id(String):- The unique identifier of the layout. 
- layout_arn(String):- The Amazon Resource Name (ARN) of the newly created layout. 
 
- On failure, responds with SdkError<CreateLayoutError>
source§impl Client
 
impl Client
Constructs a fluent builder for the CreateRelatedItem operation.
- The fluent builder is configurable:
- domain_id(impl Into<String>)/- set_domain_id(Option<String>):
 required: true- The unique identifier of the Cases domain. 
- case_id(impl Into<String>)/- set_case_id(Option<String>):
 required: true- A unique identifier of the case. 
- r#type(RelatedItemType)/- set_type(Option<RelatedItemType>):
 required: true- The type of a related item. 
- content(RelatedItemInputContent)/- set_content(Option<RelatedItemInputContent>):
 required: true- The content of a related item to be created. 
- performed_by(UserUnion)/- set_performed_by(Option<UserUnion>):
 required: false- Represents the creator of the related item. 
 
- On success, responds with CreateRelatedItemOutputwith field(s):- related_item_id(String):- The unique identifier of the related item. 
- related_item_arn(String):- The Amazon Resource Name (ARN) of the related item. 
 
- On failure, responds with SdkError<CreateRelatedItemError>
source§impl Client
 
impl Client
sourcepub fn create_template(&self) -> CreateTemplateFluentBuilder
 
pub fn create_template(&self) -> CreateTemplateFluentBuilder
Constructs a fluent builder for the CreateTemplate operation.
- The fluent builder is configurable:
- domain_id(impl Into<String>)/- set_domain_id(Option<String>):
 required: true- The unique identifier of the Cases domain. 
- name(impl Into<String>)/- set_name(Option<String>):
 required: true- A name for the template. It must be unique per domain. 
- description(impl Into<String>)/- set_description(Option<String>):
 required: false- A brief description of the template. 
- layout_configuration(LayoutConfiguration)/- set_layout_configuration(Option<LayoutConfiguration>):
 required: false- Configuration of layouts associated to the template. 
- required_fields(RequiredField)/- set_required_fields(Option<Vec::<RequiredField>>):
 required: false- A list of fields that must contain a value for a case to be successfully created with this template. 
- status(TemplateStatus)/- set_status(Option<TemplateStatus>):
 required: false- The status of the template. 
 
- On success, responds with CreateTemplateOutputwith field(s):- template_id(String):- A unique identifier of a template. 
- template_arn(String):- The Amazon Resource Name (ARN) of the newly created template. 
 
- On failure, responds with SdkError<CreateTemplateError>
source§impl Client
 
impl Client
sourcepub fn delete_domain(&self) -> DeleteDomainFluentBuilder
 
pub fn delete_domain(&self) -> DeleteDomainFluentBuilder
Constructs a fluent builder for the DeleteDomain operation.
- The fluent builder is configurable:
- domain_id(impl Into<String>)/- set_domain_id(Option<String>):
 required: true- The unique identifier of the Cases domain. 
 
- On success, responds with DeleteDomainOutput
- On failure, responds with SdkError<DeleteDomainError>
source§impl Client
 
impl Client
sourcepub fn get_case(&self) -> GetCaseFluentBuilder
 
pub fn get_case(&self) -> GetCaseFluentBuilder
Constructs a fluent builder for the GetCase operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
- case_id(impl Into<String>)/- set_case_id(Option<String>):
 required: true- A unique identifier of the case. 
- domain_id(impl Into<String>)/- set_domain_id(Option<String>):
 required: true- The unique identifier of the Cases domain. 
- fields(FieldIdentifier)/- set_fields(Option<Vec::<FieldIdentifier>>):
 required: true- A list of unique field identifiers. 
- next_token(impl Into<String>)/- set_next_token(Option<String>):
 required: false- 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. 
 
- On success, responds with GetCaseOutputwith field(s):- fields(Vec::<FieldValue>):- A list of detailed field information. 
- template_id(String):- A unique identifier of a template. 
- next_token(Option<String>):- The token for the next set of results. This is null if there are no more results to return. 
- tags(Option<HashMap::<String, Option<String>>>):- A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource. 
 
- On failure, responds with SdkError<GetCaseError>
source§impl Client
 
impl Client
sourcepub fn get_case_event_configuration(
    &self
) -> GetCaseEventConfigurationFluentBuilder
 
pub fn get_case_event_configuration( &self ) -> GetCaseEventConfigurationFluentBuilder
Constructs a fluent builder for the GetCaseEventConfiguration operation.
- The fluent builder is configurable:
- domain_id(impl Into<String>)/- set_domain_id(Option<String>):
 required: true- The unique identifier of the Cases domain. 
 
- On success, responds with GetCaseEventConfigurationOutputwith field(s):- event_bridge(Option<EventBridgeConfiguration>):- Configuration to enable EventBridge case event delivery and determine what data is delivered. 
 
- On failure, responds with SdkError<GetCaseEventConfigurationError>
source§impl Client
 
impl Client
sourcepub fn get_domain(&self) -> GetDomainFluentBuilder
 
pub fn get_domain(&self) -> GetDomainFluentBuilder
Constructs a fluent builder for the GetDomain operation.
- The fluent builder is configurable:
- domain_id(impl Into<String>)/- set_domain_id(Option<String>):
 required: true- The unique identifier of the Cases domain. 
 
- On success, responds with GetDomainOutputwith field(s):- domain_id(String):- The unique identifier of the Cases domain. 
- domain_arn(String):- The Amazon Resource Name (ARN) for the Cases domain. 
- name(String):- The name of the Cases domain. 
- created_time(DateTime):- The timestamp when the Cases domain was created. 
- domain_status(DomainStatus):- The status of the Cases domain. 
- tags(Option<HashMap::<String, Option<String>>>):- A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource. 
 
- On failure, responds with SdkError<GetDomainError>
source§impl Client
 
impl Client
sourcepub fn get_layout(&self) -> GetLayoutFluentBuilder
 
pub fn get_layout(&self) -> GetLayoutFluentBuilder
Constructs a fluent builder for the GetLayout operation.
- The fluent builder is configurable:
- domain_id(impl Into<String>)/- set_domain_id(Option<String>):
 required: true- The unique identifier of the Cases domain. 
- layout_id(impl Into<String>)/- set_layout_id(Option<String>):
 required: true- The unique identifier of the layout. 
 
- On success, responds with GetLayoutOutputwith field(s):- layout_id(String):- The unique identifier of the layout. 
- layout_arn(String):- The Amazon Resource Name (ARN) of the newly created layout. 
- name(String):- The name of the layout. It must be unique. 
- content(Option<LayoutContent>):- Information about which fields will be present in the layout, the order of the fields, and read-only attribute of the field. 
- tags(Option<HashMap::<String, Option<String>>>):- A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource. 
 
- On failure, responds with SdkError<GetLayoutError>
source§impl Client
 
impl Client
sourcepub fn get_template(&self) -> GetTemplateFluentBuilder
 
pub fn get_template(&self) -> GetTemplateFluentBuilder
Constructs a fluent builder for the GetTemplate operation.
- The fluent builder is configurable:
- domain_id(impl Into<String>)/- set_domain_id(Option<String>):
 required: true- The unique identifier of the Cases domain. 
- template_id(impl Into<String>)/- set_template_id(Option<String>):
 required: true- A unique identifier of a template. 
 
- On success, responds with GetTemplateOutputwith field(s):- template_id(String):- A unique identifier of a template. 
- template_arn(String):- The Amazon Resource Name (ARN) of the template. 
- name(String):- The name of the template. 
- description(Option<String>):- A brief description of the template. 
- layout_configuration(Option<LayoutConfiguration>):- Configuration of layouts associated to the template. 
- required_fields(Option<Vec::<RequiredField>>):- A list of fields that must contain a value for a case to be successfully created with this template. 
- tags(Option<HashMap::<String, Option<String>>>):- A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource. 
- status(TemplateStatus):- The status of the template. 
 
- On failure, responds with SdkError<GetTemplateError>
source§impl Client
 
impl Client
sourcepub fn list_cases_for_contact(&self) -> ListCasesForContactFluentBuilder
 
pub fn list_cases_for_contact(&self) -> ListCasesForContactFluentBuilder
Constructs a fluent builder for the ListCasesForContact operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
- domain_id(impl Into<String>)/- set_domain_id(Option<String>):
 required: true- The unique identifier of the Cases domain. 
- contact_arn(impl Into<String>)/- set_contact_arn(Option<String>):
 required: true- A unique identifier of a contact in Amazon Connect. 
- max_results(i32)/- set_max_results(Option<i32>):
 required: false- The maximum number of results to return per page. 
- next_token(impl Into<String>)/- set_next_token(Option<String>):
 required: false- 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. 
 
- On success, responds with ListCasesForContactOutputwith field(s):- cases(Vec::<CaseSummary>):- A list of Case summary information. 
- next_token(Option<String>):- The token for the next set of results. This is null if there are no more results to return. 
 
- On failure, responds with SdkError<ListCasesForContactError>
source§impl Client
 
impl Client
sourcepub fn list_domains(&self) -> ListDomainsFluentBuilder
 
pub fn list_domains(&self) -> ListDomainsFluentBuilder
Constructs a fluent builder for the ListDomains operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
- max_results(i32)/- set_max_results(Option<i32>):
 required: false- The maximum number of results to return per page. 
- next_token(impl Into<String>)/- set_next_token(Option<String>):
 required: false- 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. 
 
- On success, responds with ListDomainsOutputwith field(s):- domains(Vec::<DomainSummary>):- The Cases domain. 
- next_token(Option<String>):- The token for the next set of results. This is null if there are no more results to return. 
 
- On failure, responds with SdkError<ListDomainsError>
source§impl Client
 
impl Client
sourcepub fn list_field_options(&self) -> ListFieldOptionsFluentBuilder
 
pub fn list_field_options(&self) -> ListFieldOptionsFluentBuilder
Constructs a fluent builder for the ListFieldOptions operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
- domain_id(impl Into<String>)/- set_domain_id(Option<String>):
 required: true- The unique identifier of the Cases domain. 
- field_id(impl Into<String>)/- set_field_id(Option<String>):
 required: true- The unique identifier of a field. 
- max_results(i32)/- set_max_results(Option<i32>):
 required: false- The maximum number of results to return per page. 
- next_token(impl Into<String>)/- set_next_token(Option<String>):
 required: false- The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. 
- values(impl Into<String>)/- set_values(Option<Vec::<String>>):
 required: false- A list of - FieldOptionvalues to filter on for- ListFieldOptions.
 
- On success, responds with ListFieldOptionsOutputwith field(s):- options(Vec::<FieldOption>):- A list of - FieldOptionobjects.
- next_token(Option<String>):- The token for the next set of results. This is null if there are no more results to return. 
 
- On failure, responds with SdkError<ListFieldOptionsError>
source§impl Client
 
impl Client
sourcepub fn list_fields(&self) -> ListFieldsFluentBuilder
 
pub fn list_fields(&self) -> ListFieldsFluentBuilder
Constructs a fluent builder for the ListFields operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
- domain_id(impl Into<String>)/- set_domain_id(Option<String>):
 required: true- The unique identifier of the Cases domain. 
- max_results(i32)/- set_max_results(Option<i32>):
 required: false- The maximum number of results to return per page. 
- next_token(impl Into<String>)/- set_next_token(Option<String>):
 required: false- 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. 
 
- On success, responds with ListFieldsOutputwith field(s):- fields(Vec::<FieldSummary>):- List of detailed field information. 
- next_token(Option<String>):- The token for the next set of results. This is null if there are no more results to return. 
 
- On failure, responds with SdkError<ListFieldsError>
source§impl Client
 
impl Client
sourcepub fn list_layouts(&self) -> ListLayoutsFluentBuilder
 
pub fn list_layouts(&self) -> ListLayoutsFluentBuilder
Constructs a fluent builder for the ListLayouts operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
- domain_id(impl Into<String>)/- set_domain_id(Option<String>):
 required: true- The unique identifier of the Cases domain. 
- max_results(i32)/- set_max_results(Option<i32>):
 required: false- The maximum number of results to return per page. 
- next_token(impl Into<String>)/- set_next_token(Option<String>):
 required: false- 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. 
 
- On success, responds with ListLayoutsOutputwith field(s):- layouts(Vec::<LayoutSummary>):- The layouts for the domain. 
- next_token(Option<String>):- The token for the next set of results. This is null if there are no more results to return. 
 
- On failure, responds with SdkError<ListLayoutsError>
source§impl Client
 
impl Client
Constructs a fluent builder for the ListTagsForResource operation.
- The fluent builder is configurable:
- arn(impl Into<String>)/- set_arn(Option<String>):
 required: true- The Amazon Resource Name (ARN) 
 
- On success, responds with ListTagsForResourceOutputwith field(s):- tags(Option<HashMap::<String, Option<String>>>):- A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource. 
 
- On failure, responds with SdkError<ListTagsForResourceError>
source§impl Client
 
impl Client
sourcepub fn list_templates(&self) -> ListTemplatesFluentBuilder
 
pub fn list_templates(&self) -> ListTemplatesFluentBuilder
Constructs a fluent builder for the ListTemplates operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
- domain_id(impl Into<String>)/- set_domain_id(Option<String>):
 required: true- The unique identifier of the Cases domain. 
- max_results(i32)/- set_max_results(Option<i32>):
 required: false- The maximum number of results to return per page. 
- next_token(impl Into<String>)/- set_next_token(Option<String>):
 required: false- The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. 
- status(TemplateStatus)/- set_status(Option<Vec::<TemplateStatus>>):
 required: false- A list of status values to filter on. 
 
- On success, responds with ListTemplatesOutputwith field(s):- templates(Vec::<TemplateSummary>):- List of template summary objects. 
- next_token(Option<String>):- The token for the next set of results. This is null if there are no more results to return. 
 
- On failure, responds with SdkError<ListTemplatesError>
source§impl Client
 
impl Client
sourcepub fn put_case_event_configuration(
    &self
) -> PutCaseEventConfigurationFluentBuilder
 
pub fn put_case_event_configuration( &self ) -> PutCaseEventConfigurationFluentBuilder
Constructs a fluent builder for the PutCaseEventConfiguration operation.
- The fluent builder is configurable:
- domain_id(impl Into<String>)/- set_domain_id(Option<String>):
 required: true- The unique identifier of the Cases domain. 
- event_bridge(EventBridgeConfiguration)/- set_event_bridge(Option<EventBridgeConfiguration>):
 required: true- Configuration to enable EventBridge case event delivery and determine what data is delivered. 
 
- On success, responds with PutCaseEventConfigurationOutput
- On failure, responds with SdkError<PutCaseEventConfigurationError>
source§impl Client
 
impl Client
sourcepub fn search_cases(&self) -> SearchCasesFluentBuilder
 
pub fn search_cases(&self) -> SearchCasesFluentBuilder
Constructs a fluent builder for the SearchCases operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
- domain_id(impl Into<String>)/- set_domain_id(Option<String>):
 required: true- The unique identifier of the Cases domain. 
- max_results(i32)/- set_max_results(Option<i32>):
 required: false- The maximum number of cases to return. The current maximum supported value is 25. This is also the default value when no other value is provided. 
- next_token(impl Into<String>)/- set_next_token(Option<String>):
 required: false- 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. 
- search_term(impl Into<String>)/- set_search_term(Option<String>):
 required: false- A word or phrase used to perform a quick search. 
- filter(CaseFilter)/- set_filter(Option<CaseFilter>):
 required: false- A list of filter objects. 
- sorts(Sort)/- set_sorts(Option<Vec::<Sort>>):
 required: false- A list of sorts where each sort specifies a field and their sort order to be applied to the results. 
- fields(FieldIdentifier)/- set_fields(Option<Vec::<FieldIdentifier>>):
 required: false- The list of field identifiers to be returned as part of the response. 
 
- On success, responds with SearchCasesOutputwith field(s):- next_token(Option<String>):- The token for the next set of results. This is null if there are no more results to return. 
- cases(Vec::<Option<SearchCasesResponseItem>>):- A list of case documents where each case contains the properties - CaseIdand- Fieldswhere each field is a complex union structure.
 
- On failure, responds with SdkError<SearchCasesError>
source§impl Client
 
impl Client
Constructs a fluent builder for the SearchRelatedItems operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
- domain_id(impl Into<String>)/- set_domain_id(Option<String>):
 required: true- The unique identifier of the Cases domain. 
- case_id(impl Into<String>)/- set_case_id(Option<String>):
 required: true- A unique identifier of the case. 
- max_results(i32)/- set_max_results(Option<i32>):
 required: false- The maximum number of results to return per page. 
- next_token(impl Into<String>)/- set_next_token(Option<String>):
 required: false- 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. 
- filters(RelatedItemTypeFilter)/- set_filters(Option<Vec::<RelatedItemTypeFilter>>):
 required: false- The list of types of related items and their parameters to use for filtering. 
 
- On success, responds with SearchRelatedItemsOutputwith field(s):- next_token(Option<String>):- The token for the next set of results. This is null if there are no more results to return. 
- related_items(Vec::<Option<SearchRelatedItemsResponseItem>>):- A list of items related to a case. 
 
- On failure, responds with SdkError<SearchRelatedItemsError>
source§impl Client
 
impl Client
sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
 
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource operation.
- The fluent builder is configurable:
- arn(impl Into<String>)/- set_arn(Option<String>):
 required: true- The Amazon Resource Name (ARN) 
- tags(impl Into<String>, Option<String>)/- set_tags(Option<HashMap::<String, Option<String>>>):
 required: true- 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. 
 
- On success, responds with TagResourceOutput
- On failure, responds with SdkError<TagResourceError>
source§impl Client
 
impl Client
sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
 
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource operation.
- The fluent builder is configurable:
- arn(impl Into<String>)/- set_arn(Option<String>):
 required: true- The Amazon Resource Name (ARN) 
- tag_keys(impl Into<String>)/- set_tag_keys(Option<Vec::<String>>):
 required: true- List of tag keys. 
 
- On success, responds with UntagResourceOutput
- On failure, responds with SdkError<UntagResourceError>
source§impl Client
 
impl Client
sourcepub fn update_case(&self) -> UpdateCaseFluentBuilder
 
pub fn update_case(&self) -> UpdateCaseFluentBuilder
Constructs a fluent builder for the UpdateCase operation.
- The fluent builder is configurable:
- domain_id(impl Into<String>)/- set_domain_id(Option<String>):
 required: true- The unique identifier of the Cases domain. 
- case_id(impl Into<String>)/- set_case_id(Option<String>):
 required: true- A unique identifier of the case. 
- fields(FieldValue)/- set_fields(Option<Vec::<FieldValue>>):
 required: true- An array of objects with - fieldId(matching ListFields/DescribeField) and value union data, structured identical to- CreateCase.
 
- On success, responds with UpdateCaseOutput
- On failure, responds with SdkError<UpdateCaseError>
source§impl Client
 
impl Client
sourcepub fn update_field(&self) -> UpdateFieldFluentBuilder
 
pub fn update_field(&self) -> UpdateFieldFluentBuilder
Constructs a fluent builder for the UpdateField operation.
- The fluent builder is configurable:
- domain_id(impl Into<String>)/- set_domain_id(Option<String>):
 required: true- The unique identifier of the Cases domain. 
- field_id(impl Into<String>)/- set_field_id(Option<String>):
 required: true- The unique identifier of a field. 
- name(impl Into<String>)/- set_name(Option<String>):
 required: false- The name of the field. 
- description(impl Into<String>)/- set_description(Option<String>):
 required: false- The description of a field. 
 
- On success, responds with UpdateFieldOutput
- On failure, responds with SdkError<UpdateFieldError>
source§impl Client
 
impl Client
sourcepub fn update_layout(&self) -> UpdateLayoutFluentBuilder
 
pub fn update_layout(&self) -> UpdateLayoutFluentBuilder
Constructs a fluent builder for the UpdateLayout operation.
- The fluent builder is configurable:
- domain_id(impl Into<String>)/- set_domain_id(Option<String>):
 required: true- The unique identifier of the Cases domain. 
- layout_id(impl Into<String>)/- set_layout_id(Option<String>):
 required: true- The unique identifier of the layout. 
- name(impl Into<String>)/- set_name(Option<String>):
 required: false- The name of the layout. It must be unique per domain. 
- content(LayoutContent)/- set_content(Option<LayoutContent>):
 required: false- Information about which fields will be present in the layout, the order of the fields. 
 
- On success, responds with UpdateLayoutOutput
- On failure, responds with SdkError<UpdateLayoutError>
source§impl Client
 
impl Client
sourcepub fn update_template(&self) -> UpdateTemplateFluentBuilder
 
pub fn update_template(&self) -> UpdateTemplateFluentBuilder
Constructs a fluent builder for the UpdateTemplate operation.
- The fluent builder is configurable:
- domain_id(impl Into<String>)/- set_domain_id(Option<String>):
 required: true- The unique identifier of the Cases domain. 
- template_id(impl Into<String>)/- set_template_id(Option<String>):
 required: true- A unique identifier for the template. 
- name(impl Into<String>)/- set_name(Option<String>):
 required: false- The name of the template. It must be unique per domain. 
- description(impl Into<String>)/- set_description(Option<String>):
 required: false- A brief description of the template. 
- layout_configuration(LayoutConfiguration)/- set_layout_configuration(Option<LayoutConfiguration>):
 required: false- Configuration of layouts associated to the template. 
- required_fields(RequiredField)/- set_required_fields(Option<Vec::<RequiredField>>):
 required: false- A list of fields that must contain a value for a case to be successfully created with this template. 
- status(TemplateStatus)/- set_status(Option<TemplateStatus>):
 required: false- The status of the template. 
 
- On success, responds with UpdateTemplateOutput
- On failure, responds with SdkError<UpdateTemplateError>
source§impl Client
 
impl Client
sourcepub fn from_conf(conf: Config) -> Self
 
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config.
Panics
This method will panic in the following cases:
- Retries or timeouts are enabled without a sleep_implconfigured.
- Identity caching is enabled without a sleep_implandtime_sourceconfigured.
- No behavior_versionis provided.
The panic message for each of these will have instructions on how to resolve them.
source§impl Client
 
impl Client
sourcepub fn new(sdk_config: &SdkConfig) -> Self
 
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
Panics
- This method will panic if the sdk_configis missing an async sleep implementation. If you experience this panic, set thesleep_implon the Config passed into this function to fix it.
- This method will panic if the sdk_configis missing an HTTP connector. If you experience this panic, set thehttp_connectoron the Config passed into this function to fix it.
- This method will panic if no BehaviorVersionis provided. If you experience this panic, setbehavior_versionon the Config or enable thebehavior-version-latestCargo feature.