Skip to content

Commit

Permalink
Update services based on release-2024-05-14 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed May 15, 2024
1 parent c124428 commit 28b9035
Show file tree
Hide file tree
Showing 3 changed files with 216 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .latest-tag-aws-sdk-go
Original file line number Diff line number Diff line change
@@ -1 +1 @@
release-2024-05-13
release-2024-05-14
209 changes: 209 additions & 0 deletions lib/aws/generated/connect.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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() :: %{
Expand Down Expand Up @@ -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() :: %{
Expand Down Expand Up @@ -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() :: %{
Expand Down Expand Up @@ -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(),
Expand Down Expand Up @@ -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() :: %{}
Expand Down Expand Up @@ -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() :: %{
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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() :: %{
Expand Down Expand Up @@ -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())
}
Expand Down Expand Up @@ -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() :: %{}
Expand Down Expand Up @@ -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() :: %{}
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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()}
Expand All @@ -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()}
Expand Down Expand Up @@ -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.
"""
Expand Down Expand Up @@ -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(),
Expand Down Expand Up @@ -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(),
Expand Down
15 changes: 6 additions & 9 deletions lib/aws/generated/s3.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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} =
[
Expand Down Expand Up @@ -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} =
[
Expand Down Expand Up @@ -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} =
[
Expand Down Expand Up @@ -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} =
[
Expand Down Expand Up @@ -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} =
[
Expand Down Expand Up @@ -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} =
[
Expand Down

0 comments on commit 28b9035

Please sign in to comment.