Skip to content

Commit

Permalink
Update services based on release-2025-02-04 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Feb 5, 2025
1 parent 9e2e2b1 commit 0065332
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .latest-tag-aws-sdk-go
Original file line number Diff line number Diff line change
@@ -1 +1 @@
release-2025-02-03
release-2025-02-04
15 changes: 12 additions & 3 deletions src/aws_database_migration.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,8 @@
%% <<"NumberOfJobs">> => integer(),
%% <<"SelectionRules">> => string(),
%% <<"ServiceAccessRoleArn">> => string(),
%% <<"SourceDataSettings">> => list(source_data_setting()())
%% <<"SourceDataSettings">> => list(source_data_setting()()),
%% <<"TargetDataSettings">> => list(target_data_setting()())
%% }
-type modify_data_migration_message() :: #{binary() => any()}.

Expand Down Expand Up @@ -1769,6 +1770,12 @@
%% }
-type describe_pending_maintenance_actions_response() :: #{binary() => any()}.

%% Example:
%% target_data_setting() :: #{
%% <<"TablePreparationMode">> => list(any())
%% }
-type target_data_setting() :: #{binary() => any()}.

%% Example:
%% recommendation() :: #{
%% <<"CreatedDate">> => string(),
Expand Down Expand Up @@ -2168,7 +2175,8 @@
%% <<"PublicIpAddresses">> => list(string()()),
%% <<"ServiceAccessRoleArn">> => string(),
%% <<"SourceDataSettings">> => list(source_data_setting()()),
%% <<"StopReason">> => string()
%% <<"StopReason">> => string(),
%% <<"TargetDataSettings">> => list(target_data_setting()())
%% }
-type data_migration() :: #{binary() => any()}.

Expand Down Expand Up @@ -2769,7 +2777,8 @@
%% <<"SelectionRules">> => string(),
%% <<"ServiceAccessRoleArn">> := string(),
%% <<"SourceDataSettings">> => list(source_data_setting()()),
%% <<"Tags">> => list(tag()())
%% <<"Tags">> => list(tag()()),
%% <<"TargetDataSettings">> => list(target_data_setting()())
%% }
-type create_data_migration_message() :: #{binary() => any()}.

Expand Down
57 changes: 43 additions & 14 deletions src/aws_iam.erl
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,8 @@

%% Example:
%% create_saml_provider_request() :: #{
%% <<"AddPrivateKey">> => string(),
%% <<"AssertionEncryptionMode">> => list(any()),
%% <<"Name">> := string(),
%% <<"SAMLMetadataDocument">> := string(),
%% <<"Tags">> => list(tag()())
Expand Down Expand Up @@ -928,8 +930,11 @@

%% Example:
%% get_saml_provider_response() :: #{
%% <<"AssertionEncryptionMode">> => list(any()),
%% <<"CreateDate">> => non_neg_integer(),
%% <<"PrivateKeyList">> => list(saml_private_key()()),
%% <<"SAMLMetadataDocument">> => string(),
%% <<"SAMLProviderUUID">> => string(),
%% <<"Tags">> => list(tag()()),
%% <<"ValidUntil">> => non_neg_integer()
%% }
Expand Down Expand Up @@ -2054,7 +2059,10 @@

%% Example:
%% update_saml_provider_request() :: #{
%% <<"SAMLMetadataDocument">> := string(),
%% <<"AddPrivateKey">> => string(),
%% <<"AssertionEncryptionMode">> => list(any()),
%% <<"RemovePrivateKey">> => string(),
%% <<"SAMLMetadataDocument">> => string(),
%% <<"SAMLProviderArn">> := string()
%% }
-type update_saml_provider_request() :: #{binary() => any()}.
Expand Down Expand Up @@ -2221,6 +2229,13 @@
%% }
-type list_attached_group_policies_response() :: #{binary() => any()}.

%% Example:
%% saml_private_key() :: #{
%% <<"KeyId">> => string(),
%% <<"Timestamp">> => non_neg_integer()
%% }
-type saml_private_key() :: #{binary() => any()}.

