diff --git a/.latest-tag-aws-sdk-go b/.latest-tag-aws-sdk-go index 48f60715..b638269d 100644 --- a/.latest-tag-aws-sdk-go +++ b/.latest-tag-aws-sdk-go @@ -1 +1 @@ -v1.44.206 +v1.44.207 diff --git a/src/aws_cloudfront.erl b/src/aws_cloudfront.erl index 103cb21a..7cfb882a 100644 --- a/src/aws_cloudfront.erl +++ b/src/aws_cloudfront.erl @@ -385,10 +385,10 @@ copy_distribution(Client, PrimaryDistributionId, Input0, Options0) -> %% that you want objects to stay in the CloudFront cache. %% %% The headers, cookies, and query strings that are included in -%% the cache key are automatically included in requests that CloudFront sends -%% to the origin. CloudFront sends a request when it can't find an object -%% in its cache that matches the request's cache key. If you want to send -%% values to the origin but not include them in the cache key, use +%% the cache key are also included in requests that CloudFront sends to the +%% origin. CloudFront sends a request when it can't find an object in its +%% cache that matches the request's cache key. If you want to send values +%% to the origin but not include them in the cache key, use %% `OriginRequestPolicy'. %% %% For more information about cache policies, see Controlling the cache key diff --git a/src/aws_opensearch.erl b/src/aws_opensearch.erl index e93e583c..0b408e06 100644 --- a/src/aws_opensearch.erl +++ b/src/aws_opensearch.erl @@ -101,6 +101,9 @@ list_packages_for_domain/2, list_packages_for_domain/4, list_packages_for_domain/5, + list_scheduled_actions/2, + list_scheduled_actions/4, + list_scheduled_actions/5, list_tags/2, list_tags/4, list_tags/5, @@ -130,6 +133,8 @@ update_domain_config/4, update_package/2, update_package/3, + update_scheduled_action/3, + update_scheduled_action/4, update_vpc_endpoint/2, update_vpc_endpoint/3, upgrade_domain/2, @@ -1118,6 +1123,38 @@ list_packages_for_domain(Client, DomainName, QueryMap, HeadersMap, Options0) request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). +%% @doc Retrieves a list of configuration changes that are scheduled for a +%% domain. +%% +%% These changes can be service software updates or blue/green Auto-Tune +%% enhancements. +list_scheduled_actions(Client, DomainName) + when is_map(Client) -> + list_scheduled_actions(Client, DomainName, #{}, #{}). + +list_scheduled_actions(Client, DomainName, QueryMap, HeadersMap) + when is_map(Client), is_map(QueryMap), is_map(HeadersMap) -> + list_scheduled_actions(Client, DomainName, QueryMap, HeadersMap, []). + +list_scheduled_actions(Client, DomainName, QueryMap, HeadersMap, Options0) + when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) -> + Path = ["/2021-01-01/opensearch/domain/", aws_util:encode_uri(DomainName), "/scheduledActions"], + SuccessStatusCode = undefined, + Options = [{send_body_as_binary, false}, + {receive_body_as_binary, false} + | Options0], + + Headers = [], + + Query0_ = + [ + {<<"maxResults">>, maps:get(<<"maxResults">>, QueryMap, undefined)}, + {<<"nextToken">>, maps:get(<<"nextToken">>, QueryMap, undefined)} + ], + Query_ = [H || {_, V} = H <- Query0_, V =/= undefined], + + request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). + %% @doc Returns all resource tags for an Amazon OpenSearch Service domain. %% %% For more information, see Tagging Amazon OpenSearch Service domains. @@ -1434,6 +1471,32 @@ update_package(Client, Input0, Options0) -> request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). +%% @doc Reschedules a planned domain configuration change for a later time. +%% +%% This change can be a scheduled service software update or a blue/green +%% Auto-Tune enhancement. +update_scheduled_action(Client, DomainName, Input) -> + update_scheduled_action(Client, DomainName, Input, []). +update_scheduled_action(Client, DomainName, Input0, Options0) -> + Method = put, + Path = ["/2021-01-01/opensearch/domain/", aws_util:encode_uri(DomainName), "/scheduledAction/update"], + SuccessStatusCode = undefined, + 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 Modifies an Amazon OpenSearch Service-managed interface VPC endpoint. update_vpc_endpoint(Client, Input) -> update_vpc_endpoint(Client, Input, []). diff --git a/src/aws_rum.erl b/src/aws_rum.erl index 59cfd591..637d2324 100644 --- a/src/aws_rum.erl +++ b/src/aws_rum.erl @@ -63,8 +63,8 @@ %% API %%==================================================================== -%% @doc Specifies the extended metrics that you want a CloudWatch RUM app -%% monitor to send to a destination. +%% @doc Specifies the extended metrics and custom metrics that you want a +%% CloudWatch RUM app monitor to send to a destination. %% %% Valid destinations include CloudWatch and Evidently. %% @@ -72,22 +72,40 @@ %% default metrics are listed in CloudWatch metrics that you can collect with %% CloudWatch RUM. %% -%% If you also send extended metrics, you can send metrics to Evidently as -%% well as CloudWatch, and you can also optionally send the metrics with -%% additional dimensions. The valid dimension names for the additional -%% dimensions are `BrowserName', `CountryCode', `DeviceType', -%% `FileType', `OSName', and `PageId'. For more information, see -%% Extended metrics that you can send to CloudWatch and CloudWatch Evidently. -%% -%% The maximum number of metric definitions that you can specify in one -%% `BatchCreateRumMetricDefinitions' operation is 200. +%% In addition to these default metrics, you can choose to send extended +%% metrics or custom metrics or both. +%% +%%