From 10cf5168fa40b97eb03b6b8c8dd628de839b0044 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 25 Oct 2023 01:32:38 +0000 Subject: [PATCH] Update services based on v1.46.3 of AWS Go SDK Reference: https://github.com/aws/aws-sdk-go/releases/tag/v1.46.3 --- .latest-tag-aws-sdk-go | 2 +- src/aws_migrationhub_config.erl | 14 ++++++ src/aws_migrationhubstrategy.erl | 26 +++++++++++ src/aws_opensearchserverless.erl | 77 ++++++++++++++++++++++++++++++++ 4 files changed, 118 insertions(+), 1 deletion(-) diff --git a/.latest-tag-aws-sdk-go b/.latest-tag-aws-sdk-go index 98683add..d60e77ca 100644 --- a/.latest-tag-aws-sdk-go +++ b/.latest-tag-aws-sdk-go @@ -1 +1 @@ -v1.46.2 +v1.46.3 diff --git a/src/aws_migrationhub_config.erl b/src/aws_migrationhub_config.erl index f86fcec2..9ff1c6e3 100644 --- a/src/aws_migrationhub_config.erl +++ b/src/aws_migrationhub_config.erl @@ -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, @@ -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) diff --git a/src/aws_migrationhubstrategy.erl b/src/aws_migrationhubstrategy.erl index 89537881..e8dc8198 100644 --- a/src/aws_migrationhubstrategy.erl +++ b/src/aws_migrationhubstrategy.erl @@ -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, @@ -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, []). diff --git a/src/aws_opensearchserverless.erl b/src/aws_opensearchserverless.erl index b42dc88d..cd4b87d6 100644 --- a/src/aws_opensearchserverless.erl +++ b/src/aws_opensearchserverless.erl @@ -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, @@ -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, @@ -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, @@ -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, @@ -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. %% @@ -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 @@ -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 @@ -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. %% @@ -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