diff --git a/.latest-tag-aws-sdk-go b/.latest-tag-aws-sdk-go index 1136987d..9ba05a19 100644 --- a/.latest-tag-aws-sdk-go +++ b/.latest-tag-aws-sdk-go @@ -1 +1 @@ -release-2024-05-13 +release-2024-05-14 diff --git a/lib/aws/generated/connect.ex b/lib/aws/generated/connect.ex index 065878a8..fd08f880 100644 --- a/lib/aws/generated/connect.ex +++ b/lib/aws/generated/connect.ex @@ -496,6 +496,21 @@ defmodule AWS.Connect do @typedoc """ + ## Example: + + search_contact_flow_modules_request() :: %{ + optional("MaxResults") => integer(), + optional("NextToken") => String.t(), + optional("SearchCriteria") => contact_flow_module_search_criteria(), + optional("SearchFilter") => contact_flow_module_search_filter(), + required("InstanceId") => String.t() + } + + """ + @type search_contact_flow_modules_request() :: %{String.t() => any()} + + @typedoc """ + ## Example: list_phone_numbers_summary() :: %{ @@ -535,6 +550,22 @@ defmodule AWS.Connect do @typedoc """ + ## Example: + + contact_flow_search_criteria() :: %{ + "AndConditions" => list(contact_flow_search_criteria()()), + "OrConditions" => list(contact_flow_search_criteria()()), + "StateCondition" => list(any()), + "StatusCondition" => list(any()), + "StringCondition" => string_condition(), + "TypeCondition" => list(any()) + } + + """ + @type contact_flow_search_criteria() :: %{String.t() => any()} + + @typedoc """ + ## Example: search_users_response() :: %{ @@ -645,6 +676,17 @@ defmodule AWS.Connect do @typedoc """ + ## Example: + + contact_flow_search_filter() :: %{ + "TagFilter" => control_plane_tag_filter() + } + + """ + @type contact_flow_search_filter() :: %{String.t() => any()} + + @typedoc """ + ## Example: search_hours_of_operations_response() :: %{ @@ -903,6 +945,7 @@ defmodule AWS.Connect do create_contact_flow_request() :: %{ optional("Description") => String.t(), + optional("Status") => list(any()), optional("Tags") => map(), required("Content") => String.t(), required("Name") => String.t(), @@ -1340,6 +1383,19 @@ defmodule AWS.Connect do @typedoc """ + ## Example: + + search_contact_flow_modules_response() :: %{ + "ApproximateTotalCount" => float(), + "ContactFlowModules" => list(contact_flow_module()()), + "NextToken" => String.t() + } + + """ + @type search_contact_flow_modules_response() :: %{String.t() => any()} + + @typedoc """ + ## Example: describe_vocabulary_request() :: %{} @@ -1730,6 +1786,19 @@ defmodule AWS.Connect do @typedoc """ + ## Example: + + contact_flow_module_search_criteria() :: %{ + "AndConditions" => list(contact_flow_module_search_criteria()()), + "OrConditions" => list(contact_flow_module_search_criteria()()), + "StringCondition" => string_condition() + } + + """ + @type contact_flow_module_search_criteria() :: %{String.t() => any()} + + @typedoc """ + ## Example: traffic_distribution_group_user_summary() :: %{ @@ -2739,6 +2808,7 @@ defmodule AWS.Connect do contact_flow_summary() :: %{ "Arn" => String.t(), "ContactFlowState" => list(any()), + "ContactFlowStatus" => list(any()), "ContactFlowType" => list(any()), "Id" => String.t(), "Name" => String.t() @@ -5542,6 +5612,17 @@ defmodule AWS.Connect do @typedoc """ + ## Example: + + contact_flow_module_search_filter() :: %{ + "TagFilter" => control_plane_tag_filter() + } + + """ + @type contact_flow_module_search_filter() :: %{String.t() => any()} + + @typedoc """ + ## Example: list_routing_profile_queues_response() :: %{ @@ -6660,6 +6741,7 @@ defmodule AWS.Connect do "Id" => String.t(), "Name" => String.t(), "State" => list(any()), + "Status" => list(any()), "Tags" => map(), "Type" => list(any()) } @@ -7112,6 +7194,21 @@ defmodule AWS.Connect do @typedoc """ + ## Example: + + search_contact_flows_request() :: %{ + optional("MaxResults") => integer(), + optional("NextToken") => String.t(), + optional("SearchCriteria") => contact_flow_search_criteria(), + optional("SearchFilter") => contact_flow_search_filter(), + required("InstanceId") => String.t() + } + + """ + @type search_contact_flows_request() :: %{String.t() => any()} + + @typedoc """ + ## Example: get_prompt_file_request() :: %{} @@ -7750,6 +7847,19 @@ defmodule AWS.Connect do @typedoc """ + ## Example: + + search_contact_flows_response() :: %{ + "ApproximateTotalCount" => float(), + "ContactFlows" => list(contact_flow()()), + "NextToken" => String.t() + } + + """ + @type search_contact_flows_response() :: %{String.t() => any()} + + @typedoc """ + ## Example: pause_contact_response() :: %{} @@ -10275,6 +10385,20 @@ defmodule AWS.Connect do | access_denied_exception() | internal_service_exception() + @type search_contact_flow_modules_errors() :: + throttling_exception() + | invalid_parameter_exception() + | invalid_request_exception() + | resource_not_found_exception() + | internal_service_exception() + + @type search_contact_flows_errors() :: + throttling_exception() + | invalid_parameter_exception() + | invalid_request_exception() + | resource_not_found_exception() + | internal_service_exception() + @type search_contacts_errors() :: throttling_exception() | invalid_parameter_exception() @@ -13232,6 +13356,17 @@ defmodule AWS.Connect do You can also create and update flows using the [Amazon Connect Flow language](https://docs.aws.amazon.com/connect/latest/APIReference/flow-language.html). + + Use the `$SAVED` alias in the request to describe the `SAVED` content + of a Flow. For example, `arn:aws:.../contact-flow/{id}:$SAVED`. Once a contact + flow is + published, `$SAVED` needs to be supplied to view saved content that has not been + published. + + In the response, **Status** indicates the flow status as either + `SAVED` or `PUBLISHED`. The `PUBLISHED` status will initiate + validation on the content. `SAVED` does not initiate validation of the content. + `SAVED` | `PUBLISHED` """ @spec describe_contact_flow(map(), String.t(), String.t(), list()) :: {:ok, describe_contact_flow_response(), any()} @@ -13251,6 +13386,12 @@ defmodule AWS.Connect do @doc """ Describes the specified flow module. + + Use the `$SAVED` alias in the request to describe the `SAVED` content + of a Flow. For example, `arn:aws:.../contact-flow/{id}:$SAVED`. Once a contact + flow is + published, `$SAVED` needs to be supplied to view saved content that has not been + published. """ @spec describe_contact_flow_module(map(), String.t(), String.t(), list()) :: {:ok, describe_contact_flow_module_response(), any()} @@ -17023,6 +17164,62 @@ defmodule AWS.Connect do ) end + @doc """ + Searches the flow modules in an Amazon Connect instance, with optional + filtering. + """ + @spec search_contact_flow_modules(map(), search_contact_flow_modules_request(), list()) :: + {:ok, search_contact_flow_modules_response(), any()} + | {:error, {:unexpected_response, any()}} + | {:error, search_contact_flow_modules_errors()} + def search_contact_flow_modules(%Client{} = client, input, options \\ []) do + url_path = "/search-contact-flow-modules" + headers = [] + query_params = [] + + meta = metadata() + + Request.request_rest( + client, + meta, + :post, + url_path, + query_params, + headers, + input, + options, + 200 + ) + end + + @doc """ + Searches the contact flows in an Amazon Connect instance, with optional + filtering. + """ + @spec search_contact_flows(map(), search_contact_flows_request(), list()) :: + {:ok, search_contact_flows_response(), any()} + | {:error, {:unexpected_response, any()}} + | {:error, search_contact_flows_errors()} + def search_contact_flows(%Client{} = client, input, options \\ []) do + url_path = "/search-contact-flows" + headers = [] + query_params = [] + + meta = metadata() + + Request.request_rest( + client, + meta, + :post, + url_path, + query_params, + headers, + input, + options, + 200 + ) + end + @doc """ Searches contacts in an Amazon Connect instance. """ @@ -18268,6 +18465,12 @@ defmodule AWS.Connect do You can also create and update flows using the [Amazon Connect Flow language](https://docs.aws.amazon.com/connect/latest/APIReference/flow-language.html). + + Use the `$SAVED` alias in the request to describe the `SAVED` content + of a Flow. For example, `arn:aws:.../contact-flow/{id}:$SAVED`. Once a contact + flow is + published, `$SAVED` needs to be supplied to view saved content that has not been + published. """ @spec update_contact_flow_content( map(), @@ -18350,6 +18553,12 @@ defmodule AWS.Connect do @doc """ Updates specified flow module for the specified Amazon Connect instance. + + Use the `$SAVED` alias in the request to describe the `SAVED` content + of a Flow. For example, `arn:aws:.../contact-flow/{id}:$SAVED`. Once a contact + flow is + published, `$SAVED` needs to be supplied to view saved content that has not been + published. """ @spec update_contact_flow_module_content( map(), diff --git a/lib/aws/generated/s3.ex b/lib/aws/generated/s3.ex index 05e30de1..e8ee053e 100644 --- a/lib/aws/generated/s3.ex +++ b/lib/aws/generated/s3.ex @@ -4480,8 +4480,7 @@ defmodule AWS.S3 do {:ok, complete_multipart_upload_output(), any()} | {:error, {:unexpected_response, any()}} def complete_multipart_upload(%Client{} = client, bucket, key, input, options \\ []) do - url_path = - "/#{AWS.Util.encode_uri(bucket)}/#{AWS.Util.encode_multi_segment_uri(key)}?x-id=CompleteMultipartUpload" + url_path = "/#{AWS.Util.encode_uri(bucket)}/#{AWS.Util.encode_multi_segment_uri(key)}" {headers, input} = [ @@ -5290,8 +5289,7 @@ defmodule AWS.S3 do {:ok, create_multipart_upload_output(), any()} | {:error, {:unexpected_response, any()}} def create_multipart_upload(%Client{} = client, bucket, key, input, options \\ []) do - url_path = - "/#{AWS.Util.encode_uri(bucket)}/#{AWS.Util.encode_multi_segment_uri(key)}?uploads&x-id=CreateMultipartUpload" + url_path = "/#{AWS.Util.encode_uri(bucket)}/#{AWS.Util.encode_multi_segment_uri(key)}?uploads" {headers, input} = [ @@ -6816,7 +6814,7 @@ defmodule AWS.S3 do {:ok, delete_objects_output(), any()} | {:error, {:unexpected_response, any()}} def delete_objects(%Client{} = client, bucket, input, options \\ []) do - url_path = "/#{AWS.Util.encode_uri(bucket)}?delete&x-id=DeleteObjects" + url_path = "/#{AWS.Util.encode_uri(bucket)}?delete" {headers, input} = [ @@ -14118,8 +14116,7 @@ defmodule AWS.S3 do | {:error, {:unexpected_response, any()}} | {:error, restore_object_errors()} def restore_object(%Client{} = client, bucket, key, input, options \\ []) do - url_path = - "/#{AWS.Util.encode_uri(bucket)}/#{AWS.Util.encode_multi_segment_uri(key)}?restore&x-id=RestoreObject" + url_path = "/#{AWS.Util.encode_uri(bucket)}/#{AWS.Util.encode_multi_segment_uri(key)}?restore" {headers, input} = [ @@ -14305,7 +14302,7 @@ defmodule AWS.S3 do | {:error, {:unexpected_response, any()}} def select_object_content(%Client{} = client, bucket, key, input, options \\ []) do url_path = - "/#{AWS.Util.encode_uri(bucket)}/#{AWS.Util.encode_multi_segment_uri(key)}?select&select-type=2&x-id=SelectObjectContent" + "/#{AWS.Util.encode_uri(bucket)}/#{AWS.Util.encode_multi_segment_uri(key)}?select&select-type=2" {headers, input} = [ @@ -14922,7 +14919,7 @@ defmodule AWS.S3 do {:ok, nil, any()} | {:error, {:unexpected_response, any()}} def write_get_object_response(%Client{} = client, input, options \\ []) do - url_path = "/WriteGetObjectResponse?x-id=WriteGetObjectResponse" + url_path = "/WriteGetObjectResponse" {headers, input} = [