Skip to content

Commit

Permalink
Update services based on v1.46.3 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Oct 25, 2023
1 parent 75f387a commit 10cf516
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .latest-tag-aws-sdk-go
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.46.2
v1.46.3
14 changes: 14 additions & 0 deletions src/aws_migrationhub_config.erl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

-export([create_home_region_control/2,
create_home_region_control/3,
delete_home_region_control/2,
delete_home_region_control/3,
describe_home_region_controls/2,
describe_home_region_controls/3,
get_home_region/2,
Expand All @@ -45,6 +47,18 @@ create_home_region_control(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"CreateHomeRegionControl">>, Input, Options).

%% @doc This operation deletes the home region configuration for the calling
%% account.
%%
%% The operation does not delete discovery or migration tracking data in the
%% home region.
delete_home_region_control(Client, Input)
when is_map(Client), is_map(Input) ->
delete_home_region_control(Client, Input, []).
delete_home_region_control(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"DeleteHomeRegionControl">>, Input, Options).

%% @doc This API permits filtering on the `ControlId' and
%% `HomeRegion' fields.
describe_home_region_controls(Client, Input)
Expand Down
26 changes: 26 additions & 0 deletions src/aws_migrationhubstrategy.erl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
get_server_strategies/2,
get_server_strategies/4,
get_server_strategies/5,
list_analyzable_servers/2,
list_analyzable_servers/3,
list_application_components/2,
list_application_components/3,
list_collectors/1,
Expand Down Expand Up @@ -312,6 +314,30 @@ get_server_strategies(Client, ServerId, QueryMap, HeadersMap, Options0)

request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode).

%% @doc Retrieves a list of all the servers fetched from customer vCenter
%% using Strategy Recommendation Collector.
list_analyzable_servers(Client, Input) ->
list_analyzable_servers(Client, Input, []).
list_analyzable_servers(Client, Input0, Options0) ->
Method = post,
Path = ["/list-analyzable-servers"],
SuccessStatusCode = 200,
Options = [{send_body_as_binary, false},
{receive_body_as_binary, false},
{append_sha256_content_hash, false}
| Options0],

Headers = [],
Input1 = Input0,

CustomHeaders = [],
Input2 = Input1,

Query_ = [],
Input = Input2,

request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode).

%% @doc Retrieves a list of all the application components (processes).
list_application_components(Client, Input) ->
list_application_components(Client, Input, []).
Expand Down
77 changes: 77 additions & 0 deletions src/aws_opensearchserverless.erl
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@

-export([batch_get_collection/2,
batch_get_collection/3,
batch_get_effective_lifecycle_policy/2,
batch_get_effective_lifecycle_policy/3,
batch_get_lifecycle_policy/2,
batch_get_lifecycle_policy/3,
batch_get_vpc_endpoint/2,
batch_get_vpc_endpoint/3,
create_access_policy/2,
create_access_policy/3,
create_collection/2,
create_collection/3,
create_lifecycle_policy/2,
create_lifecycle_policy/3,
create_security_config/2,
create_security_config/3,
create_security_policy/2,
Expand All @@ -33,6 +39,8 @@
delete_access_policy/3,
delete_collection/2,
delete_collection/3,
delete_lifecycle_policy/2,
delete_lifecycle_policy/3,
delete_security_config/2,
delete_security_config/3,
delete_security_policy/2,
Expand All @@ -53,6 +61,8 @@
list_access_policies/3,
list_collections/2,
list_collections/3,
list_lifecycle_policies/2,
list_lifecycle_policies/3,
list_security_configs/2,
list_security_configs/3,
list_security_policies/2,
Expand All @@ -71,6 +81,8 @@
update_account_settings/3,
update_collection/2,
update_collection/3,
update_lifecycle_policy/2,
update_lifecycle_policy/3,
update_security_config/2,
update_security_config/3,
update_security_policy/2,
Expand All @@ -96,6 +108,28 @@ batch_get_collection(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"BatchGetCollection">>, Input, Options).

%% @doc Returns a list of successful and failed retrievals for the OpenSearch
%% Serverless indexes.
%%
%% For more information, see Viewing data lifecycle policies.
batch_get_effective_lifecycle_policy(Client, Input)
when is_map(Client), is_map(Input) ->
batch_get_effective_lifecycle_policy(Client, Input, []).
batch_get_effective_lifecycle_policy(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"BatchGetEffectiveLifecyclePolicy">>, Input, Options).

%% @doc Returns one or more configured OpenSearch Serverless lifecycle
%% policies.
%%
%% For more information, see Viewing data lifecycle policies.
batch_get_lifecycle_policy(Client, Input)
when is_map(Client), is_map(Input) ->
batch_get_lifecycle_policy(Client, Input, []).
batch_get_lifecycle_policy(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"BatchGetLifecyclePolicy">>, Input, Options).

%% @doc Returns attributes for one or more VPC endpoints associated with the
%% current account.
%%
Expand Down Expand Up @@ -132,6 +166,19 @@ create_collection(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"CreateCollection">>, Input, Options).

%% @doc Creates a lifecyle policy to be applied to OpenSearch Serverless
%% indexes.
%%
%% Lifecycle policies define the number of days or hours to retain the data
%% on an OpenSearch Serverless index. For more information, see Creating data
%% lifecycle policies.
create_lifecycle_policy(Client, Input)
when is_map(Client), is_map(Input) ->
create_lifecycle_policy(Client, Input, []).
create_lifecycle_policy(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"CreateLifecyclePolicy">>, Input, Options).

%% @doc Specifies a security configuration for OpenSearch Serverless.
%%
%% For more information, see SAML authentication for Amazon OpenSearch
Expand Down Expand Up @@ -191,6 +238,16 @@ delete_collection(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"DeleteCollection">>, Input, Options).

%% @doc Deletes an OpenSearch Serverless lifecycle policy.
%%
%% For more information, see Deleting data lifecycle policies.
delete_lifecycle_policy(Client, Input)
when is_map(Client), is_map(Input) ->
delete_lifecycle_policy(Client, Input, []).
delete_lifecycle_policy(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"DeleteLifecyclePolicy">>, Input, Options).

%% @doc Deletes a security configuration for OpenSearch Serverless.
%%
%% For more information, see SAML authentication for Amazon OpenSearch
Expand Down Expand Up @@ -296,6 +353,16 @@ list_collections(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"ListCollections">>, Input, Options).

%% @doc Returns a list of OpenSearch Serverless lifecycle policies.
%%
%% For more information, see Viewing data lifecycle policies.
list_lifecycle_policies(Client, Input)
when is_map(Client), is_map(Input) ->
list_lifecycle_policies(Client, Input, []).
list_lifecycle_policies(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"ListLifecyclePolicies">>, Input, Options).

%% @doc Returns information about configured OpenSearch Serverless security
%% configurations.
%%
Expand Down Expand Up @@ -393,6 +460,16 @@ update_collection(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"UpdateCollection">>, Input, Options).

%% @doc Updates an OpenSearch Serverless access policy.
%%
%% For more information, see Updating data lifecycle policies.
update_lifecycle_policy(Client, Input)
when is_map(Client), is_map(Input) ->
update_lifecycle_policy(Client, Input, []).
update_lifecycle_policy(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"UpdateLifecyclePolicy">>, Input, Options).

%% @doc Updates a security configuration for OpenSearch Serverless.
%%
%% For more information, see SAML authentication for Amazon OpenSearch
Expand Down

0 comments on commit 10cf516

Please sign in to comment.