From f83770321369b3d19bca3d64b6d4109de3d11ce9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 14 Dec 2024 02:08:25 +0000 Subject: [PATCH] Update services based on release-2024-12-13 of AWS Go SDK Reference: https://github.com/aws/aws-sdk-go-v2/releases/tag/release-2024-12-13 --- .latest-tag-aws-sdk-go | 2 +- src/aws_cloudhsm_v2.erl | 10 +++ src/aws_ec2.erl | 20 ++++-- src/aws_eks.erl | 10 +++ src/aws_mediaconnect.erl | 10 +++ src/aws_servicediscovery.erl | 126 ++++++++++++++++++++++++++++++++++- 6 files changed, 169 insertions(+), 9 deletions(-) diff --git a/.latest-tag-aws-sdk-go b/.latest-tag-aws-sdk-go index 99cc8809..3df6982f 100644 --- a/.latest-tag-aws-sdk-go +++ b/.latest-tag-aws-sdk-go @@ -1 +1 @@ -release-2024-12-12 +release-2024-12-13 diff --git a/src/aws_cloudhsm_v2.erl b/src/aws_cloudhsm_v2.erl index 099781d7..0fad5034 100644 --- a/src/aws_cloudhsm_v2.erl +++ b/src/aws_cloudhsm_v2.erl @@ -145,6 +145,12 @@ %% } -type delete_hsm_response() :: #{binary() => any()}. +%% Example: +%% cloud_hsm_resource_limit_exceeded_exception() :: #{ +%% <<"Message">> => string() +%% } +-type cloud_hsm_resource_limit_exceeded_exception() :: #{binary() => any()}. + %% Example: %% modify_cluster_response() :: #{ %% <<"Cluster">> => cluster() @@ -171,6 +177,7 @@ %% <<"BackupRetentionPolicy">> => backup_retention_policy(), %% <<"HsmType">> := string(), %% <<"Mode">> => list(any()), +%% <<"NetworkType">> => list(any()), %% <<"SourceBackupId">> => string(), %% <<"SubnetIds">> := list(string()()), %% <<"TagList">> => list(tag()()) @@ -204,6 +211,7 @@ %% <<"HsmType">> => string(), %% <<"Hsms">> => list(hsm()()), %% <<"Mode">> => list(any()), +%% <<"NetworkType">> => list(any()), %% <<"PreCoPassword">> => string(), %% <<"SecurityGroup">> => string(), %% <<"SourceBackupId">> => string(), @@ -313,6 +321,7 @@ %% <<"ClusterId">> => string(), %% <<"EniId">> => string(), %% <<"EniIp">> => string(), +%% <<"EniIpV6">> => string(), %% <<"HsmId">> => string(), %% <<"State">> => list(any()), %% <<"StateMessage">> => string(), @@ -540,6 +549,7 @@ cloud_hsm_service_exception() | cloud_hsm_invalid_request_exception() | cloud_hsm_internal_failure_exception() | + cloud_hsm_resource_limit_exceeded_exception() | cloud_hsm_access_denied_exception() | cloud_hsm_resource_not_found_exception(). diff --git a/src/aws_ec2.erl b/src/aws_ec2.erl index 5883b2f0..cb1c61cc 100644 --- a/src/aws_ec2.erl +++ b/src/aws_ec2.erl @@ -7195,6 +7195,13 @@ %% } -type associate_capacity_reservation_billing_owner_result() :: #{binary() => any()}. +%% Example: +%% delete_security_group_result() :: #{ +%% <<"GroupId">> => string(), +%% <<"Return">> => boolean() +%% } +-type delete_security_group_result() :: #{binary() => any()}. + %% Example: %% modify_instance_network_performance_result() :: #{ %% <<"BandwidthWeighting">> => list(any()), @@ -24356,14 +24363,14 @@ delete_route_table(Client, Input, Options) %% association, the operation fails with %% `DependencyViolation'. -spec delete_security_group(aws_client:aws_client(), delete_security_group_request()) -> - {ok, undefined, tuple()} | + {ok, delete_security_group_result(), tuple()} | {error, any()}. delete_security_group(Client, Input) when is_map(Client), is_map(Input) -> delete_security_group(Client, Input, []). -spec delete_security_group(aws_client:aws_client(), delete_security_group_request(), proplists:proplist()) -> - {ok, undefined, tuple()} | + {ok, delete_security_group_result(), tuple()} | {error, any()}. delete_security_group(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> @@ -35104,10 +35111,11 @@ send_diagnostic_interrupt(Client, Input, Options) %% %% An S3 bucket must be available before generating the report (you can %% create a -%% new one or use an existing one), and it must have an appropriate bucket -%% policy. -%% For a sample S3 policy, see Sample Amazon S3 policy under -%% . +%% new one or use an existing one), it must be in the same Region where the +%% report +%% generation request is made, and it must have an appropriate bucket policy. +%% For a +%% sample S3 policy, see Sample Amazon S3 policy under . %% %% Trusted access must be enabled for the service for which the declarative %% policy will enforce a baseline configuration. If you use the Amazon Web diff --git a/src/aws_eks.erl b/src/aws_eks.erl index 6245ef75..82d89459 100644 --- a/src/aws_eks.erl +++ b/src/aws_eks.erl @@ -309,6 +309,7 @@ %% <<"instanceTypes">> => list(string()()), %% <<"labels">> => map(), %% <<"launchTemplate">> => launch_template_specification(), +%% <<"nodeRepairConfig">> => node_repair_config(), %% <<"nodeRole">> := string(), %% <<"nodegroupName">> := string(), %% <<"releaseVersion">> => string(), @@ -355,6 +356,7 @@ %% update_nodegroup_config_request() :: #{ %% <<"clientRequestToken">> => string(), %% <<"labels">> => update_labels_payload(), +%% <<"nodeRepairConfig">> => node_repair_config(), %% <<"scalingConfig">> => nodegroup_scaling_config(), %% <<"taints">> => update_taints_payload(), %% <<"updateConfig">> => nodegroup_update_config() @@ -520,6 +522,7 @@ %% <<"labels">> => map(), %% <<"launchTemplate">> => launch_template_specification(), %% <<"modifiedAt">> => non_neg_integer(), +%% <<"nodeRepairConfig">> => node_repair_config(), %% <<"nodeRole">> => string(), %% <<"nodegroupArn">> => string(), %% <<"nodegroupName">> => string(), @@ -1209,6 +1212,13 @@ %% } -type list_fargate_profiles_response() :: #{binary() => any()}. + +%% Example: +%% node_repair_config() :: #{ +%% <<"enabled">> => boolean() +%% } +-type node_repair_config() :: #{binary() => any()}. + %% Example: %% delete_fargate_profile_request() :: #{} -type delete_fargate_profile_request() :: #{}. diff --git a/src/aws_mediaconnect.erl b/src/aws_mediaconnect.erl index 4d118f45..ef988705 100644 --- a/src/aws_mediaconnect.erl +++ b/src/aws_mediaconnect.erl @@ -880,6 +880,7 @@ %% Example: %% add_bridge_network_source_request() :: #{ %% <<"MulticastIp">> => string(), +%% <<"MulticastSourceSettings">> => multicast_source_settings(), %% <<"Name">> => string(), %% <<"NetworkName">> => string(), %% <<"Port">> => integer(), @@ -892,6 +893,13 @@ -type describe_flow_request() :: #{}. +%% Example: +%% multicast_source_settings() :: #{ +%% <<"MulticastSourceIp">> => string() +%% } +-type multicast_source_settings() :: #{binary() => any()}. + + %% Example: %% start_flow_response() :: #{ %% <<"FlowArn">> => string(), @@ -1093,6 +1101,7 @@ %% Example: %% bridge_network_source() :: #{ %% <<"MulticastIp">> => string(), +%% <<"MulticastSourceSettings">> => multicast_source_settings(), %% <<"Name">> => string(), %% <<"NetworkName">> => string(), %% <<"Port">> => integer(), @@ -1245,6 +1254,7 @@ %% Example: %% update_bridge_network_source_request() :: #{ %% <<"MulticastIp">> => string(), +%% <<"MulticastSourceSettings">> => multicast_source_settings(), %% <<"NetworkName">> => string(), %% <<"Port">> => integer(), %% <<"Protocol">> => list(any()) diff --git a/src/aws_servicediscovery.erl b/src/aws_servicediscovery.erl index 713498b1..262d231f 100644 --- a/src/aws_servicediscovery.erl +++ b/src/aws_servicediscovery.erl @@ -28,6 +28,8 @@ delete_namespace/3, delete_service/2, delete_service/3, + delete_service_attributes/2, + delete_service_attributes/3, deregister_instance/2, deregister_instance/3, discover_instances/2, @@ -44,6 +46,8 @@ get_operation/3, get_service/2, get_service/3, + get_service_attributes/2, + get_service_attributes/3, list_instances/2, list_instances/3, list_namespaces/2, @@ -69,7 +73,9 @@ update_public_dns_namespace/2, update_public_dns_namespace/3, update_service/2, - update_service/3]). + update_service/3, + update_service_attributes/2, + update_service_attributes/3]). -include_lib("hackney/include/hackney_lib.hrl"). @@ -140,6 +146,12 @@ %% } -type update_http_namespace_response() :: #{binary() => any()}. +%% Example: +%% get_service_attributes_response() :: #{ +%% <<"ServiceAttributes">> => service_attributes() +%% } +-type get_service_attributes_response() :: #{binary() => any()}. + %% Example: %% private_dns_namespace_properties() :: #{ %% <<"DnsProperties">> => private_dns_properties_mutable() @@ -347,6 +359,12 @@ %% } -type get_service_request() :: #{binary() => any()}. +%% Example: +%% get_service_attributes_request() :: #{ +%% <<"ServiceId">> := string() +%% } +-type get_service_attributes_request() :: #{binary() => any()}. + %% Example: %% get_instance_request() :: #{ %% <<"InstanceId">> := string(), @@ -512,6 +530,13 @@ %% } -type duplicate_request() :: #{binary() => any()}. +%% Example: +%% delete_service_attributes_request() :: #{ +%% <<"Attributes">> := list(string()()), +%% <<"ServiceId">> := string() +%% } +-type delete_service_attributes_request() :: #{binary() => any()}. + %% Example: %% discover_instances_revision_request() :: #{ %% <<"NamespaceName">> := string(), @@ -605,6 +630,12 @@ %% } -type list_instances_response() :: #{binary() => any()}. +%% Example: +%% service_attributes_limit_exceeded_exception() :: #{ +%% <<"Message">> => string() +%% } +-type service_attributes_limit_exceeded_exception() :: #{binary() => any()}. + %% Example: %% namespace_already_exists() :: #{ %% <<"CreatorRequestId">> => string(), @@ -641,6 +672,12 @@ %% } -type instance() :: #{binary() => any()}. +%% Example: +%% delete_service_attributes_response() :: #{ + +%% } +-type delete_service_attributes_response() :: #{binary() => any()}. + %% Example: %% tag_resource_response() :: #{ @@ -686,6 +723,13 @@ %% } -type health_check_config() :: #{binary() => any()}. +%% Example: +%% service_attributes() :: #{ +%% <<"Attributes">> => map(), +%% <<"ServiceArn">> => string() +%% } +-type service_attributes() :: #{binary() => any()}. + %% Example: %% instance_summary() :: #{ %% <<"Attributes">> => map(), @@ -726,6 +770,12 @@ %% } -type update_private_dns_namespace_request() :: #{binary() => any()}. +%% Example: +%% update_service_attributes_response() :: #{ + +%% } +-type update_service_attributes_response() :: #{binary() => any()}. + %% Example: %% instance_not_found() :: #{ %% <<"Message">> => string() @@ -813,6 +863,13 @@ %% } -type too_many_tags_exception() :: #{binary() => any()}. +%% Example: +%% update_service_attributes_request() :: #{ +%% <<"Attributes">> := map(), +%% <<"ServiceId">> := string() +%% } +-type update_service_attributes_request() :: #{binary() => any()}. + %% Example: %% get_namespace_request() :: #{ %% <<"Id">> := string() @@ -858,6 +915,10 @@ resource_in_use() | invalid_input(). +-type delete_service_attributes_errors() :: + service_not_found() | + invalid_input(). + -type deregister_instance_errors() :: instance_not_found() | service_not_found() | @@ -899,6 +960,10 @@ service_not_found() | invalid_input(). +-type get_service_attributes_errors() :: + service_not_found() | + invalid_input(). + -type list_instances_errors() :: service_not_found() | invalid_input(). @@ -961,6 +1026,11 @@ duplicate_request() | invalid_input(). +-type update_service_attributes_errors() :: + service_attributes_limit_exceeded_exception() | + service_not_found() | + invalid_input(). + %%==================================================================== %% API %%==================================================================== @@ -1129,7 +1199,7 @@ delete_namespace(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"DeleteNamespace">>, Input, Options). -%% @doc Deletes a specified service. +%% @doc Deletes a specified service and all associated service attributes. %% %% If the service still contains one or more registered instances, the %% request @@ -1150,6 +1220,23 @@ delete_service(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"DeleteService">>, Input, Options). +%% @doc Deletes specific attributes associated with a service. +-spec delete_service_attributes(aws_client:aws_client(), delete_service_attributes_request()) -> + {ok, delete_service_attributes_response(), tuple()} | + {error, any()} | + {error, delete_service_attributes_errors(), tuple()}. +delete_service_attributes(Client, Input) + when is_map(Client), is_map(Input) -> + delete_service_attributes(Client, Input, []). + +-spec delete_service_attributes(aws_client:aws_client(), delete_service_attributes_request(), proplists:proplist()) -> + {ok, delete_service_attributes_response(), tuple()} | + {error, any()} | + {error, delete_service_attributes_errors(), tuple()}. +delete_service_attributes(Client, Input, Options) + when is_map(Client), is_map(Input), is_list(Options) -> + request(Client, <<"DeleteServiceAttributes">>, Input, Options). + %% @doc Deletes the Amazon RouteĀ 53 DNS records and health check, if any, %% that Cloud Map created for the specified %% instance. @@ -1308,6 +1395,23 @@ get_service(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"GetService">>, Input, Options). +%% @doc Returns the attributes associated with a specified service. +-spec get_service_attributes(aws_client:aws_client(), get_service_attributes_request()) -> + {ok, get_service_attributes_response(), tuple()} | + {error, any()} | + {error, get_service_attributes_errors(), tuple()}. +get_service_attributes(Client, Input) + when is_map(Client), is_map(Input) -> + get_service_attributes(Client, Input, []). + +-spec get_service_attributes(aws_client:aws_client(), get_service_attributes_request(), proplists:proplist()) -> + {ok, get_service_attributes_response(), tuple()} | + {error, any()} | + {error, get_service_attributes_errors(), tuple()}. +get_service_attributes(Client, Input, Options) + when is_map(Client), is_map(Input), is_list(Options) -> + request(Client, <<"GetServiceAttributes">>, Input, Options). + %% @doc Lists summary information about the instances that you registered by %% using a specified service. -spec list_instances(aws_client:aws_client(), list_instances_request()) -> @@ -1612,6 +1716,24 @@ update_service(Client, Input, Options) when is_map(Client), is_map(Input), is_list(Options) -> request(Client, <<"UpdateService">>, Input, Options). +%% @doc Submits a request to update a specified service to add service-level +%% attributes. +-spec update_service_attributes(aws_client:aws_client(), update_service_attributes_request()) -> + {ok, update_service_attributes_response(), tuple()} | + {error, any()} | + {error, update_service_attributes_errors(), tuple()}. +update_service_attributes(Client, Input) + when is_map(Client), is_map(Input) -> + update_service_attributes(Client, Input, []). + +-spec update_service_attributes(aws_client:aws_client(), update_service_attributes_request(), proplists:proplist()) -> + {ok, update_service_attributes_response(), tuple()} | + {error, any()} | + {error, update_service_attributes_errors(), tuple()}. +update_service_attributes(Client, Input, Options) + when is_map(Client), is_map(Input), is_list(Options) -> + request(Client, <<"UpdateServiceAttributes">>, Input, Options). + %%==================================================================== %% Internal functions %%====================================================================