Skip to content

Commit

Permalink
Update services based on v1.50.12 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Feb 7, 2024
1 parent 5fd22af commit 634c60c
Show file tree
Hide file tree
Showing 6 changed files with 179 additions and 4 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.50.11
v1.50.12
93 changes: 93 additions & 0 deletions src/aws_appsync.erl
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@
get_graphql_api/2,
get_graphql_api/4,
get_graphql_api/5,
get_graphql_api_environment_variables/2,
get_graphql_api_environment_variables/4,
get_graphql_api_environment_variables/5,
get_introspection_schema/3,
get_introspection_schema/5,
get_introspection_schema/6,
Expand Down Expand Up @@ -124,6 +127,8 @@
list_types_by_association/4,
list_types_by_association/6,
list_types_by_association/7,
put_graphql_api_environment_variables/3,
put_graphql_api_environment_variables/4,
start_data_source_introspection/2,
start_data_source_introspection/3,
start_schema_creation/3,
Expand Down Expand Up @@ -934,6 +939,30 @@ get_graphql_api(Client, ApiId, QueryMap, HeadersMap, Options0)

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

%% @doc Retrieves the list of environmental variable key-value pairs
%% associated with an API by its ID value.
get_graphql_api_environment_variables(Client, ApiId)
when is_map(Client) ->
get_graphql_api_environment_variables(Client, ApiId, #{}, #{}).

get_graphql_api_environment_variables(Client, ApiId, QueryMap, HeadersMap)
when is_map(Client), is_map(QueryMap), is_map(HeadersMap) ->
get_graphql_api_environment_variables(Client, ApiId, QueryMap, HeadersMap, []).

get_graphql_api_environment_variables(Client, ApiId, QueryMap, HeadersMap, Options0)
when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) ->
Path = ["/v1/apis/", aws_util:encode_uri(ApiId), "/environmentVariables"],
SuccessStatusCode = undefined,
Options = [{send_body_as_binary, false},
{receive_body_as_binary, false}
| Options0],

Headers = [],

Query_ = [],

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