%% Example:
%% list_server_certificates_request() :: #{
%% <<"Marker">> => string(),
Expand Down Expand Up @@ -3803,6 +3818,19 @@ add_client_id_to_open_id_connect_provider(Client, Input, Options)
%% The caller of this operation must be granted the `PassRole' permission
%% on the IAM role by a permissions policy.
%%
%% When using the iam:AssociatedResourceArn:
%% https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_iam-condition-keys.html#available-keys-for-iam
%% condition in a policy to restrict the PassRole:
%% https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html
%% IAM action, special considerations apply if the policy is
%% intended to define access for the `AddRoleToInstanceProfile' action.
%% In
%% this case, you cannot specify a Region or instance ID in the EC2 instance
%% ARN. The
%% ARN value must be `arn:aws:ec2:*:CallerAccountId:instance/*'. Using
%% any
%% other ARN value may lead to unexpected evaluation results.
%%
%% For more information about roles, see IAM roles:
%% https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html in the
%% IAM User Guide. For more information about instance profiles,
Expand Down Expand Up @@ -5288,8 +5316,8 @@ detach_user_policy(Client, Input, Options)
%% your organization.
%%
%% When you disable this feature, the management account and the
%% delegated admininstrator for IAM can no longer manage root user
%% credentials for member
%% delegated administrator for IAM can no longer manage root user credentials
%% for member
%% accounts in your organization.
-spec disable_organizations_root_credentials_management(aws_client:aws_client(), disable_organizations_root_credentials_management_request()) ->
{ok, disable_organizations_root_credentials_management_response(), tuple()} |
Expand All @@ -5312,7 +5340,7 @@ disable_organizations_root_credentials_management(Client, Input, Options)
%% organization.
%%
%% When you disable this feature, the management account and the delegated
%% admininstrator for IAM can no longer perform privileged tasks on member
%% administrator for IAM can no longer perform privileged tasks on member
%% accounts in
%% your organization.
-spec disable_organizations_root_sessions(aws_client:aws_client(), disable_organizations_root_sessions_request()) ->
Expand Down Expand Up @@ -5361,8 +5389,8 @@ enable_mfa_device(Client, Input, Options)
%% When you enable root credentials management for centralized root access:
%% https://docs.aws.amazon.com/IAM/latest/UserGuide/id_root-user.html#id_root-user-access-management,
%% the management account and the delegated
%% admininstrator for IAM can manage root user credentials for member
%% accounts in your
%% administrator for IAM can manage root user credentials for member accounts
%% in your
%% organization.
%%
%% Before you enable centralized root access, you must have an account
Expand All @@ -5375,7 +5403,7 @@ enable_mfa_device(Client, Input, Options)
%% Enable trusted access for Identity and Access Management in Organizations.
%% For details, see
%% IAM and Organizations:
%% https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-ra.html
%% https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-iam.html
%% in the Organizations User
%% Guide.
-spec enable_organizations_root_credentials_management(aws_client:aws_client(), enable_organizations_root_credentials_management_request()) ->
Expand Down Expand Up @@ -6683,9 +6711,9 @@ list_access_keys(Client, Input, Options)
%% For information about using an Amazon Web Services account alias, see
%% Creating,
%% deleting, and listing an Amazon Web Services account alias:
%% https://docs.aws.amazon.com/signin/latest/userguide/CreateAccountAlias.html
%% in the Amazon Web Services Sign-In
%% User Guide.
%% https://docs.aws.amazon.com/IAM/latest/UserGuide/console_account-alias.html#CreateAccountAlias
%% in the
%% IAM User Guide.
-spec list_account_aliases(aws_client:aws_client(), list_account_aliases_request()) ->
{ok, list_account_aliases_response(), tuple()} |
{error, any()} |
Expand Down Expand Up @@ -9204,11 +9232,12 @@ update_role_description(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"UpdateRoleDescription">>, Input, Options).

%% @doc Updates the metadata document for an existing SAML provider resource
%% object.
%% @doc Updates the metadata document, SAML encryption settings, and private
%% keys for an
%% existing SAML provider.
%%
%% This operation requires Signature Version 4:
%% https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html.
%% To rotate private keys, add your new private key and then remove
%% the old key in a separate request.
-spec update_saml_provider(aws_client:aws_client(), update_saml_provider_request()) ->
{ok, update_saml_provider_response(), tuple()} |
{error, any()} |
Expand Down
2 changes: 2 additions & 0 deletions src/aws_neptune_graph.erl
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@

%% Example:
%% list_export_tasks_input() :: #{
%% <<"graphIdentifier">> => string(),
%% <<"maxResults">> => integer(),
%% <<"nextToken">> => string()
%% }
Expand Down Expand Up @@ -1914,6 +1915,7 @@ list_export_tasks(Client, QueryMap, HeadersMap, Options0)

Query0_ =
[
{<<"graphIdentifier">>, maps:get(<<"graphIdentifier">>, QueryMap, undefined)},
{<<"maxResults">>, maps:get(<<"maxResults">>, QueryMap, undefined)},
{<<"nextToken">>, maps:get(<<"nextToken">>, QueryMap, undefined)}
],
Expand Down
20 changes: 18 additions & 2 deletions src/aws_qbusiness.erl
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,13 @@
-type list_web_experiences_request() :: #{binary() => any()}.


%% Example:
%% applied_orchestration_configuration() :: #{
%% <<"control">> => list(any())
%% }
-type applied_orchestration_configuration() :: #{binary() => any()}.


%% Example:
%% index_capacity_configuration() :: #{
%% <<"units">> => integer()
Expand Down Expand Up @@ -1740,6 +1747,13 @@
%% }
-type relevant_content() :: #{binary() => any()}.


%% Example:
%% orchestration_configuration() :: #{
%% <<"control">> => list(any())
%% }
-type orchestration_configuration() :: #{binary() => any()}.

%% Example:
%% delete_group_response() :: #{}
-type delete_group_response() :: #{}.
Expand Down Expand Up @@ -1836,6 +1850,7 @@
%% <<"blockedPhrasesConfigurationUpdate">> => blocked_phrases_configuration_update(),
%% <<"clientToken">> => string(),
%% <<"creatorModeConfiguration">> => creator_mode_configuration(),
%% <<"orchestrationConfiguration">> => orchestration_configuration(),
%% <<"responseScope">> => list(any()),
%% <<"topicConfigurationsToCreateOrUpdate">> => list(topic_configuration()()),
%% <<"topicConfigurationsToDelete">> => list(topic_configuration()())
Expand Down Expand Up @@ -2106,6 +2121,7 @@
%% <<"blockedPhrases">> => blocked_phrases_configuration(),
%% <<"creatorModeConfiguration">> => applied_creator_mode_configuration(),
%% <<"nextToken">> => string(),
%% <<"orchestrationConfiguration">> => applied_orchestration_configuration(),
%% <<"responseScope">> => list(any()),
%% <<"topicConfigurations">> => list(topic_configuration()())
%% }
Expand Down Expand Up @@ -4157,7 +4173,7 @@ get_application(Client, ApplicationId, QueryMap, HeadersMap, Options0)

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

%% @doc Gets information about an chat controls configured for an existing
%% @doc Gets information about chat controls configured for an existing
%% Amazon Q Business
%% application.
-spec get_chat_controls_configuration(aws_client:aws_client(), binary() | list()) ->
Expand Down Expand Up @@ -5722,7 +5738,7 @@ update_application(Client, ApplicationId, Input0, Options0) ->

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

%% @doc Updates an set of chat controls configured for an existing Amazon Q
%% @doc Updates a set of chat controls configured for an existing Amazon Q
%% Business
%% application.
-spec update_chat_controls_configuration(aws_client:aws_client(), binary() | list(), update_chat_controls_configuration_request()) ->
Expand Down

0 comments on commit 0065332

Please sign in to comment.