diff --git a/.latest-tag-aws-sdk-go b/.latest-tag-aws-sdk-go index 5f722650..25196b39 100644 --- a/.latest-tag-aws-sdk-go +++ b/.latest-tag-aws-sdk-go @@ -1 +1 @@ -v1.50.11 +v1.50.12 diff --git a/src/aws_appsync.erl b/src/aws_appsync.erl index 45848cd0..444d53bf 100644 --- a/src/aws_appsync.erl +++ b/src/aws_appsync.erl @@ -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, @@ -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, @@ -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) -> @@ -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: +%% +%% When creating an environmental variable key-value pair, it +%% must follow the additional constraints below: +%% +%% You can create a list of environmental variables by adding it +%% to the `environmentVariables' payload as a list in the format +%% `{"key1":"value1","key2":"value2", +%% …}'. 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 diff --git a/src/aws_cloudwatch_logs.erl b/src/aws_cloudwatch_logs.erl index 4da95d35..bf45974c 100644 --- a/src/aws_cloudwatch_logs.erl +++ b/src/aws_cloudwatch_logs.erl @@ -396,6 +396,8 @@ create_log_anomaly_detector(Client, Input, Options) %% 0-9, '_' (underscore), '-' (hyphen), '/' (forward %% slash), '.' (period), and '#' (number sign) %% +%%
  • Log group names can't start with the string `aws/' +%% %%
  • 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. @@ -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, []). @@ -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 diff --git a/src/aws_elasticsearch.erl b/src/aws_elasticsearch.erl index a5ba481e..8e65ac72 100644 --- a/src/aws_elasticsearch.erl +++ b/src/aws_elasticsearch.erl @@ -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, @@ -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' diff --git a/src/aws_opensearch.erl b/src/aws_opensearch.erl index a2b91b00..0d71f2f3 100644 --- a/src/aws_opensearch.erl +++ b/src/aws_opensearch.erl @@ -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, @@ -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. %% diff --git a/src/aws_wafv2.erl b/src/aws_wafv2.erl index c5398589..0d46e221 100644 --- a/src/aws_wafv2.erl +++ b/src/aws_wafv2.erl @@ -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, @@ -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. %%