From d0afe9eb95fc3cd1840a461c0c7e0d8549b2687f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 1 Mar 2024 01:36:31 +0000 Subject: [PATCH] Update services based on v1.50.29 of AWS Go SDK Reference: https://github.com/aws/aws-sdk-go/releases/tag/v1.50.29 --- .latest-tag-aws-sdk-go | 2 +- src/aws_docdb_elastic.erl | 141 +++++++++++++++++++++++---- src/aws_migrationhuborchestrator.erl | 84 +++++++++++++++- src/aws_sagemaker.erl | 9 +- 4 files changed, 204 insertions(+), 32 deletions(-) diff --git a/.latest-tag-aws-sdk-go b/.latest-tag-aws-sdk-go index f802d29c..ed4443a2 100644 --- a/.latest-tag-aws-sdk-go +++ b/.latest-tag-aws-sdk-go @@ -1 +1 @@ -v1.50.28 +v1.50.29 diff --git a/src/aws_docdb_elastic.erl b/src/aws_docdb_elastic.erl index 3d0bfbba..3b836bca 100644 --- a/src/aws_docdb_elastic.erl +++ b/src/aws_docdb_elastic.erl @@ -1,10 +1,33 @@ %% WARNING: DO NOT EDIT, AUTO-GENERATED CODE! %% See https://github.com/aws-beam/aws-codegen for more details. -%% @doc The new Amazon Elastic DocumentDB service endpoint. +%% @doc Amazon DocumentDB elastic clusters +%% +%% Amazon DocumentDB elastic-clusters support workloads with millions of +%% reads/writes per second and petabytes of storage capacity. +%% +%% Amazon DocumentDB elastic clusters also simplify how developers interact +%% with Amazon DocumentDB elastic-clusters by eliminating the need to choose, +%% manage or upgrade instances. +%% +%% Amazon DocumentDB elastic-clusters were created to: +%% +%% -module(aws_docdb_elastic). --export([create_cluster/2, +-export([copy_cluster_snapshot/3, + copy_cluster_snapshot/4, + create_cluster/2, create_cluster/3, create_cluster_snapshot/2, create_cluster_snapshot/3, @@ -29,6 +52,10 @@ list_tags_for_resource/5, restore_cluster_from_snapshot/3, restore_cluster_from_snapshot/4, + start_cluster/3, + start_cluster/4, + stop_cluster/3, + stop_cluster/4, tag_resource/3, tag_resource/4, untag_resource/3, @@ -42,8 +69,31 @@ %% API %%==================================================================== -%% @doc Creates a new Elastic DocumentDB cluster and returns its Cluster -%% structure. +%% @doc Copies a snapshot of an elastic cluster. +copy_cluster_snapshot(Client, SnapshotArn, Input) -> + copy_cluster_snapshot(Client, SnapshotArn, Input, []). +copy_cluster_snapshot(Client, SnapshotArn, Input0, Options0) -> + Method = post, + Path = ["/cluster-snapshot/", aws_util:encode_uri(SnapshotArn), "/copy"], + 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 Creates a new Amazon DocumentDB elastic cluster and returns its +%% cluster structure. create_cluster(Client, Input) -> create_cluster(Client, Input, []). create_cluster(Client, Input0, Options0) -> @@ -66,7 +116,7 @@ create_cluster(Client, Input0, Options0) -> request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). -%% @doc Creates a snapshot of a cluster. +%% @doc Creates a snapshot of an elastic cluster. create_cluster_snapshot(Client, Input) -> create_cluster_snapshot(Client, Input, []). create_cluster_snapshot(Client, Input0, Options0) -> @@ -89,7 +139,7 @@ create_cluster_snapshot(Client, Input0, Options0) -> request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). -%% @doc Delete a Elastic DocumentDB cluster. +%% @doc Delete an elastic cluster. delete_cluster(Client, ClusterArn, Input) -> delete_cluster(Client, ClusterArn, Input, []). delete_cluster(Client, ClusterArn, Input0, Options0) -> @@ -112,7 +162,7 @@ delete_cluster(Client, ClusterArn, Input0, Options0) -> request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). -%% @doc Delete a Elastic DocumentDB snapshot. +%% @doc Delete an elastic cluster snapshot. delete_cluster_snapshot(Client, SnapshotArn, Input) -> delete_cluster_snapshot(Client, SnapshotArn, Input, []). delete_cluster_snapshot(Client, SnapshotArn, Input0, Options0) -> @@ -135,7 +185,7 @@ delete_cluster_snapshot(Client, SnapshotArn, Input0, Options0) -> request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). -%% @doc Returns information about a specific Elastic DocumentDB cluster. +%% @doc Returns information about a specific elastic cluster. get_cluster(Client, ClusterArn) when is_map(Client) -> get_cluster(Client, ClusterArn, #{}, #{}). @@ -158,7 +208,7 @@ get_cluster(Client, ClusterArn, QueryMap, HeadersMap, Options0) request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). -%% @doc Returns information about a specific Elastic DocumentDB snapshot +%% @doc Returns information about a specific elastic cluster snapshot get_cluster_snapshot(Client, SnapshotArn) when is_map(Client) -> get_cluster_snapshot(Client, SnapshotArn, #{}, #{}). @@ -181,8 +231,7 @@ get_cluster_snapshot(Client, SnapshotArn, QueryMap, HeadersMap, Options0) request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). -%% @doc Returns information about Elastic DocumentDB snapshots for a -%% specified cluster. +%% @doc Returns information about snapshots for a specified elastic cluster. list_cluster_snapshots(Client) when is_map(Client) -> list_cluster_snapshots(Client, #{}, #{}). @@ -205,13 +254,15 @@ list_cluster_snapshots(Client, QueryMap, HeadersMap, Options0) [ {<<"clusterArn">>, maps:get(<<"clusterArn">>, QueryMap, undefined)}, {<<"maxResults">>, maps:get(<<"maxResults">>, QueryMap, undefined)}, - {<<"nextToken">>, maps:get(<<"nextToken">>, QueryMap, undefined)} + {<<"nextToken">>, maps:get(<<"nextToken">>, QueryMap, undefined)}, + {<<"snapshotType">>, maps:get(<<"snapshotType">>, QueryMap, undefined)} ], Query_ = [H || {_, V} = H <- Query0_, V =/= undefined], request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). -%% @doc Returns information about provisioned Elastic DocumentDB clusters. +%% @doc Returns information about provisioned Amazon DocumentDB elastic +%% clusters. list_clusters(Client) when is_map(Client) -> list_clusters(Client, #{}, #{}). @@ -239,7 +290,7 @@ list_clusters(Client, QueryMap, HeadersMap, Options0) request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). -%% @doc Lists all tags on a Elastic DocumentDB resource +%% @doc Lists all tags on a elastic cluster resource list_tags_for_resource(Client, ResourceArn) when is_map(Client) -> list_tags_for_resource(Client, ResourceArn, #{}, #{}). @@ -262,7 +313,7 @@ list_tags_for_resource(Client, ResourceArn, QueryMap, HeadersMap, Options0) request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). -%% @doc Restores a Elastic DocumentDB cluster from a snapshot. +%% @doc Restores an elastic cluster from a snapshot. restore_cluster_from_snapshot(Client, SnapshotArn, Input) -> restore_cluster_from_snapshot(Client, SnapshotArn, Input, []). restore_cluster_from_snapshot(Client, SnapshotArn, Input0, Options0) -> @@ -285,7 +336,57 @@ restore_cluster_from_snapshot(Client, SnapshotArn, Input0, Options0) -> request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). -%% @doc Adds metadata tags to a Elastic DocumentDB resource +%% @doc Restarts the stopped elastic cluster that is specified by +%% `clusterARN'. +start_cluster(Client, ClusterArn, Input) -> + start_cluster(Client, ClusterArn, Input, []). +start_cluster(Client, ClusterArn, Input0, Options0) -> + Method = post, + Path = ["/cluster/", aws_util:encode_uri(ClusterArn), "/start"], + 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 Stops the running elastic cluster that is specified by +%% `clusterArn'. +%% +%% The elastic cluster must be in the available state. +stop_cluster(Client, ClusterArn, Input) -> + stop_cluster(Client, ClusterArn, Input, []). +stop_cluster(Client, ClusterArn, Input0, Options0) -> + Method = post, + Path = ["/cluster/", aws_util:encode_uri(ClusterArn), "/stop"], + 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 Adds metadata tags to an elastic cluster resource tag_resource(Client, ResourceArn, Input) -> tag_resource(Client, ResourceArn, Input, []). tag_resource(Client, ResourceArn, Input0, Options0) -> @@ -308,7 +409,7 @@ tag_resource(Client, ResourceArn, Input0, Options0) -> request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). -%% @doc Removes metadata tags to a Elastic DocumentDB resource +%% @doc Removes metadata tags from an elastic cluster resource untag_resource(Client, ResourceArn, Input) -> untag_resource(Client, ResourceArn, Input, []). untag_resource(Client, ResourceArn, Input0, Options0) -> @@ -332,10 +433,10 @@ untag_resource(Client, ResourceArn, Input0, Options0) -> {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). -%% @doc Modifies a Elastic DocumentDB cluster. +%% @doc Modifies an elastic cluster. %% -%% This includes updating admin-username/password, upgrading API version -%% setting up a backup window and maintenance window +%% This includes updating admin-username/password, upgrading the API version, +%% and setting up a backup window and maintenance window update_cluster(Client, ClusterArn, Input) -> update_cluster(Client, ClusterArn, Input, []). update_cluster(Client, ClusterArn, Input0, Options0) -> diff --git a/src/aws_migrationhuborchestrator.erl b/src/aws_migrationhuborchestrator.erl index 118730c9..7913bf6f 100644 --- a/src/aws_migrationhuborchestrator.erl +++ b/src/aws_migrationhuborchestrator.erl @@ -5,18 +5,21 @@ %% about each of the actions and data types for AWS Migration Hub %% Orchestrator. %% -%% he topic for each action shows the API request parameters and the -%% response. Alternatively, you can use one of the AWS SDKs to access an API -%% that is tailored to the programming language or platform that you're -%% using. +%% The topic for each action shows the API request parameters and responses. +%% Alternatively, you can use one of the AWS SDKs to access an API that is +%% tailored to the programming language or platform that you're using. -module(aws_migrationhuborchestrator). --export([create_workflow/2, +-export([create_template/2, + create_template/3, + create_workflow/2, create_workflow/3, create_workflow_step/2, create_workflow_step/3, create_workflow_step_group/2, create_workflow_step_group/3, + delete_template/3, + delete_template/4, delete_workflow/3, delete_workflow/4, delete_workflow_step/3, @@ -75,6 +78,8 @@ tag_resource/4, untag_resource/3, untag_resource/4, + update_template/3, + update_template/4, update_workflow/3, update_workflow/4, update_workflow_step/3, @@ -88,6 +93,29 @@ %% API %%==================================================================== +%% @doc Creates a migration workflow template. +create_template(Client, Input) -> + create_template(Client, Input, []). +create_template(Client, Input0, Options0) -> + Method = post, + Path = ["/template"], + 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 Create a workflow to orchestrate your migrations. create_workflow(Client, Input) -> create_workflow(Client, Input, []). @@ -157,6 +185,29 @@ create_workflow_step_group(Client, Input0, Options0) -> request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). +%% @doc Deletes a migration workflow template. +delete_template(Client, Id, Input) -> + delete_template(Client, Id, Input, []). +delete_template(Client, Id, Input0, Options0) -> + Method = delete, + Path = ["/template/", aws_util:encode_uri(Id), ""], + 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 Delete a migration workflow. %% %% You must pause a running workflow in Migration Hub Orchestrator console to @@ -732,6 +783,29 @@ untag_resource(Client, ResourceArn, Input0, Options0) -> {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). +%% @doc Updates a migration workflow template. +update_template(Client, Id, Input) -> + update_template(Client, Id, Input, []). +update_template(Client, Id, Input0, Options0) -> + Method = post, + Path = ["/template/", aws_util:encode_uri(Id), ""], + 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 Update a migration workflow. update_workflow(Client, Id, Input) -> update_workflow(Client, Id, Input, []). diff --git a/src/aws_sagemaker.erl b/src/aws_sagemaker.erl index be5e2ff0..386f5630 100644 --- a/src/aws_sagemaker.erl +++ b/src/aws_sagemaker.erl @@ -1466,11 +1466,6 @@ create_labeling_job(Client, Input, Options) %% `CreateEndpoint' API. SageMaker then deploys all of the containers %% that you defined for the model in the hosting environment. %% -%% For an example that calls this method when deploying a model to SageMaker -%% hosting services, see Create a Model (Amazon Web Services SDK for Python -%% (Boto 3)).: -%% https://docs.aws.amazon.com/sagemaker/latest/dg/realtime-endpoints-deployment.html#realtime-endpoints-deployment-create-model -%% %% To run a batch transform using your model, you start a job with the %% `CreateTransformJob' API. SageMaker uses your model and your dataset %% to get inferences which are then saved to a specified S3 location. @@ -4400,7 +4395,9 @@ update_experiment(Client, Input, Options) %% the feature group after the feature group is updated. If a record level %% `TtlDuration' exists from using the `PutRecord' API, the record %% level `TtlDuration' applies to that record instead of the default -%% `TtlDuration'. +%% `TtlDuration'. To remove the default `TtlDuration' from an +%% existing feature group, use the `UpdateFeatureGroup' API and set the +%% `TtlDuration' `Unit' and `Value' to `null'. update_feature_group(Client, Input) when is_map(Client), is_map(Input) -> update_feature_group(Client, Input, []).