Skip to content

Commit

Permalink
Update services based on v1.49.5 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Dec 19, 2023
1 parent 22ed32e commit 4c7f55c
Show file tree
Hide file tree
Showing 9 changed files with 10,916 additions and 161 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.49.3
v1.49.5
175 changes: 136 additions & 39 deletions src/aws_cognito_identity_provider.erl
Original file line number Diff line number Diff line change
@@ -1,27 +1,42 @@
%% WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
%% See https://github.com/aws-beam/aws-codegen for more details.

%% @doc With the Amazon Cognito user pools API, you can set up user pools and
%% app clients, and authenticate users.
%% @doc With the Amazon Cognito user pools API, you can configure user pools
%% and authenticate users.
%%
%% To authenticate users from third-party identity providers (IdPs) in this
%% API, you can link IdP users to native user profiles. Learn more about the
%% authentication and authorization of federated users in the Using the
%% Amazon Cognito user pools API and user pool endpoints.
%% authentication and authorization of federated users at Adding user pool
%% sign-in through a third party and in the User pool federation endpoints
%% and hosted UI reference.
%%
%% This API reference provides detailed information about API operations and
%% object types in Amazon Cognito. At the bottom of the page for each API
%% operation and object, under See Also, you can learn how to use it in an
%% Amazon Web Services SDK in the language of your choice.
%% object types in Amazon Cognito.
%%
%% Along with resource management operations, the Amazon Cognito user pools
%% API includes classes of operations and authorization models for
%% client-side and server-side user operations. For more information, see
%% Using the Amazon Cognito native and OIDC APIs in the Amazon Cognito
%% Developer Guide.
%% client-side and server-side authentication of users. You can interact with
%% operations in the Amazon Cognito user pools API as any of the following
%% subjects.
%%
%% You can also start reading about the `CognitoIdentityProvider' client
%% in the following SDK guides.
%% <ol> <li> An administrator who wants to configure user pools, app clients,
%% users, groups, or other user pool functions.
%%
%% </li> <li> A server-side app, like a web application, that wants to use
%% its Amazon Web Services privileges to manage, authenticate, or authorize a
%% user.
%%
%% </li> <li> A client-side app, like a mobile app, that wants to make
%% unauthenticated requests to manage, authenticate, or authorize a user.
%%
%% </li> </ol> For more information, see Using the Amazon Cognito user pools
%% API and user pool endpoints in the Amazon Cognito Developer Guide.
%%
%% With your Amazon Web Services SDK, you can build the logic to support
%% operational flows in every use case for this API. You can also make direct
%% REST API requests to Amazon Cognito user pools service endpoints. The
%% following links can get you started with the `CognitoIdentityProvider'
%% client in other supported Amazon Web Services SDKs.
%%
%% <ul> <li> Amazon Web Services Command Line Interface
%%
Expand Down Expand Up @@ -279,7 +294,11 @@ add_custom_attributes(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"AddCustomAttributes">>, Input, Options).

%% @doc Adds the specified user to the specified group.
%% @doc Adds a user to a group.
%%
%% A user who is in a group can present a preferred-role claim to an identity
%% pool, and populates a `cognito:groups' claim to their access and
%% identity tokens.
%%
%% Amazon Cognito evaluates Identity and Access Management (IAM) policies in
%% requests for this API operation. For this operation, you must use IAM
Expand All @@ -298,10 +317,19 @@ admin_add_user_to_group(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"AdminAddUserToGroup">>, Input, Options).

%% @doc Confirms user registration as an admin without using a confirmation
%% code.
%% @doc This IAM-authenticated API operation provides a code that Amazon
%% Cognito sent to your user when they signed up in your user pool.
%%
%% Works on any user.
%% After your user enters their code, they confirm ownership of the email
%% address or phone number that they provided, and their user account becomes
%% active. Depending on your user pool configuration, your users will receive
%% their confirmation code in an email or SMS message.
%%
%% Local users who signed up in your user pool are the only type of user who
%% can confirm sign-up with a code. Users who federate through an external
%% identity provider (IdP) have already been confirmed by their IdP.
%% Administrator-created users confirm their accounts when they respond to
%% their invitation email message and choose a password.
%%
%% Amazon Cognito evaluates Identity and Access Management (IAM) policies in
%% requests for this API operation. For this operation, you must use IAM
Expand Down Expand Up @@ -657,7 +685,7 @@ admin_list_devices(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"AdminListDevices">>, Input, Options).

%% @doc Lists the groups that the user belongs to.
%% @doc Lists the groups that a user belongs to.
%%
%% Amazon Cognito evaluates Identity and Access Management (IAM) policies in
%% requests for this API operation. For this operation, you must use IAM
Expand Down Expand Up @@ -762,7 +790,17 @@ admin_reset_user_password(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"AdminResetUserPassword">>, Input, Options).

%% @doc Responds to an authentication challenge, as an administrator.
%% @doc Some API operations in a user pool generate a challenge, like a
%% prompt for an MFA code, for device authentication that bypasses MFA, or
%% for a custom authentication challenge.
%%
%% An `AdminRespondToAuthChallenge' API request provides the answer to
%% that challenge, like a code or a secure remote password (SRP). The
%% parameters of a response to an authentication challenge vary with the type
%% of challenge.
%%
%% For more information about custom authentication challenges, see Custom
%% authentication challenge Lambda triggers.
%%
%% This action might generate an SMS text message. Starting June 1, 2021, US
%% telecom carriers require you to register an origination phone number
Expand Down Expand Up @@ -977,17 +1015,31 @@ admin_update_user_attributes(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"AdminUpdateUserAttributes">>, Input, Options).