%% @doc Retrieves the introspection schema for a GraphQL API.
get_introspection_schema(Client, ApiId, Format)
when is_map(Client) ->
Expand Down Expand Up @@ -1370,6 +1399,70 @@ list_types_by_association(Client, AssociationId, MergedApiIdentifier, Format, Qu

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

%% @doc Creates a list of environmental variables in an API by its ID value.
%%
%% When creating an environmental variable, it must follow the constraints
%% below:
%%
%% <ul> <li> Both JavaScript and VTL templates support environmental
%% variables.
%%
%% </li> <li> Environmental variables are not evaluated before function
%% invocation.
%%
%% </li> <li> Environmental variables only support string values.
%%
%% </li> <li> Any defined value in an environmental variable is considered a
%% string literal and not expanded.
%%
%% </li> <li> Variable evaluations should ideally be performed in the
%% function code.
%%
%% </li> </ul> When creating an environmental variable key-value pair, it
%% must follow the additional constraints below:
%%
%% <ul> <li> Keys must begin with a letter.
%%
%% </li> <li> Keys must be at least two characters long.
%%
%% </li> <li> Keys can only contain letters, numbers, and the underscore
%% character (_).
%%
%% </li> <li> Values can be up to 512 characters long.
%%
%% </li> <li> You can configure up to 50 key-value pairs in a GraphQL API.
%%
%% </li> </ul> You can create a list of environmental variables by adding it
%% to the `environmentVariables' payload as a list in the format
%% `{&quot;key1&quot;:&quot;value1&quot;,&quot;key2&quot;:&quot;value2&quot;,
%% …}'. Note that each call of the
%% `PutGraphqlApiEnvironmentVariables' action will result in the
%% overwriting of the existing environmental variable list of that API. This
%% means the existing environmental variables will be lost. To avoid this,
%% you must include all existing and new environmental variables in the list
%% each time you call this action.
put_graphql_api_environment_variables(Client, ApiId, Input) ->
put_graphql_api_environment_variables(Client, ApiId, Input, []).
put_graphql_api_environment_variables(Client, ApiId, Input0, Options0) ->
Method = put,
Path = ["/v1/apis/", aws_util:encode_uri(ApiId), "/environmentVariables"],
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 Creates a new introspection.
%%
%% Returns the `introspectionId' of the new introspection after its
Expand Down
23 changes: 20 additions & 3 deletions src/aws_cloudwatch_logs.erl
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,8 @@ create_log_anomaly_detector(Client, Input, Options)
%% 0-9, '_' (underscore), '-' (hyphen), '/' (forward
%% slash), '.' (period), and '#' (number sign)
%%
%% </li> <li> Log group names can't start with the string `aws/'
%%
%% </li> </ul> When you create a log group, by default the log events in the
%% log group do not expire. To set a retention policy so that events expire
%% and are deleted after a specified time, use PutRetentionPolicy.
Expand Down Expand Up @@ -641,6 +643,15 @@ describe_account_policies(Client, Input, Options)

%% @doc Retrieves a list of the deliveries that have been created in the
%% account.
%%
%% A delivery is a connection between a delivery source and a delivery
%% destination .
%%
%% A delivery source represents an Amazon Web Services resource that sends
%% logs to an logs delivery destination. The destination can be CloudWatch
%% Logs, Amazon S3, or Kinesis Data Firehose. Only some Amazon Web Services
%% services support being configured as a delivery source. These services are
%% listed in Enable logging from Amazon Web Services services.
describe_deliveries(Client, Input)
when is_map(Client), is_map(Input) ->
describe_deliveries(Client, Input, []).
Expand Down Expand Up @@ -864,10 +875,16 @@ get_data_protection_policy(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"GetDataProtectionPolicy">>, Input, Options).

%% @doc Returns complete information about one delivery.
%% @doc Returns complete information about one logical delivery.
%%
%% A delivery is a connection between a logical delivery source and a logical
%% delivery destination
%% A delivery is a connection between a delivery source and a delivery
%% destination .
%%
%% A delivery source represents an Amazon Web Services resource that sends
%% logs to an logs delivery destination. The destination can be CloudWatch
%% Logs, Amazon S3, or Kinesis Data Firehose. Only some Amazon Web Services
%% services support being configured as a delivery source. These services are
%% listed in Enable logging from Amazon Web Services services.
%%
%% You need to specify the delivery `id' in this operation. You can find
%% the IDs of the deliveries in your account with the DescribeDeliveries
Expand Down
26 changes: 26 additions & 0 deletions src/aws_elasticsearch.erl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
associate_package/5,
authorize_vpc_endpoint_access/3,
authorize_vpc_endpoint_access/4,
cancel_domain_config_change/3,
cancel_domain_config_change/4,
cancel_elasticsearch_service_software_update/2,
cancel_elasticsearch_service_software_update/3,
create_elasticsearch_domain/2,
Expand Down Expand Up @@ -241,6 +243,30 @@ authorize_vpc_endpoint_access(Client, DomainName, Input0, Options0) ->

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

%% @doc Cancels a pending configuration change on an Amazon OpenSearch
%% Service domain.
cancel_domain_config_change(Client, DomainName, Input) ->
cancel_domain_config_change(Client, DomainName, Input, []).
cancel_domain_config_change(Client, DomainName, Input0, Options0) ->
Method = post,
Path = ["/2015-01-01/es/domain/", aws_util:encode_uri(DomainName), "/config/cancel"],
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 Cancels a scheduled service software update for an Amazon ES domain.
%%
%% You can only perform this operation before the `AutomatedUpdateDate'
Expand Down
26 changes: 26 additions & 0 deletions src/aws_opensearch.erl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
associate_package/5,
authorize_vpc_endpoint_access/3,
authorize_vpc_endpoint_access/4,
cancel_domain_config_change/3,
cancel_domain_config_change/4,
cancel_service_software_update/2,
cancel_service_software_update/3,
create_domain/2,
Expand Down Expand Up @@ -301,6 +303,30 @@ authorize_vpc_endpoint_access(Client, DomainName, Input0, Options0) ->

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

%% @doc Cancels a pending configuration change on an Amazon OpenSearch
%% Service domain.
cancel_domain_config_change(Client, DomainName, Input) ->
cancel_domain_config_change(Client, DomainName, Input, []).
cancel_domain_config_change(Client, DomainName, Input0, Options0) ->
Method = post,
Path = ["/2021-01-01/opensearch/domain/", aws_util:encode_uri(DomainName), "/config/cancel"],
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 Cancels a scheduled service software update for an Amazon OpenSearch
%% Service domain.
%%
Expand Down
13 changes: 13 additions & 0 deletions src/aws_wafv2.erl
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@
create_rule_group/3,
create_web_acl/2,
create_web_acl/3,
delete_api_key/2,
delete_api_key/3,
delete_firewall_manager_rule_groups/2,
delete_firewall_manager_rule_groups/3,
delete_ip_set/2,
Expand Down Expand Up @@ -333,6 +335,17 @@ create_web_acl(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"CreateWebACL">>, Input, Options).

%% @doc Deletes the specified API key.
%%
%% After you delete a key, it can take up to 24 hours for WAF to disallow use
%% of the key in all regions.
delete_api_key(Client, Input)
when is_map(Client), is_map(Input) ->
delete_api_key(Client, Input, []).
delete_api_key(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"DeleteAPIKey">>, Input, Options).

%% @doc Deletes all rule groups that are managed by Firewall Manager for the
%% specified web ACL.
%%
Expand Down

0 comments on commit 634c60c

Please sign in to comment.