Skip to content

Commit

Permalink
Update services based on release-2024-06-06 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Jun 7, 2024
1 parent 3a18b7e commit fb47e8f
Show file tree
Hide file tree
Showing 9 changed files with 657 additions and 60 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-06-05
release-2024-06-06
179 changes: 179 additions & 0 deletions lib/aws/generated/account.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,30 @@ defmodule AWS.Account do

@typedoc """
## Example:
accept_primary_email_update_request() :: %{
required("AccountId") => String.t(),
required("Otp") => String.t(),
required("PrimaryEmail") => String.t()
}
"""
@type accept_primary_email_update_request() :: %{String.t() => any()}

@typedoc """
## Example:
accept_primary_email_update_response() :: %{
"Status" => String.t()
}
"""
@type accept_primary_email_update_response() :: %{String.t() => any()}

@typedoc """
## Example:
access_denied_exception() :: %{
Expand Down Expand Up @@ -151,6 +175,28 @@ defmodule AWS.Account do

@typedoc """
## Example:
get_primary_email_request() :: %{
required("AccountId") => String.t()
}
"""
@type get_primary_email_request() :: %{String.t() => any()}

@typedoc """
## Example:
get_primary_email_response() :: %{
"PrimaryEmail" => String.t()
}
"""
@type get_primary_email_response() :: %{String.t() => any()}

@typedoc """
## Example:
get_region_opt_status_request() :: %{
Expand Down Expand Up @@ -263,6 +309,29 @@ defmodule AWS.Account do

@typedoc """
## Example:
start_primary_email_update_request() :: %{
required("AccountId") => String.t(),
required("PrimaryEmail") => String.t()
}
"""
@type start_primary_email_update_request() :: %{String.t() => any()}

@typedoc """
## Example:
start_primary_email_update_response() :: %{
"Status" => String.t()
}
"""
@type start_primary_email_update_response() :: %{String.t() => any()}

@typedoc """
## Example:
too_many_requests_exception() :: %{
Expand Down Expand Up @@ -297,6 +366,14 @@ defmodule AWS.Account do
"""
@type validation_exception_field() :: %{String.t() => any()}

@type accept_primary_email_update_errors() ::
validation_exception()
| too_many_requests_exception()
| resource_not_found_exception()
| internal_server_exception()
| conflict_exception()
| access_denied_exception()

@type delete_alternate_contact_errors() ::
validation_exception()
| too_many_requests_exception()
Expand Down Expand Up @@ -332,6 +409,13 @@ defmodule AWS.Account do
| internal_server_exception()
| access_denied_exception()

@type get_primary_email_errors() ::
validation_exception()
| too_many_requests_exception()
| resource_not_found_exception()
| internal_server_exception()
| access_denied_exception()

@type get_region_opt_status_errors() ::
validation_exception()
| too_many_requests_exception()
Expand All @@ -356,6 +440,14 @@ defmodule AWS.Account do
| internal_server_exception()
| access_denied_exception()

@type start_primary_email_update_errors() ::
validation_exception()
| too_many_requests_exception()
| resource_not_found_exception()
| internal_server_exception()
| conflict_exception()
| access_denied_exception()

def metadata do
%{
api_version: "2021-02-01",
Expand All @@ -372,6 +464,35 @@ defmodule AWS.Account do
}
end

@doc """
Accepts the request that originated from `StartPrimaryEmailUpdate` to update the
primary email address (also known
as the root user email address) for the specified account.
"""
@spec accept_primary_email_update(map(), accept_primary_email_update_request(), list()) ::
{:ok, accept_primary_email_update_response(), any()}
| {:error, {:unexpected_response, any()}}
| {:error, accept_primary_email_update_errors()}
def accept_primary_email_update(%Client{} = client, input, options \\ []) do
url_path = "/acceptPrimaryEmailUpdate"
headers = []
query_params = []

meta = metadata()

Request.request_rest(
client,
meta,
:post,
url_path,
query_params,
headers,
input,
options,
200
)
end

@doc """
Deletes the specified alternate contact from an Amazon Web Services account.
Expand Down Expand Up @@ -411,6 +532,9 @@ defmodule AWS.Account do

@doc """
Disables (opts-out) a particular Region for an account.
The act of disabling a Region will remove all IAM access to any resources that
reside in that Region.
"""
@spec disable_region(map(), disable_region_request(), list()) ::
{:ok, nil, any()}
Expand Down Expand Up @@ -532,6 +656,33 @@ defmodule AWS.Account do
)
end

@doc """
Retrieves the primary email address for the specified account.
"""
@spec get_primary_email(map(), get_primary_email_request(), list()) ::
{:ok, get_primary_email_response(), any()}
| {:error, {:unexpected_response, any()}}
| {:error, get_primary_email_errors()}
def get_primary_email(%Client{} = client, input, options \\ []) do
url_path = "/getPrimaryEmail"
headers = []
query_params = []

meta = metadata()

Request.request_rest(
client,
meta,
:post,
url_path,
query_params,
headers,
input,
options,
200
)
end

@doc """
Retrieves the opt-in status of a particular Region.
"""
Expand Down Expand Up @@ -657,4 +808,32 @@ defmodule AWS.Account do
200
)
end

@doc """
Starts the process to update the primary email address for the specified
account.
"""
@spec start_primary_email_update(map(), start_primary_email_update_request(), list()) ::
{:ok, start_primary_email_update_response(), any()}
| {:error, {:unexpected_response, any()}}
| {:error, start_primary_email_update_errors()}
def start_primary_email_update(%Client{} = client, input, options \\ []) do
url_path = "/startPrimaryEmailUpdate"
headers = []
query_params = []

meta = metadata()

Request.request_rest(
client,
meta,
:post,
url_path,
query_params,
headers,
input,
options,
200
)
end
end
Loading

0 comments on commit fb47e8f

Please sign in to comment.