%% @doc Signs out a user from all devices.
%% @doc Invalidates the identity, access, and refresh tokens that Amazon
%% Cognito issued to a user.
%%
%% Call this operation with your administrative credentials when your user
%% signs out of your app. This results in the following behavior.
%%
%% <ul> <li> Amazon Cognito no longer accepts token-authorized user
%% operations that you authorize with a signed-out user's access tokens.
%% For more information, see Using the Amazon Cognito user pools API and user
%% pool endpoints.
%%
%% `AdminUserGlobalSignOut' invalidates all identity, access and refresh
%% tokens that Amazon Cognito has issued to a user. A user can still use a
%% hosted UI cookie to retrieve new tokens for the duration of the 1-hour
%% cookie validity period.
%% Amazon Cognito returns an `Access Token has been revoked' error when
%% your app attempts to authorize a user pools API request with a revoked
%% access token that contains the scope `aws.cognito.signin.user.admin'.
%%
%% Your app isn't aware that a user's access token is revoked unless
%% it attempts to authorize a user pools API request with an access token
%% that contains the scope `aws.cognito.signin.user.admin'. Your app
%% might otherwise accept access tokens until they expire.
%% </li> <li> Amazon Cognito no longer accepts a signed-out user's ID
%% token in a GetId request to an identity pool with
%% `ServerSideTokenCheck' enabled for its user pool IdP configuration in
%% CognitoIdentityProvider.
%%
%% </li> <li> Amazon Cognito no longer accepts a signed-out user's
%% refresh tokens in refresh requests.
%%
%% </li> </ul> Other requests might be valid until your user's token
%% expires.
%%
%% Amazon Cognito evaluates Identity and Access Management (IAM) policies in
%% requests for this API operation. For this operation, you must use IAM
Expand Down Expand Up @@ -1088,7 +1140,22 @@ confirm_forgot_password(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"ConfirmForgotPassword">>, Input, Options).

%% @doc Confirms registration of a new user.
%% @doc This public API operation provides a code that Amazon Cognito sent to
%% your user when they signed up in your user pool via the SignUp API
%% operation.
%%
%% After your user enters their code, they confirm ownership of the email
%% address or phone number that they provided, and their user account becomes
%% active. Depending on your user pool configuration, your users will receive
%% their confirmation code in an email or SMS message.
%%
%% Local users who signed up in your user pool are the only type of user who
%% can confirm sign-up with a code. Users who federate through an external
%% identity provider (IdP) have already been confirmed by their IdP.
%% Administrator-created users, users created with the AdminCreateUser API
%% operation, confirm their accounts when they respond to their invitation
%% email message and choose a password. They do not receive a confirmation
%% code. Instead, they receive a temporary password.
%%
%% Amazon Cognito doesn't evaluate Identity and Access Management (IAM)
%% policies in requests for this API operation. For this operation, you
Expand Down Expand Up @@ -1622,17 +1689,31 @@ get_user_pool_mfa_config(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"GetUserPoolMfaConfig">>, Input, Options).

%% @doc Signs out a user from all devices.
%% @doc Invalidates the identity, access, and refresh tokens that Amazon
%% Cognito issued to a user.
%%
%% Call this operation when your user signs out of your app. This results in
%% the following behavior.
%%
%% <ul> <li> Amazon Cognito no longer accepts token-authorized user
%% operations that you authorize with a signed-out user's access tokens.
%% For more information, see Using the Amazon Cognito user pools API and user
%% pool endpoints.
%%
%% `GlobalSignOut' invalidates all identity, access and refresh tokens
%% that Amazon Cognito has issued to a user. A user can still use a hosted UI
%% cookie to retrieve new tokens for the duration of the 1-hour cookie
%% validity period.
%% Amazon Cognito returns an `Access Token has been revoked' error when
%% your app attempts to authorize a user pools API request with a revoked
%% access token that contains the scope `aws.cognito.signin.user.admin'.
%%
%% Your app isn't aware that a user's access token is revoked unless
%% it attempts to authorize a user pools API request with an access token
%% that contains the scope `aws.cognito.signin.user.admin'. Your app
%% might otherwise accept access tokens until they expire.
%% </li> <li> Amazon Cognito no longer accepts a signed-out user's ID
%% token in a GetId request to an identity pool with
%% `ServerSideTokenCheck' enabled for its user pool IdP configuration in
%% CognitoIdentityProvider.
%%
%% </li> <li> Amazon Cognito no longer accepts a signed-out user's
%% refresh tokens in refresh requests.
%%
%% </li> </ul> Other requests might be valid until your user's token
%% expires.
%%
%% Amazon Cognito doesn't evaluate Identity and Access Management (IAM)
%% policies in requests for this API operation. For this operation, you
Expand Down Expand Up @@ -1895,7 +1976,17 @@ resend_confirmation_code(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"ResendConfirmationCode">>, Input, Options).

