Skip to content

Commit

Permalink
Update services based on v1.44.207 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Feb 23, 2023
1 parent cab7c80 commit 07165ea
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .latest-tag-aws-sdk-go
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.44.206
v1.44.207
8 changes: 4 additions & 4 deletions src/aws_cloudfront.erl
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,10 @@ copy_distribution(Client, PrimaryDistributionId, Input0, Options0) ->
%% that you want objects to stay in the CloudFront cache.
%%
%% </li> </ul> 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
Expand Down
63 changes: 63 additions & 0 deletions src/aws_opensearch.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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, []).
Expand Down
49 changes: 34 additions & 15 deletions src/aws_rum.erl
Original file line number Diff line number Diff line change
Expand Up @@ -63,31 +63,49 @@
%% 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.
%%
%% By default, RUM app monitors send some metrics to CloudWatch. These
%% 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.
%%
%% <ul> <li> Extended metrics enable you to send metrics with additional
%% dimensions not included in the default metrics. You can also send extended
%% metrics to Evidently as well as CloudWatch. The valid dimension names for
%% the additional dimensions for extended metrics are `BrowserName',
%% `CountryCode', `DeviceType', `FileType', `OSName', and
%% `PageId'. For more information, see Extended metrics that you can send
%% to CloudWatch and CloudWatch Evidently.
%%
%% </li> <li> Custom metrics are metrics that you define. You can send custom
%% metrics to CloudWatch or to CloudWatch Evidently or to both. With custom
%% metrics, you can use any metric name and namespace, and to derive the
%% metrics you can use any custom events, built-in events, custom attributes,
%% or default attributes.
%%
%% You can't send custom metrics to the `AWS/RUM' namespace. You must
%% send custom metrics to a custom namespace that you define. The namespace
%% that you use can't start with `AWS/'. CloudWatch RUM prepends
%% `RUM/CustomMetrics/' to the custom namespace that you define, so the
%% final namespace for your metrics in CloudWatch is
%% `RUM/CustomMetrics/your-custom-namespace '.
%%
%% </li> </ul> The maximum number of metric definitions that you can specify
%% in one `BatchCreateRumMetricDefinitions' operation is 200.
%%
%% The maximum number of metric definitions that one destination can contain
%% is 2000.
%%
%% Extended metrics sent are charged as CloudWatch custom metrics. Each
%% combination of additional dimension name and dimension value counts as a
%% custom metric. For more information, see Amazon CloudWatch Pricing.
%% Extended metrics sent to CloudWatch and RUM custom metrics are charged as
%% CloudWatch custom metrics. Each combination of additional dimension name
%% and dimension value counts as a custom metric. For more information, see
%% Amazon CloudWatch Pricing.
%%
%% You must have already created a destination for the metrics before you
%% send them. For more information, see PutRumMetricsDestination.
Expand Down Expand Up @@ -435,7 +453,8 @@ put_rum_events(Client, Id, Input0, Options0) ->
%% You can send extended metrics to CloudWatch or to a CloudWatch Evidently
%% experiment.
%%
%% For more information about extended metrics, see AddRumMetrics.
%% For more information about extended metrics, see
%% BatchCreateRumMetricDefinitions.
put_rum_metrics_destination(Client, AppMonitorName, Input) ->
put_rum_metrics_destination(Client, AppMonitorName, Input, []).
put_rum_metrics_destination(Client, AppMonitorName, Input0, Options0) ->
Expand Down
17 changes: 8 additions & 9 deletions src/aws_ssm.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1648,8 +1648,8 @@ list_tags_for_resource(Client, Input, Options)
%% document)publicly or privately.
%%
%% If you share a document privately, you must specify the Amazon Web
%% Services user account IDs for those people who can use the document. If
%% you share a document publicly, you must specify All as the account ID.
%% Services user IDs for those people who can use the document. If you share
%% a document publicly, you must specify All as the account ID.
modify_document_permission(Client, Input)
when is_map(Client), is_map(Input) ->
modify_document_permission(Client, Input, []).
Expand Down Expand Up @@ -1947,13 +1947,12 @@ unlabel_parameter_version(Client, Input, Options)
%% operation and make a note of all optional parameters required for your
%% `UpdateAssociation' call.
%%
%% In order to call this API operation, your Identity and Access Management
%% (IAM) user account, group, or role must be configured with permission to
%% call the `DescribeAssociation' API operation. If you don't have
%% permission to call `DescribeAssociation', then you receive the
%% following error: `An error occurred (AccessDeniedException) when calling
%% the UpdateAssociation operation: User: &lt;user_arn&gt; isn't
%% authorized to perform: ssm:DescribeAssociation on resource:
%% In order to call this API operation, a user, group, or role must be
%% granted permission to call the `DescribeAssociation' API operation. If
%% you don't have permission to call `DescribeAssociation', then you
%% receive the following error: `An error occurred (AccessDeniedException)
%% when calling the UpdateAssociation operation: User: &lt;user_arn&gt;
%% isn't authorized to perform: ssm:DescribeAssociation on resource:
%% &lt;resource_arn&gt;'
%%
%% When you update an association, the association immediately runs against
Expand Down

0 comments on commit 07165ea

Please sign in to comment.