%% @doc Responds to the authentication challenge.
%% @doc Some API operations in a user pool generate a challenge, like a
%% prompt for an MFA code, for device authentication that bypasses MFA, or
%% for a custom authentication challenge.
%%
%% A `RespondToAuthChallenge' API request provides the answer to that
%% challenge, like a code or a secure remote password (SRP). The parameters
%% of a response to an authentication challenge vary with the type of
%% challenge.
%%
%% For more information about custom authentication challenges, see Custom
%% authentication challenge Lambda triggers.
%%
%% Amazon Cognito doesn't evaluate Identity and Access Management (IAM)
%% policies in requests for this API operation. For this operation, you
Expand Down Expand Up @@ -2239,7 +2330,13 @@ update_resource_server(Client, Input, Options)
when is_map(Client), is_map(Input), is_list(Options) ->
request(Client, <<"UpdateResourceServer">>, Input, Options).

%% @doc Allows a user to update a specific attribute (one at a time).
%% @doc With this operation, your users can update one or more of their
%% attributes with their own credentials.
%%
%% You authorize this API request with the user's access token. To delete
%% an attribute from your user, submit the attribute in your API request with
%% a blank value. Custom attribute values in this request must include the
%% `custom:' prefix.
%%
%% Amazon Cognito doesn't evaluate Identity and Access Management (IAM)
%% policies in requests for this API operation. For this operation, you
Expand Down
52 changes: 51 additions & 1 deletion src/aws_connect.erl
Original file line number Diff line number Diff line change
Expand Up @@ -395,12 +395,16 @@
list_views/5,
monitor_contact/2,
monitor_contact/3,
pause_contact/2,
pause_contact/3,
put_user_status/4,
put_user_status/5,
release_phone_number/3,
release_phone_number/4,
replicate_instance/3,
replicate_instance/4,
resume_contact/2,
resume_contact/3,
resume_contact_recording/2,
resume_contact_recording/3,
search_available_phone_numbers/2,
Expand Down Expand Up @@ -3316,7 +3320,7 @@ get_current_user_data(Client, InstanceId, Input0, Options0) ->
%% GetFederationToken with root credentials, an error message similar to the
%% following one appears:
%%
%% `Provided identity: Principal: .... User: .... cannot be used for
%% `Provided identity: Principal: (...). User: (...). cannot be used for
%% federation with Amazon Connect'
get_federation_token(Client, InstanceId)
when is_map(Client) ->
Expand Down Expand Up @@ -4863,6 +4867,29 @@ monitor_contact(Client, Input0, Options0) ->

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

%% @doc Allows pausing an ongoing task contact.
pause_contact(Client, Input) ->
pause_contact(Client, Input, []).
pause_contact(Client, Input0, Options0) ->
Method = post,
Path = ["/contact/pause"],
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 Changes the current status of a user or agent in Amazon Connect.
%%
%% If the agent is currently handling a contact, this sets the agent's
Expand Down Expand Up @@ -4975,6 +5002,29 @@ replicate_instance(Client, InstanceId, Input0, Options0) ->

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

%% @doc Allows resuming a task contact in a paused state.
resume_contact(Client, Input) ->
resume_contact(Client, Input, []).
resume_contact(Client, Input0, Options0) ->
Method = post,
Path = ["/contact/resume"],
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 When a contact is being recorded, and the recording has been
%% suspended using SuspendContactRecording, this API resumes recording
%% whatever recording is selected in the flow configuration: call, screen, or
Expand Down
Loading

0 comments on commit 4c7f55c

Please sign in to comment.