Nothing
# This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common get_config new_operation new_request send_request
#' @include cognitoidentityprovider_service.R
NULL
#' Adds additional user attributes to the user pool schema
#'
#' @description
#' Adds additional user attributes to the user pool schema. Custom attributes can be mutable or immutable and have a `custom:` or `dev:` prefix. For more information, see [Custom attributes](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html#user-pool-settings-custom-attributes).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_add_custom_attributes/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_add_custom_attributes/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to add custom attributes.
#' @param CustomAttributes [required] An array of custom attribute names and other properties. Sets the following characteristics:
#'
#' **AttributeDataType**
#'
#' The expected data type. Can be a string, a number, a date and time, or a boolean.
#'
#' **Mutable**
#'
#' If true, you can grant app clients write access to the attribute value. If false, the attribute value can only be set up on sign-up or administrator creation of users.
#'
#' **Name**
#'
#' The attribute name. For an attribute like `custom:myAttribute`, enter `myAttribute` for this field.
#'
#' **Required**
#'
#' When true, users who sign up or are created must set a value for the attribute.
#'
#' **NumberAttributeConstraints**
#'
#' The minimum and maximum length of accepted values for a `Number`-type attribute.
#'
#' **StringAttributeConstraints**
#'
#' The minimum and maximum length of accepted values for a `String`-type attribute.
#'
#' **DeveloperOnlyAttribute**
#'
#' This legacy option creates an attribute with a `dev:` prefix. You can only set the value of a developer-only attribute with administrative IAM credentials.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_add_custom_attributes
cognitoidentityprovider_add_custom_attributes <- function(UserPoolId, CustomAttributes) {
op <- new_operation(
name = "AddCustomAttributes",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$add_custom_attributes_input(UserPoolId = UserPoolId, CustomAttributes = CustomAttributes)
output <- .cognitoidentityprovider$add_custom_attributes_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$add_custom_attributes <- cognitoidentityprovider_add_custom_attributes
#' Creates a new client secret for an existing confidential user pool app
#' client
#'
#' @description
#' Creates a new client secret for an existing confidential user pool app client. Supports up to 2 active secrets per app client for zero-downtime credential rotation workflows.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_add_user_pool_client_secret/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_add_user_pool_client_secret/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool that contains the app client.
#' @param ClientId [required] The ID of the app client for which you want to create a new secret.
#' @param ClientSecret The client secret value you want to use. If you don't provide this parameter, Amazon Cognito generates a secure secret for you.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_add_user_pool_client_secret
cognitoidentityprovider_add_user_pool_client_secret <- function(UserPoolId, ClientId, ClientSecret = NULL) {
op <- new_operation(
name = "AddUserPoolClientSecret",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$add_user_pool_client_secret_input(UserPoolId = UserPoolId, ClientId = ClientId, ClientSecret = ClientSecret)
output <- .cognitoidentityprovider$add_user_pool_client_secret_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$add_user_pool_client_secret <- cognitoidentityprovider_add_user_pool_client_secret
#' Adds a user to a group
#'
#' @description
#' 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.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_add_user_to_group/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_add_user_to_group/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool that contains the group that you want to add the user to.
#' @param Username [required] The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value must be the `sub` of a local user or the username of a user from a third-party IdP.
#' @param GroupName [required] The name of the group that you want to add your user to.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_admin_add_user_to_group
cognitoidentityprovider_admin_add_user_to_group <- function(UserPoolId, Username, GroupName) {
op <- new_operation(
name = "AdminAddUserToGroup",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$admin_add_user_to_group_input(UserPoolId = UserPoolId, Username = Username, GroupName = GroupName)
output <- .cognitoidentityprovider$admin_add_user_to_group_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$admin_add_user_to_group <- cognitoidentityprovider_admin_add_user_to_group
#' Confirms user sign-up as an administrator
#'
#' @description
#' Confirms user sign-up as an administrator.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_confirm_sign_up/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_confirm_sign_up/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to confirm a user's sign-up request.
#' @param Username [required] The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value must be the `sub` of a local user or the username of a user from a third-party IdP.
#' @param ClientMetadata A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers. You create custom workflows by assigning Lambda functions to user pool triggers.
#'
#' When Amazon Cognito invokes any of these functions, it passes a JSON payload, which the function receives as input. This payload contains a `clientMetadata` attribute that provides the data that you assigned to the ClientMetadata parameter in your request. In your function code, you can process the `clientMetadata` value to enhance your workflow for your specific needs.
#'
#' To review the Lambda trigger types that Amazon Cognito invokes at runtime with API requests, see [Connecting API actions to Lambda triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-working-with-lambda-triggers.html#lambda-triggers-by-event) in the *Amazon Cognito Developer Guide*.
#'
#' When you use the `ClientMetadata` parameter, note that Amazon Cognito won't do the following:
#'
#' - Store the `ClientMetadata` value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the `ClientMetadata` parameter serves no purpose.
#'
#' - Validate the `ClientMetadata` value.
#'
#' - Encrypt the `ClientMetadata` value. Don't send sensitive information in this parameter.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_admin_confirm_sign_up
cognitoidentityprovider_admin_confirm_sign_up <- function(UserPoolId, Username, ClientMetadata = NULL) {
op <- new_operation(
name = "AdminConfirmSignUp",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$admin_confirm_sign_up_input(UserPoolId = UserPoolId, Username = Username, ClientMetadata = ClientMetadata)
output <- .cognitoidentityprovider$admin_confirm_sign_up_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$admin_confirm_sign_up <- cognitoidentityprovider_admin_confirm_sign_up
#' Creates a new user in the specified user pool
#'
#' @description
#' Creates a new user in the specified user pool.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_create_user/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_create_user/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to create a user.
#' @param Username [required] The value that you want to set as the username sign-in attribute. The following conditions apply to the username parameter.
#'
#' - The username can't be a duplicate of another username in the same user pool.
#'
#' - You can't change the value of a username after you create it.
#'
#' - You can only provide a value if usernames are a valid sign-in attribute for your user pool. If your user pool only supports phone numbers or email addresses as sign-in attributes, Amazon Cognito automatically generates a username value. For more information, see [Customizing sign-in attributes](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html#user-pool-settings-aliases).
#' @param UserAttributes An array of name-value pairs that contain user attributes and attribute values to be set for the user to be created. You can create a user without specifying any attributes other than `Username`. However, any attributes that you specify as required (when creating a user pool or in the **Attributes** tab of the console) either you should supply (in your call to [`admin_create_user`][cognitoidentityprovider_admin_create_user]) or the user should supply (when they sign up in response to your welcome message).
#'
#' For custom attributes, you must prepend the `custom:` prefix to the attribute name.
#'
#' To send a message inviting the user to sign up, you must specify the user's email address or phone number. You can do this in your call to AdminCreateUser or in the **Users** tab of the Amazon Cognito console for managing your user pools.
#'
#' You must also provide an email address or phone number when you expect the user to do passwordless sign-in with an email or SMS OTP. These attributes must be provided when passwordless options are the only available, or when you don't submit a `TemporaryPassword`.
#'
#' In your [`admin_create_user`][cognitoidentityprovider_admin_create_user] request, you can set the `email_verified` and `phone_number_verified` attributes to `true`. The following conditions apply:
#'
#' **email**
#'
#' The email address where you want the user to receive their confirmation code and username. You must provide a value for `email` when you want to set `email_verified` to `true`, or if you set `EMAIL` in the `DesiredDeliveryMediums` parameter.
#'
#' **phone_number**
#'
#' The phone number where you want the user to receive their confirmation code and username. You must provide a value for `phone_number` when you want to set `phone_number_verified` to `true`, or if you set `SMS` in the `DesiredDeliveryMediums` parameter.
#' @param ValidationData Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda trigger. This set of key-value pairs are for custom validation of information that you collect from your users but don't need to retain.
#'
#' Your Lambda function can analyze this additional data and act on it. Your function can automatically confirm and verify select users or perform external API operations like logging user attributes and validation data to Amazon CloudWatch Logs.
#'
#' For more information about the pre sign-up Lambda trigger, see [Pre sign-up Lambda trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-sign-up.html).
#' @param TemporaryPassword The user's temporary password. This password must conform to the password policy that you specified when you created the user pool.
#'
#' The exception to the requirement for a password is when your user pool supports passwordless sign-in with email or SMS OTPs. To create a user with no password, omit this parameter or submit a blank value. You can only create a passwordless user when passwordless sign-in is available.
#'
#' The temporary password is valid only once. To complete the Admin Create User flow, the user must enter the temporary password in the sign-in page, along with a new password to be used in all future sign-ins.
#'
#' If you don't specify a value, Amazon Cognito generates one for you unless you have passwordless options active for your user pool.
#'
#' The temporary password can only be used until the user account expiration limit that you set for your user pool. To reset the account after that time limit, you must call [`admin_create_user`][cognitoidentityprovider_admin_create_user] again and specify `RESEND` for the `MessageAction` parameter.
#' @param ForceAliasCreation This parameter is used only if the `phone_number_verified` or `email_verified` attribute is set to `True`. Otherwise, it is ignored.
#'
#' If this parameter is set to `True` and the phone number or email address specified in the `UserAttributes` parameter already exists as an alias with a different user, this request migrates the alias from the previous user to the newly-created user. The previous user will no longer be able to log in using that alias.
#'
#' If this parameter is set to `False`, the API throws an `AliasExistsException` error if the alias already exists. The default value is `False`.
#' @param MessageAction Set to `RESEND` to resend the invitation message to a user that already exists, and to reset the temporary-password duration with a new temporary password. Set to `SUPPRESS` to suppress sending the message. You can specify only one value.
#' @param DesiredDeliveryMediums Specify `EMAIL` if email will be used to send the welcome message. Specify `SMS` if the phone number will be used. The default value is `SMS`. You can specify more than one value.
#' @param ClientMetadata A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers. You create custom workflows by assigning Lambda functions to user pool triggers.
#'
#' When Amazon Cognito invokes any of these functions, it passes a JSON payload, which the function receives as input. This payload contains a `clientMetadata` attribute that provides the data that you assigned to the ClientMetadata parameter in your request. In your function code, you can process the `clientMetadata` value to enhance your workflow for your specific needs.
#'
#' To review the Lambda trigger types that Amazon Cognito invokes at runtime with API requests, see [Connecting API actions to Lambda triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-working-with-lambda-triggers.html#lambda-triggers-by-event) in the *Amazon Cognito Developer Guide*.
#'
#' When you use the `ClientMetadata` parameter, note that Amazon Cognito won't do the following:
#'
#' - Store the `ClientMetadata` value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the `ClientMetadata` parameter serves no purpose.
#'
#' - Validate the `ClientMetadata` value.
#'
#' - Encrypt the `ClientMetadata` value. Don't send sensitive information in this parameter.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_admin_create_user
cognitoidentityprovider_admin_create_user <- function(UserPoolId, Username, UserAttributes = NULL, ValidationData = NULL, TemporaryPassword = NULL, ForceAliasCreation = NULL, MessageAction = NULL, DesiredDeliveryMediums = NULL, ClientMetadata = NULL) {
op <- new_operation(
name = "AdminCreateUser",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$admin_create_user_input(UserPoolId = UserPoolId, Username = Username, UserAttributes = UserAttributes, ValidationData = ValidationData, TemporaryPassword = TemporaryPassword, ForceAliasCreation = ForceAliasCreation, MessageAction = MessageAction, DesiredDeliveryMediums = DesiredDeliveryMediums, ClientMetadata = ClientMetadata)
output <- .cognitoidentityprovider$admin_create_user_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$admin_create_user <- cognitoidentityprovider_admin_create_user
#' Deletes a user profile in your user pool
#'
#' @description
#' Deletes a user profile in your user pool.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_delete_user/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_delete_user/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to delete the user.
#' @param Username [required] The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value must be the `sub` of a local user or the username of a user from a third-party IdP.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_admin_delete_user
cognitoidentityprovider_admin_delete_user <- function(UserPoolId, Username) {
op <- new_operation(
name = "AdminDeleteUser",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$admin_delete_user_input(UserPoolId = UserPoolId, Username = Username)
output <- .cognitoidentityprovider$admin_delete_user_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$admin_delete_user <- cognitoidentityprovider_admin_delete_user
#' Deletes attribute values from a user
#'
#' @description
#' Deletes attribute values from a user. This operation doesn't affect tokens for existing user sessions. The next ID token that the user receives will no longer have the deleted attributes.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_delete_user_attributes/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_delete_user_attributes/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to delete user attributes.
#' @param Username [required] The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value must be the `sub` of a local user or the username of a user from a third-party IdP.
#' @param UserAttributeNames [required] An array of strings representing the user attribute names you want to delete.
#'
#' For custom attributes, you must prepend the `custom:` prefix to the attribute name.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_admin_delete_user_attributes
cognitoidentityprovider_admin_delete_user_attributes <- function(UserPoolId, Username, UserAttributeNames) {
op <- new_operation(
name = "AdminDeleteUserAttributes",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$admin_delete_user_attributes_input(UserPoolId = UserPoolId, Username = Username, UserAttributeNames = UserAttributeNames)
output <- .cognitoidentityprovider$admin_delete_user_attributes_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$admin_delete_user_attributes <- cognitoidentityprovider_admin_delete_user_attributes
#' Prevents the user from signing in with the specified external (SAML or
#' social) identity provider (IdP)
#'
#' @description
#' Prevents the user from signing in with the specified external (SAML or social) identity provider (IdP). If the user that you want to deactivate is a Amazon Cognito user pools native username + password user, they can't use their password to sign in. If the user to deactivate is a linked external IdP user, any link between that user and an existing user is removed. When the external user signs in again, and the user is no longer attached to the previously linked `DestinationUser`, the user must create a new user account.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_disable_provider_for_user/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_disable_provider_for_user/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to delete the user's linked identities.
#' @param User [required] The user profile that you want to delete a linked identity from.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_admin_disable_provider_for_user
cognitoidentityprovider_admin_disable_provider_for_user <- function(UserPoolId, User) {
op <- new_operation(
name = "AdminDisableProviderForUser",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$admin_disable_provider_for_user_input(UserPoolId = UserPoolId, User = User)
output <- .cognitoidentityprovider$admin_disable_provider_for_user_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$admin_disable_provider_for_user <- cognitoidentityprovider_admin_disable_provider_for_user
#' Deactivates a user profile and revokes all access tokens for the user
#'
#' @description
#' Deactivates a user profile and revokes all access tokens for the user. A deactivated user can't sign in, but still appears in the responses to [`list_users`][cognitoidentityprovider_list_users] API requests.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_disable_user/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_disable_user/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to disable the user.
#' @param Username [required] The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value must be the `sub` of a local user or the username of a user from a third-party IdP.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_admin_disable_user
cognitoidentityprovider_admin_disable_user <- function(UserPoolId, Username) {
op <- new_operation(
name = "AdminDisableUser",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$admin_disable_user_input(UserPoolId = UserPoolId, Username = Username)
output <- .cognitoidentityprovider$admin_disable_user_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$admin_disable_user <- cognitoidentityprovider_admin_disable_user
#' Activates sign-in for a user profile that previously had sign-in access
#' disabled
#'
#' @description
#' Activates sign-in for a user profile that previously had sign-in access disabled.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_enable_user/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_enable_user/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to activate sign-in for the user.
#' @param Username [required] The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value must be the `sub` of a local user or the username of a user from a third-party IdP.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_admin_enable_user
cognitoidentityprovider_admin_enable_user <- function(UserPoolId, Username) {
op <- new_operation(
name = "AdminEnableUser",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$admin_enable_user_input(UserPoolId = UserPoolId, Username = Username)
output <- .cognitoidentityprovider$admin_enable_user_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$admin_enable_user <- cognitoidentityprovider_admin_enable_user
#' Forgets, or deletes, a remembered device from a user's profile
#'
#' @description
#' Forgets, or deletes, a remembered device from a user's profile. After you forget the device, the user can no longer complete device authentication with that device and when applicable, must submit MFA codes again. For more information, see [Working with devices](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_forget_device/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_forget_device/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where the device owner is a user.
#' @param Username [required] The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value must be the `sub` of a local user or the username of a user from a third-party IdP.
#' @param DeviceKey [required] The key ID of the device that you want to delete.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_admin_forget_device
cognitoidentityprovider_admin_forget_device <- function(UserPoolId, Username, DeviceKey) {
op <- new_operation(
name = "AdminForgetDevice",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$admin_forget_device_input(UserPoolId = UserPoolId, Username = Username, DeviceKey = DeviceKey)
output <- .cognitoidentityprovider$admin_forget_device_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$admin_forget_device <- cognitoidentityprovider_admin_forget_device
#' Given the device key, returns details for a user's device
#'
#' @description
#' Given the device key, returns details for a user's device. For more information, see [Working with devices](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_get_device/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_get_device/) for full documentation.
#'
#' @param DeviceKey [required] The key of the device that you want to delete.
#' @param UserPoolId [required] The ID of the user pool where the device owner is a user.
#' @param Username [required] The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value must be the `sub` of a local user or the username of a user from a third-party IdP.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_admin_get_device
cognitoidentityprovider_admin_get_device <- function(DeviceKey, UserPoolId, Username) {
op <- new_operation(
name = "AdminGetDevice",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$admin_get_device_input(DeviceKey = DeviceKey, UserPoolId = UserPoolId, Username = Username)
output <- .cognitoidentityprovider$admin_get_device_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$admin_get_device <- cognitoidentityprovider_admin_get_device
#' Given a username, returns details about a user profile in a user pool
#'
#' @description
#' Given a username, returns details about a user profile in a user pool. You can specify alias attributes in the `Username` request parameter.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_get_user/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_get_user/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to get information about the user.
#' @param Username [required] The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value must be the `sub` of a local user or the username of a user from a third-party IdP.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_admin_get_user
cognitoidentityprovider_admin_get_user <- function(UserPoolId, Username) {
op <- new_operation(
name = "AdminGetUser",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$admin_get_user_input(UserPoolId = UserPoolId, Username = Username)
output <- .cognitoidentityprovider$admin_get_user_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$admin_get_user <- cognitoidentityprovider_admin_get_user
#' Starts sign-in for applications with a server-side component, for
#' example a traditional web application
#'
#' @description
#' Starts sign-in for applications with a server-side component, for example a traditional web application. This operation specifies the authentication flow that you'd like to begin. The authentication flow that you specify must be supported in your app client configuration. For more information about authentication flows, see [Authentication flows](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-authentication-flow-methods.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_initiate_auth/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_initiate_auth/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where the user wants to sign in.
#' @param ClientId [required] The ID of the app client where the user wants to sign in.
#' @param AuthFlow [required] The authentication flow that you want to initiate. Each `AuthFlow` has linked `AuthParameters` that you must submit. The following are some example flows.
#'
#' **USER_AUTH**
#'
#' The entry point for [choice-based authentication](https://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flows-selection-sdk.html#authentication-flows-selection-choice) with passwords, one-time passwords, and WebAuthn authenticators. Request a preferred authentication type or review available authentication types. From the offered authentication types, select one in a challenge response and then authenticate with that method in an additional challenge response. To activate this setting, your user pool must be in the [Essentials tier](https://docs.aws.amazon.com/cognito/latest/developerguide/feature-plans-features-essentials.html) or higher.
#'
#' **USER_SRP_AUTH**
#'
#' Username-password authentication with the Secure Remote Password (SRP) protocol. For more information, see [Use SRP password verification in custom authentication flow](https://docs.aws.amazon.com/cognito/latest/developerguide/authentication.html#Using-SRP-password-verification-in-custom-authentication-flow).
#'
#' **REFRESH_TOKEN_AUTH and REFRESH_TOKEN**
#'
#' Receive new ID and access tokens when you pass a `REFRESH_TOKEN` parameter with a valid refresh token as the value. For more information, see [Using the refresh token](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-using-the-refresh-token.html).
#'
#' **CUSTOM_AUTH**
#'
#' Custom authentication with Lambda triggers. For more information, see [Custom authentication challenge Lambda triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-challenge.html).
#'
#' **ADMIN_USER_PASSWORD_AUTH**
#'
#' Server-side username-password authentication with the password sent directly in the request. For more information about client-side and server-side authentication, see [SDK authorization models](https://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flows-public-server-side.html).
#' @param AuthParameters The authentication parameters. These are inputs corresponding to the `AuthFlow` that you're invoking.
#'
#' The following are some authentication flows and their parameters. Add a `SECRET_HASH` parameter if your app client has a client secret. Add `DEVICE_KEY` if you want to bypass multi-factor authentication with a remembered device.
#'
#' **USER_AUTH**
#'
#' - `USERNAME` (required)
#'
#' - `PREFERRED_CHALLENGE`. If you don't provide a value for `PREFERRED_CHALLENGE`, Amazon Cognito responds with the `AvailableChallenges` parameter that specifies the available sign-in methods.
#'
#' **USER_SRP_AUTH**
#'
#' - `USERNAME` (required)
#'
#' - `SRP_A` (required)
#'
#' **ADMIN_USER_PASSWORD_AUTH**
#'
#' - `USERNAME` (required)
#'
#' - `PASSWORD` (required)
#'
#' **REFRESH_TOKEN_AUTH/REFRESH_TOKEN**
#'
#' - `REFRESH_TOKEN`(required)
#'
#' **CUSTOM_AUTH**
#'
#' - `USERNAME` (required)
#'
#' - `ChallengeName: SRP_A` (when preceding custom authentication with SRP authentication)
#'
#' - `SRP_A: (An SRP_A value)` (when preceding custom authentication with SRP authentication)
#'
#' For more information about `SECRET_HASH`, see [Computing secret hash values](https://docs.aws.amazon.com/cognito/latest/developerguide/signing-up-users-in-your-app.html#cognito-user-pools-computing-secret-hash). For information about `DEVICE_KEY`, see [Working with user devices in your user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html).
#' @param ClientMetadata A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers. You create custom workflows by assigning Lambda functions to user pool triggers.
#'
#' When Amazon Cognito invokes any of these functions, it passes a JSON payload, which the function receives as input. This payload contains a `clientMetadata` attribute that provides the data that you assigned to the ClientMetadata parameter in your request. In your function code, you can process the `clientMetadata` value to enhance your workflow for your specific needs.
#'
#' To review the Lambda trigger types that Amazon Cognito invokes at runtime with API requests, see [Connecting API actions to Lambda triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-working-with-lambda-triggers.html#lambda-triggers-by-event) in the *Amazon Cognito Developer Guide*.
#'
#' The `ClientMetadata` value is passed as input to the functions for only the following triggers:
#'
#' - Pre signup
#'
#' - Pre authentication
#'
#' - User migration
#'
#' This request also invokes the functions for the following triggers, but doesn't pass `ClientMetadata`:
#'
#' - Post authentication
#'
#' - Custom message
#'
#' - Pre token generation
#'
#' - Create auth challenge
#'
#' - Define auth challenge
#'
#' - Custom email sender
#'
#' - Custom SMS sender
#'
#' When you use the `ClientMetadata` parameter, note that Amazon Cognito won't do the following:
#'
#' - Store the `ClientMetadata` value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the `ClientMetadata` parameter serves no purpose.
#'
#' - Validate the `ClientMetadata` value.
#'
#' - Encrypt the `ClientMetadata` value. Don't send sensitive information in this parameter.
#' @param AnalyticsMetadata Information that supports analytics outcomes with Amazon Pinpoint, including the user's endpoint ID. The endpoint ID is a destination for Amazon Pinpoint push notifications, for example a device identifier, email address, or phone number.
#' @param ContextData Contextual data about your user session like the device fingerprint, IP address, or location. Amazon Cognito threat protection evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests.
#'
#' For more information, see [Collecting data for threat protection in applications](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-viewing-threat-protection-app.html).
#' @param Session The optional session ID from a [`confirm_sign_up`][cognitoidentityprovider_confirm_sign_up] API request. You can sign in a user directly from the sign-up process with an `AuthFlow` of `USER_AUTH` and `AuthParameters` of `EMAIL_OTP` or `SMS_OTP`, depending on how your user pool sent the confirmation-code message.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_admin_initiate_auth
cognitoidentityprovider_admin_initiate_auth <- function(UserPoolId, ClientId, AuthFlow, AuthParameters = NULL, ClientMetadata = NULL, AnalyticsMetadata = NULL, ContextData = NULL, Session = NULL) {
op <- new_operation(
name = "AdminInitiateAuth",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$admin_initiate_auth_input(UserPoolId = UserPoolId, ClientId = ClientId, AuthFlow = AuthFlow, AuthParameters = AuthParameters, ClientMetadata = ClientMetadata, AnalyticsMetadata = AnalyticsMetadata, ContextData = ContextData, Session = Session)
output <- .cognitoidentityprovider$admin_initiate_auth_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$admin_initiate_auth <- cognitoidentityprovider_admin_initiate_auth
#' Links an existing user account in a user pool, or DestinationUser, to an
#' identity from an external IdP, or SourceUser, based on a specified
#' attribute name and value from the external IdP
#'
#' @description
#' Links an existing user account in a user pool, or `DestinationUser`, to an identity from an external IdP, or `SourceUser`, based on a specified attribute name and value from the external IdP.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_link_provider_for_user/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_link_provider_for_user/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to link a federated identity.
#' @param DestinationUser [required] The existing user in the user pool that you want to assign to the external IdP user account. This user can be a local (Username + Password) Amazon Cognito user pools user or a federated user (for example, a SAML or Facebook user). If the user doesn't exist, Amazon Cognito generates an exception. Amazon Cognito returns this user when the new user (with the linked IdP attribute) signs in.
#'
#' For a native username + password user, the `ProviderAttributeValue` for the `DestinationUser` should be the username in the user pool. For a federated user, it should be the provider-specific `user_id`.
#'
#' The `ProviderAttributeName` of the `DestinationUser` is ignored.
#'
#' The `ProviderName` should be set to `Cognito` for users in Cognito user pools.
#'
#' All attributes in the DestinationUser profile must be mutable. If you have assigned the user any immutable custom attributes, the operation won't succeed.
#' @param SourceUser [required] An external IdP account for a user who doesn't exist yet in the user pool. This user must be a federated user (for example, a SAML or Facebook user), not another native user.
#'
#' If the `SourceUser` is using a federated social IdP, such as Facebook, Google, or Login with Amazon, you must set the `ProviderAttributeName` to `Cognito_Subject`. For social IdPs, the `ProviderName` will be `Facebook`, `Google`, or `LoginWithAmazon`, and Amazon Cognito will automatically parse the Facebook, Google, and Login with Amazon tokens for `id`, `sub`, and `user_id`, respectively. The `ProviderAttributeValue` for the user must be the same value as the `id`, `sub`, or `user_id` value found in the social IdP token.
#'
#' For OIDC, the `ProviderAttributeName` can be any mapped value from a claim in the ID token, or that your app retrieves from the `userInfo` endpoint. For SAML, the `ProviderAttributeName` can be any mapped value from a claim in the SAML assertion.
#'
#' The following additional considerations apply to `SourceUser` for OIDC and SAML providers.
#'
#' - You must map the claim to a user pool attribute in your IdP configuration, and set the user pool attribute name as the value of `ProviderAttributeName` in your [`admin_link_provider_for_user`][cognitoidentityprovider_admin_link_provider_for_user] request. For example, `email`.
#'
#' - When you set `ProviderAttributeName` to `Cognito_Subject`, Amazon Cognito will automatically parse the default unique identifier found in the subject from the IdP token.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_admin_link_provider_for_user
cognitoidentityprovider_admin_link_provider_for_user <- function(UserPoolId, DestinationUser, SourceUser) {
op <- new_operation(
name = "AdminLinkProviderForUser",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$admin_link_provider_for_user_input(UserPoolId = UserPoolId, DestinationUser = DestinationUser, SourceUser = SourceUser)
output <- .cognitoidentityprovider$admin_link_provider_for_user_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$admin_link_provider_for_user <- cognitoidentityprovider_admin_link_provider_for_user
#' Lists a user's registered devices
#'
#' @description
#' Lists a user's registered devices. Remembered devices are used in authentication services where you offer a "Remember me" option for users who you want to permit to sign in without MFA from a trusted device. Users can bypass MFA while your application performs device SRP authentication on the back end. For more information, see [Working with devices](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_list_devices/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_list_devices/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where the device owner is a user.
#' @param Username [required] The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value must be the `sub` of a local user or the username of a user from a third-party IdP.
#' @param Limit The maximum number of devices that you want Amazon Cognito to return in the response.
#' @param PaginationToken This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_admin_list_devices
cognitoidentityprovider_admin_list_devices <- function(UserPoolId, Username, Limit = NULL, PaginationToken = NULL) {
op <- new_operation(
name = "AdminListDevices",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$admin_list_devices_input(UserPoolId = UserPoolId, Username = Username, Limit = Limit, PaginationToken = PaginationToken)
output <- .cognitoidentityprovider$admin_list_devices_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$admin_list_devices <- cognitoidentityprovider_admin_list_devices
#' Lists the groups that a user belongs to
#'
#' @description
#' Lists the groups that a user belongs to. User pool groups are identifiers that you can reference from the contents of ID and access tokens, and set preferred IAM roles for identity-pool authentication. For more information, see [Adding groups to a user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-user-groups.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_list_groups_for_user/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_list_groups_for_user/) for full documentation.
#'
#' @param Username [required] The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value must be the `sub` of a local user or the username of a user from a third-party IdP.
#' @param UserPoolId [required] The ID of the user pool where you want to view a user's groups.
#' @param Limit The maximum number of groups that you want Amazon Cognito to return in the response.
#' @param NextToken This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_admin_list_groups_for_user
cognitoidentityprovider_admin_list_groups_for_user <- function(Username, UserPoolId, Limit = NULL, NextToken = NULL) {
op <- new_operation(
name = "AdminListGroupsForUser",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(input_token = "NextToken", limit_key = "Limit", output_token = "NextToken", result_key = "Groups"),
stream_api = FALSE
)
input <- .cognitoidentityprovider$admin_list_groups_for_user_input(Username = Username, UserPoolId = UserPoolId, Limit = Limit, NextToken = NextToken)
output <- .cognitoidentityprovider$admin_list_groups_for_user_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$admin_list_groups_for_user <- cognitoidentityprovider_admin_list_groups_for_user
#' Requests a history of user activity and any risks detected as part of
#' Amazon Cognito threat protection
#'
#' @description
#' Requests a history of user activity and any risks detected as part of Amazon Cognito threat protection. For more information, see [Viewing user event history](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-adaptive-authentication.html#user-pool-settings-adaptive-authentication-event-user-history).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_list_user_auth_events/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_list_user_auth_events/) for full documentation.
#'
#' @param UserPoolId [required] The Id of the user pool that contains the user profile with the logged events.
#' @param Username [required] The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value must be the `sub` of a local user or the username of a user from a third-party IdP.
#' @param MaxResults The maximum number of authentication events to return. Returns 60 events if you set `MaxResults` to 0, or if you don't include a `MaxResults` parameter.
#' @param NextToken This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_admin_list_user_auth_events
cognitoidentityprovider_admin_list_user_auth_events <- function(UserPoolId, Username, MaxResults = NULL, NextToken = NULL) {
op <- new_operation(
name = "AdminListUserAuthEvents",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(input_token = "NextToken", limit_key = "MaxResults", output_token = "NextToken", result_key = "AuthEvents"),
stream_api = FALSE
)
input <- .cognitoidentityprovider$admin_list_user_auth_events_input(UserPoolId = UserPoolId, Username = Username, MaxResults = MaxResults, NextToken = NextToken)
output <- .cognitoidentityprovider$admin_list_user_auth_events_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$admin_list_user_auth_events <- cognitoidentityprovider_admin_list_user_auth_events
#' Given a username and a group name, removes them from the group
#'
#' @description
#' Given a username and a group name, removes them from the group. User pool groups are identifiers that you can reference from the contents of ID and access tokens, and set preferred IAM roles for identity-pool authentication. For more information, see [Adding groups to a user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-user-groups.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_remove_user_from_group/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_remove_user_from_group/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool that contains the group and the user that you want to remove.
#' @param Username [required] The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value must be the `sub` of a local user or the username of a user from a third-party IdP.
#' @param GroupName [required] The name of the group that you want to remove the user from, for example `MyTestGroup`.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_admin_remove_user_from_group
cognitoidentityprovider_admin_remove_user_from_group <- function(UserPoolId, Username, GroupName) {
op <- new_operation(
name = "AdminRemoveUserFromGroup",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$admin_remove_user_from_group_input(UserPoolId = UserPoolId, Username = Username, GroupName = GroupName)
output <- .cognitoidentityprovider$admin_remove_user_from_group_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$admin_remove_user_from_group <- cognitoidentityprovider_admin_remove_user_from_group
#' Begins the password reset process
#'
#' @description
#' Begins the password reset process. Sets the requested user’s account into a `RESET_REQUIRED` status, and sends them a password-reset code. Your user pool also sends the user a notification with a reset code and the information that their password has been reset. At sign-in, your application or the managed login session receives a challenge to complete the reset by confirming the code and setting a new password.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_reset_user_password/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_reset_user_password/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to reset the user's password.
#' @param Username [required] The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value must be the `sub` of a local user or the username of a user from a third-party IdP.
#' @param ClientMetadata A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers. You create custom workflows by assigning Lambda functions to user pool triggers.
#'
#' When Amazon Cognito invokes any of these functions, it passes a JSON payload, which the function receives as input. This payload contains a `clientMetadata` attribute that provides the data that you assigned to the ClientMetadata parameter in your request. In your function code, you can process the `clientMetadata` value to enhance your workflow for your specific needs.
#'
#' To review the Lambda trigger types that Amazon Cognito invokes at runtime with API requests, see [Connecting API actions to Lambda triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-working-with-lambda-triggers.html#lambda-triggers-by-event) in the *Amazon Cognito Developer Guide*.
#'
#' When you use the `ClientMetadata` parameter, note that Amazon Cognito won't do the following:
#'
#' - Store the `ClientMetadata` value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the `ClientMetadata` parameter serves no purpose.
#'
#' - Validate the `ClientMetadata` value.
#'
#' - Encrypt the `ClientMetadata` value. Don't send sensitive information in this parameter.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_admin_reset_user_password
cognitoidentityprovider_admin_reset_user_password <- function(UserPoolId, Username, ClientMetadata = NULL) {
op <- new_operation(
name = "AdminResetUserPassword",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$admin_reset_user_password_input(UserPoolId = UserPoolId, Username = Username, ClientMetadata = ClientMetadata)
output <- .cognitoidentityprovider$admin_reset_user_password_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$admin_reset_user_password <- cognitoidentityprovider_admin_reset_user_password
#' 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
#'
#' @description
#' 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 [`admin_respond_to_auth_challenge`][cognitoidentityprovider_admin_respond_to_auth_challenge] 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.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_respond_to_auth_challenge/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_respond_to_auth_challenge/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to respond to an authentication challenge.
#' @param ClientId [required] The ID of the app client where you initiated sign-in.
#' @param ChallengeName [required] The name of the challenge that you are responding to.
#'
#' Possible challenges include the following:
#'
#' All of the following challenges require `USERNAME` and, when the app client has a client secret, `SECRET_HASH` in the parameters. Include a `DEVICE_KEY` for device authentication.
#'
#' - `WEB_AUTHN`: Respond to the challenge with the results of a successful authentication with a WebAuthn authenticator, or passkey, as `CREDENTIAL`. Examples of WebAuthn authenticators include biometric devices and security keys.
#'
#' - `PASSWORD`: Respond with the user's password as `PASSWORD`.
#'
#' - `PASSWORD_SRP`: Respond with the initial SRP secret as `SRP_A`.
#'
#' - `SELECT_CHALLENGE`: Respond with a challenge selection as `ANSWER`. It must be one of the challenge types in the `AvailableChallenges` response parameter. Add the parameters of the selected challenge, for example `USERNAME` and `SMS_OTP`.
#'
#' - `SMS_MFA`: Respond with the code that your user pool delivered in an SMS message, as `SMS_MFA_CODE`
#'
#' - `EMAIL_MFA`: Respond with the code that your user pool delivered in an email message, as `EMAIL_MFA_CODE`
#'
#' - `EMAIL_OTP`: Respond with the code that your user pool delivered in an email message, as `EMAIL_OTP_CODE` .
#'
#' - `SMS_OTP`: Respond with the code that your user pool delivered in an SMS message, as `SMS_OTP_CODE`.
#'
#' - `PASSWORD_VERIFIER`: Respond with the second stage of SRP secrets as `PASSWORD_CLAIM_SIGNATURE`, `PASSWORD_CLAIM_SECRET_BLOCK`, and `TIMESTAMP`.
#'
#' - `CUSTOM_CHALLENGE`: This is returned if your custom authentication flow determines that the user should pass another challenge before tokens are issued. The parameters of the challenge are determined by your Lambda function and issued in the `ChallengeParameters` of a challenge response.
#'
#' - `DEVICE_SRP_AUTH`: Respond with the initial parameters of device SRP authentication. For more information, see [Signing in with a device](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html#user-pools-remembered-devices-signing-in-with-a-device).
#'
#' - `DEVICE_PASSWORD_VERIFIER`: Respond with `PASSWORD_CLAIM_SIGNATURE`, `PASSWORD_CLAIM_SECRET_BLOCK`, and `TIMESTAMP` after client-side SRP calculations. For more information, see [Signing in with a device](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html#user-pools-remembered-devices-signing-in-with-a-device).
#'
#' - `NEW_PASSWORD_REQUIRED`: For users who are required to change their passwords after successful first login. Respond to this challenge with `NEW_PASSWORD` and any required attributes that Amazon Cognito returned in the `requiredAttributes` parameter. You can also set values for attributes that aren't required by your user pool and that your app client can write.
#'
#' Amazon Cognito only returns this challenge for users who have temporary passwords. When you create passwordless users, you must provide values for all required attributes.
#'
#' In a `NEW_PASSWORD_REQUIRED` challenge response, you can't modify a required attribute that already has a value. In [`admin_respond_to_auth_challenge`][cognitoidentityprovider_admin_respond_to_auth_challenge] or [`respond_to_auth_challenge`][cognitoidentityprovider_respond_to_auth_challenge], set a value for any keys that Amazon Cognito returned in the `requiredAttributes` parameter, then use the [`admin_update_user_attributes`][cognitoidentityprovider_admin_update_user_attributes] or [`update_user_attributes`][cognitoidentityprovider_update_user_attributes] API operation to modify the value of any additional attributes.
#'
#' - `MFA_SETUP`: For users who are required to setup an MFA factor before they can sign in. The MFA types activated for the user pool will be listed in the challenge parameters `MFAS_CAN_SETUP` value.
#'
#' To set up time-based one-time password (TOTP) MFA, use the session returned in this challenge from [`initiate_auth`][cognitoidentityprovider_initiate_auth] or [`admin_initiate_auth`][cognitoidentityprovider_admin_initiate_auth] as an input to [`associate_software_token`][cognitoidentityprovider_associate_software_token]. Then, use the session returned by [`verify_software_token`][cognitoidentityprovider_verify_software_token] as an input to [`respond_to_auth_challenge`][cognitoidentityprovider_respond_to_auth_challenge] or [`admin_respond_to_auth_challenge`][cognitoidentityprovider_admin_respond_to_auth_challenge] with challenge name `MFA_SETUP` to complete sign-in.
#'
#' To set up SMS or email MFA, collect a `phone_number` or `email` attribute for the user. Then restart the authentication flow with an [`initiate_auth`][cognitoidentityprovider_initiate_auth] or [`admin_initiate_auth`][cognitoidentityprovider_admin_initiate_auth] request.
#' @param ChallengeResponses The responses to the challenge that you received in the previous request. Each challenge has its own required response parameters. The following examples are partial JSON request bodies that highlight challenge-response parameters.
#'
#' You must provide a SECRET_HASH parameter in all challenge responses to an app client that has a client secret. Include a `DEVICE_KEY` for device authentication.
#'
#' **SELECT_CHALLENGE**
#'
#' `"ChallengeName": "SELECT_CHALLENGE", "ChallengeResponses": { "USERNAME": "[username]", "ANSWER": "[Challenge name]"}`
#'
#' Available challenges are `PASSWORD`, `PASSWORD_SRP`, `EMAIL_OTP`, `SMS_OTP`, and `WEB_AUTHN`.
#'
#' Complete authentication in the `SELECT_CHALLENGE` response for `PASSWORD`, `PASSWORD_SRP`, and `WEB_AUTHN`:
#'
#' - `"ChallengeName": "SELECT_CHALLENGE", "ChallengeResponses": { "ANSWER": "WEB_AUTHN", "USERNAME": "[username]", "CREDENTIAL": "[AuthenticationResponseJSON]"}`
#'
#' See [AuthenticationResponseJSON](https://www.w3.org/TR/webauthn-3/#dictdef-authenticationresponsejson).
#'
#' - `"ChallengeName": "SELECT_CHALLENGE", "ChallengeResponses": { "ANSWER": "PASSWORD", "USERNAME": "[username]", "PASSWORD": "[password]"}`
#'
#' - `"ChallengeName": "SELECT_CHALLENGE", "ChallengeResponses": { "ANSWER": "PASSWORD_SRP", "USERNAME": "[username]", "SRP_A": "[SRP_A]"}`
#'
#' For `SMS_OTP` and `EMAIL_OTP`, respond with the username and answer. Your user pool will send a code for the user to submit in the next challenge response.
#'
#' - `"ChallengeName": "SELECT_CHALLENGE", "ChallengeResponses": { "ANSWER": "SMS_OTP", "USERNAME": "[username]"}`
#'
#' - `"ChallengeName": "SELECT_CHALLENGE", "ChallengeResponses": { "ANSWER": "EMAIL_OTP", "USERNAME": "[username]"}`
#'
#' **WEB_AUTHN**
#'
#' `"ChallengeName": "WEB_AUTHN", "ChallengeResponses": { "USERNAME": "[username]", "CREDENTIAL": "[AuthenticationResponseJSON]"}`
#'
#' See [AuthenticationResponseJSON](https://www.w3.org/TR/webauthn-3/#dictdef-authenticationresponsejson).
#'
#' **PASSWORD**
#'
#' `"ChallengeName": "PASSWORD", "ChallengeResponses": { "USERNAME": "[username]", "PASSWORD": "[password]"}`
#'
#' **PASSWORD_SRP**
#'
#' `"ChallengeName": "PASSWORD_SRP", "ChallengeResponses": { "USERNAME": "[username]", "SRP_A": "[SRP_A]"}`
#'
#' **SMS_OTP**
#'
#' `"ChallengeName": "SMS_OTP", "ChallengeResponses": {"SMS_OTP_CODE": "[code]", "USERNAME": "[username]"}`
#'
#' **EMAIL_OTP**
#'
#' `"ChallengeName": "EMAIL_OTP", "ChallengeResponses": {"EMAIL_OTP_CODE": "[code]", "USERNAME": "[username]"}`
#'
#' **SMS_MFA**
#'
#' `"ChallengeName": "SMS_MFA", "ChallengeResponses": {"SMS_MFA_CODE": "[code]", "USERNAME": "[username]"}`
#'
#' **PASSWORD_VERIFIER**
#'
#' This challenge response is part of the SRP flow. Amazon Cognito requires that your application respond to this challenge within a few seconds. When the response time exceeds this period, your user pool returns a `NotAuthorizedException` error.
#'
#' `"ChallengeName": "PASSWORD_VERIFIER", "ChallengeResponses": {"PASSWORD_CLAIM_SIGNATURE": "[claim_signature]", "PASSWORD_CLAIM_SECRET_BLOCK": "[secret_block]", "TIMESTAMP": [timestamp], "USERNAME": "[username]"}`
#'
#' **CUSTOM_CHALLENGE**
#'
#' `"ChallengeName": "CUSTOM_CHALLENGE", "ChallengeResponses": {"USERNAME": "[username]", "ANSWER": "[challenge_answer]"}`
#'
#' **NEW_PASSWORD_REQUIRED**
#'
#' `"ChallengeName": "NEW_PASSWORD_REQUIRED", "ChallengeResponses": {"NEW_PASSWORD": "[new_password]", "USERNAME": "[username]"}`
#'
#' To set any required attributes that [`initiate_auth`][cognitoidentityprovider_initiate_auth] returned in an `requiredAttributes` parameter, add `"userAttributes.[attribute_name]": "[attribute_value]"`. This parameter can also set values for writable attributes that aren't required by your user pool.
#'
#' In a `NEW_PASSWORD_REQUIRED` challenge response, you can't modify a required attribute that already has a value. In [`admin_respond_to_auth_challenge`][cognitoidentityprovider_admin_respond_to_auth_challenge] or [`respond_to_auth_challenge`][cognitoidentityprovider_respond_to_auth_challenge], set a value for any keys that Amazon Cognito returned in the `requiredAttributes` parameter, then use the [`admin_update_user_attributes`][cognitoidentityprovider_admin_update_user_attributes] or [`update_user_attributes`][cognitoidentityprovider_update_user_attributes] API operation to modify the value of any additional attributes.
#'
#' **SOFTWARE_TOKEN_MFA**
#'
#' `"ChallengeName": "SOFTWARE_TOKEN_MFA", "ChallengeResponses": {"USERNAME": "[username]", "SOFTWARE_TOKEN_MFA_CODE": [authenticator_code]}`
#'
#' **DEVICE_SRP_AUTH**
#'
#' `"ChallengeName": "DEVICE_SRP_AUTH", "ChallengeResponses": {"USERNAME": "[username]", "DEVICE_KEY": "[device_key]", "SRP_A": "[srp_a]"}`
#'
#' **DEVICE_PASSWORD_VERIFIER**
#'
#' `"ChallengeName": "DEVICE_PASSWORD_VERIFIER", "ChallengeResponses": {"DEVICE_KEY": "[device_key]", "PASSWORD_CLAIM_SIGNATURE": "[claim_signature]", "PASSWORD_CLAIM_SECRET_BLOCK": "[secret_block]", "TIMESTAMP": [timestamp], "USERNAME": "[username]"}`
#'
#' **MFA_SETUP**
#'
#' `"ChallengeName": "MFA_SETUP", "ChallengeResponses": {"USERNAME": "[username]"}, "SESSION": "[Session ID from VerifySoftwareToken]"`
#'
#' **SELECT_MFA_TYPE**
#'
#' `"ChallengeName": "SELECT_MFA_TYPE", "ChallengeResponses": {"USERNAME": "[username]", "ANSWER": "[SMS_MFA|EMAIL_MFA|SOFTWARE_TOKEN_MFA]"}`
#'
#' For more information about `SECRET_HASH`, see [Computing secret hash values](https://docs.aws.amazon.com/cognito/latest/developerguide/signing-up-users-in-your-app.html#cognito-user-pools-computing-secret-hash). For information about `DEVICE_KEY`, see [Working with user devices in your user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html).
#' @param Session The session identifier that maintains the state of authentication requests and challenge responses. If an [`admin_initiate_auth`][cognitoidentityprovider_admin_initiate_auth] or [`admin_respond_to_auth_challenge`][cognitoidentityprovider_admin_respond_to_auth_challenge] API request results in a determination that your application must pass another challenge, Amazon Cognito returns a session with other challenge parameters. Send this session identifier, unmodified, to the next [`admin_respond_to_auth_challenge`][cognitoidentityprovider_admin_respond_to_auth_challenge] request.
#' @param AnalyticsMetadata Information that supports analytics outcomes with Amazon Pinpoint, including the user's endpoint ID. The endpoint ID is a destination for Amazon Pinpoint push notifications, for example a device identifier, email address, or phone number.
#' @param ContextData Contextual data about your user session like the device fingerprint, IP address, or location. Amazon Cognito threat protection evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests.
#'
#' For more information, see [Collecting data for threat protection in applications](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-viewing-threat-protection-app.html).
#' @param ClientMetadata A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers. You create custom workflows by assigning Lambda functions to user pool triggers.
#'
#' When Amazon Cognito invokes any of these functions, it passes a JSON payload, which the function receives as input. This payload contains a `clientMetadata` attribute that provides the data that you assigned to the ClientMetadata parameter in your request. In your function code, you can process the `clientMetadata` value to enhance your workflow for your specific needs.
#'
#' To review the Lambda trigger types that Amazon Cognito invokes at runtime with API requests, see [Connecting API actions to Lambda triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-working-with-lambda-triggers.html#lambda-triggers-by-event) in the *Amazon Cognito Developer Guide*.
#'
#' When you use the `ClientMetadata` parameter, note that Amazon Cognito won't do the following:
#'
#' - Store the `ClientMetadata` value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the `ClientMetadata` parameter serves no purpose.
#'
#' - Validate the `ClientMetadata` value.
#'
#' - Encrypt the `ClientMetadata` value. Don't send sensitive information in this parameter.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_admin_respond_to_auth_challenge
cognitoidentityprovider_admin_respond_to_auth_challenge <- function(UserPoolId, ClientId, ChallengeName, ChallengeResponses = NULL, Session = NULL, AnalyticsMetadata = NULL, ContextData = NULL, ClientMetadata = NULL) {
op <- new_operation(
name = "AdminRespondToAuthChallenge",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$admin_respond_to_auth_challenge_input(UserPoolId = UserPoolId, ClientId = ClientId, ChallengeName = ChallengeName, ChallengeResponses = ChallengeResponses, Session = Session, AnalyticsMetadata = AnalyticsMetadata, ContextData = ContextData, ClientMetadata = ClientMetadata)
output <- .cognitoidentityprovider$admin_respond_to_auth_challenge_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$admin_respond_to_auth_challenge <- cognitoidentityprovider_admin_respond_to_auth_challenge
#' Sets the user's multi-factor authentication (MFA) preference, including
#' which MFA options are activated, and if any are preferred
#'
#' @description
#' Sets the user's multi-factor authentication (MFA) preference, including which MFA options are activated, and if any are preferred. Only one factor can be set as preferred. The preferred MFA factor will be used to authenticate a user if multiple factors are activated. If multiple options are activated and no preference is set, a challenge to choose an MFA option will be returned during sign-in.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_set_user_mfa_preference/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_set_user_mfa_preference/) for full documentation.
#'
#' @param SMSMfaSettings User preferences for SMS message MFA. Activates or deactivates SMS MFA and sets it as the preferred MFA method when multiple methods are available.
#' @param SoftwareTokenMfaSettings User preferences for time-based one-time password (TOTP) MFA. Activates or deactivates TOTP MFA and sets it as the preferred MFA method when multiple methods are available.
#' @param EmailMfaSettings User preferences for email message MFA. Activates or deactivates email MFA and sets it as the preferred MFA method when multiple methods are available. To activate this setting, your user pool must be in the [Essentials tier](https://docs.aws.amazon.com/cognito/latest/developerguide/feature-plans-features-essentials.html) or higher.
#' @param WebAuthnMfaSettings User preferences for passkey MFA. Activates or deactivates passkey MFA for the user. When activated, passkey authentication requires user verification, and passkey sign-in is available when MFA is required. To activate this setting, the `FactorConfiguration` of your user pool `WebAuthnConfiguration` must be `MULTI_FACTOR_WITH_USER_VERIFICATION`. To activate this setting, your user pool must be in the [Essentials tier](https://docs.aws.amazon.com/cognito/latest/developerguide/feature-plans-features-essentials.html) or higher.
#' @param Username [required] The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value must be the `sub` of a local user or the username of a user from a third-party IdP.
#' @param UserPoolId [required] The ID of the user pool where you want to set a user's MFA preferences.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_admin_set_user_mfa_preference
cognitoidentityprovider_admin_set_user_mfa_preference <- function(SMSMfaSettings = NULL, SoftwareTokenMfaSettings = NULL, EmailMfaSettings = NULL, WebAuthnMfaSettings = NULL, Username, UserPoolId) {
op <- new_operation(
name = "AdminSetUserMFAPreference",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$admin_set_user_mfa_preference_input(SMSMfaSettings = SMSMfaSettings, SoftwareTokenMfaSettings = SoftwareTokenMfaSettings, EmailMfaSettings = EmailMfaSettings, WebAuthnMfaSettings = WebAuthnMfaSettings, Username = Username, UserPoolId = UserPoolId)
output <- .cognitoidentityprovider$admin_set_user_mfa_preference_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$admin_set_user_mfa_preference <- cognitoidentityprovider_admin_set_user_mfa_preference
#' Sets the specified user's password in a user pool
#'
#' @description
#' Sets the specified user's password in a user pool. This operation administratively sets a temporary or permanent password for a user. With this operation, you can bypass self-service password changes and permit immediate sign-in with the password that you set. To do this, set `Permanent` to `true`.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_set_user_password/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_set_user_password/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to set the user's password.
#' @param Username [required] The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value must be the `sub` of a local user or the username of a user from a third-party IdP.
#' @param Password [required] The new temporary or permanent password that you want to set for the user. You can't remove the password for a user who already has a password so that they can only sign in with passwordless methods. In this scenario, you must create a new user without a password.
#' @param Permanent Set to `true` to set a password that the user can immediately sign in with. Set to `false` to set a temporary password that the user must change on their next sign-in.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_admin_set_user_password
cognitoidentityprovider_admin_set_user_password <- function(UserPoolId, Username, Password, Permanent = NULL) {
op <- new_operation(
name = "AdminSetUserPassword",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$admin_set_user_password_input(UserPoolId = UserPoolId, Username = Username, Password = Password, Permanent = Permanent)
output <- .cognitoidentityprovider$admin_set_user_password_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$admin_set_user_password <- cognitoidentityprovider_admin_set_user_password
#' This action is no longer supported
#'
#' @description
#' *This action is no longer supported.* You can use it to configure only SMS MFA. You can't use it to configure time-based one-time password (TOTP) software token MFA.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_set_user_settings/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_set_user_settings/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool that contains the user whose options you're setting.
#' @param Username [required] The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value must be the `sub` of a local user or the username of a user from a third-party IdP.
#' @param MFAOptions [required] You can use this parameter only to set an SMS configuration that uses SMS for delivery.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_admin_set_user_settings
cognitoidentityprovider_admin_set_user_settings <- function(UserPoolId, Username, MFAOptions) {
op <- new_operation(
name = "AdminSetUserSettings",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$admin_set_user_settings_input(UserPoolId = UserPoolId, Username = Username, MFAOptions = MFAOptions)
output <- .cognitoidentityprovider$admin_set_user_settings_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$admin_set_user_settings <- cognitoidentityprovider_admin_set_user_settings
#' Provides the feedback for an authentication event generated by threat
#' protection features
#'
#' @description
#' Provides the feedback for an authentication event generated by threat protection features. Your response indicates that you think that the event either was from a valid user or was an unwanted authentication attempt. This feedback improves the risk evaluation decision for the user pool as part of Amazon Cognito threat protection. To activate this setting, your user pool must be on the [Plus tier](https://docs.aws.amazon.com/cognito/latest/developerguide/feature-plans-features-plus.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_update_auth_event_feedback/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_update_auth_event_feedback/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to submit authentication-event feedback.
#' @param Username [required] The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value must be the `sub` of a local user or the username of a user from a third-party IdP.
#' @param EventId [required] The ID of the threat protection authentication event that you want to update.
#' @param FeedbackValue [required] Your feedback to the authentication event. When you provide a `FeedbackValue` value of `valid`, you tell Amazon Cognito that you trust a user session where Amazon Cognito has evaluated some level of risk. When you provide a `FeedbackValue` value of `invalid`, you tell Amazon Cognito that you don't trust a user session, or you don't believe that Amazon Cognito evaluated a high-enough risk level.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_admin_update_auth_event_feedback
cognitoidentityprovider_admin_update_auth_event_feedback <- function(UserPoolId, Username, EventId, FeedbackValue) {
op <- new_operation(
name = "AdminUpdateAuthEventFeedback",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$admin_update_auth_event_feedback_input(UserPoolId = UserPoolId, Username = Username, EventId = EventId, FeedbackValue = FeedbackValue)
output <- .cognitoidentityprovider$admin_update_auth_event_feedback_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$admin_update_auth_event_feedback <- cognitoidentityprovider_admin_update_auth_event_feedback
#' Updates the status of a user's device so that it is marked as remembered
#' or not remembered for the purpose of device authentication
#'
#' @description
#' Updates the status of a user's device so that it is marked as remembered or not remembered for the purpose of device authentication. Device authentication is a "remember me" mechanism that silently completes sign-in from trusted devices with a device key instead of a user-provided MFA code. This operation changes the status of a device without deleting it, so you can enable it again later. For more information about device authentication, see [Working with devices](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_update_device_status/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_update_device_status/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to change a user's device status.
#' @param Username [required] The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value must be the `sub` of a local user or the username of a user from a third-party IdP.
#' @param DeviceKey [required] The unique identifier, or device key, of the device that you want to update the status for.
#' @param DeviceRememberedStatus To enable device authentication with the specified device, set to `remembered`.To disable, set to `not_remembered`.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_admin_update_device_status
cognitoidentityprovider_admin_update_device_status <- function(UserPoolId, Username, DeviceKey, DeviceRememberedStatus = NULL) {
op <- new_operation(
name = "AdminUpdateDeviceStatus",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$admin_update_device_status_input(UserPoolId = UserPoolId, Username = Username, DeviceKey = DeviceKey, DeviceRememberedStatus = DeviceRememberedStatus)
output <- .cognitoidentityprovider$admin_update_device_status_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$admin_update_device_status <- cognitoidentityprovider_admin_update_device_status
#' Updates the specified user's attributes
#'
#' @description
#' Updates the specified user's attributes. To delete an attribute from your user, submit the attribute in your API request with a blank value.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_update_user_attributes/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_update_user_attributes/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to update user attributes.
#' @param Username [required] The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value must be the `sub` of a local user or the username of a user from a third-party IdP.
#' @param UserAttributes [required] An array of name-value pairs representing user attributes.
#'
#' For custom attributes, you must prepend the `custom:` prefix to the attribute name.
#'
#' If your user pool requires verification before Amazon Cognito updates an attribute value that you specify in this request, Amazon Cognito doesn’t immediately update the value of that attribute. After your user receives and responds to a verification message to verify the new value, Amazon Cognito updates the attribute value. Your user can sign in and receive messages with the original attribute value until they verify the new value.
#'
#' To skip the verification message and update the value of an attribute that requires verification in the same API request, include the `email_verified` or `phone_number_verified` attribute, with a value of `true`. If you set the `email_verified` or `phone_number_verified` value for an `email` or `phone_number` attribute that requires verification to `true`, Amazon Cognito doesn’t send a verification message to your user.
#' @param ClientMetadata A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers. You create custom workflows by assigning Lambda functions to user pool triggers.
#'
#' When Amazon Cognito invokes any of these functions, it passes a JSON payload, which the function receives as input. This payload contains a `clientMetadata` attribute that provides the data that you assigned to the ClientMetadata parameter in your request. In your function code, you can process the `clientMetadata` value to enhance your workflow for your specific needs.
#'
#' To review the Lambda trigger types that Amazon Cognito invokes at runtime with API requests, see [Connecting API actions to Lambda triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-working-with-lambda-triggers.html#lambda-triggers-by-event) in the *Amazon Cognito Developer Guide*.
#'
#' When you use the `ClientMetadata` parameter, note that Amazon Cognito won't do the following:
#'
#' - Store the `ClientMetadata` value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the `ClientMetadata` parameter serves no purpose.
#'
#' - Validate the `ClientMetadata` value.
#'
#' - Encrypt the `ClientMetadata` value. Don't send sensitive information in this parameter.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_admin_update_user_attributes
cognitoidentityprovider_admin_update_user_attributes <- function(UserPoolId, Username, UserAttributes, ClientMetadata = NULL) {
op <- new_operation(
name = "AdminUpdateUserAttributes",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$admin_update_user_attributes_input(UserPoolId = UserPoolId, Username = Username, UserAttributes = UserAttributes, ClientMetadata = ClientMetadata)
output <- .cognitoidentityprovider$admin_update_user_attributes_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$admin_update_user_attributes <- cognitoidentityprovider_admin_update_user_attributes
#' Invalidates the identity, access, and refresh tokens that Amazon Cognito
#' issued to a user
#'
#' @description
#' 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.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_user_global_sign_out/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_admin_user_global_sign_out/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to sign out a user.
#' @param Username [required] The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value must be the `sub` of a local user or the username of a user from a third-party IdP.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_admin_user_global_sign_out
cognitoidentityprovider_admin_user_global_sign_out <- function(UserPoolId, Username) {
op <- new_operation(
name = "AdminUserGlobalSignOut",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$admin_user_global_sign_out_input(UserPoolId = UserPoolId, Username = Username)
output <- .cognitoidentityprovider$admin_user_global_sign_out_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$admin_user_global_sign_out <- cognitoidentityprovider_admin_user_global_sign_out
#' Begins setup of time-based one-time password (TOTP) multi-factor
#' authentication (MFA) for a user, with a unique private key that Amazon
#' Cognito generates and returns in the API response
#'
#' @description
#' Begins setup of time-based one-time password (TOTP) multi-factor authentication (MFA) for a user, with a unique private key that Amazon Cognito generates and returns in the API response. You can authorize an [`associate_software_token`][cognitoidentityprovider_associate_software_token] request with either the user's access token, or a session string from a challenge response that you received from Amazon Cognito.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_associate_software_token/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_associate_software_token/) for full documentation.
#'
#' @param AccessToken A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for `aws.cognito.signin.user.admin`.
#'
#' You can provide either an access token or a session ID in the request.
#' @param Session The session identifier that maintains the state of authentication requests and challenge responses. In [`associate_software_token`][cognitoidentityprovider_associate_software_token], this is the session ID from a successful sign-in. You can provide either an access token or a session ID in the request.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_associate_software_token
cognitoidentityprovider_associate_software_token <- function(AccessToken = NULL, Session = NULL) {
op <- new_operation(
name = "AssociateSoftwareToken",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$associate_software_token_input(AccessToken = AccessToken, Session = Session)
output <- .cognitoidentityprovider$associate_software_token_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$associate_software_token <- cognitoidentityprovider_associate_software_token
#' Changes the password for the currently signed-in user
#'
#' @description
#' Changes the password for the currently signed-in user.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_change_password/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_change_password/) for full documentation.
#'
#' @param PreviousPassword The user's previous password. Required if the user has a password. If the user has no password and only signs in with passwordless authentication options, you can omit this parameter.
#' @param ProposedPassword [required] A new password that you prompted the user to enter in your application.
#' @param AccessToken [required] A valid access token that Amazon Cognito issued to the user whose password you want to change.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_change_password
cognitoidentityprovider_change_password <- function(PreviousPassword = NULL, ProposedPassword, AccessToken) {
op <- new_operation(
name = "ChangePassword",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$change_password_input(PreviousPassword = PreviousPassword, ProposedPassword = ProposedPassword, AccessToken = AccessToken)
output <- .cognitoidentityprovider$change_password_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$change_password <- cognitoidentityprovider_change_password
#' Completes registration of a passkey authenticator for the currently
#' signed-in user
#'
#' @description
#' Completes registration of a passkey authenticator for the currently signed-in user.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_complete_web_authn_registration/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_complete_web_authn_registration/) for full documentation.
#'
#' @param AccessToken [required] A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for `aws.cognito.signin.user.admin`.
#' @param Credential [required] A [RegistrationResponseJSON](https://www.w3.org/TR/webauthn-3/#dictdef-registrationresponsejson) public-key credential response from the user's passkey provider.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_complete_web_authn_registration
cognitoidentityprovider_complete_web_authn_registration <- function(AccessToken, Credential) {
op <- new_operation(
name = "CompleteWebAuthnRegistration",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$complete_web_authn_registration_input(AccessToken = AccessToken, Credential = Credential)
output <- .cognitoidentityprovider$complete_web_authn_registration_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$complete_web_authn_registration <- cognitoidentityprovider_complete_web_authn_registration
#' Confirms a device that a user wants to remember
#'
#' @description
#' Confirms a device that a user wants to remember. A remembered device is a "Remember me on this device" option for user pools that perform authentication with the device key of a trusted device in the back end, instead of a user-provided MFA code. For more information about device authentication, see [Working with user devices in your user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_confirm_device/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_confirm_device/) for full documentation.
#'
#' @param AccessToken [required] A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for `aws.cognito.signin.user.admin`.
#' @param DeviceKey [required] The unique identifier, or device key, of the device that you want to update the status for.
#' @param DeviceSecretVerifierConfig The configuration of the device secret verifier.
#' @param DeviceName A friendly name for the device, for example `MyMobilePhone`.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_confirm_device
cognitoidentityprovider_confirm_device <- function(AccessToken, DeviceKey, DeviceSecretVerifierConfig = NULL, DeviceName = NULL) {
op <- new_operation(
name = "ConfirmDevice",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$confirm_device_input(AccessToken = AccessToken, DeviceKey = DeviceKey, DeviceSecretVerifierConfig = DeviceSecretVerifierConfig, DeviceName = DeviceName)
output <- .cognitoidentityprovider$confirm_device_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$confirm_device <- cognitoidentityprovider_confirm_device
#' This public API operation accepts a confirmation code that Amazon
#' Cognito sent to a user and accepts a new password for that user
#'
#' @description
#' This public API operation accepts a confirmation code that Amazon Cognito sent to a user and accepts a new password for that user.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_confirm_forgot_password/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_confirm_forgot_password/) for full documentation.
#'
#' @param ClientId [required] The ID of the app client where the user wants to reset their password. This parameter is an identifier of the client application that users are resetting their password from, but this operation resets users' irrespective of the app clients they sign in to.
#' @param SecretHash A keyed-hash message authentication code (HMAC) calculated using the secret key of a user pool client and username plus the client ID in the message. For more information about `SecretHash`, see [Computing secret hash values](https://docs.aws.amazon.com/cognito/latest/developerguide/signing-up-users-in-your-app.html#cognito-user-pools-computing-secret-hash).
#' @param Username [required] The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value must be the `sub` of a local user or the username of a user from a third-party IdP.
#' @param ConfirmationCode [required] The confirmation code that your user pool delivered when your user requested to reset their password.
#' @param Password [required] The new password that your user wants to set.
#' @param AnalyticsMetadata Information that supports analytics outcomes with Amazon Pinpoint, including the user's endpoint ID. The endpoint ID is a destination for Amazon Pinpoint push notifications, for example a device identifier, email address, or phone number.
#' @param UserContextData Contextual data about your user session like the device fingerprint, IP address, or location. Amazon Cognito threat protection evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests.
#'
#' For more information, see [Collecting data for threat protection in applications](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-viewing-threat-protection-app.html).
#' @param ClientMetadata A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers. You create custom workflows by assigning Lambda functions to user pool triggers.
#'
#' When Amazon Cognito invokes any of these functions, it passes a JSON payload, which the function receives as input. This payload contains a `clientMetadata` attribute that provides the data that you assigned to the ClientMetadata parameter in your request. In your function code, you can process the `clientMetadata` value to enhance your workflow for your specific needs.
#'
#' To review the Lambda trigger types that Amazon Cognito invokes at runtime with API requests, see [Connecting API actions to Lambda triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-working-with-lambda-triggers.html#lambda-triggers-by-event) in the *Amazon Cognito Developer Guide*.
#'
#' When you use the `ClientMetadata` parameter, note that Amazon Cognito won't do the following:
#'
#' - Store the `ClientMetadata` value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the `ClientMetadata` parameter serves no purpose.
#'
#' - Validate the `ClientMetadata` value.
#'
#' - Encrypt the `ClientMetadata` value. Don't send sensitive information in this parameter.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_confirm_forgot_password
cognitoidentityprovider_confirm_forgot_password <- function(ClientId, SecretHash = NULL, Username, ConfirmationCode, Password, AnalyticsMetadata = NULL, UserContextData = NULL, ClientMetadata = NULL) {
op <- new_operation(
name = "ConfirmForgotPassword",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$confirm_forgot_password_input(ClientId = ClientId, SecretHash = SecretHash, Username = Username, ConfirmationCode = ConfirmationCode, Password = Password, AnalyticsMetadata = AnalyticsMetadata, UserContextData = UserContextData, ClientMetadata = ClientMetadata)
output <- .cognitoidentityprovider$confirm_forgot_password_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$confirm_forgot_password <- cognitoidentityprovider_confirm_forgot_password
#' Confirms the account of a new user
#'
#' @description
#' Confirms the account of a new user. This public API operation submits a code that Amazon Cognito sent to your user when they signed up in your user pool. 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.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_confirm_sign_up/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_confirm_sign_up/) for full documentation.
#'
#' @param ClientId [required] The ID of the app client associated with the user pool.
#' @param SecretHash A keyed-hash message authentication code (HMAC) calculated using the secret key of a user pool client and username plus the client ID in the message. For more information about `SecretHash`, see [Computing secret hash values](https://docs.aws.amazon.com/cognito/latest/developerguide/signing-up-users-in-your-app.html#cognito-user-pools-computing-secret-hash).
#' @param Username [required] The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value must be the `sub` of a local user or the username of a user from a third-party IdP.
#' @param ConfirmationCode [required] The confirmation code that your user pool sent in response to the [`sign_up`][cognitoidentityprovider_sign_up] request.
#' @param ForceAliasCreation When `true`, forces user confirmation despite any existing aliases. Defaults to `false`. A value of `true` migrates the alias from an existing user to the new user if an existing user already has the phone number or email address as an alias.
#'
#' Say, for example, that an existing user has an `email` attribute of `bob@@example.com` and email is an alias in your user pool. If the new user also has an email of `bob@@example.com` and your [`confirm_sign_up`][cognitoidentityprovider_confirm_sign_up] response sets `ForceAliasCreation` to `true`, the new user can sign in with a username of `bob@@example.com` and the existing user can no longer do so.
#'
#' If `false` and an attribute belongs to an existing alias, this request returns an **AliasExistsException** error.
#'
#' For more information about sign-in aliases, see [Customizing sign-in attributes](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html#user-pool-settings-aliases).
#' @param AnalyticsMetadata Information that supports analytics outcomes with Amazon Pinpoint, including the user's endpoint ID. The endpoint ID is a destination for Amazon Pinpoint push notifications, for example a device identifier, email address, or phone number.
#' @param UserContextData Contextual data about your user session like the device fingerprint, IP address, or location. Amazon Cognito threat protection evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests.
#'
#' For more information, see [Collecting data for threat protection in applications](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-viewing-threat-protection-app.html).
#' @param ClientMetadata A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers. You create custom workflows by assigning Lambda functions to user pool triggers.
#'
#' When Amazon Cognito invokes any of these functions, it passes a JSON payload, which the function receives as input. This payload contains a `clientMetadata` attribute that provides the data that you assigned to the ClientMetadata parameter in your request. In your function code, you can process the `clientMetadata` value to enhance your workflow for your specific needs.
#'
#' To review the Lambda trigger types that Amazon Cognito invokes at runtime with API requests, see [Connecting API actions to Lambda triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-working-with-lambda-triggers.html#lambda-triggers-by-event) in the *Amazon Cognito Developer Guide*.
#'
#' When you use the `ClientMetadata` parameter, note that Amazon Cognito won't do the following:
#'
#' - Store the `ClientMetadata` value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the `ClientMetadata` parameter serves no purpose.
#'
#' - Validate the `ClientMetadata` value.
#'
#' - Encrypt the `ClientMetadata` value. Don't send sensitive information in this parameter.
#' @param Session The optional session ID from a [`sign_up`][cognitoidentityprovider_sign_up] API request. You can sign in a user directly from the sign-up process with the `USER_AUTH` authentication flow.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_confirm_sign_up
cognitoidentityprovider_confirm_sign_up <- function(ClientId, SecretHash = NULL, Username, ConfirmationCode, ForceAliasCreation = NULL, AnalyticsMetadata = NULL, UserContextData = NULL, ClientMetadata = NULL, Session = NULL) {
op <- new_operation(
name = "ConfirmSignUp",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$confirm_sign_up_input(ClientId = ClientId, SecretHash = SecretHash, Username = Username, ConfirmationCode = ConfirmationCode, ForceAliasCreation = ForceAliasCreation, AnalyticsMetadata = AnalyticsMetadata, UserContextData = UserContextData, ClientMetadata = ClientMetadata, Session = Session)
output <- .cognitoidentityprovider$confirm_sign_up_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$confirm_sign_up <- cognitoidentityprovider_confirm_sign_up
#' Creates a new group in the specified user pool
#'
#' @description
#' Creates a new group in the specified user pool. For more information about user pool groups, see [Adding groups to a user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-user-groups.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_create_group/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_create_group/) for full documentation.
#'
#' @param GroupName [required] A name for the group. This name must be unique in your user pool.
#' @param UserPoolId [required] The ID of the user pool where you want to create a user group.
#' @param Description A description of the group that you're creating.
#' @param RoleArn The Amazon Resource Name (ARN) for the IAM role that you want to associate with the group. A group role primarily declares a preferred role for the credentials that you get from an identity pool. Amazon Cognito ID tokens have a `cognito:preferred_role` claim that presents the highest-precedence group that a user belongs to. Both ID and access tokens also contain a `cognito:groups` claim that list all the groups that a user is a member of.
#' @param Precedence A non-negative integer value that specifies the precedence of this group relative to the other groups that a user can belong to in the user pool. Zero is the highest precedence value. Groups with lower `Precedence` values take precedence over groups with higher or null `Precedence` values. If a user belongs to two or more groups, it is the group with the lowest precedence value whose role ARN is given in the user's tokens for the `cognito:roles` and `cognito:preferred_role` claims.
#'
#' Two groups can have the same `Precedence` value. If this happens, neither group takes precedence over the other. If two groups with the same `Precedence` have the same role ARN, that role is used in the `cognito:preferred_role` claim in tokens for users in each group. If the two groups have different role ARNs, the `cognito:preferred_role` claim isn't set in users' tokens.
#'
#' The default `Precedence` value is null. The maximum `Precedence` value is `2^31-1`.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_create_group
cognitoidentityprovider_create_group <- function(GroupName, UserPoolId, Description = NULL, RoleArn = NULL, Precedence = NULL) {
op <- new_operation(
name = "CreateGroup",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$create_group_input(GroupName = GroupName, UserPoolId = UserPoolId, Description = Description, RoleArn = RoleArn, Precedence = Precedence)
output <- .cognitoidentityprovider$create_group_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$create_group <- cognitoidentityprovider_create_group
#' Adds a configuration and trust relationship between a third-party
#' identity provider (IdP) and a user pool
#'
#' @description
#' Adds a configuration and trust relationship between a third-party identity provider (IdP) and a user pool. Amazon Cognito accepts sign-in with third-party identity providers through managed login and OIDC relying-party libraries. For more information, see [Third-party IdP sign-in](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_create_identity_provider/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_create_identity_provider/) for full documentation.
#'
#' @param UserPoolId [required] The Id of the user pool where you want to create an IdP.
#' @param ProviderName [required] The name that you want to assign to the IdP. You can pass the identity provider name in the `identity_provider` query parameter of requests to the [Authorize endpoint](https://docs.aws.amazon.com/cognito/latest/developerguide/authorization-endpoint.html) to silently redirect to sign-in with the associated IdP.
#' @param ProviderType [required] The type of IdP that you want to add. Amazon Cognito supports OIDC, SAML 2.0, Login With Amazon, Sign In With Apple, Google, and Facebook IdPs.
#' @param ProviderDetails [required] The scopes, URLs, and identifiers for your external identity provider. The following examples describe the provider detail keys for each IdP type. These values and their schema are subject to change. Social IdP `authorize_scopes` values must match the values listed here.
#'
#' **OpenID Connect (OIDC)**
#'
#' Amazon Cognito accepts the following elements when it can't discover endpoint URLs from `oidc_issuer`: `attributes_url`, `authorize_url`, `jwks_uri`, `token_url`.
#'
#' Create or update request: `"ProviderDetails": { "attributes_request_method": "GET", "attributes_url": "https://auth.example.com/userInfo", "authorize_scopes": "openid profile email", "authorize_url": "https://auth.example.com/authorize", "client_id": "1example23456789", "client_secret": "provider-app-client-secret", "jwks_uri": "https://auth.example.com/.well-known/jwks.json", "oidc_issuer": "https://auth.example.com", "token_url": "https://example.com/token" }`
#'
#' Describe response: `"ProviderDetails": { "attributes_request_method": "GET", "attributes_url": "https://auth.example.com/userInfo", "attributes_url_add_attributes": "false", "authorize_scopes": "openid profile email", "authorize_url": "https://auth.example.com/authorize", "client_id": "1example23456789", "client_secret": "provider-app-client-secret", "jwks_uri": "https://auth.example.com/.well-known/jwks.json", "oidc_issuer": "https://auth.example.com", "token_url": "https://example.com/token" }`
#'
#' **SAML**
#'
#' Create or update request with Metadata URL: `"ProviderDetails": { "IDPInit": "true", "IDPSignout": "true", "EncryptedResponses" : "true", "MetadataURL": "https://auth.example.com/sso/saml/metadata", "RequestSigningAlgorithm": "rsa-sha256" }`
#'
#' Create or update request with Metadata file: `"ProviderDetails": { "IDPInit": "true", "IDPSignout": "true", "EncryptedResponses" : "true", "MetadataFile": "[metadata XML]", "RequestSigningAlgorithm": "rsa-sha256" }`
#'
#' The value of `MetadataFile` must be the plaintext metadata document with all quote (") characters escaped by backslashes.
#'
#' Describe response: `"ProviderDetails": { "IDPInit": "true", "IDPSignout": "true", "EncryptedResponses" : "true", "ActiveEncryptionCertificate": "[certificate]", "MetadataURL": "https://auth.example.com/sso/saml/metadata", "RequestSigningAlgorithm": "rsa-sha256", "SLORedirectBindingURI": "https://auth.example.com/slo/saml", "SSORedirectBindingURI": "https://auth.example.com/sso/saml" }`
#'
#' **LoginWithAmazon**
#'
#' Create or update request: `"ProviderDetails": \{ "authorize_scopes": "profile postal_code", "client_id": "amzn1.application-oa2-client.1example23456789", "client_secret": "provider-app-client-secret"`
#'
#' Describe response: `"ProviderDetails": { "attributes_url": "https://api.amazon.com/user/profile", "attributes_url_add_attributes": "false", "authorize_scopes": "profile postal_code", "authorize_url": "https://www.amazon.com/ap/oa", "client_id": "amzn1.application-oa2-client.1example23456789", "client_secret": "provider-app-client-secret", "token_request_method": "POST", "token_url": "https://api.amazon.com/auth/o2/token" }`
#'
#' **Google**
#'
#' Create or update request: `"ProviderDetails": { "authorize_scopes": "email profile openid", "client_id": "1example23456789.apps.googleusercontent.com", "client_secret": "provider-app-client-secret" }`
#'
#' Describe response: `"ProviderDetails": { "attributes_url": "https://people.googleapis.com/v1/people/me?personFields=", "attributes_url_add_attributes": "true", "authorize_scopes": "email profile openid", "authorize_url": "https://accounts.google.com/o/oauth2/v2/auth", "client_id": "1example23456789.apps.googleusercontent.com", "client_secret": "provider-app-client-secret", "oidc_issuer": "https://accounts.google.com", "token_request_method": "POST", "token_url": "https://www.googleapis.com/oauth2/v4/token" }`
#'
#' **SignInWithApple**
#'
#' Create or update request: `"ProviderDetails": { "authorize_scopes": "email name", "client_id": "com.example.cognito", "private_key": "1EXAMPLE", "key_id": "2EXAMPLE", "team_id": "3EXAMPLE" }`
#'
#' Describe response: `"ProviderDetails": { "attributes_url_add_attributes": "false", "authorize_scopes": "email name", "authorize_url": "https://appleid.apple.com/auth/authorize", "client_id": "com.example.cognito", "key_id": "1EXAMPLE", "oidc_issuer": "https://appleid.apple.com", "team_id": "2EXAMPLE", "token_request_method": "POST", "token_url": "https://appleid.apple.com/auth/token" }`
#'
#' **Facebook**
#'
#' Create or update request: `"ProviderDetails": { "api_version": "v17.0", "authorize_scopes": "public_profile, email", "client_id": "1example23456789", "client_secret": "provider-app-client-secret" }`
#'
#' Describe response: `"ProviderDetails": { "api_version": "v17.0", "attributes_url": "https://graph.facebook.com/v17.0/me?fields=", "attributes_url_add_attributes": "true", "authorize_scopes": "public_profile, email", "authorize_url": "https://www.facebook.com/v17.0/dialog/oauth", "client_id": "1example23456789", "client_secret": "provider-app-client-secret", "token_request_method": "GET", "token_url": "https://graph.facebook.com/v17.0/oauth/access_token" }`
#' @param AttributeMapping A mapping of IdP attributes to standard and custom user pool attributes. Specify a user pool attribute as the key of the key-value pair, and the IdP attribute claim name as the value.
#' @param IdpIdentifiers An array of IdP identifiers, for example `"IdPIdentifiers": [ "MyIdP", "MyIdP2" ]`. Identifiers are friendly names that you can pass in the `idp_identifier` query parameter of requests to the [Authorize endpoint](https://docs.aws.amazon.com/cognito/latest/developerguide/authorization-endpoint.html) to silently redirect to sign-in with the associated IdP. Identifiers in a domain format also enable the use of [email-address matching with SAML providers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-managing-saml-idp-naming.html).
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_create_identity_provider
cognitoidentityprovider_create_identity_provider <- function(UserPoolId, ProviderName, ProviderType, ProviderDetails, AttributeMapping = NULL, IdpIdentifiers = NULL) {
op <- new_operation(
name = "CreateIdentityProvider",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$create_identity_provider_input(UserPoolId = UserPoolId, ProviderName = ProviderName, ProviderType = ProviderType, ProviderDetails = ProviderDetails, AttributeMapping = AttributeMapping, IdpIdentifiers = IdpIdentifiers)
output <- .cognitoidentityprovider$create_identity_provider_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$create_identity_provider <- cognitoidentityprovider_create_identity_provider
#' Creates a new set of branding settings for a user pool style and
#' associates it with an app client
#'
#' @description
#' Creates a new set of branding settings for a user pool style and associates it with an app client. This operation is the programmatic option for the creation of a new style in the branding editor.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_create_managed_login_branding/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_create_managed_login_branding/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to create a new branding style.
#' @param ClientId [required] The app client that you want to create the branding style for. Each style is linked to an app client until you delete it.
#' @param UseCognitoProvidedValues When true, applies the default branding style options. These default options are managed by Amazon Cognito. You can modify them later in the branding editor.
#'
#' When you specify `true` for this option, you must also omit values for `Settings` and `Assets` in the request.
#' @param Settings A JSON file, encoded as a `Document` type, with the the settings that you want to apply to your style.
#'
#' The following components are not currently implemented and reserved for future use:
#'
#' - `signUp`
#'
#' - `instructions`
#'
#' - `sessionTimerDisplay`
#'
#' - `languageSelector` (for localization, see [Managed login localization)](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-managed-login.html#managed-login-localization)
#' @param Assets An array of image files that you want to apply to functions like backgrounds, logos, and icons. Each object must also indicate whether it is for dark mode, light mode, or browser-adaptive mode.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_create_managed_login_branding
cognitoidentityprovider_create_managed_login_branding <- function(UserPoolId, ClientId, UseCognitoProvidedValues = NULL, Settings = NULL, Assets = NULL) {
op <- new_operation(
name = "CreateManagedLoginBranding",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$create_managed_login_branding_input(UserPoolId = UserPoolId, ClientId = ClientId, UseCognitoProvidedValues = UseCognitoProvidedValues, Settings = Settings, Assets = Assets)
output <- .cognitoidentityprovider$create_managed_login_branding_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$create_managed_login_branding <- cognitoidentityprovider_create_managed_login_branding
#' Creates a new OAuth2
#'
#' @description
#' Creates a new OAuth2.0 resource server and defines custom scopes within it. Resource servers are associated with custom scopes and machine-to-machine (M2M) authorization. For more information, see [Access control with resource servers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-define-resource-servers.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_create_resource_server/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_create_resource_server/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to create a resource server.
#' @param Identifier [required] A unique resource server identifier for the resource server. The identifier can be an API friendly name like `solar-system-data`. You can also set an API URL like `https://solar-system-data-api.example.com` as your identifier.
#'
#' Amazon Cognito represents scopes in the access token in the format `$resource-server-identifier/$scope`. Longer scope-identifier strings increase the size of your access tokens.
#' @param Name [required] A friendly name for the resource server.
#' @param Scopes A list of custom scopes. Each scope is a key-value map with the keys `ScopeName` and `ScopeDescription`. The name of a custom scope is a combination of `ScopeName` and the resource server `Name` in this request, for example `MyResourceServerName/MyScopeName`.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_create_resource_server
cognitoidentityprovider_create_resource_server <- function(UserPoolId, Identifier, Name, Scopes = NULL) {
op <- new_operation(
name = "CreateResourceServer",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$create_resource_server_input(UserPoolId = UserPoolId, Identifier = Identifier, Name = Name, Scopes = Scopes)
output <- .cognitoidentityprovider$create_resource_server_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$create_resource_server <- cognitoidentityprovider_create_resource_server
#' Creates terms documents for the requested app client
#'
#' @description
#' Creates terms documents for the requested app client. When Terms and conditions and Privacy policy documents are configured, the app client displays links to them in the sign-up page of managed login for the app client.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_create_terms/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_create_terms/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to create terms documents.
#' @param ClientId [required] The ID of the app client where you want to create terms documents. Must be an app client in the requested user pool.
#' @param TermsName [required] A friendly name for the document that you want to create in the current request. Must begin with `terms-of-use` or `privacy-policy` as identification of the document type. Provide URLs for both `terms-of-use` and `privacy-policy` in separate requests.
#' @param TermsSource [required] This parameter is reserved for future use and currently accepts only one value.
#' @param Enforcement [required] This parameter is reserved for future use and currently accepts only one value.
#' @param Links A map of URLs to languages. For each localized language that will view the requested `TermsName`, assign a URL. A selection of `cognito:default` displays for all languages that don't have a language-specific URL.
#'
#' For example, `"cognito:default": "https://terms.example.com", "cognito:spanish": "https://terms.example.com/es"`.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_create_terms
cognitoidentityprovider_create_terms <- function(UserPoolId, ClientId, TermsName, TermsSource, Enforcement, Links = NULL) {
op <- new_operation(
name = "CreateTerms",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$create_terms_input(UserPoolId = UserPoolId, ClientId = ClientId, TermsName = TermsName, TermsSource = TermsSource, Enforcement = Enforcement, Links = Links)
output <- .cognitoidentityprovider$create_terms_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$create_terms <- cognitoidentityprovider_create_terms
#' Creates a user import job
#'
#' @description
#' Creates a user import job. You can import users into user pools from a comma-separated values (CSV) file without adding Amazon Cognito MAU costs to your Amazon Web Services bill.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_create_user_import_job/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_create_user_import_job/) for full documentation.
#'
#' @param JobName [required] A friendly name for the user import job.
#' @param UserPoolId [required] The ID of the user pool that you want to import users into.
#' @param CloudWatchLogsRoleArn [required] You must specify an IAM role that has permission to log import-job results to Amazon CloudWatch Logs. This parameter is the ARN of that role.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_create_user_import_job
cognitoidentityprovider_create_user_import_job <- function(JobName, UserPoolId, CloudWatchLogsRoleArn) {
op <- new_operation(
name = "CreateUserImportJob",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$create_user_import_job_input(JobName = JobName, UserPoolId = UserPoolId, CloudWatchLogsRoleArn = CloudWatchLogsRoleArn)
output <- .cognitoidentityprovider$create_user_import_job_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$create_user_import_job <- cognitoidentityprovider_create_user_import_job
#' Creates a new Amazon Cognito user pool
#'
#' @description
#' Creates a new Amazon Cognito user pool. This operation sets basic and advanced configuration options.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_create_user_pool/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_create_user_pool/) for full documentation.
#'
#' @param PoolName [required] A friendly name for your user pool.
#' @param Policies The password policy and sign-in policy in the user pool. The password policy sets options like password complexity requirements and password history. The sign-in policy sets the options available to applications in [choice-based authentication](https://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flows-selection-sdk.html#authentication-flows-selection-choice).
#' @param DeletionProtection When active, `DeletionProtection` prevents accidental deletion of your user pool. Before you can delete a user pool that you have protected against deletion, you must deactivate this feature.
#'
#' When you try to delete a protected user pool in a [`delete_user_pool`][cognitoidentityprovider_delete_user_pool] API request, Amazon Cognito returns an `InvalidParameterException` error. To delete a protected user pool, send a new [`delete_user_pool`][cognitoidentityprovider_delete_user_pool] request after you deactivate deletion protection in an [`update_user_pool`][cognitoidentityprovider_update_user_pool] API request.
#' @param LambdaConfig A collection of user pool Lambda triggers. Amazon Cognito invokes triggers at several possible stages of authentication operations. Triggers can modify the outcome of the operations that invoked them.
#' @param AutoVerifiedAttributes The attributes that you want your user pool to automatically verify. For more information, see [Verifying contact information at sign-up](https://docs.aws.amazon.com/cognito/latest/developerguide/signing-up-users-in-your-app.html#allowing-users-to-sign-up-and-confirm-themselves).
#' @param AliasAttributes Attributes supported as an alias for this user pool. For more information about alias attributes, see [Customizing sign-in attributes](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html#user-pool-settings-aliases).
#' @param UsernameAttributes Specifies whether a user can use an email address or phone number as a username when they sign up. For more information, see [Customizing sign-in attributes](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html#user-pool-settings-aliases).
#' @param SmsVerificationMessage This parameter is no longer used.
#' @param EmailVerificationMessage This parameter is no longer used.
#' @param EmailVerificationSubject This parameter is no longer used.
#' @param VerificationMessageTemplate The template for the verification message that your user pool delivers to users who set an email address or phone number attribute.
#'
#' Set the email message type that corresponds to your `DefaultEmailOption` selection. For `CONFIRM_WITH_LINK`, specify an `EmailMessageByLink` and leave `EmailMessage` blank. For `CONFIRM_WITH_CODE`, specify an `EmailMessage` and leave `EmailMessageByLink` blank. When you supply both parameters with either choice, Amazon Cognito returns an error.
#' @param SmsAuthenticationMessage The contents of the SMS message that your user pool sends to users in SMS OTP and MFA authentication.
#' @param MfaConfiguration Sets multi-factor authentication (MFA) to be on, off, or optional. When `ON`, all users must set up MFA before they can sign in. When `OPTIONAL`, your application must make a client-side determination of whether a user wants to register an MFA device. For user pools with adaptive authentication with threat protection, choose `OPTIONAL`.
#'
#' When `MfaConfiguration` is `OPTIONAL`, managed login doesn't automatically prompt users to set up MFA. Amazon Cognito generates MFA prompts in API responses and in managed login for users who have chosen and configured a preferred MFA factor.
#' @param UserAttributeUpdateSettings The settings for updates to user attributes. These settings include the property `AttributesRequireVerificationBeforeUpdate`, a user-pool setting that tells Amazon Cognito how to handle changes to the value of your users' email address and phone number attributes. For more information, see [Verifying updates to email addresses and phone numbers](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-email-phone-verification.html#user-pool-settings-verifications-verify-attribute-updates).
#' @param DeviceConfiguration The device-remembering configuration for a user pool. Device remembering or device tracking is a "Remember me on this device" option for user pools that perform authentication with the device key of a trusted device in the back end, instead of a user-provided MFA code. For more information about device authentication, see [Working with user devices in your user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html). A null value indicates that you have deactivated device remembering in your user pool.
#'
#' When you provide a value for any `DeviceConfiguration` field, you activate the Amazon Cognito device-remembering feature. For more information, see [Working with devices](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html).
#' @param EmailConfiguration The email configuration of your user pool. The email configuration type sets your preferred sending method, Amazon Web Services Region, and sender for messages from your user pool.
#' @param SmsConfiguration The settings for your Amazon Cognito user pool to send SMS messages with Amazon Simple Notification Service. To send SMS messages with Amazon SNS in the Amazon Web Services Region that you want, the Amazon Cognito user pool uses an Identity and Access Management (IAM) role in your Amazon Web Services account. For more information see [SMS message settings](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html).
#' @param UserPoolTags The tag keys and values to assign to the user pool. A tag is a label that you can use to categorize and manage user pools in different ways, such as by purpose, owner, environment, or other criteria.
#' @param AdminCreateUserConfig The configuration for administrative creation of users. Includes the template for the invitation message for new users, the duration of temporary passwords, and permitting self-service sign-up.
#' @param Schema An array of attributes for the new user pool. You can add custom attributes and modify the properties of default attributes. The specifications in this parameter set the required attributes in your user pool. For more information, see [Working with user attributes](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html).
#' @param UserPoolAddOns Contains settings for activation of threat protection, including the operating mode and additional authentication types. To log user security information but take no action, set to `AUDIT`. To configure automatic security responses to potentially unwanted traffic to your user pool, set to `ENFORCED`.
#'
#' For more information, see [Adding advanced security to a user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-threat-protection.html). To activate this setting, your user pool must be on the [Plus tier](https://docs.aws.amazon.com/cognito/latest/developerguide/feature-plans-features-plus.html).
#' @param UsernameConfiguration Sets the case sensitivity option for sign-in usernames. When `CaseSensitive` is `false` (case insensitive), users can sign in with any combination of capital and lowercase letters. For example, `username`, `USERNAME`, or `UserName`, or for email, `email@@example.com` or `EMaiL@@eXamplE.Com`. For most use cases, set case sensitivity to `false` as a best practice. When usernames and email addresses are case insensitive, Amazon Cognito treats any variation in case as the same user, and prevents a case variation from being assigned to the same attribute for a different user.
#'
#' When `CaseSensitive` is `true` (case sensitive), Amazon Cognito interprets `USERNAME` and `UserName` as distinct users.
#'
#' This configuration is immutable after you set it.
#' @param AccountRecoverySetting The available verified method a user can use to recover their password when they call [`forgot_password`][cognitoidentityprovider_forgot_password]. You can use this setting to define a preferred method when a user has more than one method available. With this setting, SMS doesn't qualify for a valid password recovery mechanism if the user also has SMS multi-factor authentication (MFA) activated. Email MFA is also disqualifying for account recovery with email. In the absence of this setting, Amazon Cognito uses the legacy behavior to determine the recovery method where SMS is preferred over email.
#'
#' As a best practice, configure both `verified_email` and `verified_phone_number`, with one having a higher priority than the other.
#' @param UserPoolTier The user pool [feature plan](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-sign-in-feature-plans.html), or tier. This parameter determines the eligibility of the user pool for features like managed login, access-token customization, and threat protection. Defaults to `ESSENTIALS`.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_create_user_pool
cognitoidentityprovider_create_user_pool <- function(PoolName, Policies = NULL, DeletionProtection = NULL, LambdaConfig = NULL, AutoVerifiedAttributes = NULL, AliasAttributes = NULL, UsernameAttributes = NULL, SmsVerificationMessage = NULL, EmailVerificationMessage = NULL, EmailVerificationSubject = NULL, VerificationMessageTemplate = NULL, SmsAuthenticationMessage = NULL, MfaConfiguration = NULL, UserAttributeUpdateSettings = NULL, DeviceConfiguration = NULL, EmailConfiguration = NULL, SmsConfiguration = NULL, UserPoolTags = NULL, AdminCreateUserConfig = NULL, Schema = NULL, UserPoolAddOns = NULL, UsernameConfiguration = NULL, AccountRecoverySetting = NULL, UserPoolTier = NULL) {
op <- new_operation(
name = "CreateUserPool",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$create_user_pool_input(PoolName = PoolName, Policies = Policies, DeletionProtection = DeletionProtection, LambdaConfig = LambdaConfig, AutoVerifiedAttributes = AutoVerifiedAttributes, AliasAttributes = AliasAttributes, UsernameAttributes = UsernameAttributes, SmsVerificationMessage = SmsVerificationMessage, EmailVerificationMessage = EmailVerificationMessage, EmailVerificationSubject = EmailVerificationSubject, VerificationMessageTemplate = VerificationMessageTemplate, SmsAuthenticationMessage = SmsAuthenticationMessage, MfaConfiguration = MfaConfiguration, UserAttributeUpdateSettings = UserAttributeUpdateSettings, DeviceConfiguration = DeviceConfiguration, EmailConfiguration = EmailConfiguration, SmsConfiguration = SmsConfiguration, UserPoolTags = UserPoolTags, AdminCreateUserConfig = AdminCreateUserConfig, Schema = Schema, UserPoolAddOns = UserPoolAddOns, UsernameConfiguration = UsernameConfiguration, AccountRecoverySetting = AccountRecoverySetting, UserPoolTier = UserPoolTier)
output <- .cognitoidentityprovider$create_user_pool_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$create_user_pool <- cognitoidentityprovider_create_user_pool
#' Creates an app client in a user pool
#'
#' @description
#' Creates an app client in a user pool. This operation sets basic and advanced configuration options.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_create_user_pool_client/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_create_user_pool_client/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to create an app client.
#' @param ClientName [required] A friendly name for the app client that you want to create.
#' @param GenerateSecret When `true`, generates a client secret for the app client. Client secrets are used with server-side and machine-to-machine applications. Client secrets are automatically generated; you can't specify a secret value. For more information, see [App client types](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-client-apps.html#user-pool-settings-client-app-client-types).
#' @param ClientSecret A custom client secret that you want to use for the app client. You cannot specify both GenerateSecret as true and provide a ClientSecret value.
#' @param RefreshTokenValidity The refresh token time limit. After this limit expires, your user can't use their refresh token. To specify the time unit for `RefreshTokenValidity` as `seconds`, `minutes`, `hours`, or `days`, set a `TokenValidityUnits` value in your API request.
#'
#' For example, when you set `RefreshTokenValidity` as `10` and `TokenValidityUnits` as `days`, your user can refresh their session and retrieve new access and ID tokens for 10 days.
#'
#' The default time unit for `RefreshTokenValidity` in an API request is days. You can't set `RefreshTokenValidity` to 0. If you do, Amazon Cognito overrides the value with the default value of 30 days. *Valid range* is displayed below in seconds.
#'
#' If you don't specify otherwise in the configuration of your app client, your refresh tokens are valid for 30 days.
#' @param AccessTokenValidity The access token time limit. After this limit expires, your user can't use their access token. To specify the time unit for `AccessTokenValidity` as `seconds`, `minutes`, `hours`, or `days`, set a `TokenValidityUnits` value in your API request.
#'
#' For example, when you set `AccessTokenValidity` to `10` and `TokenValidityUnits` to `hours`, your user can authorize access with their access token for 10 hours.
#'
#' The default time unit for `AccessTokenValidity` in an API request is hours. *Valid range* is displayed below in seconds.
#'
#' If you don't specify otherwise in the configuration of your app client, your access tokens are valid for one hour.
#' @param IdTokenValidity The ID token time limit. After this limit expires, your user can't use their ID token. To specify the time unit for `IdTokenValidity` as `seconds`, `minutes`, `hours`, or `days`, set a `TokenValidityUnits` value in your API request.
#'
#' For example, when you set `IdTokenValidity` as `10` and `TokenValidityUnits` as `hours`, your user can authenticate their session with their ID token for 10 hours.
#'
#' The default time unit for `IdTokenValidity` in an API request is hours. *Valid range* is displayed below in seconds.
#'
#' If you don't specify otherwise in the configuration of your app client, your ID tokens are valid for one hour.
#' @param TokenValidityUnits The units that validity times are represented in. The default unit for refresh tokens is days, and the default for ID and access tokens are hours.
#' @param ReadAttributes The list of user attributes that you want your app client to have read access to. After your user authenticates in your app, their access token authorizes them to read their own attribute value for any attribute in this list.
#'
#' When you don't specify the `ReadAttributes` for your app client, your app can read the values of `email_verified`, `phone_number_verified`, and the standard attributes of your user pool. When your user pool app client has read access to these default attributes, `ReadAttributes` doesn't return any information. Amazon Cognito only populates `ReadAttributes` in the API response if you have specified your own custom set of read attributes.
#' @param WriteAttributes The list of user attributes that you want your app client to have write access to. After your user authenticates in your app, their access token authorizes them to set or modify their own attribute value for any attribute in this list.
#'
#' When you don't specify the `WriteAttributes` for your app client, your app can write the values of the Standard attributes of your user pool. When your user pool has write access to these default attributes, `WriteAttributes` doesn't return any information. Amazon Cognito only populates `WriteAttributes` in the API response if you have specified your own custom set of write attributes.
#'
#' If your app client allows users to sign in through an IdP, this array must include all attributes that you have mapped to IdP attributes. Amazon Cognito updates mapped attributes when users sign in to your application through an IdP. If your app client does not have write access to a mapped attribute, Amazon Cognito throws an error when it tries to update the attribute. For more information, see [Specifying IdP Attribute Mappings for Your user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-specifying-attribute-mapping.html).
#' @param ExplicitAuthFlows The [authentication flows](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-authentication-flow-methods.html) that you want your user pool client to support. For each app client in your user pool, you can sign in your users with any combination of one or more flows, including with a user name and Secure Remote Password (SRP), a user name and password, or a custom authentication process that you define with Lambda functions.
#'
#' If you don't specify a value for `ExplicitAuthFlows`, your app client supports `ALLOW_REFRESH_TOKEN_AUTH`, `ALLOW_USER_SRP_AUTH`, and `ALLOW_CUSTOM_AUTH`.
#'
#' The values for authentication flow options include the following.
#'
#' - `ALLOW_USER_AUTH`: Enable selection-based sign-in with `USER_AUTH`. This setting covers username-password, secure remote password (SRP), passwordless, and passkey authentication. This authentiation flow can do username-password and SRP authentication without other `ExplicitAuthFlows` permitting them. For example users can complete an SRP challenge through `USER_AUTH` without the flow `USER_SRP_AUTH` being active for the app client. This flow doesn't include `CUSTOM_AUTH`.
#'
#' To activate this setting, your user pool must be in the [Essentials tier](https://docs.aws.amazon.com/cognito/latest/developerguide/feature-plans-features-essentials.html) or higher.
#'
#' - `ALLOW_ADMIN_USER_PASSWORD_AUTH`: Enable admin based user password authentication flow `ADMIN_USER_PASSWORD_AUTH`. This setting replaces the `ADMIN_NO_SRP_AUTH` setting. With this authentication flow, your app passes a user name and password to Amazon Cognito in the request, instead of using the Secure Remote Password (SRP) protocol to securely transmit the password.
#'
#' - `ALLOW_CUSTOM_AUTH`: Enable Lambda trigger based authentication.
#'
#' - `ALLOW_USER_PASSWORD_AUTH`: Enable user password-based authentication. In this flow, Amazon Cognito receives the password in the request instead of using the SRP protocol to verify passwords.
#'
#' - `ALLOW_USER_SRP_AUTH`: Enable SRP-based authentication.
#'
#' - `ALLOW_REFRESH_TOKEN_AUTH`: Enable authflow to refresh tokens.
#'
#' In some environments, you will see the values `ADMIN_NO_SRP_AUTH`, `CUSTOM_AUTH_FLOW_ONLY`, or `USER_PASSWORD_AUTH`. You can't assign these legacy `ExplicitAuthFlows` values to user pool clients at the same time as values that begin with `ALLOW_`, like `ALLOW_USER_SRP_AUTH`.
#' @param SupportedIdentityProviders A list of provider names for the identity providers (IdPs) that are supported on this client. The following are supported: `COGNITO`, `Facebook`, `Google`, `SignInWithApple`, and `LoginWithAmazon`. You can also specify the names that you configured for the SAML and OIDC IdPs in your user pool, for example `MySAMLIdP` or `MyOIDCIdP`.
#'
#' This parameter sets the IdPs that [managed login](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-managed-login.html) will display on the login page for your app client. The removal of `COGNITO` from this list doesn't prevent authentication operations for local users with the user pools API in an Amazon Web Services SDK. The only way to prevent SDK-based authentication is to block access with a [WAF rule](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-waf.html).
#' @param CallbackURLs A list of allowed redirect, or callback, URLs for managed login authentication. These URLs are the paths where you want to send your users' browsers after they complete authentication with managed login or a third-party IdP. Typically, callback URLs are the home of an application that uses OAuth or OIDC libraries to process authentication outcomes.
#'
#' A redirect URI must meet the following requirements:
#'
#' - Be an absolute URI.
#'
#' - Be registered with the authorization server. Amazon Cognito doesn't accept authorization requests with `redirect_uri` values that aren't in the list of `CallbackURLs` that you provide in this parameter.
#'
#' - Not include a fragment component.
#'
#' See [OAuth 2.0 - Redirection Endpoint](https://datatracker.ietf.org/doc/html/rfc6749#section-3.1.2).
#'
#' Amazon Cognito requires HTTPS over HTTP except for callback URLs to `http://localhost`, `http://127.0.0.1` and `http://[::1]`. These callback URLs are for testing purposes only. You can specify custom TCP ports for your callback URLs.
#'
#' App callback URLs such as `myapp://example` are also supported.
#' @param LogoutURLs A list of allowed logout URLs for managed login authentication. When you pass `logout_uri` and `client_id` parameters to `/logout`, Amazon Cognito signs out your user and redirects them to the logout URL. This parameter describes the URLs that you want to be the permitted targets of `logout_uri`. A typical use of these URLs is when a user selects "Sign out" and you redirect them to your public homepage. For more information, see [Logout endpoint](https://docs.aws.amazon.com/cognito/latest/developerguide/logout-endpoint.html).
#' @param DefaultRedirectURI The default redirect URI. In app clients with one assigned IdP, replaces `redirect_uri` in authentication requests. Must be in the `CallbackURLs` list.
#' @param AllowedOAuthFlows The OAuth grant types that you want your app client to generate for clients in managed login authentication. To create an app client that generates client credentials grants, you must add `client_credentials` as the only allowed OAuth flow.
#'
#' **code**
#'
#' Use a code grant flow, which provides an authorization code as the response. This code can be exchanged for access tokens with the `/oauth2/token` endpoint.
#'
#' **implicit**
#'
#' Issue the access token, and the ID token when scopes like `openid` and `profile` are requested, directly to your user.
#'
#' **client_credentials**
#'
#' Issue the access token from the `/oauth2/token` endpoint directly to a non-person user, authorized by a combination of the client ID and client secret.
#' @param AllowedOAuthScopes The OAuth, OpenID Connect (OIDC), and custom scopes that you want to permit your app client to authorize access with. Scopes govern access control to user pool self-service API operations, user data from the `userInfo` endpoint, and third-party APIs. Scope values include `phone`, `email`, `openid`, and `profile`. The `aws.cognito.signin.user.admin` scope authorizes user self-service operations. Custom scopes with resource servers authorize access to external APIs.
#' @param AllowedOAuthFlowsUserPoolClient Set to `true` to use OAuth 2.0 authorization server features in your app client.
#'
#' This parameter must have a value of `true` before you can configure the following features in your app client.
#'
#' - `CallBackURLs`: Callback URLs.
#'
#' - `LogoutURLs`: Sign-out redirect URLs.
#'
#' - `AllowedOAuthScopes`: OAuth 2.0 scopes.
#'
#' - `AllowedOAuthFlows`: Support for authorization code, implicit, and client credentials OAuth 2.0 grants.
#'
#' To use authorization server features, configure one of these features in the Amazon Cognito console or set `AllowedOAuthFlowsUserPoolClient` to `true` in a [`create_user_pool_client`][cognitoidentityprovider_create_user_pool_client] or [`update_user_pool_client`][cognitoidentityprovider_update_user_pool_client] API request. If you don't set a value for `AllowedOAuthFlowsUserPoolClient` in a request with the CLI or SDKs, it defaults to `false`. When `false`, only SDK-based API sign-in is permitted.
#' @param AnalyticsConfiguration The user pool analytics configuration for collecting metrics and sending them to your Amazon Pinpoint campaign.
#'
#' In Amazon Web Services Regions where Amazon Pinpoint isn't available, user pools might not have access to analytics or might be configurable with campaigns in the US East (N. Virginia) Region. For more information, see [Using Amazon Pinpoint analytics](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-pinpoint-integration.html).
#' @param PreventUserExistenceErrors When `ENABLED`, suppresses messages that might indicate a valid user exists when someone attempts sign-in. This parameters sets your preference for the errors and responses that you want Amazon Cognito APIs to return during authentication, account confirmation, and password recovery when the user doesn't exist in the user pool. When set to `ENABLED` and the user doesn't exist, authentication returns an error indicating either the username or password was incorrect. Account confirmation and password recovery return a response indicating a code was sent to a simulated destination. When set to `LEGACY`, those APIs return a `UserNotFoundException` exception if the user doesn't exist in the user pool.
#'
#' Defaults to `LEGACY`.
#' @param EnableTokenRevocation Activates or deactivates [token revocation](https://docs.aws.amazon.com/cognito/latest/developerguide/token-revocation.html) in the target app client.
#'
#' If you don't include this parameter, token revocation is automatically activated for the new user pool client.
#' @param EnablePropagateAdditionalUserContextData When `true`, your application can include additional `UserContextData` in authentication requests. This data includes the IP address, and contributes to analysis by threat protection features. For more information about propagation of user context data, see [Adding session data to API requests](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-adaptive-authentication.html#user-pool-settings-adaptive-authentication-device-fingerprint). If you don’t include this parameter, you can't send the source IP address to Amazon Cognito threat protection features. You can only activate `EnablePropagateAdditionalUserContextData` in an app client that has a client secret.
#' @param AuthSessionValidity Amazon Cognito creates a session token for each API request in an authentication flow. `AuthSessionValidity` is the duration, in minutes, of that session token. Your user pool native user must respond to each authentication challenge before the session expires.
#' @param RefreshTokenRotation The configuration of your app client for refresh token rotation. When enabled, your app client issues new ID, access, and refresh tokens when users renew their sessions with refresh tokens. When disabled, token refresh issues only ID and access tokens.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_create_user_pool_client
cognitoidentityprovider_create_user_pool_client <- function(UserPoolId, ClientName, GenerateSecret = NULL, ClientSecret = NULL, RefreshTokenValidity = NULL, AccessTokenValidity = NULL, IdTokenValidity = NULL, TokenValidityUnits = NULL, ReadAttributes = NULL, WriteAttributes = NULL, ExplicitAuthFlows = NULL, SupportedIdentityProviders = NULL, CallbackURLs = NULL, LogoutURLs = NULL, DefaultRedirectURI = NULL, AllowedOAuthFlows = NULL, AllowedOAuthScopes = NULL, AllowedOAuthFlowsUserPoolClient = NULL, AnalyticsConfiguration = NULL, PreventUserExistenceErrors = NULL, EnableTokenRevocation = NULL, EnablePropagateAdditionalUserContextData = NULL, AuthSessionValidity = NULL, RefreshTokenRotation = NULL) {
op <- new_operation(
name = "CreateUserPoolClient",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$create_user_pool_client_input(UserPoolId = UserPoolId, ClientName = ClientName, GenerateSecret = GenerateSecret, ClientSecret = ClientSecret, RefreshTokenValidity = RefreshTokenValidity, AccessTokenValidity = AccessTokenValidity, IdTokenValidity = IdTokenValidity, TokenValidityUnits = TokenValidityUnits, ReadAttributes = ReadAttributes, WriteAttributes = WriteAttributes, ExplicitAuthFlows = ExplicitAuthFlows, SupportedIdentityProviders = SupportedIdentityProviders, CallbackURLs = CallbackURLs, LogoutURLs = LogoutURLs, DefaultRedirectURI = DefaultRedirectURI, AllowedOAuthFlows = AllowedOAuthFlows, AllowedOAuthScopes = AllowedOAuthScopes, AllowedOAuthFlowsUserPoolClient = AllowedOAuthFlowsUserPoolClient, AnalyticsConfiguration = AnalyticsConfiguration, PreventUserExistenceErrors = PreventUserExistenceErrors, EnableTokenRevocation = EnableTokenRevocation, EnablePropagateAdditionalUserContextData = EnablePropagateAdditionalUserContextData, AuthSessionValidity = AuthSessionValidity, RefreshTokenRotation = RefreshTokenRotation)
output <- .cognitoidentityprovider$create_user_pool_client_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$create_user_pool_client <- cognitoidentityprovider_create_user_pool_client
#' A user pool domain hosts managed login, an authorization server and web
#' server for authentication in your application
#'
#' @description
#' A user pool domain hosts managed login, an authorization server and web server for authentication in your application. This operation creates a new user pool prefix domain or custom domain and sets the managed login branding version. Set the branding version to `1` for hosted UI (classic) or `2` for managed login. When you choose a custom domain, you must provide an SSL certificate in the US East (N. Virginia) Amazon Web Services Region in your request.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_create_user_pool_domain/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_create_user_pool_domain/) for full documentation.
#'
#' @param Domain [required] The domain string. For custom domains, this is the fully-qualified domain name, such as `auth.example.com`. For prefix domains, this is the prefix alone, such as `myprefix`. A prefix value of `myprefix` for a user pool in the `us-east-1` Region results in a domain of `myprefix.auth.us-east-1.amazoncognito.com`.
#' @param UserPoolId [required] The ID of the user pool where you want to add a domain.
#' @param ManagedLoginVersion The version of managed login branding that you want to apply to your domain. A value of `1` indicates hosted UI (classic) and a version of `2` indicates managed login.
#'
#' Managed login requires that your user pool be configured for any [feature plan](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-sign-in-feature-plans.html) other than `Lite`.
#' @param CustomDomainConfig The configuration for a custom domain. Configures your domain with an Certificate Manager certificate in the `us-east-1` Region.
#'
#' Provide this parameter only if you want to use a [custom domain](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-add-custom-domain.html) for your user pool. Otherwise, you can omit this parameter and use a [prefix domain](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-assign-domain-prefix.html) instead.
#'
#' When you create a custom domain, the passkey RP ID defaults to the custom domain. If you had a prefix domain active, this will cause passkey integration for your prefix domain to stop working due to a mismatch in RP ID. To keep the prefix domain passkey integration working, you can explicitly set RP ID to the prefix domain.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_create_user_pool_domain
cognitoidentityprovider_create_user_pool_domain <- function(Domain, UserPoolId, ManagedLoginVersion = NULL, CustomDomainConfig = NULL) {
op <- new_operation(
name = "CreateUserPoolDomain",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$create_user_pool_domain_input(Domain = Domain, UserPoolId = UserPoolId, ManagedLoginVersion = ManagedLoginVersion, CustomDomainConfig = CustomDomainConfig)
output <- .cognitoidentityprovider$create_user_pool_domain_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$create_user_pool_domain <- cognitoidentityprovider_create_user_pool_domain
#' Deletes a group from the specified user pool
#'
#' @description
#' Deletes a group from the specified user pool. When you delete a group, that group no longer contributes to users' `cognito:preferred_group` or `cognito:groups` claims, and no longer influence access-control decision that are based on group membership. For more information about user pool groups, see [Adding groups to a user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-user-groups.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_delete_group/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_delete_group/) for full documentation.
#'
#' @param GroupName [required] The name of the group that you want to delete.
#' @param UserPoolId [required] The ID of the user pool where you want to delete the group.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_delete_group
cognitoidentityprovider_delete_group <- function(GroupName, UserPoolId) {
op <- new_operation(
name = "DeleteGroup",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$delete_group_input(GroupName = GroupName, UserPoolId = UserPoolId)
output <- .cognitoidentityprovider$delete_group_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$delete_group <- cognitoidentityprovider_delete_group
#' Deletes a user pool identity provider (IdP)
#'
#' @description
#' Deletes a user pool identity provider (IdP). After you delete an IdP, users can no longer sign in to your user pool through that IdP. For more information about user pool IdPs, see [Third-party IdP sign-in](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_delete_identity_provider/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_delete_identity_provider/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to delete the identity provider.
#' @param ProviderName [required] The name of the IdP that you want to delete.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_delete_identity_provider
cognitoidentityprovider_delete_identity_provider <- function(UserPoolId, ProviderName) {
op <- new_operation(
name = "DeleteIdentityProvider",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$delete_identity_provider_input(UserPoolId = UserPoolId, ProviderName = ProviderName)
output <- .cognitoidentityprovider$delete_identity_provider_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$delete_identity_provider <- cognitoidentityprovider_delete_identity_provider
#' Deletes a managed login branding style
#'
#' @description
#' Deletes a managed login branding style. When you delete a style, you delete the branding association for an app client. When an app client doesn't have a style assigned, your managed login pages for that app client are nonfunctional until you create a new style or switch the domain branding version.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_delete_managed_login_branding/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_delete_managed_login_branding/) for full documentation.
#'
#' @param ManagedLoginBrandingId [required] The ID of the managed login branding style that you want to delete.
#' @param UserPoolId [required] The ID of the user pool that contains the managed login branding style that you want to delete.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_delete_managed_login_branding
cognitoidentityprovider_delete_managed_login_branding <- function(ManagedLoginBrandingId, UserPoolId) {
op <- new_operation(
name = "DeleteManagedLoginBranding",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$delete_managed_login_branding_input(ManagedLoginBrandingId = ManagedLoginBrandingId, UserPoolId = UserPoolId)
output <- .cognitoidentityprovider$delete_managed_login_branding_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$delete_managed_login_branding <- cognitoidentityprovider_delete_managed_login_branding
#' Deletes a resource server
#'
#' @description
#' Deletes a resource server. After you delete a resource server, users can no longer generate access tokens with scopes that are associate with that resource server.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_delete_resource_server/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_delete_resource_server/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to delete the resource server.
#' @param Identifier [required] The identifier of the resource server that you want to delete.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_delete_resource_server
cognitoidentityprovider_delete_resource_server <- function(UserPoolId, Identifier) {
op <- new_operation(
name = "DeleteResourceServer",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$delete_resource_server_input(UserPoolId = UserPoolId, Identifier = Identifier)
output <- .cognitoidentityprovider$delete_resource_server_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$delete_resource_server <- cognitoidentityprovider_delete_resource_server
#' Deletes the terms documents with the requested ID from your app client
#'
#' @description
#' Deletes the terms documents with the requested ID from your app client.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_delete_terms/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_delete_terms/) for full documentation.
#'
#' @param TermsId [required] The ID of the terms documents that you want to delete.
#' @param UserPoolId [required] The ID of the user pool that contains the terms documents that you want to delete.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_delete_terms
cognitoidentityprovider_delete_terms <- function(TermsId, UserPoolId) {
op <- new_operation(
name = "DeleteTerms",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$delete_terms_input(TermsId = TermsId, UserPoolId = UserPoolId)
output <- .cognitoidentityprovider$delete_terms_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$delete_terms <- cognitoidentityprovider_delete_terms
#' Deletes the profile of the currently signed-in user
#'
#' @description
#' Deletes the profile of the currently signed-in user. A deleted user profile can no longer be used to sign in and can't be restored.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_delete_user/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_delete_user/) for full documentation.
#'
#' @param AccessToken [required] A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for `aws.cognito.signin.user.admin`.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_delete_user
cognitoidentityprovider_delete_user <- function(AccessToken) {
op <- new_operation(
name = "DeleteUser",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$delete_user_input(AccessToken = AccessToken)
output <- .cognitoidentityprovider$delete_user_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$delete_user <- cognitoidentityprovider_delete_user
#' Deletes attributes from the currently signed-in user
#'
#' @description
#' Deletes attributes from the currently signed-in user. For example, your application can submit a request to this operation when a user wants to remove their `birthdate` attribute value.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_delete_user_attributes/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_delete_user_attributes/) for full documentation.
#'
#' @param UserAttributeNames [required] An array of strings representing the user attribute names you want to delete.
#'
#' For custom attributes, you must prepend the `custom:` prefix to the attribute name, for example `custom:department`.
#' @param AccessToken [required] A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for `aws.cognito.signin.user.admin`.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_delete_user_attributes
cognitoidentityprovider_delete_user_attributes <- function(UserAttributeNames, AccessToken) {
op <- new_operation(
name = "DeleteUserAttributes",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$delete_user_attributes_input(UserAttributeNames = UserAttributeNames, AccessToken = AccessToken)
output <- .cognitoidentityprovider$delete_user_attributes_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$delete_user_attributes <- cognitoidentityprovider_delete_user_attributes
#' Deletes a user pool
#'
#' @description
#' Deletes a user pool. After you delete a user pool, users can no longer sign in to any associated applications.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_delete_user_pool/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_delete_user_pool/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool that you want to delete.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_delete_user_pool
cognitoidentityprovider_delete_user_pool <- function(UserPoolId) {
op <- new_operation(
name = "DeleteUserPool",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$delete_user_pool_input(UserPoolId = UserPoolId)
output <- .cognitoidentityprovider$delete_user_pool_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$delete_user_pool <- cognitoidentityprovider_delete_user_pool
#' Deletes a user pool app client
#'
#' @description
#' Deletes a user pool app client. After you delete an app client, users can no longer sign in to the associated application.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_delete_user_pool_client/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_delete_user_pool_client/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to delete the client.
#' @param ClientId [required] The ID of the user pool app client that you want to delete.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_delete_user_pool_client
cognitoidentityprovider_delete_user_pool_client <- function(UserPoolId, ClientId) {
op <- new_operation(
name = "DeleteUserPoolClient",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$delete_user_pool_client_input(UserPoolId = UserPoolId, ClientId = ClientId)
output <- .cognitoidentityprovider$delete_user_pool_client_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$delete_user_pool_client <- cognitoidentityprovider_delete_user_pool_client
#' Deletes a specific client secret from a user pool app client
#'
#' @description
#' Deletes a specific client secret from a user pool app client. You cannot delete the last remaining secret for an app client.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_delete_user_pool_client_secret/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_delete_user_pool_client_secret/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool that contains the app client.
#' @param ClientId [required] The ID of the app client from which you want to delete the secret.
#' @param ClientSecretId [required] The unique identifier of the client secret you want to delete.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_delete_user_pool_client_secret
cognitoidentityprovider_delete_user_pool_client_secret <- function(UserPoolId, ClientId, ClientSecretId) {
op <- new_operation(
name = "DeleteUserPoolClientSecret",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$delete_user_pool_client_secret_input(UserPoolId = UserPoolId, ClientId = ClientId, ClientSecretId = ClientSecretId)
output <- .cognitoidentityprovider$delete_user_pool_client_secret_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$delete_user_pool_client_secret <- cognitoidentityprovider_delete_user_pool_client_secret
#' Given a user pool ID and domain identifier, deletes a user pool domain
#'
#' @description
#' Given a user pool ID and domain identifier, deletes a user pool domain. After you delete a user pool domain, your managed login pages and authorization server are no longer available.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_delete_user_pool_domain/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_delete_user_pool_domain/) for full documentation.
#'
#' @param Domain [required] The domain that you want to delete. For custom domains, this is the fully-qualified domain name like `auth.example.com`. For Amazon Cognito prefix domains, this is the prefix alone, like `myprefix`.
#' @param UserPoolId [required] The ID of the user pool where you want to delete the domain.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_delete_user_pool_domain
cognitoidentityprovider_delete_user_pool_domain <- function(Domain, UserPoolId) {
op <- new_operation(
name = "DeleteUserPoolDomain",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$delete_user_pool_domain_input(Domain = Domain, UserPoolId = UserPoolId)
output <- .cognitoidentityprovider$delete_user_pool_domain_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$delete_user_pool_domain <- cognitoidentityprovider_delete_user_pool_domain
#' Deletes a registered passkey, or WebAuthn, authenticator for the
#' currently signed-in user
#'
#' @description
#' Deletes a registered passkey, or WebAuthn, authenticator for the currently signed-in user.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_delete_web_authn_credential/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_delete_web_authn_credential/) for full documentation.
#'
#' @param AccessToken [required] A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for `aws.cognito.signin.user.admin`.
#' @param CredentialId [required] The unique identifier of the passkey that you want to delete.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_delete_web_authn_credential
cognitoidentityprovider_delete_web_authn_credential <- function(AccessToken, CredentialId) {
op <- new_operation(
name = "DeleteWebAuthnCredential",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$delete_web_authn_credential_input(AccessToken = AccessToken, CredentialId = CredentialId)
output <- .cognitoidentityprovider$delete_web_authn_credential_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$delete_web_authn_credential <- cognitoidentityprovider_delete_web_authn_credential
#' Given a user pool ID and identity provider (IdP) name, returns details
#' about the IdP
#'
#' @description
#' Given a user pool ID and identity provider (IdP) name, returns details about the IdP.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_describe_identity_provider/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_describe_identity_provider/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool that has the IdP that you want to describe..
#' @param ProviderName [required] The name of the IdP that you want to describe.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_describe_identity_provider
cognitoidentityprovider_describe_identity_provider <- function(UserPoolId, ProviderName) {
op <- new_operation(
name = "DescribeIdentityProvider",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$describe_identity_provider_input(UserPoolId = UserPoolId, ProviderName = ProviderName)
output <- .cognitoidentityprovider$describe_identity_provider_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$describe_identity_provider <- cognitoidentityprovider_describe_identity_provider
#' Given the ID of a managed login branding style, returns detailed
#' information about the style
#'
#' @description
#' Given the ID of a managed login branding style, returns detailed information about the style.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_describe_managed_login_branding/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_describe_managed_login_branding/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool that contains the managed login branding style that you want to get information about.
#' @param ManagedLoginBrandingId [required] The ID of the managed login branding style that you want to get more information about.
#' @param ReturnMergedResources When `true`, returns values for branding options that are unchanged from Amazon Cognito defaults. When `false` or when you omit this parameter, returns only values that you customized in your branding style.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_describe_managed_login_branding
cognitoidentityprovider_describe_managed_login_branding <- function(UserPoolId, ManagedLoginBrandingId, ReturnMergedResources = NULL) {
op <- new_operation(
name = "DescribeManagedLoginBranding",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$describe_managed_login_branding_input(UserPoolId = UserPoolId, ManagedLoginBrandingId = ManagedLoginBrandingId, ReturnMergedResources = ReturnMergedResources)
output <- .cognitoidentityprovider$describe_managed_login_branding_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$describe_managed_login_branding <- cognitoidentityprovider_describe_managed_login_branding
#' Given the ID of a user pool app client, returns detailed information
#' about the style assigned to the app client
#'
#' @description
#' Given the ID of a user pool app client, returns detailed information about the style assigned to the app client.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_describe_managed_login_branding_by_client/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_describe_managed_login_branding_by_client/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool that contains the app client where you want more information about the managed login branding style.
#' @param ClientId [required] The app client that's assigned to the branding style that you want more information about.
#' @param ReturnMergedResources When `true`, returns values for branding options that are unchanged from Amazon Cognito defaults. When `false` or when you omit this parameter, returns only values that you customized in your branding style.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_desc_mana_logi_bran_by_clie
cognitoidentityprovider_describe_managed_login_branding_by_client <- function(UserPoolId, ClientId, ReturnMergedResources = NULL) {
op <- new_operation(
name = "DescribeManagedLoginBrandingByClient",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$describe_managed_login_branding_by_client_input(UserPoolId = UserPoolId, ClientId = ClientId, ReturnMergedResources = ReturnMergedResources)
output <- .cognitoidentityprovider$describe_managed_login_branding_by_client_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$describe_managed_login_branding_by_client <- cognitoidentityprovider_describe_managed_login_branding_by_client
#' Describes a resource server
#'
#' @description
#' Describes a resource server. For more information about resource servers, see [Access control with resource servers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-define-resource-servers.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_describe_resource_server/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_describe_resource_server/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool that hosts the resource server.
#' @param Identifier [required] A unique resource server identifier for the resource server. The identifier can be an API friendly name like `solar-system-data`. You can also set an API URL like `https://solar-system-data-api.example.com` as your identifier.
#'
#' Amazon Cognito represents scopes in the access token in the format `$resource-server-identifier/$scope`. Longer scope-identifier strings increase the size of your access tokens.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_describe_resource_server
cognitoidentityprovider_describe_resource_server <- function(UserPoolId, Identifier) {
op <- new_operation(
name = "DescribeResourceServer",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$describe_resource_server_input(UserPoolId = UserPoolId, Identifier = Identifier)
output <- .cognitoidentityprovider$describe_resource_server_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$describe_resource_server <- cognitoidentityprovider_describe_resource_server
#' Given an app client or user pool ID where threat protection is
#' configured, describes the risk configuration
#'
#' @description
#' Given an app client or user pool ID where threat protection is configured, describes the risk configuration. This operation returns details about adaptive authentication, compromised credentials, and IP-address allow- and denylists. For more information about threat protection, see [Threat protection](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-threat-protection.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_describe_risk_configuration/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_describe_risk_configuration/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool with the risk configuration that you want to inspect. You can apply default risk configuration at the user pool level and further customize it from user pool defaults at the app-client level. Specify `ClientId` to inspect client-level configuration, or `UserPoolId` to inspect pool-level configuration.
#' @param ClientId The ID of the app client with the risk configuration that you want to inspect. You can apply default risk configuration at the user pool level and further customize it from user pool defaults at the app-client level. Specify `ClientId` to inspect client-level configuration, or `UserPoolId` to inspect pool-level configuration.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_describe_risk_configuration
cognitoidentityprovider_describe_risk_configuration <- function(UserPoolId, ClientId = NULL) {
op <- new_operation(
name = "DescribeRiskConfiguration",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$describe_risk_configuration_input(UserPoolId = UserPoolId, ClientId = ClientId)
output <- .cognitoidentityprovider$describe_risk_configuration_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$describe_risk_configuration <- cognitoidentityprovider_describe_risk_configuration
#' Returns details for the requested terms documents ID
#'
#' @description
#' Returns details for the requested terms documents ID. For more information, see [Terms documents](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-managed-login.html#managed-login-terms-documents).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_describe_terms/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_describe_terms/) for full documentation.
#'
#' @param TermsId [required] The ID of the terms documents that you want to describe.
#' @param UserPoolId [required] The ID of the user pool that contains the terms documents that you want to describe.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_describe_terms
cognitoidentityprovider_describe_terms <- function(TermsId, UserPoolId) {
op <- new_operation(
name = "DescribeTerms",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$describe_terms_input(TermsId = TermsId, UserPoolId = UserPoolId)
output <- .cognitoidentityprovider$describe_terms_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$describe_terms <- cognitoidentityprovider_describe_terms
#' Describes a user import job
#'
#' @description
#' Describes a user import job. For more information about user CSV import, see [Importing users from a CSV file](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-using-import-tool.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_describe_user_import_job/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_describe_user_import_job/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool that's associated with the import job.
#' @param JobId [required] The Id of the user import job that you want to describe.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_describe_user_import_job
cognitoidentityprovider_describe_user_import_job <- function(UserPoolId, JobId) {
op <- new_operation(
name = "DescribeUserImportJob",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$describe_user_import_job_input(UserPoolId = UserPoolId, JobId = JobId)
output <- .cognitoidentityprovider$describe_user_import_job_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$describe_user_import_job <- cognitoidentityprovider_describe_user_import_job
#' Given a user pool ID, returns configuration information
#'
#' @description
#' Given a user pool ID, returns configuration information. This operation is useful when you want to inspect an existing user pool and programmatically replicate the configuration to another user pool.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_describe_user_pool/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_describe_user_pool/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool you want to describe.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_describe_user_pool
cognitoidentityprovider_describe_user_pool <- function(UserPoolId) {
op <- new_operation(
name = "DescribeUserPool",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$describe_user_pool_input(UserPoolId = UserPoolId)
output <- .cognitoidentityprovider$describe_user_pool_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$describe_user_pool <- cognitoidentityprovider_describe_user_pool
#' Given an app client ID, returns configuration information
#'
#' @description
#' Given an app client ID, returns configuration information. This operation is useful when you want to inspect an existing app client and programmatically replicate the configuration to another app client. For more information about app clients, see [App clients](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-client-apps.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_describe_user_pool_client/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_describe_user_pool_client/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool that contains the app client you want to describe.
#' @param ClientId [required] The ID of the app client that you want to describe.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_describe_user_pool_client
cognitoidentityprovider_describe_user_pool_client <- function(UserPoolId, ClientId) {
op <- new_operation(
name = "DescribeUserPoolClient",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$describe_user_pool_client_input(UserPoolId = UserPoolId, ClientId = ClientId)
output <- .cognitoidentityprovider$describe_user_pool_client_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$describe_user_pool_client <- cognitoidentityprovider_describe_user_pool_client
#' Given a user pool domain name, returns information about the domain
#' configuration
#'
#' @description
#' Given a user pool domain name, returns information about the domain configuration.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_describe_user_pool_domain/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_describe_user_pool_domain/) for full documentation.
#'
#' @param Domain [required] The domain that you want to describe. For custom domains, this is the fully-qualified domain name, such as `auth.example.com`. For Amazon Cognito prefix domains, this is the prefix alone, such as `auth`.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_describe_user_pool_domain
cognitoidentityprovider_describe_user_pool_domain <- function(Domain) {
op <- new_operation(
name = "DescribeUserPoolDomain",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$describe_user_pool_domain_input(Domain = Domain)
output <- .cognitoidentityprovider$describe_user_pool_domain_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$describe_user_pool_domain <- cognitoidentityprovider_describe_user_pool_domain
#' Given a device key, deletes a remembered device as the currently
#' signed-in user
#'
#' @description
#' Given a device key, deletes a remembered device as the currently signed-in user. For more information about device authentication, see [Working with user devices in your user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_forget_device/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_forget_device/) for full documentation.
#'
#' @param AccessToken A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for `aws.cognito.signin.user.admin`.
#' @param DeviceKey [required] The unique identifier, or device key, of the device that the user wants to forget.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_forget_device
cognitoidentityprovider_forget_device <- function(AccessToken = NULL, DeviceKey) {
op <- new_operation(
name = "ForgetDevice",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$forget_device_input(AccessToken = AccessToken, DeviceKey = DeviceKey)
output <- .cognitoidentityprovider$forget_device_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$forget_device <- cognitoidentityprovider_forget_device
#' Sends a password-reset confirmation code to the email address or phone
#' number of the requested username
#'
#' @description
#' Sends a password-reset confirmation code to the email address or phone number of the requested username. The message delivery method is determined by the user's available attributes and the `AccountRecoverySetting` configuration of the user pool.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_forgot_password/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_forgot_password/) for full documentation.
#'
#' @param ClientId [required] The ID of the user pool app client associated with the current signed-in user.
#' @param SecretHash A keyed-hash message authentication code (HMAC) calculated using the secret key of a user pool client and username plus the client ID in the message. For more information about `SecretHash`, see [Computing secret hash values](https://docs.aws.amazon.com/cognito/latest/developerguide/signing-up-users-in-your-app.html#cognito-user-pools-computing-secret-hash).
#' @param UserContextData Contextual data about your user session like the device fingerprint, IP address, or location. Amazon Cognito threat protection evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests.
#'
#' For more information, see [Collecting data for threat protection in applications](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-viewing-threat-protection-app.html).
#' @param Username [required] The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value must be the `sub` of a local user or the username of a user from a third-party IdP.
#' @param AnalyticsMetadata Information that supports analytics outcomes with Amazon Pinpoint, including the user's endpoint ID. The endpoint ID is a destination for Amazon Pinpoint push notifications, for example a device identifier, email address, or phone number.
#' @param ClientMetadata A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers. You create custom workflows by assigning Lambda functions to user pool triggers.
#'
#' When Amazon Cognito invokes any of these functions, it passes a JSON payload, which the function receives as input. This payload contains a `clientMetadata` attribute that provides the data that you assigned to the ClientMetadata parameter in your request. In your function code, you can process the `clientMetadata` value to enhance your workflow for your specific needs.
#'
#' To review the Lambda trigger types that Amazon Cognito invokes at runtime with API requests, see [Connecting API actions to Lambda triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-working-with-lambda-triggers.html#lambda-triggers-by-event) in the *Amazon Cognito Developer Guide*.
#'
#' When you use the `ClientMetadata` parameter, note that Amazon Cognito won't do the following:
#'
#' - Store the `ClientMetadata` value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the `ClientMetadata` parameter serves no purpose.
#'
#' - Validate the `ClientMetadata` value.
#'
#' - Encrypt the `ClientMetadata` value. Don't send sensitive information in this parameter.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_forgot_password
cognitoidentityprovider_forgot_password <- function(ClientId, SecretHash = NULL, UserContextData = NULL, Username, AnalyticsMetadata = NULL, ClientMetadata = NULL) {
op <- new_operation(
name = "ForgotPassword",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$forgot_password_input(ClientId = ClientId, SecretHash = SecretHash, UserContextData = UserContextData, Username = Username, AnalyticsMetadata = AnalyticsMetadata, ClientMetadata = ClientMetadata)
output <- .cognitoidentityprovider$forgot_password_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$forgot_password <- cognitoidentityprovider_forgot_password
#' Given a user pool ID, generates a comma-separated value (CSV) list
#' populated with available user attributes in the user pool
#'
#' @description
#' Given a user pool ID, generates a comma-separated value (CSV) list populated with available user attributes in the user pool. This list is the header for the CSV file that determines the users in a user import job. Save the content of `CSVHeader` in the response as a `.csv` file and populate it with the usernames and attributes of users that you want to import. For more information about CSV user import, see [Importing users from a CSV file](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-using-import-tool.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_get_csv_header/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_get_csv_header/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool that you want to import users into.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_get_csv_header
cognitoidentityprovider_get_csv_header <- function(UserPoolId) {
op <- new_operation(
name = "GetCSVHeader",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$get_csv_header_input(UserPoolId = UserPoolId)
output <- .cognitoidentityprovider$get_csv_header_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$get_csv_header <- cognitoidentityprovider_get_csv_header
#' Given a device key, returns information about a remembered device for
#' the current user
#'
#' @description
#' Given a device key, returns information about a remembered device for the current user. For more information about device authentication, see [Working with user devices in your user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_get_device/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_get_device/) for full documentation.
#'
#' @param DeviceKey [required] The key of the device that you want to get information about.
#' @param AccessToken A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for `aws.cognito.signin.user.admin`.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_get_device
cognitoidentityprovider_get_device <- function(DeviceKey, AccessToken = NULL) {
op <- new_operation(
name = "GetDevice",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$get_device_input(DeviceKey = DeviceKey, AccessToken = AccessToken)
output <- .cognitoidentityprovider$get_device_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$get_device <- cognitoidentityprovider_get_device
#' Given a user pool ID and a group name, returns information about the
#' user group
#'
#' @description
#' Given a user pool ID and a group name, returns information about the user group.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_get_group/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_get_group/) for full documentation.
#'
#' @param GroupName [required] The name of the group that you want to get information about.
#' @param UserPoolId [required] The ID of the user pool that contains the group that you want to query.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_get_group
cognitoidentityprovider_get_group <- function(GroupName, UserPoolId) {
op <- new_operation(
name = "GetGroup",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$get_group_input(GroupName = GroupName, UserPoolId = UserPoolId)
output <- .cognitoidentityprovider$get_group_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$get_group <- cognitoidentityprovider_get_group
#' Given the identifier of an identity provider (IdP), for example
#' examplecorp, returns information about the user pool configuration for
#' that IdP
#'
#' @description
#' Given the identifier of an identity provider (IdP), for example `examplecorp`, returns information about the user pool configuration for that IdP. For more information about IdPs, see [Third-party IdP sign-in](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_get_identity_provider_by_identifier/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_get_identity_provider_by_identifier/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to get information about the IdP.
#' @param IdpIdentifier [required] The identifier that you assigned to your user pool. The identifier is an alternative name for an IdP that is distinct from the IdP name. For example, an IdP with a name of `MyIdP` might have an identifier of the email domain `example.com`.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_get_identity_provider_by_identifier
cognitoidentityprovider_get_identity_provider_by_identifier <- function(UserPoolId, IdpIdentifier) {
op <- new_operation(
name = "GetIdentityProviderByIdentifier",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$get_identity_provider_by_identifier_input(UserPoolId = UserPoolId, IdpIdentifier = IdpIdentifier)
output <- .cognitoidentityprovider$get_identity_provider_by_identifier_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$get_identity_provider_by_identifier <- cognitoidentityprovider_get_identity_provider_by_identifier
#' Given a user pool ID, returns the logging configuration
#'
#' @description
#' Given a user pool ID, returns the logging configuration. User pools can export message-delivery error and threat-protection activity logs to external Amazon Web Services services. For more information, see [Exporting user pool logs](https://docs.aws.amazon.com/cognito/latest/developerguide/exporting-quotas-and-usage.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_get_log_delivery_configuration/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_get_log_delivery_configuration/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool that has the logging configuration that you want to view.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_get_log_delivery_configuration
cognitoidentityprovider_get_log_delivery_configuration <- function(UserPoolId) {
op <- new_operation(
name = "GetLogDeliveryConfiguration",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$get_log_delivery_configuration_input(UserPoolId = UserPoolId)
output <- .cognitoidentityprovider$get_log_delivery_configuration_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$get_log_delivery_configuration <- cognitoidentityprovider_get_log_delivery_configuration
#' Given a user pool ID, returns the signing certificate for SAML 2
#'
#' @description
#' Given a user pool ID, returns the signing certificate for SAML 2.0 federation.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_get_signing_certificate/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_get_signing_certificate/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to view the signing certificate.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_get_signing_certificate
cognitoidentityprovider_get_signing_certificate <- function(UserPoolId) {
op <- new_operation(
name = "GetSigningCertificate",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$get_signing_certificate_input(UserPoolId = UserPoolId)
output <- .cognitoidentityprovider$get_signing_certificate_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$get_signing_certificate <- cognitoidentityprovider_get_signing_certificate
#' Given a refresh token, issues new ID, access, and optionally refresh
#' tokens for the user who owns the submitted token
#'
#' @description
#' Given a refresh token, issues new ID, access, and optionally refresh tokens for the user who owns the submitted token. This operation issues a new refresh token and invalidates the original refresh token after an optional grace period when refresh token rotation is enabled. If refresh token rotation is disabled, issues new ID and access tokens only.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_get_tokens_from_refresh_token/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_get_tokens_from_refresh_token/) for full documentation.
#'
#' @param RefreshToken [required] A valid refresh token that can authorize the request for new tokens. When refresh token rotation is active in the requested app client, this token is invalidated after the request is complete and after an optional grace period.
#' @param ClientId [required] The app client that issued the refresh token to the user who wants to request new tokens.
#' @param ClientSecret The client secret of the requested app client, if the client has a secret.
#' @param DeviceKey When you enable device remembering, Amazon Cognito issues a device key that you can use for device authentication that bypasses multi-factor authentication (MFA). To implement [`get_tokens_from_refresh_token`][cognitoidentityprovider_get_tokens_from_refresh_token] in a user pool with device remembering, you must capture the device key from the initial authentication request. If your application doesn't provide the key of a registered device, Amazon Cognito issues a new one. You must provide the confirmed device key in this request if device remembering is enabled in your user pool.
#'
#' For more information about device remembering, see [Working with devices](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html).
#' @param ClientMetadata A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers. You create custom workflows by assigning Lambda functions to user pool triggers.
#'
#' When Amazon Cognito invokes any of these functions, it passes a JSON payload, which the function receives as input. This payload contains a `clientMetadata` attribute that provides the data that you assigned to the ClientMetadata parameter in your request. In your function code, you can process the `clientMetadata` value to enhance your workflow for your specific needs.
#'
#' To review the Lambda trigger types that Amazon Cognito invokes at runtime with API requests, see [Connecting API actions to Lambda triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-working-with-lambda-triggers.html#lambda-triggers-by-event) in the *Amazon Cognito Developer Guide*.
#'
#' When you use the `ClientMetadata` parameter, note that Amazon Cognito won't do the following:
#'
#' - Store the `ClientMetadata` value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the `ClientMetadata` parameter serves no purpose.
#'
#' - Validate the `ClientMetadata` value.
#'
#' - Encrypt the `ClientMetadata` value. Don't send sensitive information in this parameter.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_get_tokens_from_refresh_token
cognitoidentityprovider_get_tokens_from_refresh_token <- function(RefreshToken, ClientId, ClientSecret = NULL, DeviceKey = NULL, ClientMetadata = NULL) {
op <- new_operation(
name = "GetTokensFromRefreshToken",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$get_tokens_from_refresh_token_input(RefreshToken = RefreshToken, ClientId = ClientId, ClientSecret = ClientSecret, DeviceKey = DeviceKey, ClientMetadata = ClientMetadata)
output <- .cognitoidentityprovider$get_tokens_from_refresh_token_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$get_tokens_from_refresh_token <- cognitoidentityprovider_get_tokens_from_refresh_token
#' Given a user pool ID or app client, returns information about classic
#' hosted UI branding that you applied, if any
#'
#' @description
#' Given a user pool ID or app client, returns information about classic hosted UI branding that you applied, if any. Returns user-pool level branding information if no app client branding is applied, or if you don't specify an app client ID. Returns an empty object if you haven't applied hosted UI branding to either the client or the user pool. For more information, see [Hosted UI (classic) branding](https://docs.aws.amazon.com/cognito/latest/developerguide/hosted-ui-classic-branding.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_get_ui_customization/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_get_ui_customization/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool that you want to query for branding settings.
#' @param ClientId The ID of the app client that you want to query for branding settings.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_get_ui_customization
cognitoidentityprovider_get_ui_customization <- function(UserPoolId, ClientId = NULL) {
op <- new_operation(
name = "GetUICustomization",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$get_ui_customization_input(UserPoolId = UserPoolId, ClientId = ClientId)
output <- .cognitoidentityprovider$get_ui_customization_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$get_ui_customization <- cognitoidentityprovider_get_ui_customization
#' Gets user attributes and and MFA settings for the currently signed-in
#' user
#'
#' @description
#' Gets user attributes and and MFA settings for the currently signed-in user.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_get_user/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_get_user/) for full documentation.
#'
#' @param AccessToken [required] A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for `aws.cognito.signin.user.admin`.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_get_user
cognitoidentityprovider_get_user <- function(AccessToken) {
op <- new_operation(
name = "GetUser",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$get_user_input(AccessToken = AccessToken)
output <- .cognitoidentityprovider$get_user_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$get_user <- cognitoidentityprovider_get_user
#' Given an attribute name, sends a user attribute verification code for
#' the specified attribute name to the currently signed-in user
#'
#' @description
#' Given an attribute name, sends a user attribute verification code for the specified attribute name to the currently signed-in user.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_get_user_attribute_verification_code/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_get_user_attribute_verification_code/) for full documentation.
#'
#' @param AccessToken [required] A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for `aws.cognito.signin.user.admin`.
#' @param AttributeName [required] The name of the attribute that the user wants to verify, for example `email`.
#' @param ClientMetadata A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers. You create custom workflows by assigning Lambda functions to user pool triggers.
#'
#' When Amazon Cognito invokes any of these functions, it passes a JSON payload, which the function receives as input. This payload contains a `clientMetadata` attribute that provides the data that you assigned to the ClientMetadata parameter in your request. In your function code, you can process the `clientMetadata` value to enhance your workflow for your specific needs.
#'
#' To review the Lambda trigger types that Amazon Cognito invokes at runtime with API requests, see [Connecting API actions to Lambda triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-working-with-lambda-triggers.html#lambda-triggers-by-event) in the *Amazon Cognito Developer Guide*.
#'
#' When you use the `ClientMetadata` parameter, note that Amazon Cognito won't do the following:
#'
#' - Store the `ClientMetadata` value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the `ClientMetadata` parameter serves no purpose.
#'
#' - Validate the `ClientMetadata` value.
#'
#' - Encrypt the `ClientMetadata` value. Don't send sensitive information in this parameter.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_get_user_attribute_verification_code
cognitoidentityprovider_get_user_attribute_verification_code <- function(AccessToken, AttributeName, ClientMetadata = NULL) {
op <- new_operation(
name = "GetUserAttributeVerificationCode",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$get_user_attribute_verification_code_input(AccessToken = AccessToken, AttributeName = AttributeName, ClientMetadata = ClientMetadata)
output <- .cognitoidentityprovider$get_user_attribute_verification_code_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$get_user_attribute_verification_code <- cognitoidentityprovider_get_user_attribute_verification_code
#' Lists the authentication options for the currently signed-in user
#'
#' @description
#' Lists the authentication options for the currently signed-in user. Returns the following:
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_get_user_auth_factors/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_get_user_auth_factors/) for full documentation.
#'
#' @param AccessToken [required] A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for `aws.cognito.signin.user.admin`.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_get_user_auth_factors
cognitoidentityprovider_get_user_auth_factors <- function(AccessToken) {
op <- new_operation(
name = "GetUserAuthFactors",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$get_user_auth_factors_input(AccessToken = AccessToken)
output <- .cognitoidentityprovider$get_user_auth_factors_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$get_user_auth_factors <- cognitoidentityprovider_get_user_auth_factors
#' Given a user pool ID, returns configuration for sign-in with WebAuthn
#' authenticators and for multi-factor authentication (MFA)
#'
#' @description
#' Given a user pool ID, returns configuration for sign-in with WebAuthn authenticators and for multi-factor authentication (MFA). This operation describes the following:
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_get_user_pool_mfa_config/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_get_user_pool_mfa_config/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to query WebAuthn and MFA configuration.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_get_user_pool_mfa_config
cognitoidentityprovider_get_user_pool_mfa_config <- function(UserPoolId) {
op <- new_operation(
name = "GetUserPoolMfaConfig",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$get_user_pool_mfa_config_input(UserPoolId = UserPoolId)
output <- .cognitoidentityprovider$get_user_pool_mfa_config_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$get_user_pool_mfa_config <- cognitoidentityprovider_get_user_pool_mfa_config
#' Invalidates the identity, access, and refresh tokens that Amazon Cognito
#' issued to a user
#'
#' @description
#' 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.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_global_sign_out/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_global_sign_out/) for full documentation.
#'
#' @param AccessToken [required] A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for `aws.cognito.signin.user.admin`.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_global_sign_out
cognitoidentityprovider_global_sign_out <- function(AccessToken) {
op <- new_operation(
name = "GlobalSignOut",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$global_sign_out_input(AccessToken = AccessToken)
output <- .cognitoidentityprovider$global_sign_out_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$global_sign_out <- cognitoidentityprovider_global_sign_out
#' Declares an authentication flow and initiates sign-in for a user in the
#' Amazon Cognito user directory
#'
#' @description
#' Declares an authentication flow and initiates sign-in for a user in the Amazon Cognito user directory. Amazon Cognito might respond with an additional challenge or an `AuthenticationResult` that contains the outcome of a successful authentication. You can't sign in a user with a federated IdP with [`initiate_auth`][cognitoidentityprovider_initiate_auth]. For more information, see [Authentication](https://docs.aws.amazon.com/cognito/latest/developerguide/authentication.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_initiate_auth/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_initiate_auth/) for full documentation.
#'
#' @param AuthFlow [required] The authentication flow that you want to initiate. Each `AuthFlow` has linked `AuthParameters` that you must submit. The following are some example flows.
#'
#' **USER_AUTH**
#'
#' The entry point for [choice-based authentication](https://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flows-selection-sdk.html#authentication-flows-selection-choice) with passwords, one-time passwords, and WebAuthn authenticators. Request a preferred authentication type or review available authentication types. From the offered authentication types, select one in a challenge response and then authenticate with that method in an additional challenge response. To activate this setting, your user pool must be in the [Essentials tier](https://docs.aws.amazon.com/cognito/latest/developerguide/feature-plans-features-essentials.html) or higher.
#'
#' **USER_SRP_AUTH**
#'
#' Username-password authentication with the Secure Remote Password (SRP) protocol. For more information, see [Use SRP password verification in custom authentication flow](https://docs.aws.amazon.com/cognito/latest/developerguide/authentication.html#Using-SRP-password-verification-in-custom-authentication-flow).
#'
#' **REFRESH_TOKEN_AUTH and REFRESH_TOKEN**
#'
#' Receive new ID and access tokens when you pass a `REFRESH_TOKEN` parameter with a valid refresh token as the value. For more information, see [Using the refresh token](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-using-the-refresh-token.html).
#'
#' **CUSTOM_AUTH**
#'
#' Custom authentication with Lambda triggers. For more information, see [Custom authentication challenge Lambda triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-challenge.html).
#'
#' **USER_PASSWORD_AUTH**
#'
#' Client-side username-password authentication with the password sent directly in the request. For more information about client-side and server-side authentication, see [SDK authorization models](https://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flows-public-server-side.html).
#'
#' `ADMIN_USER_PASSWORD_AUTH` is a flow type of [`admin_initiate_auth`][cognitoidentityprovider_admin_initiate_auth] and isn't valid for InitiateAuth. `ADMIN_NO_SRP_AUTH` is a legacy server-side username-password flow and isn't valid for InitiateAuth.
#' @param AuthParameters The authentication parameters. These are inputs corresponding to the `AuthFlow` that you're invoking.
#'
#' The following are some authentication flows and their parameters. Add a `SECRET_HASH` parameter if your app client has a client secret. Add `DEVICE_KEY` if you want to bypass multi-factor authentication with a remembered device.
#'
#' **USER_AUTH**
#'
#' - `USERNAME` (required)
#'
#' - `PREFERRED_CHALLENGE`. If you don't provide a value for `PREFERRED_CHALLENGE`, Amazon Cognito responds with the `AvailableChallenges` parameter that specifies the available sign-in methods.
#'
#' **USER_SRP_AUTH**
#'
#' - `USERNAME` (required)
#'
#' - `SRP_A` (required)
#'
#' **USER_PASSWORD_AUTH**
#'
#' - `USERNAME` (required)
#'
#' - `PASSWORD` (required)
#'
#' **REFRESH_TOKEN_AUTH/REFRESH_TOKEN**
#'
#' - `REFRESH_TOKEN`(required)
#'
#' **CUSTOM_AUTH**
#'
#' - `USERNAME` (required)
#'
#' - `ChallengeName: SRP_A` (when doing SRP authentication before custom challenges)
#'
#' - `SRP_A: (An SRP_A value)` (when doing SRP authentication before custom challenges)
#'
#' For more information about `SECRET_HASH`, see [Computing secret hash values](https://docs.aws.amazon.com/cognito/latest/developerguide/signing-up-users-in-your-app.html#cognito-user-pools-computing-secret-hash). For information about `DEVICE_KEY`, see [Working with user devices in your user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html).
#' @param ClientMetadata A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers. You create custom workflows by assigning Lambda functions to user pool triggers.
#'
#' When Amazon Cognito invokes any of these functions, it passes a JSON payload, which the function receives as input. This payload contains a `clientMetadata` attribute that provides the data that you assigned to the ClientMetadata parameter in your request. In your function code, you can process the `clientMetadata` value to enhance your workflow for your specific needs.
#'
#' To review the Lambda trigger types that Amazon Cognito invokes at runtime with API requests, see [Connecting API actions to Lambda triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-working-with-lambda-triggers.html#lambda-triggers-by-event) in the *Amazon Cognito Developer Guide*.
#'
#' The `ClientMetadata` value is passed as input to the functions for only the following triggers:
#'
#' - Pre signup
#'
#' - Pre authentication
#'
#' - User migration
#'
#' This request also invokes the functions for the following triggers, but doesn't pass `ClientMetadata`:
#'
#' - Post authentication
#'
#' - Custom message
#'
#' - Pre token generation
#'
#' - Create auth challenge
#'
#' - Define auth challenge
#'
#' - Custom email sender
#'
#' - Custom SMS sender
#'
#' When you use the `ClientMetadata` parameter, note that Amazon Cognito won't do the following:
#'
#' - Store the `ClientMetadata` value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the `ClientMetadata` parameter serves no purpose.
#'
#' - Validate the `ClientMetadata` value.
#'
#' - Encrypt the `ClientMetadata` value. Don't send sensitive information in this parameter.
#' @param ClientId [required] The ID of the app client that your user wants to sign in to.
#' @param AnalyticsMetadata Information that supports analytics outcomes with Amazon Pinpoint, including the user's endpoint ID. The endpoint ID is a destination for Amazon Pinpoint push notifications, for example a device identifier, email address, or phone number.
#' @param UserContextData Contextual data about your user session like the device fingerprint, IP address, or location. Amazon Cognito threat protection evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests.
#'
#' For more information, see [Collecting data for threat protection in applications](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-viewing-threat-protection-app.html).
#' @param Session The optional session ID from a [`confirm_sign_up`][cognitoidentityprovider_confirm_sign_up] API request. You can sign in a user directly from the sign-up process with the `USER_AUTH` authentication flow. When you pass the session ID to [`initiate_auth`][cognitoidentityprovider_initiate_auth], Amazon Cognito assumes the SMS or email message one-time verification password from [`confirm_sign_up`][cognitoidentityprovider_confirm_sign_up] as the primary authentication factor. You're not required to submit this code a second time. This option is only valid for users who have confirmed their sign-up and are signing in for the first time within the authentication flow session duration of the session ID.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_initiate_auth
cognitoidentityprovider_initiate_auth <- function(AuthFlow, AuthParameters = NULL, ClientMetadata = NULL, ClientId, AnalyticsMetadata = NULL, UserContextData = NULL, Session = NULL) {
op <- new_operation(
name = "InitiateAuth",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$initiate_auth_input(AuthFlow = AuthFlow, AuthParameters = AuthParameters, ClientMetadata = ClientMetadata, ClientId = ClientId, AnalyticsMetadata = AnalyticsMetadata, UserContextData = UserContextData, Session = Session)
output <- .cognitoidentityprovider$initiate_auth_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$initiate_auth <- cognitoidentityprovider_initiate_auth
#' Lists the devices that Amazon Cognito has registered to the currently
#' signed-in user
#'
#' @description
#' Lists the devices that Amazon Cognito has registered to the currently signed-in user. For more information about device authentication, see [Working with user devices in your user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_list_devices/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_list_devices/) for full documentation.
#'
#' @param AccessToken [required] A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for `aws.cognito.signin.user.admin`.
#' @param Limit The maximum number of devices that you want Amazon Cognito to return in the response.
#' @param PaginationToken This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_list_devices
cognitoidentityprovider_list_devices <- function(AccessToken, Limit = NULL, PaginationToken = NULL) {
op <- new_operation(
name = "ListDevices",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$list_devices_input(AccessToken = AccessToken, Limit = Limit, PaginationToken = PaginationToken)
output <- .cognitoidentityprovider$list_devices_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$list_devices <- cognitoidentityprovider_list_devices
#' Given a user pool ID, returns user pool groups and their details
#'
#' @description
#' Given a user pool ID, returns user pool groups and their details.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_list_groups/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_list_groups/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to list user groups.
#' @param Limit The maximum number of groups that you want Amazon Cognito to return in the response.
#' @param NextToken This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_list_groups
cognitoidentityprovider_list_groups <- function(UserPoolId, Limit = NULL, NextToken = NULL) {
op <- new_operation(
name = "ListGroups",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(input_token = "NextToken", limit_key = "Limit", output_token = "NextToken", result_key = "Groups"),
stream_api = FALSE
)
input <- .cognitoidentityprovider$list_groups_input(UserPoolId = UserPoolId, Limit = Limit, NextToken = NextToken)
output <- .cognitoidentityprovider$list_groups_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$list_groups <- cognitoidentityprovider_list_groups
#' Given a user pool ID, returns information about configured identity
#' providers (IdPs)
#'
#' @description
#' Given a user pool ID, returns information about configured identity providers (IdPs). For more information about IdPs, see [Third-party IdP sign-in](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_list_identity_providers/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_list_identity_providers/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to list IdPs.
#' @param MaxResults The maximum number of IdPs that you want Amazon Cognito to return in the response.
#' @param NextToken This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_list_identity_providers
cognitoidentityprovider_list_identity_providers <- function(UserPoolId, MaxResults = NULL, NextToken = NULL) {
op <- new_operation(
name = "ListIdentityProviders",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(input_token = "NextToken", limit_key = "MaxResults", output_token = "NextToken", result_key = "Providers"),
stream_api = FALSE
)
input <- .cognitoidentityprovider$list_identity_providers_input(UserPoolId = UserPoolId, MaxResults = MaxResults, NextToken = NextToken)
output <- .cognitoidentityprovider$list_identity_providers_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$list_identity_providers <- cognitoidentityprovider_list_identity_providers
#' Given a user pool ID, returns all resource servers and their details
#'
#' @description
#' Given a user pool ID, returns all resource servers and their details. For more information about resource servers, see [Access control with resource servers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-define-resource-servers.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_list_resource_servers/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_list_resource_servers/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to list resource servers.
#' @param MaxResults The maximum number of resource servers that you want Amazon Cognito to return in the response.
#' @param NextToken This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_list_resource_servers
cognitoidentityprovider_list_resource_servers <- function(UserPoolId, MaxResults = NULL, NextToken = NULL) {
op <- new_operation(
name = "ListResourceServers",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(input_token = "NextToken", limit_key = "MaxResults", output_token = "NextToken", result_key = "ResourceServers"),
stream_api = FALSE
)
input <- .cognitoidentityprovider$list_resource_servers_input(UserPoolId = UserPoolId, MaxResults = MaxResults, NextToken = NextToken)
output <- .cognitoidentityprovider$list_resource_servers_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$list_resource_servers <- cognitoidentityprovider_list_resource_servers
#' Lists the tags that are assigned to an Amazon Cognito user pool
#'
#' @description
#' Lists the tags that are assigned to an Amazon Cognito user pool. For more information, see [Tagging resources](https://docs.aws.amazon.com/cognito/latest/developerguide/tagging.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_list_tags_for_resource/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_list_tags_for_resource/) for full documentation.
#'
#' @param ResourceArn [required] The Amazon Resource Name (ARN) of the user pool that the tags are assigned to.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_list_tags_for_resource
cognitoidentityprovider_list_tags_for_resource <- function(ResourceArn) {
op <- new_operation(
name = "ListTagsForResource",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$list_tags_for_resource_input(ResourceArn = ResourceArn)
output <- .cognitoidentityprovider$list_tags_for_resource_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$list_tags_for_resource <- cognitoidentityprovider_list_tags_for_resource
#' Returns details about all terms documents for the requested user pool
#'
#' @description
#' Returns details about all terms documents for the requested user pool.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_list_terms/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_list_terms/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to list terms documents.
#' @param MaxResults The maximum number of terms documents that you want Amazon Cognito to return in the response.
#' @param NextToken This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_list_terms
cognitoidentityprovider_list_terms <- function(UserPoolId, MaxResults = NULL, NextToken = NULL) {
op <- new_operation(
name = "ListTerms",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$list_terms_input(UserPoolId = UserPoolId, MaxResults = MaxResults, NextToken = NextToken)
output <- .cognitoidentityprovider$list_terms_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$list_terms <- cognitoidentityprovider_list_terms
#' Given a user pool ID, returns user import jobs and their details
#'
#' @description
#' Given a user pool ID, returns user import jobs and their details. Import jobs are retained in user pool configuration so that you can stage, stop, start, review, and delete them. For more information about user import, see [Importing users from a CSV file](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-using-import-tool.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_list_user_import_jobs/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_list_user_import_jobs/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to list import jobs.
#' @param MaxResults [required] The maximum number of import jobs that you want Amazon Cognito to return in the response.
#' @param PaginationToken This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_list_user_import_jobs
cognitoidentityprovider_list_user_import_jobs <- function(UserPoolId, MaxResults, PaginationToken = NULL) {
op <- new_operation(
name = "ListUserImportJobs",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$list_user_import_jobs_input(UserPoolId = UserPoolId, MaxResults = MaxResults, PaginationToken = PaginationToken)
output <- .cognitoidentityprovider$list_user_import_jobs_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$list_user_import_jobs <- cognitoidentityprovider_list_user_import_jobs
#' Lists all client secrets associated with a user pool app client
#'
#' @description
#' Lists all client secrets associated with a user pool app client. Returns metadata about the secrets. The response does not include pagination tokens as there are only 2 secrets at any given time and we return both with every ListUserPoolClientSecrets call. For security reasons, the response never reveals the actual secret value in ClientSecretValue.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_list_user_pool_client_secrets/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_list_user_pool_client_secrets/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool that contains the app client.
#' @param ClientId [required] The ID of the app client whose secrets you want to list.
#' @param NextToken This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_list_user_pool_client_secrets
cognitoidentityprovider_list_user_pool_client_secrets <- function(UserPoolId, ClientId, NextToken = NULL) {
op <- new_operation(
name = "ListUserPoolClientSecrets",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$list_user_pool_client_secrets_input(UserPoolId = UserPoolId, ClientId = ClientId, NextToken = NextToken)
output <- .cognitoidentityprovider$list_user_pool_client_secrets_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$list_user_pool_client_secrets <- cognitoidentityprovider_list_user_pool_client_secrets
#' Given a user pool ID, lists app clients
#'
#' @description
#' Given a user pool ID, lists app clients. App clients are sets of rules for the access that you want a user pool to grant to one application. For more information, see [App clients](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-client-apps.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_list_user_pool_clients/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_list_user_pool_clients/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to list user pool clients.
#' @param MaxResults The maximum number of app clients that you want Amazon Cognito to return in the response.
#' @param NextToken This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_list_user_pool_clients
cognitoidentityprovider_list_user_pool_clients <- function(UserPoolId, MaxResults = NULL, NextToken = NULL) {
op <- new_operation(
name = "ListUserPoolClients",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(input_token = "NextToken", limit_key = "MaxResults", output_token = "NextToken", result_key = "UserPoolClients"),
stream_api = FALSE
)
input <- .cognitoidentityprovider$list_user_pool_clients_input(UserPoolId = UserPoolId, MaxResults = MaxResults, NextToken = NextToken)
output <- .cognitoidentityprovider$list_user_pool_clients_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$list_user_pool_clients <- cognitoidentityprovider_list_user_pool_clients
#' Lists user pools and their details in the current Amazon Web Services
#' account
#'
#' @description
#' Lists user pools and their details in the current Amazon Web Services account.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_list_user_pools/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_list_user_pools/) for full documentation.
#'
#' @param NextToken This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.
#' @param MaxResults [required] The maximum number of user pools that you want Amazon Cognito to return in the response.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_list_user_pools
cognitoidentityprovider_list_user_pools <- function(NextToken = NULL, MaxResults) {
op <- new_operation(
name = "ListUserPools",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(input_token = "NextToken", limit_key = "MaxResults", output_token = "NextToken", result_key = "UserPools"),
stream_api = FALSE
)
input <- .cognitoidentityprovider$list_user_pools_input(NextToken = NextToken, MaxResults = MaxResults)
output <- .cognitoidentityprovider$list_user_pools_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$list_user_pools <- cognitoidentityprovider_list_user_pools
#' Given a user pool ID, returns a list of users and their basic details in
#' a user pool
#'
#' @description
#' Given a user pool ID, returns a list of users and their basic details in a user pool.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_list_users/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_list_users/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to display or search for users.
#' @param AttributesToGet A JSON array of user attribute names, for example `given_name`, that you want Amazon Cognito to include in the response for each user. When you don't provide an `AttributesToGet` parameter, Amazon Cognito returns all attributes for each user.
#'
#' Use `AttributesToGet` with required attributes in your user pool, or in conjunction with `Filter`. Amazon Cognito returns an error if not all users in the results have set a value for the attribute you request. Attributes that you can't filter on, including custom attributes, must have a value set in every user profile before an `AttributesToGet` parameter returns results.
#' @param Limit The maximum number of users that you want Amazon Cognito to return in the response. In some SDK contexts, this operation might return fewer items than you specify in the `Limit` parameter without having reached the end of the full list. If the response contains a `PaginationToken`, then there are more results.
#' @param PaginationToken This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.
#' @param Filter A filter string of the form `\"AttributeName Filter-Type \"AttributeValue\"`. Quotation marks within the filter string must be escaped using the backslash (`\`) character. For example, `"family_name = \"Reddy\""`.
#'
#' - *AttributeName*: The name of the attribute to search for. You can only search for one attribute at a time.
#'
#' - *Filter-Type*: For an exact match, use `=`, for example, "`given_name = \"Jon\"`". For a prefix ("starts with") match, use `^=`, for example, "`given_name ^= \"Jon\"`".
#'
#' - *AttributeValue*: The attribute value that must be matched for each user.
#'
#' If the filter string is empty, [`list_users`][cognitoidentityprovider_list_users] returns all users in the user pool.
#'
#' You can only search for the following standard attributes:
#'
#' - `username` (case-sensitive)
#'
#' - `email`
#'
#' - `phone_number`
#'
#' - `name`
#'
#' - `given_name`
#'
#' - `family_name`
#'
#' - `preferred_username`
#'
#' - `cognito:user_status` (called **Status** in the Console) (case-insensitive)
#'
#' - `status (called Enabled in the Console) (case-sensitive)`
#'
#' - `sub`
#'
#' Custom attributes aren't searchable.
#'
#' You can also list users with a client-side filter. The server-side filter matches no more than one attribute. For an advanced search, use a client-side filter with the `--query` parameter of the `list-users` action in the CLI. When you use a client-side filter, ListUsers returns a paginated list of zero or more users. You can receive multiple pages in a row with zero results. Repeat the query with each pagination token that is returned until you receive a null pagination token value, and then review the combined result.
#'
#' For more information about server-side and client-side filtering, see [FilteringCLI output](https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html) in the [Command Line Interface User Guide](https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html).
#'
#' For more information, see [Searching for Users Using the ListUsers API](https://docs.aws.amazon.com/cognito/latest/developerguide/how-to-manage-user-accounts.html#cognito-user-pools-searching-for-users-using-listusers-api) and [Examples of Using the ListUsers API](https://docs.aws.amazon.com/cognito/latest/developerguide/how-to-manage-user-accounts.html#cognito-user-pools-searching-for-users-listusers-api-examples) in the *Amazon Cognito Developer Guide*.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_list_users
cognitoidentityprovider_list_users <- function(UserPoolId, AttributesToGet = NULL, Limit = NULL, PaginationToken = NULL, Filter = NULL) {
op <- new_operation(
name = "ListUsers",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(input_token = "PaginationToken", limit_key = "Limit", output_token = "PaginationToken", result_key = "Users"),
stream_api = FALSE
)
input <- .cognitoidentityprovider$list_users_input(UserPoolId = UserPoolId, AttributesToGet = AttributesToGet, Limit = Limit, PaginationToken = PaginationToken, Filter = Filter)
output <- .cognitoidentityprovider$list_users_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$list_users <- cognitoidentityprovider_list_users
#' Given a user pool ID and a group name, returns a list of users in the
#' group
#'
#' @description
#' Given a user pool ID and a group name, returns a list of users in the group. For more information about user pool groups, see [Adding groups to a user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-user-groups.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_list_users_in_group/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_list_users_in_group/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to view the membership of the requested group.
#' @param GroupName [required] The name of the group that you want to query for user membership.
#' @param Limit The maximum number of groups that you want Amazon Cognito to return in the response. In some SDK contexts, this operation might return fewer items than you specify in the `Limit` parameter without having reached the end of the full list. If the response contains a `PaginationToken`, then there are more results.
#' @param NextToken This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_list_users_in_group
cognitoidentityprovider_list_users_in_group <- function(UserPoolId, GroupName, Limit = NULL, NextToken = NULL) {
op <- new_operation(
name = "ListUsersInGroup",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(input_token = "NextToken", limit_key = "Limit", output_token = "NextToken", result_key = "Users"),
stream_api = FALSE
)
input <- .cognitoidentityprovider$list_users_in_group_input(UserPoolId = UserPoolId, GroupName = GroupName, Limit = Limit, NextToken = NextToken)
output <- .cognitoidentityprovider$list_users_in_group_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$list_users_in_group <- cognitoidentityprovider_list_users_in_group
#' Generates a list of the currently signed-in user's registered passkey,
#' or WebAuthn, credentials
#'
#' @description
#' Generates a list of the currently signed-in user's registered passkey, or WebAuthn, credentials.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_list_web_authn_credentials/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_list_web_authn_credentials/) for full documentation.
#'
#' @param AccessToken [required] A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for `aws.cognito.signin.user.admin`.
#' @param NextToken This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.
#' @param MaxResults The maximum number of the user's passkey credentials that you want to return.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_list_web_authn_credentials
cognitoidentityprovider_list_web_authn_credentials <- function(AccessToken, NextToken = NULL, MaxResults = NULL) {
op <- new_operation(
name = "ListWebAuthnCredentials",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$list_web_authn_credentials_input(AccessToken = AccessToken, NextToken = NextToken, MaxResults = MaxResults)
output <- .cognitoidentityprovider$list_web_authn_credentials_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$list_web_authn_credentials <- cognitoidentityprovider_list_web_authn_credentials
#' Resends the code that confirms a new account for a user who has signed
#' up in your user pool
#'
#' @description
#' Resends the code that confirms a new account for a user who has signed up in your user pool. Amazon Cognito sends confirmation codes to the user attribute in the `AutoVerifiedAttributes` property of your user pool. When you prompt new users for the confirmation code, include a "Resend code" option that generates a call to this API operation.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_resend_confirmation_code/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_resend_confirmation_code/) for full documentation.
#'
#' @param ClientId [required] The ID of the user pool app client where the user signed up.
#' @param SecretHash A keyed-hash message authentication code (HMAC) calculated using the secret key of a user pool client and username plus the client ID in the message. For more information about `SecretHash`, see [Computing secret hash values](https://docs.aws.amazon.com/cognito/latest/developerguide/signing-up-users-in-your-app.html#cognito-user-pools-computing-secret-hash).
#' @param UserContextData Contextual data about your user session like the device fingerprint, IP address, or location. Amazon Cognito threat protection evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests.
#'
#' For more information, see [Collecting data for threat protection in applications](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-viewing-threat-protection-app.html).
#' @param Username [required] The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value must be the `sub` of a local user or the username of a user from a third-party IdP.
#' @param AnalyticsMetadata Information that supports analytics outcomes with Amazon Pinpoint, including the user's endpoint ID. The endpoint ID is a destination for Amazon Pinpoint push notifications, for example a device identifier, email address, or phone number.
#' @param ClientMetadata A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers. You create custom workflows by assigning Lambda functions to user pool triggers.
#'
#' When Amazon Cognito invokes any of these functions, it passes a JSON payload, which the function receives as input. This payload contains a `clientMetadata` attribute that provides the data that you assigned to the ClientMetadata parameter in your request. In your function code, you can process the `clientMetadata` value to enhance your workflow for your specific needs.
#'
#' To review the Lambda trigger types that Amazon Cognito invokes at runtime with API requests, see [Connecting API actions to Lambda triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-working-with-lambda-triggers.html#lambda-triggers-by-event) in the *Amazon Cognito Developer Guide*.
#'
#' When you use the `ClientMetadata` parameter, note that Amazon Cognito won't do the following:
#'
#' - Store the `ClientMetadata` value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the `ClientMetadata` parameter serves no purpose.
#'
#' - Validate the `ClientMetadata` value.
#'
#' - Encrypt the `ClientMetadata` value. Don't send sensitive information in this parameter.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_resend_confirmation_code
cognitoidentityprovider_resend_confirmation_code <- function(ClientId, SecretHash = NULL, UserContextData = NULL, Username, AnalyticsMetadata = NULL, ClientMetadata = NULL) {
op <- new_operation(
name = "ResendConfirmationCode",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$resend_confirmation_code_input(ClientId = ClientId, SecretHash = SecretHash, UserContextData = UserContextData, Username = Username, AnalyticsMetadata = AnalyticsMetadata, ClientMetadata = ClientMetadata)
output <- .cognitoidentityprovider$resend_confirmation_code_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$resend_confirmation_code <- cognitoidentityprovider_resend_confirmation_code
#' 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
#'
#' @description
#' 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 [`respond_to_auth_challenge`][cognitoidentityprovider_respond_to_auth_challenge] 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.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_respond_to_auth_challenge/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_respond_to_auth_challenge/) for full documentation.
#'
#' @param ClientId [required] The ID of the app client where the user is signing in.
#' @param ChallengeName [required] The name of the challenge that you are responding to.
#'
#' You can't respond to an `ADMIN_NO_SRP_AUTH` challenge with this operation.
#'
#' Possible challenges include the following:
#'
#' All of the following challenges require `USERNAME` and, when the app client has a client secret, `SECRET_HASH` in the parameters. Include a `DEVICE_KEY` for device authentication.
#'
#' - `WEB_AUTHN`: Respond to the challenge with the results of a successful authentication with a WebAuthn authenticator, or passkey, as `CREDENTIAL`. Examples of WebAuthn authenticators include biometric devices and security keys.
#'
#' - `PASSWORD`: Respond with the user's password as `PASSWORD`.
#'
#' - `PASSWORD_SRP`: Respond with the initial SRP secret as `SRP_A`.
#'
#' - `SELECT_CHALLENGE`: Respond with a challenge selection as `ANSWER`. It must be one of the challenge types in the `AvailableChallenges` response parameter. Add the parameters of the selected challenge, for example `USERNAME` and `SMS_OTP`.
#'
#' - `SMS_MFA`: Respond with the code that your user pool delivered in an SMS message, as `SMS_MFA_CODE`
#'
#' - `EMAIL_MFA`: Respond with the code that your user pool delivered in an email message, as `EMAIL_MFA_CODE`
#'
#' - `EMAIL_OTP`: Respond with the code that your user pool delivered in an email message, as `EMAIL_OTP_CODE` .
#'
#' - `SMS_OTP`: Respond with the code that your user pool delivered in an SMS message, as `SMS_OTP_CODE`.
#'
#' - `PASSWORD_VERIFIER`: Respond with the second stage of SRP secrets as `PASSWORD_CLAIM_SIGNATURE`, `PASSWORD_CLAIM_SECRET_BLOCK`, and `TIMESTAMP`.
#'
#' - `CUSTOM_CHALLENGE`: This is returned if your custom authentication flow determines that the user should pass another challenge before tokens are issued. The parameters of the challenge are determined by your Lambda function and issued in the `ChallengeParameters` of a challenge response.
#'
#' - `DEVICE_SRP_AUTH`: Respond with the initial parameters of device SRP authentication. For more information, see [Signing in with a device](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html#user-pools-remembered-devices-signing-in-with-a-device).
#'
#' - `DEVICE_PASSWORD_VERIFIER`: Respond with `PASSWORD_CLAIM_SIGNATURE`, `PASSWORD_CLAIM_SECRET_BLOCK`, and `TIMESTAMP` after client-side SRP calculations. For more information, see [Signing in with a device](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html#user-pools-remembered-devices-signing-in-with-a-device).
#'
#' - `NEW_PASSWORD_REQUIRED`: For users who are required to change their passwords after successful first login. Respond to this challenge with `NEW_PASSWORD` and any required attributes that Amazon Cognito returned in the `requiredAttributes` parameter. You can also set values for attributes that aren't required by your user pool and that your app client can write.
#'
#' Amazon Cognito only returns this challenge for users who have temporary passwords. When you create passwordless users, you must provide values for all required attributes.
#'
#' In a `NEW_PASSWORD_REQUIRED` challenge response, you can't modify a required attribute that already has a value. In [`admin_respond_to_auth_challenge`][cognitoidentityprovider_admin_respond_to_auth_challenge] or [`respond_to_auth_challenge`][cognitoidentityprovider_respond_to_auth_challenge], set a value for any keys that Amazon Cognito returned in the `requiredAttributes` parameter, then use the [`admin_update_user_attributes`][cognitoidentityprovider_admin_update_user_attributes] or [`update_user_attributes`][cognitoidentityprovider_update_user_attributes] API operation to modify the value of any additional attributes.
#'
#' - `MFA_SETUP`: For users who are required to setup an MFA factor before they can sign in. The MFA types activated for the user pool will be listed in the challenge parameters `MFAS_CAN_SETUP` value.
#'
#' To set up time-based one-time password (TOTP) MFA, use the session returned in this challenge from [`initiate_auth`][cognitoidentityprovider_initiate_auth] or [`admin_initiate_auth`][cognitoidentityprovider_admin_initiate_auth] as an input to [`associate_software_token`][cognitoidentityprovider_associate_software_token]. Then, use the session returned by [`verify_software_token`][cognitoidentityprovider_verify_software_token] as an input to [`respond_to_auth_challenge`][cognitoidentityprovider_respond_to_auth_challenge] or [`admin_respond_to_auth_challenge`][cognitoidentityprovider_admin_respond_to_auth_challenge] with challenge name `MFA_SETUP` to complete sign-in.
#'
#' To set up SMS or email MFA, collect a `phone_number` or `email` attribute for the user. Then restart the authentication flow with an [`initiate_auth`][cognitoidentityprovider_initiate_auth] or [`admin_initiate_auth`][cognitoidentityprovider_admin_initiate_auth] request.
#' @param Session The session identifier that maintains the state of authentication requests and challenge responses. If an [`admin_initiate_auth`][cognitoidentityprovider_admin_initiate_auth] or [`admin_respond_to_auth_challenge`][cognitoidentityprovider_admin_respond_to_auth_challenge] API request results in a determination that your application must pass another challenge, Amazon Cognito returns a session with other challenge parameters. Send this session identifier, unmodified, to the next [`admin_respond_to_auth_challenge`][cognitoidentityprovider_admin_respond_to_auth_challenge] request.
#' @param ChallengeResponses The responses to the challenge that you received in the previous request. Each challenge has its own required response parameters. The following examples are partial JSON request bodies that highlight challenge-response parameters.
#'
#' You must provide a SECRET_HASH parameter in all challenge responses to an app client that has a client secret. Include a `DEVICE_KEY` for device authentication.
#'
#' **SELECT_CHALLENGE**
#'
#' `"ChallengeName": "SELECT_CHALLENGE", "ChallengeResponses": { "USERNAME": "[username]", "ANSWER": "[Challenge name]"}`
#'
#' Available challenges are `PASSWORD`, `PASSWORD_SRP`, `EMAIL_OTP`, `SMS_OTP`, and `WEB_AUTHN`.
#'
#' Complete authentication in the `SELECT_CHALLENGE` response for `PASSWORD`, `PASSWORD_SRP`, and `WEB_AUTHN`:
#'
#' - `"ChallengeName": "SELECT_CHALLENGE", "ChallengeResponses": { "ANSWER": "WEB_AUTHN", "USERNAME": "[username]", "CREDENTIAL": "[AuthenticationResponseJSON]"}`
#'
#' See [AuthenticationResponseJSON](https://www.w3.org/TR/webauthn-3/#dictdef-authenticationresponsejson).
#'
#' - `"ChallengeName": "SELECT_CHALLENGE", "ChallengeResponses": { "ANSWER": "PASSWORD", "USERNAME": "[username]", "PASSWORD": "[password]"}`
#'
#' - `"ChallengeName": "SELECT_CHALLENGE", "ChallengeResponses": { "ANSWER": "PASSWORD_SRP", "USERNAME": "[username]", "SRP_A": "[SRP_A]"}`
#'
#' For `SMS_OTP` and `EMAIL_OTP`, respond with the username and answer. Your user pool will send a code for the user to submit in the next challenge response.
#'
#' - `"ChallengeName": "SELECT_CHALLENGE", "ChallengeResponses": { "ANSWER": "SMS_OTP", "USERNAME": "[username]"}`
#'
#' - `"ChallengeName": "SELECT_CHALLENGE", "ChallengeResponses": { "ANSWER": "EMAIL_OTP", "USERNAME": "[username]"}`
#'
#' **WEB_AUTHN**
#'
#' `"ChallengeName": "WEB_AUTHN", "ChallengeResponses": { "USERNAME": "[username]", "CREDENTIAL": "[AuthenticationResponseJSON]"}`
#'
#' See [AuthenticationResponseJSON](https://www.w3.org/TR/webauthn-3/#dictdef-authenticationresponsejson).
#'
#' **PASSWORD**
#'
#' `"ChallengeName": "PASSWORD", "ChallengeResponses": { "USERNAME": "[username]", "PASSWORD": "[password]"}`
#'
#' **PASSWORD_SRP**
#'
#' `"ChallengeName": "PASSWORD_SRP", "ChallengeResponses": { "USERNAME": "[username]", "SRP_A": "[SRP_A]"}`
#'
#' **SMS_OTP**
#'
#' `"ChallengeName": "SMS_OTP", "ChallengeResponses": {"SMS_OTP_CODE": "[code]", "USERNAME": "[username]"}`
#'
#' **EMAIL_OTP**
#'
#' `"ChallengeName": "EMAIL_OTP", "ChallengeResponses": {"EMAIL_OTP_CODE": "[code]", "USERNAME": "[username]"}`
#'
#' **SMS_MFA**
#'
#' `"ChallengeName": "SMS_MFA", "ChallengeResponses": {"SMS_MFA_CODE": "[code]", "USERNAME": "[username]"}`
#'
#' **PASSWORD_VERIFIER**
#'
#' This challenge response is part of the SRP flow. Amazon Cognito requires that your application respond to this challenge within a few seconds. When the response time exceeds this period, your user pool returns a `NotAuthorizedException` error.
#'
#' `"ChallengeName": "PASSWORD_VERIFIER", "ChallengeResponses": {"PASSWORD_CLAIM_SIGNATURE": "[claim_signature]", "PASSWORD_CLAIM_SECRET_BLOCK": "[secret_block]", "TIMESTAMP": [timestamp], "USERNAME": "[username]"}`
#'
#' **CUSTOM_CHALLENGE**
#'
#' `"ChallengeName": "CUSTOM_CHALLENGE", "ChallengeResponses": {"USERNAME": "[username]", "ANSWER": "[challenge_answer]"}`
#'
#' **NEW_PASSWORD_REQUIRED**
#'
#' `"ChallengeName": "NEW_PASSWORD_REQUIRED", "ChallengeResponses": {"NEW_PASSWORD": "[new_password]", "USERNAME": "[username]"}`
#'
#' To set any required attributes that [`initiate_auth`][cognitoidentityprovider_initiate_auth] returned in an `requiredAttributes` parameter, add `"userAttributes.[attribute_name]": "[attribute_value]"`. This parameter can also set values for writable attributes that aren't required by your user pool.
#'
#' In a `NEW_PASSWORD_REQUIRED` challenge response, you can't modify a required attribute that already has a value. In [`admin_respond_to_auth_challenge`][cognitoidentityprovider_admin_respond_to_auth_challenge] or [`respond_to_auth_challenge`][cognitoidentityprovider_respond_to_auth_challenge], set a value for any keys that Amazon Cognito returned in the `requiredAttributes` parameter, then use the [`admin_update_user_attributes`][cognitoidentityprovider_admin_update_user_attributes] or [`update_user_attributes`][cognitoidentityprovider_update_user_attributes] API operation to modify the value of any additional attributes.
#'
#' **SOFTWARE_TOKEN_MFA**
#'
#' `"ChallengeName": "SOFTWARE_TOKEN_MFA", "ChallengeResponses": {"USERNAME": "[username]", "SOFTWARE_TOKEN_MFA_CODE": [authenticator_code]}`
#'
#' **DEVICE_SRP_AUTH**
#'
#' `"ChallengeName": "DEVICE_SRP_AUTH", "ChallengeResponses": {"USERNAME": "[username]", "DEVICE_KEY": "[device_key]", "SRP_A": "[srp_a]"}`
#'
#' **DEVICE_PASSWORD_VERIFIER**
#'
#' `"ChallengeName": "DEVICE_PASSWORD_VERIFIER", "ChallengeResponses": {"DEVICE_KEY": "[device_key]", "PASSWORD_CLAIM_SIGNATURE": "[claim_signature]", "PASSWORD_CLAIM_SECRET_BLOCK": "[secret_block]", "TIMESTAMP": [timestamp], "USERNAME": "[username]"}`
#'
#' **MFA_SETUP**
#'
#' `"ChallengeName": "MFA_SETUP", "ChallengeResponses": {"USERNAME": "[username]"}, "SESSION": "[Session ID from VerifySoftwareToken]"`
#'
#' **SELECT_MFA_TYPE**
#'
#' `"ChallengeName": "SELECT_MFA_TYPE", "ChallengeResponses": {"USERNAME": "[username]", "ANSWER": "[SMS_MFA|EMAIL_MFA|SOFTWARE_TOKEN_MFA]"}`
#'
#' For more information about `SECRET_HASH`, see [Computing secret hash values](https://docs.aws.amazon.com/cognito/latest/developerguide/signing-up-users-in-your-app.html#cognito-user-pools-computing-secret-hash). For information about `DEVICE_KEY`, see [Working with user devices in your user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html).
#' @param AnalyticsMetadata Information that supports analytics outcomes with Amazon Pinpoint, including the user's endpoint ID. The endpoint ID is a destination for Amazon Pinpoint push notifications, for example a device identifier, email address, or phone number.
#' @param UserContextData Contextual data about your user session like the device fingerprint, IP address, or location. Amazon Cognito threat protection evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests.
#'
#' For more information, see [Collecting data for threat protection in applications](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-viewing-threat-protection-app.html).
#' @param ClientMetadata A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers. You create custom workflows by assigning Lambda functions to user pool triggers.
#'
#' When Amazon Cognito invokes any of these functions, it passes a JSON payload, which the function receives as input. This payload contains a `clientMetadata` attribute that provides the data that you assigned to the ClientMetadata parameter in your request. In your function code, you can process the `clientMetadata` value to enhance your workflow for your specific needs.
#'
#' To review the Lambda trigger types that Amazon Cognito invokes at runtime with API requests, see [Connecting API actions to Lambda triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-working-with-lambda-triggers.html#lambda-triggers-by-event) in the *Amazon Cognito Developer Guide*.
#'
#' When you use the `ClientMetadata` parameter, note that Amazon Cognito won't do the following:
#'
#' - Store the `ClientMetadata` value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the `ClientMetadata` parameter serves no purpose.
#'
#' - Validate the `ClientMetadata` value.
#'
#' - Encrypt the `ClientMetadata` value. Don't send sensitive information in this parameter.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_respond_to_auth_challenge
cognitoidentityprovider_respond_to_auth_challenge <- function(ClientId, ChallengeName, Session = NULL, ChallengeResponses = NULL, AnalyticsMetadata = NULL, UserContextData = NULL, ClientMetadata = NULL) {
op <- new_operation(
name = "RespondToAuthChallenge",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$respond_to_auth_challenge_input(ClientId = ClientId, ChallengeName = ChallengeName, Session = Session, ChallengeResponses = ChallengeResponses, AnalyticsMetadata = AnalyticsMetadata, UserContextData = UserContextData, ClientMetadata = ClientMetadata)
output <- .cognitoidentityprovider$respond_to_auth_challenge_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$respond_to_auth_challenge <- cognitoidentityprovider_respond_to_auth_challenge
#' Revokes all of the access tokens generated by, and at the same time as,
#' the specified refresh token
#'
#' @description
#' Revokes all of the access tokens generated by, and at the same time as, the specified refresh token. After a token is revoked, you can't use the revoked token to access Amazon Cognito user APIs, or to authorize access to your resource server.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_revoke_token/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_revoke_token/) for full documentation.
#'
#' @param Token [required] The refresh token that you want to revoke.
#' @param ClientId [required] The ID of the app client where the token that you want to revoke was issued.
#' @param ClientSecret The client secret of the requested app client, if the client has a secret.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_revoke_token
cognitoidentityprovider_revoke_token <- function(Token, ClientId, ClientSecret = NULL) {
op <- new_operation(
name = "RevokeToken",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$revoke_token_input(Token = Token, ClientId = ClientId, ClientSecret = ClientSecret)
output <- .cognitoidentityprovider$revoke_token_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$revoke_token <- cognitoidentityprovider_revoke_token
#' Sets up or modifies the logging configuration of a user pool
#'
#' @description
#' Sets up or modifies the logging configuration of a user pool. User pools can export user notification logs and, when threat protection is active, user-activity logs. For more information, see [Exporting user pool logs](https://docs.aws.amazon.com/cognito/latest/developerguide/exporting-quotas-and-usage.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_set_log_delivery_configuration/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_set_log_delivery_configuration/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to configure logging.
#' @param LogConfigurations [required] A collection of the logging configurations for a user pool.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_set_log_delivery_configuration
cognitoidentityprovider_set_log_delivery_configuration <- function(UserPoolId, LogConfigurations) {
op <- new_operation(
name = "SetLogDeliveryConfiguration",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$set_log_delivery_configuration_input(UserPoolId = UserPoolId, LogConfigurations = LogConfigurations)
output <- .cognitoidentityprovider$set_log_delivery_configuration_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$set_log_delivery_configuration <- cognitoidentityprovider_set_log_delivery_configuration
#' Configures threat protection for a user pool or app client
#'
#' @description
#' Configures threat protection for a user pool or app client. Sets configuration for the following.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_set_risk_configuration/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_set_risk_configuration/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to set a risk configuration. If you include `UserPoolId` in your request, don't include `ClientId`. When the client ID is null, the same risk configuration is applied to all the clients in the userPool. When you include both `ClientId` and `UserPoolId`, Amazon Cognito maps the configuration to the app client only.
#' @param ClientId The ID of the app client where you want to set a risk configuration. If `ClientId` is null, then the risk configuration is mapped to `UserPoolId`. When the client ID is null, the same risk configuration is applied to all the clients in the userPool.
#'
#' When you include a `ClientId` parameter, Amazon Cognito maps the configuration to the app client. When you include both `ClientId` and `UserPoolId`, Amazon Cognito maps the configuration to the app client only.
#' @param CompromisedCredentialsRiskConfiguration The configuration of automated reactions to detected compromised credentials. Includes settings for blocking future sign-in requests and for the types of password-submission events you want to monitor.
#' @param AccountTakeoverRiskConfiguration The settings for automated responses and notification templates for adaptive authentication with threat protection.
#' @param RiskExceptionConfiguration A set of IP-address overrides to threat protection. You can set up IP-address always-block and always-allow lists.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_set_risk_configuration
cognitoidentityprovider_set_risk_configuration <- function(UserPoolId, ClientId = NULL, CompromisedCredentialsRiskConfiguration = NULL, AccountTakeoverRiskConfiguration = NULL, RiskExceptionConfiguration = NULL) {
op <- new_operation(
name = "SetRiskConfiguration",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$set_risk_configuration_input(UserPoolId = UserPoolId, ClientId = ClientId, CompromisedCredentialsRiskConfiguration = CompromisedCredentialsRiskConfiguration, AccountTakeoverRiskConfiguration = AccountTakeoverRiskConfiguration, RiskExceptionConfiguration = RiskExceptionConfiguration)
output <- .cognitoidentityprovider$set_risk_configuration_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$set_risk_configuration <- cognitoidentityprovider_set_risk_configuration
#' Configures UI branding settings for domains with the hosted UI (classic)
#' branding version
#'
#' @description
#' Configures UI branding settings for domains with the hosted UI (classic) branding version. Your user pool must have a domain. Configure a domain with .
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_set_ui_customization/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_set_ui_customization/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to apply branding to the classic hosted UI.
#' @param ClientId The ID of the app client that you want to customize. To apply a default style to all app clients not configured with client-level branding, set this parameter value to `ALL`.
#' @param CSS A plaintext CSS file that contains the custom fields that you want to apply to your user pool or app client. To download a template, go to the Amazon Cognito console. Navigate to your user pool *App clients* tab, select *Login pages*, edit *Hosted UI (classic) style*, and select the link to `CSS template.css`.
#' @param ImageFile The image that you want to set as your login in the classic hosted UI, as a Base64-formatted binary object.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_set_ui_customization
cognitoidentityprovider_set_ui_customization <- function(UserPoolId, ClientId = NULL, CSS = NULL, ImageFile = NULL) {
op <- new_operation(
name = "SetUICustomization",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$set_ui_customization_input(UserPoolId = UserPoolId, ClientId = ClientId, CSS = CSS, ImageFile = ImageFile)
output <- .cognitoidentityprovider$set_ui_customization_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$set_ui_customization <- cognitoidentityprovider_set_ui_customization
#' Set the user's multi-factor authentication (MFA) method preference,
#' including which MFA factors are activated and if any are preferred
#'
#' @description
#' Set the user's multi-factor authentication (MFA) method preference, including which MFA factors are activated and if any are preferred. Only one factor can be set as preferred. The preferred MFA factor will be used to authenticate a user if multiple factors are activated. If multiple options are activated and no preference is set, a challenge to choose an MFA option will be returned during sign-in. If an MFA type is activated for a user, the user will be prompted for MFA during all sign-in attempts unless device tracking is turned on and the device has been trusted. If you want MFA to be applied selectively based on the assessed risk level of sign-in attempts, deactivate MFA for users and turn on Adaptive Authentication for the user pool.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_set_user_mfa_preference/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_set_user_mfa_preference/) for full documentation.
#'
#' @param SMSMfaSettings User preferences for SMS message MFA. Activates or deactivates SMS MFA and sets it as the preferred MFA method when multiple methods are available.
#' @param SoftwareTokenMfaSettings User preferences for time-based one-time password (TOTP) MFA. Activates or deactivates TOTP MFA and sets it as the preferred MFA method when multiple methods are available. Users must register a TOTP authenticator before they set this as their preferred MFA method.
#' @param EmailMfaSettings User preferences for email message MFA. Activates or deactivates email MFA and sets it as the preferred MFA method when multiple methods are available. To activate this setting, your user pool must be in the [Essentials tier](https://docs.aws.amazon.com/cognito/latest/developerguide/feature-plans-features-essentials.html) or higher.
#' @param WebAuthnMfaSettings User preferences for passkey MFA. Activates or deactivates passkey MFA for the user. When activated, passkey authentication requires user verification, and passkey sign-in is available when MFA is required. To activate this setting, the `FactorConfiguration` of your user pool `WebAuthnConfiguration` must be `MULTI_FACTOR_WITH_USER_VERIFICATION`. To activate this setting, your user pool must be in the [Essentials tier](https://docs.aws.amazon.com/cognito/latest/developerguide/feature-plans-features-essentials.html) or higher.
#' @param AccessToken [required] A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for `aws.cognito.signin.user.admin`.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_set_user_mfa_preference
cognitoidentityprovider_set_user_mfa_preference <- function(SMSMfaSettings = NULL, SoftwareTokenMfaSettings = NULL, EmailMfaSettings = NULL, WebAuthnMfaSettings = NULL, AccessToken) {
op <- new_operation(
name = "SetUserMFAPreference",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$set_user_mfa_preference_input(SMSMfaSettings = SMSMfaSettings, SoftwareTokenMfaSettings = SoftwareTokenMfaSettings, EmailMfaSettings = EmailMfaSettings, WebAuthnMfaSettings = WebAuthnMfaSettings, AccessToken = AccessToken)
output <- .cognitoidentityprovider$set_user_mfa_preference_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$set_user_mfa_preference <- cognitoidentityprovider_set_user_mfa_preference
#' Sets user pool multi-factor authentication (MFA) and passkey
#' configuration
#'
#' @description
#' Sets user pool multi-factor authentication (MFA) and passkey configuration. For more information about user pool MFA, see [Adding MFA](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-mfa.html). For more information about WebAuthn passkeys see [Authentication flows](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-authentication-flow-methods.html#amazon-cognito-user-pools-authentication-flow-methods-passkey).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_set_user_pool_mfa_config/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_set_user_pool_mfa_config/) for full documentation.
#'
#' @param UserPoolId [required] The user pool ID.
#' @param SmsMfaConfiguration Configures user pool SMS messages for MFA. Sets the message template and the SMS message sending configuration for Amazon SNS.
#' @param SoftwareTokenMfaConfiguration Configures a user pool for time-based one-time password (TOTP) MFA. Enables or disables TOTP.
#' @param EmailMfaConfiguration Sets configuration for user pool email message MFA and sign-in with one-time passwords (OTPs). Includes the subject and body of the email message template for sign-in and MFA messages. To activate this setting, your user pool must be in the [Essentials tier](https://docs.aws.amazon.com/cognito/latest/developerguide/feature-plans-features-essentials.html) or higher.
#' @param MfaConfiguration Sets multi-factor authentication (MFA) to be on, off, or optional. When `ON`, all users must set up MFA before they can sign in. When `OPTIONAL`, your application must make a client-side determination of whether a user wants to register an MFA device. For user pools with adaptive authentication with threat protection, choose `OPTIONAL`.
#'
#' When `MfaConfiguration` is `OPTIONAL`, managed login doesn't automatically prompt users to set up MFA. Amazon Cognito generates MFA prompts in API responses and in managed login for users who have chosen and configured a preferred MFA factor.
#' @param WebAuthnConfiguration The configuration of your user pool for passkey, or WebAuthn, authentication and registration. Includes relying-party configuration, user-verification requirements, and whether passkeys can satisfy MFA requirements.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_set_user_pool_mfa_config
cognitoidentityprovider_set_user_pool_mfa_config <- function(UserPoolId, SmsMfaConfiguration = NULL, SoftwareTokenMfaConfiguration = NULL, EmailMfaConfiguration = NULL, MfaConfiguration = NULL, WebAuthnConfiguration = NULL) {
op <- new_operation(
name = "SetUserPoolMfaConfig",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$set_user_pool_mfa_config_input(UserPoolId = UserPoolId, SmsMfaConfiguration = SmsMfaConfiguration, SoftwareTokenMfaConfiguration = SoftwareTokenMfaConfiguration, EmailMfaConfiguration = EmailMfaConfiguration, MfaConfiguration = MfaConfiguration, WebAuthnConfiguration = WebAuthnConfiguration)
output <- .cognitoidentityprovider$set_user_pool_mfa_config_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$set_user_pool_mfa_config <- cognitoidentityprovider_set_user_pool_mfa_config
#' This action is no longer supported
#'
#' @description
#' *This action is no longer supported.* You can use it to configure only SMS MFA. You can't use it to configure time-based one-time password (TOTP) software token or email MFA.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_set_user_settings/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_set_user_settings/) for full documentation.
#'
#' @param AccessToken [required] A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for `aws.cognito.signin.user.admin`.
#' @param MFAOptions [required] You can use this parameter only to set an SMS configuration that uses SMS for delivery.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_set_user_settings
cognitoidentityprovider_set_user_settings <- function(AccessToken, MFAOptions) {
op <- new_operation(
name = "SetUserSettings",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$set_user_settings_input(AccessToken = AccessToken, MFAOptions = MFAOptions)
output <- .cognitoidentityprovider$set_user_settings_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$set_user_settings <- cognitoidentityprovider_set_user_settings
#' Registers a user with an app client and requests a user name, password,
#' and user attributes in the user pool
#'
#' @description
#' Registers a user with an app client and requests a user name, password, and user attributes in the user pool.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_sign_up/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_sign_up/) for full documentation.
#'
#' @param ClientId [required] The ID of the app client where the user wants to sign up.
#' @param SecretHash A keyed-hash message authentication code (HMAC) calculated using the secret key of a user pool client and username plus the client ID in the message. For more information about `SecretHash`, see [Computing secret hash values](https://docs.aws.amazon.com/cognito/latest/developerguide/signing-up-users-in-your-app.html#cognito-user-pools-computing-secret-hash).
#' @param Username [required] The username of the user that you want to sign up. The value of this parameter is typically a username, but can be any alias attribute in your user pool.
#' @param Password The user's proposed password. The password must comply with the [password requirements](https://docs.aws.amazon.com/cognito/latest/developerguide/managing-users-passwords.html) of your user pool.
#'
#' Users can sign up without a password when your user pool supports passwordless sign-in with email or SMS OTPs. To create a user with no password, omit this parameter or submit a blank value. You can only create a passwordless user when passwordless sign-in is available.
#' @param UserAttributes An array of name-value pairs representing user attributes.
#'
#' For custom attributes, include a `custom:` prefix in the attribute name, for example `custom:department`.
#' @param ValidationData Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda trigger. This set of key-value pairs are for custom validation of information that you collect from your users but don't need to retain.
#'
#' Your Lambda function can analyze this additional data and act on it. Your function can automatically confirm and verify select users or perform external API operations like logging user attributes and validation data to Amazon CloudWatch Logs.
#'
#' For more information about the pre sign-up Lambda trigger, see [Pre sign-up Lambda trigger](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-sign-up.html).
#' @param AnalyticsMetadata Information that supports analytics outcomes with Amazon Pinpoint, including the user's endpoint ID. The endpoint ID is a destination for Amazon Pinpoint push notifications, for example a device identifier, email address, or phone number.
#' @param UserContextData Contextual data about your user session like the device fingerprint, IP address, or location. Amazon Cognito threat protection evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests.
#'
#' For more information, see [Collecting data for threat protection in applications](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-viewing-threat-protection-app.html).
#' @param ClientMetadata A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers. You create custom workflows by assigning Lambda functions to user pool triggers.
#'
#' When Amazon Cognito invokes any of these functions, it passes a JSON payload, which the function receives as input. This payload contains a `clientMetadata` attribute that provides the data that you assigned to the ClientMetadata parameter in your request. In your function code, you can process the `clientMetadata` value to enhance your workflow for your specific needs.
#'
#' To review the Lambda trigger types that Amazon Cognito invokes at runtime with API requests, see [Connecting API actions to Lambda triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-working-with-lambda-triggers.html#lambda-triggers-by-event) in the *Amazon Cognito Developer Guide*.
#'
#' When you use the `ClientMetadata` parameter, note that Amazon Cognito won't do the following:
#'
#' - Store the `ClientMetadata` value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the `ClientMetadata` parameter serves no purpose.
#'
#' - Validate the `ClientMetadata` value.
#'
#' - Encrypt the `ClientMetadata` value. Don't send sensitive information in this parameter.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_sign_up
cognitoidentityprovider_sign_up <- function(ClientId, SecretHash = NULL, Username, Password = NULL, UserAttributes = NULL, ValidationData = NULL, AnalyticsMetadata = NULL, UserContextData = NULL, ClientMetadata = NULL) {
op <- new_operation(
name = "SignUp",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$sign_up_input(ClientId = ClientId, SecretHash = SecretHash, Username = Username, Password = Password, UserAttributes = UserAttributes, ValidationData = ValidationData, AnalyticsMetadata = AnalyticsMetadata, UserContextData = UserContextData, ClientMetadata = ClientMetadata)
output <- .cognitoidentityprovider$sign_up_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$sign_up <- cognitoidentityprovider_sign_up
#' Instructs your user pool to start importing users from a CSV file that
#' contains their usernames and attributes
#'
#' @description
#' Instructs your user pool to start importing users from a CSV file that contains their usernames and attributes. For more information about importing users from a CSV file, see [Importing users from a CSV file](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-using-import-tool.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_start_user_import_job/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_start_user_import_job/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool that you want to start importing users into.
#' @param JobId [required] The ID of a user import job that you previously created.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_start_user_import_job
cognitoidentityprovider_start_user_import_job <- function(UserPoolId, JobId) {
op <- new_operation(
name = "StartUserImportJob",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$start_user_import_job_input(UserPoolId = UserPoolId, JobId = JobId)
output <- .cognitoidentityprovider$start_user_import_job_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$start_user_import_job <- cognitoidentityprovider_start_user_import_job
#' Requests credential creation options from your user pool for the
#' currently signed-in user
#'
#' @description
#' Requests credential creation options from your user pool for the currently signed-in user. Returns information about the user pool, the user profile, and authentication requirements. Users must provide this information in their request to enroll your application with their passkey provider.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_start_web_authn_registration/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_start_web_authn_registration/) for full documentation.
#'
#' @param AccessToken [required] A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for `aws.cognito.signin.user.admin`.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_start_web_authn_registration
cognitoidentityprovider_start_web_authn_registration <- function(AccessToken) {
op <- new_operation(
name = "StartWebAuthnRegistration",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$start_web_authn_registration_input(AccessToken = AccessToken)
output <- .cognitoidentityprovider$start_web_authn_registration_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$start_web_authn_registration <- cognitoidentityprovider_start_web_authn_registration
#' Instructs your user pool to stop a running job that's importing users
#' from a CSV file that contains their usernames and attributes
#'
#' @description
#' Instructs your user pool to stop a running job that's importing users from a CSV file that contains their usernames and attributes. For more information about importing users from a CSV file, see [Importing users from a CSV file](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-using-import-tool.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_stop_user_import_job/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_stop_user_import_job/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool that you want to stop.
#' @param JobId [required] The ID of a running user import job.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_stop_user_import_job
cognitoidentityprovider_stop_user_import_job <- function(UserPoolId, JobId) {
op <- new_operation(
name = "StopUserImportJob",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$stop_user_import_job_input(UserPoolId = UserPoolId, JobId = JobId)
output <- .cognitoidentityprovider$stop_user_import_job_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$stop_user_import_job <- cognitoidentityprovider_stop_user_import_job
#' Assigns a set of tags to an Amazon Cognito user pool
#'
#' @description
#' Assigns a set of tags to an Amazon Cognito user pool. A tag is a label that you can use to categorize and manage user pools in different ways, such as by purpose, owner, environment, or other criteria.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_tag_resource/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_tag_resource/) for full documentation.
#'
#' @param ResourceArn [required] The Amazon Resource Name (ARN) of the user pool to assign the tags to.
#' @param Tags [required] An array of tag keys and values that you want to assign to the user pool.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_tag_resource
cognitoidentityprovider_tag_resource <- function(ResourceArn, Tags) {
op <- new_operation(
name = "TagResource",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$tag_resource_input(ResourceArn = ResourceArn, Tags = Tags)
output <- .cognitoidentityprovider$tag_resource_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$tag_resource <- cognitoidentityprovider_tag_resource
#' Given tag IDs that you previously assigned to a user pool, removes them
#'
#' @description
#' Given tag IDs that you previously assigned to a user pool, removes them.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_untag_resource/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_untag_resource/) for full documentation.
#'
#' @param ResourceArn [required] The Amazon Resource Name (ARN) of the user pool that the tags are assigned to.
#' @param TagKeys [required] An array of tag keys that you want to remove from the user pool.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_untag_resource
cognitoidentityprovider_untag_resource <- function(ResourceArn, TagKeys) {
op <- new_operation(
name = "UntagResource",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$untag_resource_input(ResourceArn = ResourceArn, TagKeys = TagKeys)
output <- .cognitoidentityprovider$untag_resource_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$untag_resource <- cognitoidentityprovider_untag_resource
#' Provides the feedback for an authentication event generated by threat
#' protection features
#'
#' @description
#' Provides the feedback for an authentication event generated by threat protection features. The user's response indicates that you think that the event either was from a valid user or was an unwanted authentication attempt. This feedback improves the risk evaluation decision for the user pool as part of Amazon Cognito threat protection. To activate this setting, your user pool must be on the [Plus tier](https://docs.aws.amazon.com/cognito/latest/developerguide/feature-plans-features-plus.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_update_auth_event_feedback/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_update_auth_event_feedback/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to update auth event feedback.
#' @param Username [required] The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value must be the `sub` of a local user or the username of a user from a third-party IdP.
#' @param EventId [required] The ID of the authentication event that you want to submit feedback for.
#' @param FeedbackToken [required] The feedback token, an encrypted object generated by Amazon Cognito and passed to your user in the notification email message from the event.
#' @param FeedbackValue [required] Your feedback to the authentication event. When you provide a `FeedbackValue` value of `valid`, you tell Amazon Cognito that you trust a user session where Amazon Cognito has evaluated some level of risk. When you provide a `FeedbackValue` value of `invalid`, you tell Amazon Cognito that you don't trust a user session, or you don't believe that Amazon Cognito evaluated a high-enough risk level.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_update_auth_event_feedback
cognitoidentityprovider_update_auth_event_feedback <- function(UserPoolId, Username, EventId, FeedbackToken, FeedbackValue) {
op <- new_operation(
name = "UpdateAuthEventFeedback",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$update_auth_event_feedback_input(UserPoolId = UserPoolId, Username = Username, EventId = EventId, FeedbackToken = FeedbackToken, FeedbackValue = FeedbackValue)
output <- .cognitoidentityprovider$update_auth_event_feedback_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$update_auth_event_feedback <- cognitoidentityprovider_update_auth_event_feedback
#' Updates the status of a the currently signed-in user's device so that it
#' is marked as remembered or not remembered for the purpose of device
#' authentication
#'
#' @description
#' Updates the status of a the currently signed-in user's device so that it is marked as remembered or not remembered for the purpose of device authentication. Device authentication is a "remember me" mechanism that silently completes sign-in from trusted devices with a device key instead of a user-provided MFA code. This operation changes the status of a device without deleting it, so you can enable it again later. For more information about device authentication, see [Working with devices](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_update_device_status/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_update_device_status/) for full documentation.
#'
#' @param AccessToken [required] A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for `aws.cognito.signin.user.admin`.
#' @param DeviceKey [required] The device key of the device you want to update, for example `us-west-2_a1b2c3d4-5678-90ab-cdef-EXAMPLE11111`.
#' @param DeviceRememberedStatus To enable device authentication with the specified device, set to `remembered`.To disable, set to `not_remembered`.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_update_device_status
cognitoidentityprovider_update_device_status <- function(AccessToken, DeviceKey, DeviceRememberedStatus = NULL) {
op <- new_operation(
name = "UpdateDeviceStatus",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$update_device_status_input(AccessToken = AccessToken, DeviceKey = DeviceKey, DeviceRememberedStatus = DeviceRememberedStatus)
output <- .cognitoidentityprovider$update_device_status_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$update_device_status <- cognitoidentityprovider_update_device_status
#' Given the name of a user pool group, updates any of the properties for
#' precedence, IAM role, or description
#'
#' @description
#' Given the name of a user pool group, updates any of the properties for precedence, IAM role, or description. For more information about user pool groups, see [Adding groups to a user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-user-groups.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_update_group/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_update_group/) for full documentation.
#'
#' @param GroupName [required] The name of the group that you want to update.
#' @param UserPoolId [required] The ID of the user pool that contains the group you want to update.
#' @param Description A new description of the existing group.
#' @param RoleArn The Amazon Resource Name (ARN) of an IAM role that you want to associate with the group. The role assignment contributes to the `cognito:roles` and `cognito:preferred_role` claims in group members' tokens.
#' @param Precedence A non-negative integer value that specifies the precedence of this group relative to the other groups that a user can belong to in the user pool. Zero is the highest precedence value. Groups with lower `Precedence` values take precedence over groups with higher or null `Precedence` values. If a user belongs to two or more groups, it is the group with the lowest precedence value whose role ARN is given in the user's tokens for the `cognito:roles` and `cognito:preferred_role` claims.
#'
#' Two groups can have the same `Precedence` value. If this happens, neither group takes precedence over the other. If two groups with the same `Precedence` have the same role ARN, that role is used in the `cognito:preferred_role` claim in tokens for users in each group. If the two groups have different role ARNs, the `cognito:preferred_role` claim isn't set in users' tokens.
#'
#' The default `Precedence` value is null. The maximum `Precedence` value is `2^31-1`.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_update_group
cognitoidentityprovider_update_group <- function(GroupName, UserPoolId, Description = NULL, RoleArn = NULL, Precedence = NULL) {
op <- new_operation(
name = "UpdateGroup",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$update_group_input(GroupName = GroupName, UserPoolId = UserPoolId, Description = Description, RoleArn = RoleArn, Precedence = Precedence)
output <- .cognitoidentityprovider$update_group_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$update_group <- cognitoidentityprovider_update_group
#' Modifies the configuration and trust relationship between a third-party
#' identity provider (IdP) and a user pool
#'
#' @description
#' Modifies the configuration and trust relationship between a third-party identity provider (IdP) and a user pool. Amazon Cognito accepts sign-in with third-party identity providers through managed login and OIDC relying-party libraries. For more information, see [Third-party IdP sign-in](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_update_identity_provider/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_update_identity_provider/) for full documentation.
#'
#' @param UserPoolId [required] The Id of the user pool where you want to update your IdP.
#' @param ProviderName [required] The name of the IdP that you want to update. You can pass the identity provider name in the `identity_provider` query parameter of requests to the [Authorize endpoint](https://docs.aws.amazon.com/cognito/latest/developerguide/authorization-endpoint.html) to silently redirect to sign-in with the associated IdP.
#' @param ProviderDetails The scopes, URLs, and identifiers for your external identity provider. The following examples describe the provider detail keys for each IdP type. These values and their schema are subject to change. Social IdP `authorize_scopes` values must match the values listed here.
#'
#' **OpenID Connect (OIDC)**
#'
#' Amazon Cognito accepts the following elements when it can't discover endpoint URLs from `oidc_issuer`: `attributes_url`, `authorize_url`, `jwks_uri`, `token_url`.
#'
#' Create or update request: `"ProviderDetails": { "attributes_request_method": "GET", "attributes_url": "https://auth.example.com/userInfo", "authorize_scopes": "openid profile email", "authorize_url": "https://auth.example.com/authorize", "client_id": "1example23456789", "client_secret": "provider-app-client-secret", "jwks_uri": "https://auth.example.com/.well-known/jwks.json", "oidc_issuer": "https://auth.example.com", "token_url": "https://example.com/token" }`
#'
#' Describe response: `"ProviderDetails": { "attributes_request_method": "GET", "attributes_url": "https://auth.example.com/userInfo", "attributes_url_add_attributes": "false", "authorize_scopes": "openid profile email", "authorize_url": "https://auth.example.com/authorize", "client_id": "1example23456789", "client_secret": "provider-app-client-secret", "jwks_uri": "https://auth.example.com/.well-known/jwks.json", "oidc_issuer": "https://auth.example.com", "token_url": "https://example.com/token" }`
#'
#' **SAML**
#'
#' Create or update request with Metadata URL: `"ProviderDetails": { "IDPInit": "true", "IDPSignout": "true", "EncryptedResponses" : "true", "MetadataURL": "https://auth.example.com/sso/saml/metadata", "RequestSigningAlgorithm": "rsa-sha256" }`
#'
#' Create or update request with Metadata file: `"ProviderDetails": { "IDPInit": "true", "IDPSignout": "true", "EncryptedResponses" : "true", "MetadataFile": "[metadata XML]", "RequestSigningAlgorithm": "rsa-sha256" }`
#'
#' The value of `MetadataFile` must be the plaintext metadata document with all quote (") characters escaped by backslashes.
#'
#' Describe response: `"ProviderDetails": { "IDPInit": "true", "IDPSignout": "true", "EncryptedResponses" : "true", "ActiveEncryptionCertificate": "[certificate]", "MetadataURL": "https://auth.example.com/sso/saml/metadata", "RequestSigningAlgorithm": "rsa-sha256", "SLORedirectBindingURI": "https://auth.example.com/slo/saml", "SSORedirectBindingURI": "https://auth.example.com/sso/saml" }`
#'
#' **LoginWithAmazon**
#'
#' Create or update request: `"ProviderDetails": \{ "authorize_scopes": "profile postal_code", "client_id": "amzn1.application-oa2-client.1example23456789", "client_secret": "provider-app-client-secret"`
#'
#' Describe response: `"ProviderDetails": { "attributes_url": "https://api.amazon.com/user/profile", "attributes_url_add_attributes": "false", "authorize_scopes": "profile postal_code", "authorize_url": "https://www.amazon.com/ap/oa", "client_id": "amzn1.application-oa2-client.1example23456789", "client_secret": "provider-app-client-secret", "token_request_method": "POST", "token_url": "https://api.amazon.com/auth/o2/token" }`
#'
#' **Google**
#'
#' Create or update request: `"ProviderDetails": { "authorize_scopes": "email profile openid", "client_id": "1example23456789.apps.googleusercontent.com", "client_secret": "provider-app-client-secret" }`
#'
#' Describe response: `"ProviderDetails": { "attributes_url": "https://people.googleapis.com/v1/people/me?personFields=", "attributes_url_add_attributes": "true", "authorize_scopes": "email profile openid", "authorize_url": "https://accounts.google.com/o/oauth2/v2/auth", "client_id": "1example23456789.apps.googleusercontent.com", "client_secret": "provider-app-client-secret", "oidc_issuer": "https://accounts.google.com", "token_request_method": "POST", "token_url": "https://www.googleapis.com/oauth2/v4/token" }`
#'
#' **SignInWithApple**
#'
#' Create or update request: `"ProviderDetails": { "authorize_scopes": "email name", "client_id": "com.example.cognito", "private_key": "1EXAMPLE", "key_id": "2EXAMPLE", "team_id": "3EXAMPLE" }`
#'
#' Describe response: `"ProviderDetails": { "attributes_url_add_attributes": "false", "authorize_scopes": "email name", "authorize_url": "https://appleid.apple.com/auth/authorize", "client_id": "com.example.cognito", "key_id": "1EXAMPLE", "oidc_issuer": "https://appleid.apple.com", "team_id": "2EXAMPLE", "token_request_method": "POST", "token_url": "https://appleid.apple.com/auth/token" }`
#'
#' **Facebook**
#'
#' Create or update request: `"ProviderDetails": { "api_version": "v17.0", "authorize_scopes": "public_profile, email", "client_id": "1example23456789", "client_secret": "provider-app-client-secret" }`
#'
#' Describe response: `"ProviderDetails": { "api_version": "v17.0", "attributes_url": "https://graph.facebook.com/v17.0/me?fields=", "attributes_url_add_attributes": "true", "authorize_scopes": "public_profile, email", "authorize_url": "https://www.facebook.com/v17.0/dialog/oauth", "client_id": "1example23456789", "client_secret": "provider-app-client-secret", "token_request_method": "GET", "token_url": "https://graph.facebook.com/v17.0/oauth/access_token" }`
#' @param AttributeMapping A mapping of IdP attributes to standard and custom user pool attributes. Specify a user pool attribute as the key of the key-value pair, and the IdP attribute claim name as the value.
#' @param IdpIdentifiers An array of IdP identifiers, for example `"IdPIdentifiers": [ "MyIdP", "MyIdP2" ]`. Identifiers are friendly names that you can pass in the `idp_identifier` query parameter of requests to the [Authorize endpoint](https://docs.aws.amazon.com/cognito/latest/developerguide/authorization-endpoint.html) to silently redirect to sign-in with the associated IdP. Identifiers in a domain format also enable the use of [email-address matching with SAML providers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-managing-saml-idp-naming.html).
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_update_identity_provider
cognitoidentityprovider_update_identity_provider <- function(UserPoolId, ProviderName, ProviderDetails = NULL, AttributeMapping = NULL, IdpIdentifiers = NULL) {
op <- new_operation(
name = "UpdateIdentityProvider",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$update_identity_provider_input(UserPoolId = UserPoolId, ProviderName = ProviderName, ProviderDetails = ProviderDetails, AttributeMapping = AttributeMapping, IdpIdentifiers = IdpIdentifiers)
output <- .cognitoidentityprovider$update_identity_provider_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$update_identity_provider <- cognitoidentityprovider_update_identity_provider
#' Configures the branding settings for a user pool style
#'
#' @description
#' Configures the branding settings for a user pool style. This operation is the programmatic option for the configuration of a style in the branding editor.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_update_managed_login_branding/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_update_managed_login_branding/) for full documentation.
#'
#' @param UserPoolId The ID of the user pool that contains the managed login branding style that you want to update.
#' @param ManagedLoginBrandingId The ID of the managed login branding style that you want to update.
#' @param UseCognitoProvidedValues When `true`, applies the default branding style options. This option reverts to default style options that are managed by Amazon Cognito. You can modify them later in the branding editor.
#'
#' When you specify `true` for this option, you must also omit values for `Settings` and `Assets` in the request.
#' @param Settings A JSON file, encoded as a `Document` type, with the the settings that you want to apply to your style.
#'
#' The following components are not currently implemented and reserved for future use:
#'
#' - `signUp`
#'
#' - `instructions`
#'
#' - `sessionTimerDisplay`
#'
#' - `languageSelector` (for localization, see [Managed login localization)](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-managed-login.html#managed-login-localization)
#' @param Assets An array of image files that you want to apply to roles like backgrounds, logos, and icons. Each object must also indicate whether it is for dark mode, light mode, or browser-adaptive mode.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_update_managed_login_branding
cognitoidentityprovider_update_managed_login_branding <- function(UserPoolId = NULL, ManagedLoginBrandingId = NULL, UseCognitoProvidedValues = NULL, Settings = NULL, Assets = NULL) {
op <- new_operation(
name = "UpdateManagedLoginBranding",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$update_managed_login_branding_input(UserPoolId = UserPoolId, ManagedLoginBrandingId = ManagedLoginBrandingId, UseCognitoProvidedValues = UseCognitoProvidedValues, Settings = Settings, Assets = Assets)
output <- .cognitoidentityprovider$update_managed_login_branding_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$update_managed_login_branding <- cognitoidentityprovider_update_managed_login_branding
#' Updates the name and scopes of a resource server
#'
#' @description
#' Updates the name and scopes of a resource server. All other fields are read-only. For more information about resource servers, see [Access control with resource servers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-define-resource-servers.html).
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_update_resource_server/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_update_resource_server/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool that contains the resource server that you want to update.
#' @param Identifier [required] A unique resource server identifier for the resource server. The identifier can be an API friendly name like `solar-system-data`. You can also set an API URL like `https://solar-system-data-api.example.com` as your identifier.
#'
#' Amazon Cognito represents scopes in the access token in the format `$resource-server-identifier/$scope`. Longer scope-identifier strings increase the size of your access tokens.
#' @param Name [required] The updated name of the resource server.
#' @param Scopes An array of updated custom scope names and descriptions that you want to associate with your resource server.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_update_resource_server
cognitoidentityprovider_update_resource_server <- function(UserPoolId, Identifier, Name, Scopes = NULL) {
op <- new_operation(
name = "UpdateResourceServer",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$update_resource_server_input(UserPoolId = UserPoolId, Identifier = Identifier, Name = Name, Scopes = Scopes)
output <- .cognitoidentityprovider$update_resource_server_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$update_resource_server <- cognitoidentityprovider_update_resource_server
#' Modifies existing terms documents for the requested app client
#'
#' @description
#' Modifies existing terms documents for the requested app client. When Terms and conditions and Privacy policy documents are configured, the app client displays links to them in the sign-up page of managed login for the app client.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_update_terms/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_update_terms/) for full documentation.
#'
#' @param TermsId [required] The ID of the terms document that you want to update.
#' @param UserPoolId [required] The ID of the user pool that contains the terms that you want to update.
#' @param TermsName The new name that you want to apply to the requested terms documents.
#' @param TermsSource This parameter is reserved for future use and currently accepts only one value.
#' @param Enforcement This parameter is reserved for future use and currently accepts only one value.
#' @param Links A map of URLs to languages. For each localized language that will view the requested `TermsName`, assign a URL. A selection of `cognito:default` displays for all languages that don't have a language-specific URL.
#'
#' For example, `"cognito:default": "https://terms.example.com", "cognito:spanish": "https://terms.example.com/es"`.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_update_terms
cognitoidentityprovider_update_terms <- function(TermsId, UserPoolId, TermsName = NULL, TermsSource = NULL, Enforcement = NULL, Links = NULL) {
op <- new_operation(
name = "UpdateTerms",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$update_terms_input(TermsId = TermsId, UserPoolId = UserPoolId, TermsName = TermsName, TermsSource = TermsSource, Enforcement = Enforcement, Links = Links)
output <- .cognitoidentityprovider$update_terms_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$update_terms <- cognitoidentityprovider_update_terms
#' Updates the currently signed-in user's attributes
#'
#' @description
#' Updates the currently signed-in user's attributes. To delete an attribute from the user, submit the attribute in your API request with a blank value.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_update_user_attributes/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_update_user_attributes/) for full documentation.
#'
#' @param UserAttributes [required] An array of name-value pairs representing user attributes.
#'
#' For custom attributes, you must add a `custom:` prefix to the attribute name.
#'
#' If you have set an attribute to require verification before Amazon Cognito updates its value, this request doesn’t immediately update the value of that attribute. After your user receives and responds to a verification message to verify the new value, Amazon Cognito updates the attribute value. Your user can sign in and receive messages with the original attribute value until they verify the new value.
#' @param AccessToken [required] A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for `aws.cognito.signin.user.admin`.
#' @param ClientMetadata A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers. You create custom workflows by assigning Lambda functions to user pool triggers.
#'
#' When Amazon Cognito invokes any of these functions, it passes a JSON payload, which the function receives as input. This payload contains a `clientMetadata` attribute that provides the data that you assigned to the ClientMetadata parameter in your request. In your function code, you can process the `clientMetadata` value to enhance your workflow for your specific needs.
#'
#' To review the Lambda trigger types that Amazon Cognito invokes at runtime with API requests, see [Connecting API actions to Lambda triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-working-with-lambda-triggers.html#lambda-triggers-by-event) in the *Amazon Cognito Developer Guide*.
#'
#' When you use the `ClientMetadata` parameter, note that Amazon Cognito won't do the following:
#'
#' - Store the `ClientMetadata` value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the `ClientMetadata` parameter serves no purpose.
#'
#' - Validate the `ClientMetadata` value.
#'
#' - Encrypt the `ClientMetadata` value. Don't send sensitive information in this parameter.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_update_user_attributes
cognitoidentityprovider_update_user_attributes <- function(UserAttributes, AccessToken, ClientMetadata = NULL) {
op <- new_operation(
name = "UpdateUserAttributes",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$update_user_attributes_input(UserAttributes = UserAttributes, AccessToken = AccessToken, ClientMetadata = ClientMetadata)
output <- .cognitoidentityprovider$update_user_attributes_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$update_user_attributes <- cognitoidentityprovider_update_user_attributes
#' Updates the configuration of a user pool
#'
#' @description
#' Updates the configuration of a user pool. To avoid setting parameters to Amazon Cognito defaults, construct this API request to pass the existing configuration of your user pool, modified to include the changes that you want to make.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_update_user_pool/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_update_user_pool/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool you want to update.
#' @param Policies The password policy and sign-in policy in the user pool. The password policy sets options like password complexity requirements and password history. The sign-in policy sets the options available to applications in [choice-based authentication](https://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flows-selection-sdk.html#authentication-flows-selection-choice).
#' @param DeletionProtection When active, `DeletionProtection` prevents accidental deletion of your user pool. Before you can delete a user pool that you have protected against deletion, you must deactivate this feature.
#'
#' When you try to delete a protected user pool in a [`delete_user_pool`][cognitoidentityprovider_delete_user_pool] API request, Amazon Cognito returns an `InvalidParameterException` error. To delete a protected user pool, send a new [`delete_user_pool`][cognitoidentityprovider_delete_user_pool] request after you deactivate deletion protection in an [`update_user_pool`][cognitoidentityprovider_update_user_pool] API request.
#' @param LambdaConfig A collection of user pool Lambda triggers. Amazon Cognito invokes triggers at several possible stages of authentication operations. Triggers can modify the outcome of the operations that invoked them.
#' @param AutoVerifiedAttributes The attributes that you want your user pool to automatically verify. Possible values: **email**, **phone_number**. For more information see [Verifying contact information at sign-up](https://docs.aws.amazon.com/cognito/latest/developerguide/signing-up-users-in-your-app.html#allowing-users-to-sign-up-and-confirm-themselves).
#' @param SmsVerificationMessage This parameter is no longer used.
#' @param EmailVerificationMessage This parameter is no longer used.
#' @param EmailVerificationSubject This parameter is no longer used.
#' @param VerificationMessageTemplate The template for the verification message that your user pool delivers to users who set an email address or phone number attribute.
#'
#' Set the email message type that corresponds to your `DefaultEmailOption` selection. For `CONFIRM_WITH_LINK`, specify an `EmailMessageByLink` and leave `EmailMessage` blank. For `CONFIRM_WITH_CODE`, specify an `EmailMessage` and leave `EmailMessageByLink` blank. When you supply both parameters with either choice, Amazon Cognito returns an error.
#' @param SmsAuthenticationMessage The contents of the SMS message that your user pool sends to users in SMS authentication.
#' @param UserAttributeUpdateSettings The settings for updates to user attributes. These settings include the property `AttributesRequireVerificationBeforeUpdate`, a user-pool setting that tells Amazon Cognito how to handle changes to the value of your users' email address and phone number attributes. For more information, see [Verifying updates to email addresses and phone numbers](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-email-phone-verification.html#user-pool-settings-verifications-verify-attribute-updates).
#' @param MfaConfiguration Sets multi-factor authentication (MFA) to be on, off, or optional. When `ON`, all users must set up MFA before they can sign in. When `OPTIONAL`, your application must make a client-side determination of whether a user wants to register an MFA device. For user pools with adaptive authentication with threat protection, choose `OPTIONAL`.
#'
#' When `MfaConfiguration` is `OPTIONAL`, managed login doesn't automatically prompt users to set up MFA. Amazon Cognito generates MFA prompts in API responses and in managed login for users who have chosen and configured a preferred MFA factor.
#' @param DeviceConfiguration The device-remembering configuration for a user pool. Device remembering or device tracking is a "Remember me on this device" option for user pools that perform authentication with the device key of a trusted device in the back end, instead of a user-provided MFA code. For more information about device authentication, see [Working with user devices in your user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html). A null value indicates that you have deactivated device remembering in your user pool.
#'
#' When you provide a value for any `DeviceConfiguration` field, you activate the Amazon Cognito device-remembering feature. For more information, see [Working with devices](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html).
#' @param EmailConfiguration The email configuration of your user pool. The email configuration type sets your preferred sending method, Amazon Web Services Region, and sender for email invitation and verification messages from your user pool.
#' @param SmsConfiguration The SMS configuration with the settings for your Amazon Cognito user pool to send SMS message with Amazon Simple Notification Service. To send SMS messages with Amazon SNS in the Amazon Web Services Region that you want, the Amazon Cognito user pool uses an Identity and Access Management (IAM) role in your Amazon Web Services account. For more information see [SMS message settings](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html).
#' @param UserPoolTags The tag keys and values to assign to the user pool. A tag is a label that you can use to categorize and manage user pools in different ways, such as by purpose, owner, environment, or other criteria.
#' @param AdminCreateUserConfig The configuration for administrative creation of users. Includes the template for the invitation message for new users, the duration of temporary passwords, and permitting self-service sign-up.
#' @param UserPoolAddOns Contains settings for activation of threat protection, including the operating mode and additional authentication types. To log user security information but take no action, set to `AUDIT`. To configure automatic security responses to potentially unwanted traffic to your user pool, set to `ENFORCED`.
#'
#' For more information, see [Adding advanced security to a user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-threat-protection.html). To activate this setting, your user pool must be on the [Plus tier](https://docs.aws.amazon.com/cognito/latest/developerguide/feature-plans-features-plus.html).
#' @param AccountRecoverySetting The available verified method a user can use to recover their password when they call [`forgot_password`][cognitoidentityprovider_forgot_password]. You can use this setting to define a preferred method when a user has more than one method available. With this setting, SMS doesn't qualify for a valid password recovery mechanism if the user also has SMS multi-factor authentication (MFA) activated. In the absence of this setting, Amazon Cognito uses the legacy behavior to determine the recovery method where SMS is preferred through email.
#' @param PoolName The updated name of your user pool.
#' @param UserPoolTier The user pool [feature plan](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-sign-in-feature-plans.html), or tier. This parameter determines the eligibility of the user pool for features like managed login, access-token customization, and threat protection. Defaults to `ESSENTIALS`.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_update_user_pool
cognitoidentityprovider_update_user_pool <- function(UserPoolId, Policies = NULL, DeletionProtection = NULL, LambdaConfig = NULL, AutoVerifiedAttributes = NULL, SmsVerificationMessage = NULL, EmailVerificationMessage = NULL, EmailVerificationSubject = NULL, VerificationMessageTemplate = NULL, SmsAuthenticationMessage = NULL, UserAttributeUpdateSettings = NULL, MfaConfiguration = NULL, DeviceConfiguration = NULL, EmailConfiguration = NULL, SmsConfiguration = NULL, UserPoolTags = NULL, AdminCreateUserConfig = NULL, UserPoolAddOns = NULL, AccountRecoverySetting = NULL, PoolName = NULL, UserPoolTier = NULL) {
op <- new_operation(
name = "UpdateUserPool",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$update_user_pool_input(UserPoolId = UserPoolId, Policies = Policies, DeletionProtection = DeletionProtection, LambdaConfig = LambdaConfig, AutoVerifiedAttributes = AutoVerifiedAttributes, SmsVerificationMessage = SmsVerificationMessage, EmailVerificationMessage = EmailVerificationMessage, EmailVerificationSubject = EmailVerificationSubject, VerificationMessageTemplate = VerificationMessageTemplate, SmsAuthenticationMessage = SmsAuthenticationMessage, UserAttributeUpdateSettings = UserAttributeUpdateSettings, MfaConfiguration = MfaConfiguration, DeviceConfiguration = DeviceConfiguration, EmailConfiguration = EmailConfiguration, SmsConfiguration = SmsConfiguration, UserPoolTags = UserPoolTags, AdminCreateUserConfig = AdminCreateUserConfig, UserPoolAddOns = UserPoolAddOns, AccountRecoverySetting = AccountRecoverySetting, PoolName = PoolName, UserPoolTier = UserPoolTier)
output <- .cognitoidentityprovider$update_user_pool_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$update_user_pool <- cognitoidentityprovider_update_user_pool
#' Given a user pool app client ID, updates the configuration
#'
#' @description
#' Given a user pool app client ID, updates the configuration. To avoid setting parameters to Amazon Cognito defaults, construct this API request to pass the existing configuration of your app client, modified to include the changes that you want to make.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_update_user_pool_client/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_update_user_pool_client/) for full documentation.
#'
#' @param UserPoolId [required] The ID of the user pool where you want to update the app client.
#' @param ClientId [required] The ID of the app client that you want to update.
#' @param ClientName A friendly name for the app client.
#' @param RefreshTokenValidity The refresh token time limit. After this limit expires, your user can't use their refresh token. To specify the time unit for `RefreshTokenValidity` as `seconds`, `minutes`, `hours`, or `days`, set a `TokenValidityUnits` value in your API request.
#'
#' For example, when you set `RefreshTokenValidity` as `10` and `TokenValidityUnits` as `days`, your user can refresh their session and retrieve new access and ID tokens for 10 days.
#'
#' The default time unit for `RefreshTokenValidity` in an API request is days. You can't set `RefreshTokenValidity` to 0. If you do, Amazon Cognito overrides the value with the default value of 30 days. *Valid range* is displayed below in seconds.
#'
#' If you don't specify otherwise in the configuration of your app client, your refresh tokens are valid for 30 days.
#' @param AccessTokenValidity The access token time limit. After this limit expires, your user can't use their access token. To specify the time unit for `AccessTokenValidity` as `seconds`, `minutes`, `hours`, or `days`, set a `TokenValidityUnits` value in your API request.
#'
#' For example, when you set `AccessTokenValidity` to `10` and `TokenValidityUnits` to `hours`, your user can authorize access with their access token for 10 hours.
#'
#' The default time unit for `AccessTokenValidity` in an API request is hours. *Valid range* is displayed below in seconds.
#'
#' If you don't specify otherwise in the configuration of your app client, your access tokens are valid for one hour.
#' @param IdTokenValidity The ID token time limit. After this limit expires, your user can't use their ID token. To specify the time unit for `IdTokenValidity` as `seconds`, `minutes`, `hours`, or `days`, set a `TokenValidityUnits` value in your API request.
#'
#' For example, when you set `IdTokenValidity` as `10` and `TokenValidityUnits` as `hours`, your user can authenticate their session with their ID token for 10 hours.
#'
#' The default time unit for `IdTokenValidity` in an API request is hours. *Valid range* is displayed below in seconds.
#'
#' If you don't specify otherwise in the configuration of your app client, your ID tokens are valid for one hour.
#' @param TokenValidityUnits The units that validity times are represented in. The default unit for refresh tokens is days, and the default for ID and access tokens are hours.
#' @param ReadAttributes The list of user attributes that you want your app client to have read access to. After your user authenticates in your app, their access token authorizes them to read their own attribute value for any attribute in this list.
#'
#' When you don't specify the `ReadAttributes` for your app client, your app can read the values of `email_verified`, `phone_number_verified`, and the standard attributes of your user pool. When your user pool app client has read access to these default attributes, `ReadAttributes` doesn't return any information. Amazon Cognito only populates `ReadAttributes` in the API response if you have specified your own custom set of read attributes.
#' @param WriteAttributes The list of user attributes that you want your app client to have write access to. After your user authenticates in your app, their access token authorizes them to set or modify their own attribute value for any attribute in this list.
#'
#' When you don't specify the `WriteAttributes` for your app client, your app can write the values of the Standard attributes of your user pool. When your user pool has write access to these default attributes, `WriteAttributes` doesn't return any information. Amazon Cognito only populates `WriteAttributes` in the API response if you have specified your own custom set of write attributes.
#'
#' If your app client allows users to sign in through an IdP, this array must include all attributes that you have mapped to IdP attributes. Amazon Cognito updates mapped attributes when users sign in to your application through an IdP. If your app client does not have write access to a mapped attribute, Amazon Cognito throws an error when it tries to update the attribute. For more information, see [Specifying IdP Attribute Mappings for Your user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-specifying-attribute-mapping.html).
#' @param ExplicitAuthFlows The [authentication flows](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-authentication-flow-methods.html) that you want your user pool client to support. For each app client in your user pool, you can sign in your users with any combination of one or more flows, including with a user name and Secure Remote Password (SRP), a user name and password, or a custom authentication process that you define with Lambda functions.
#'
#' If you don't specify a value for `ExplicitAuthFlows`, your app client supports `ALLOW_REFRESH_TOKEN_AUTH`, `ALLOW_USER_SRP_AUTH`, and `ALLOW_CUSTOM_AUTH`.
#'
#' The values for authentication flow options include the following.
#'
#' - `ALLOW_USER_AUTH`: Enable selection-based sign-in with `USER_AUTH`. This setting covers username-password, secure remote password (SRP), passwordless, and passkey authentication. This authentiation flow can do username-password and SRP authentication without other `ExplicitAuthFlows` permitting them. For example users can complete an SRP challenge through `USER_AUTH` without the flow `USER_SRP_AUTH` being active for the app client. This flow doesn't include `CUSTOM_AUTH`.
#'
#' To activate this setting, your user pool must be in the [Essentials tier](https://docs.aws.amazon.com/cognito/latest/developerguide/feature-plans-features-essentials.html) or higher.
#'
#' - `ALLOW_ADMIN_USER_PASSWORD_AUTH`: Enable admin based user password authentication flow `ADMIN_USER_PASSWORD_AUTH`. This setting replaces the `ADMIN_NO_SRP_AUTH` setting. With this authentication flow, your app passes a user name and password to Amazon Cognito in the request, instead of using the Secure Remote Password (SRP) protocol to securely transmit the password.
#'
#' - `ALLOW_CUSTOM_AUTH`: Enable Lambda trigger based authentication.
#'
#' - `ALLOW_USER_PASSWORD_AUTH`: Enable user password-based authentication. In this flow, Amazon Cognito receives the password in the request instead of using the SRP protocol to verify passwords.
#'
#' - `ALLOW_USER_SRP_AUTH`: Enable SRP-based authentication.
#'
#' - `ALLOW_REFRESH_TOKEN_AUTH`: Enable authflow to refresh tokens.
#'
#' In some environments, you will see the values `ADMIN_NO_SRP_AUTH`, `CUSTOM_AUTH_FLOW_ONLY`, or `USER_PASSWORD_AUTH`. You can't assign these legacy `ExplicitAuthFlows` values to user pool clients at the same time as values that begin with `ALLOW_`, like `ALLOW_USER_SRP_AUTH`.
#' @param SupportedIdentityProviders A list of provider names for the identity providers (IdPs) that are supported on this client. The following are supported: `COGNITO`, `Facebook`, `Google`, `SignInWithApple`, and `LoginWithAmazon`. You can also specify the names that you configured for the SAML and OIDC IdPs in your user pool, for example `MySAMLIdP` or `MyOIDCIdP`.
#'
#' This parameter sets the IdPs that [managed login](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-managed-login.html) will display on the login page for your app client. The removal of `COGNITO` from this list doesn't prevent authentication operations for local users with the user pools API in an Amazon Web Services SDK. The only way to prevent SDK-based authentication is to block access with a [WAF rule](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-waf.html).
#' @param CallbackURLs A list of allowed redirect, or callback, URLs for managed login authentication. These URLs are the paths where you want to send your users' browsers after they complete authentication with managed login or a third-party IdP. Typically, callback URLs are the home of an application that uses OAuth or OIDC libraries to process authentication outcomes.
#'
#' A redirect URI must meet the following requirements:
#'
#' - Be an absolute URI.
#'
#' - Be registered with the authorization server. Amazon Cognito doesn't accept authorization requests with `redirect_uri` values that aren't in the list of `CallbackURLs` that you provide in this parameter.
#'
#' - Not include a fragment component.
#'
#' See [OAuth 2.0 - Redirection Endpoint](https://datatracker.ietf.org/doc/html/rfc6749#section-3.1.2).
#'
#' Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes only.
#'
#' App callback URLs such as `myapp://example` are also supported.
#' @param LogoutURLs A list of allowed logout URLs for managed login authentication. When you pass `logout_uri` and `client_id` parameters to `/logout`, Amazon Cognito signs out your user and redirects them to the logout URL. This parameter describes the URLs that you want to be the permitted targets of `logout_uri`. A typical use of these URLs is when a user selects "Sign out" and you redirect them to your public homepage. For more information, see [Logout endpoint](https://docs.aws.amazon.com/cognito/latest/developerguide/logout-endpoint.html).
#' @param DefaultRedirectURI The default redirect URI. In app clients with one assigned IdP, replaces `redirect_uri` in authentication requests. Must be in the `CallbackURLs` list.
#' @param AllowedOAuthFlows The OAuth grant types that you want your app client to generate. To create an app client that generates client credentials grants, you must add `client_credentials` as the only allowed OAuth flow.
#'
#' **code**
#'
#' Use a code grant flow, which provides an authorization code as the response. This code can be exchanged for access tokens with the `/oauth2/token` endpoint.
#'
#' **implicit**
#'
#' Issue the access token (and, optionally, ID token, based on scopes) directly to your user.
#'
#' **client_credentials**
#'
#' Issue the access token from the `/oauth2/token` endpoint directly to a non-person user using a combination of the client ID and client secret.
#' @param AllowedOAuthScopes The OAuth, OpenID Connect (OIDC), and custom scopes that you want to permit your app client to authorize access with. Scopes govern access control to user pool self-service API operations, user data from the `userInfo` endpoint, and third-party APIs. Scope values include `phone`, `email`, `openid`, and `profile`. The `aws.cognito.signin.user.admin` scope authorizes user self-service operations. Custom scopes with resource servers authorize access to external APIs.
#' @param AllowedOAuthFlowsUserPoolClient Set to `true` to use OAuth 2.0 authorization server features in your app client.
#'
#' This parameter must have a value of `true` before you can configure the following features in your app client.
#'
#' - `CallBackURLs`: Callback URLs.
#'
#' - `LogoutURLs`: Sign-out redirect URLs.
#'
#' - `AllowedOAuthScopes`: OAuth 2.0 scopes.
#'
#' - `AllowedOAuthFlows`: Support for authorization code, implicit, and client credentials OAuth 2.0 grants.
#'
#' To use authorization server features, configure one of these features in the Amazon Cognito console or set `AllowedOAuthFlowsUserPoolClient` to `true` in a [`create_user_pool_client`][cognitoidentityprovider_create_user_pool_client] or [`update_user_pool_client`][cognitoidentityprovider_update_user_pool_client] API request. If you don't set a value for `AllowedOAuthFlowsUserPoolClient` in a request with the CLI or SDKs, it defaults to `false`. When `false`, only SDK-based API sign-in is permitted.
#' @param AnalyticsConfiguration The user pool analytics configuration for collecting metrics and sending them to your Amazon Pinpoint campaign.
#'
#' In Amazon Web Services Regions where Amazon Pinpoint isn't available, user pools might not have access to analytics or might be configurable with campaigns in the US East (N. Virginia) Region. For more information, see [Using Amazon Pinpoint analytics](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-pinpoint-integration.html).
#' @param PreventUserExistenceErrors When `ENABLED`, suppresses messages that might indicate a valid user exists when someone attempts sign-in. This parameters sets your preference for the errors and responses that you want Amazon Cognito APIs to return during authentication, account confirmation, and password recovery when the user doesn't exist in the user pool. When set to `ENABLED` and the user doesn't exist, authentication returns an error indicating either the username or password was incorrect. Account confirmation and password recovery return a response indicating a code was sent to a simulated destination. When set to `LEGACY`, those APIs return a `UserNotFoundException` exception if the user doesn't exist in the user pool.
#'
#' Defaults to `LEGACY`.
#' @param EnableTokenRevocation Activates or deactivates [token revocation](https://docs.aws.amazon.com/cognito/latest/developerguide/token-revocation.html) in the target app client.
#' @param EnablePropagateAdditionalUserContextData When `true`, your application can include additional `UserContextData` in authentication requests. This data includes the IP address, and contributes to analysis by threat protection features. For more information about propagation of user context data, see [Adding session data to API requests](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-adaptive-authentication.html#user-pool-settings-adaptive-authentication-device-fingerprint). If you don’t include this parameter, you can't send the source IP address to Amazon Cognito threat protection features. You can only activate `EnablePropagateAdditionalUserContextData` in an app client that has a client secret.
#' @param AuthSessionValidity Amazon Cognito creates a session token for each API request in an authentication flow. `AuthSessionValidity` is the duration, in minutes, of that session token. Your user pool native user must respond to each authentication challenge before the session expires.
#' @param RefreshTokenRotation The configuration of your app client for refresh token rotation. When enabled, your app client issues new ID, access, and refresh tokens when users renew their sessions with refresh tokens. When disabled, token refresh issues only ID and access tokens.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_update_user_pool_client
cognitoidentityprovider_update_user_pool_client <- function(UserPoolId, ClientId, ClientName = NULL, RefreshTokenValidity = NULL, AccessTokenValidity = NULL, IdTokenValidity = NULL, TokenValidityUnits = NULL, ReadAttributes = NULL, WriteAttributes = NULL, ExplicitAuthFlows = NULL, SupportedIdentityProviders = NULL, CallbackURLs = NULL, LogoutURLs = NULL, DefaultRedirectURI = NULL, AllowedOAuthFlows = NULL, AllowedOAuthScopes = NULL, AllowedOAuthFlowsUserPoolClient = NULL, AnalyticsConfiguration = NULL, PreventUserExistenceErrors = NULL, EnableTokenRevocation = NULL, EnablePropagateAdditionalUserContextData = NULL, AuthSessionValidity = NULL, RefreshTokenRotation = NULL) {
op <- new_operation(
name = "UpdateUserPoolClient",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$update_user_pool_client_input(UserPoolId = UserPoolId, ClientId = ClientId, ClientName = ClientName, RefreshTokenValidity = RefreshTokenValidity, AccessTokenValidity = AccessTokenValidity, IdTokenValidity = IdTokenValidity, TokenValidityUnits = TokenValidityUnits, ReadAttributes = ReadAttributes, WriteAttributes = WriteAttributes, ExplicitAuthFlows = ExplicitAuthFlows, SupportedIdentityProviders = SupportedIdentityProviders, CallbackURLs = CallbackURLs, LogoutURLs = LogoutURLs, DefaultRedirectURI = DefaultRedirectURI, AllowedOAuthFlows = AllowedOAuthFlows, AllowedOAuthScopes = AllowedOAuthScopes, AllowedOAuthFlowsUserPoolClient = AllowedOAuthFlowsUserPoolClient, AnalyticsConfiguration = AnalyticsConfiguration, PreventUserExistenceErrors = PreventUserExistenceErrors, EnableTokenRevocation = EnableTokenRevocation, EnablePropagateAdditionalUserContextData = EnablePropagateAdditionalUserContextData, AuthSessionValidity = AuthSessionValidity, RefreshTokenRotation = RefreshTokenRotation)
output <- .cognitoidentityprovider$update_user_pool_client_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$update_user_pool_client <- cognitoidentityprovider_update_user_pool_client
#' A user pool domain hosts managed login, an authorization server and web
#' server for authentication in your application
#'
#' @description
#' A user pool domain hosts managed login, an authorization server and web server for authentication in your application. This operation updates the branding version for user pool domains between `1` for hosted UI (classic) and `2` for managed login. It also updates the SSL certificate for user pool custom domains.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_update_user_pool_domain/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_update_user_pool_domain/) for full documentation.
#'
#' @param Domain [required] The name of the domain that you want to update. For custom domains, this is the fully-qualified domain name, for example `auth.example.com`. For prefix domains, this is the prefix alone, such as `myprefix`.
#' @param UserPoolId [required] The ID of the user pool that is associated with the domain you're updating.
#' @param ManagedLoginVersion A version number that indicates the state of managed login for your domain. Version `1` is hosted UI (classic). Version `2` is the newer managed login with the branding editor. For more information, see [Managed login](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-managed-login.html).
#' @param CustomDomainConfig The configuration for a custom domain that hosts managed login for your application. In an [`update_user_pool_domain`][cognitoidentityprovider_update_user_pool_domain] request, this parameter specifies an SSL certificate for the managed login hosted webserver. The certificate must be an ACM ARN in `us-east-1`.
#'
#' When you create a custom domain, the passkey RP ID defaults to the custom domain. If you had a prefix domain active, this will cause passkey integration for your prefix domain to stop working due to a mismatch in RP ID. To keep the prefix domain passkey integration working, you can explicitly set RP ID to the prefix domain.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_update_user_pool_domain
cognitoidentityprovider_update_user_pool_domain <- function(Domain, UserPoolId, ManagedLoginVersion = NULL, CustomDomainConfig = NULL) {
op <- new_operation(
name = "UpdateUserPoolDomain",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$update_user_pool_domain_input(Domain = Domain, UserPoolId = UserPoolId, ManagedLoginVersion = ManagedLoginVersion, CustomDomainConfig = CustomDomainConfig)
output <- .cognitoidentityprovider$update_user_pool_domain_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$update_user_pool_domain <- cognitoidentityprovider_update_user_pool_domain
#' Registers the current user's time-based one-time password (TOTP)
#' authenticator with a code generated in their authenticator app from a
#' private key that's supplied by your user pool
#'
#' @description
#' Registers the current user's time-based one-time password (TOTP) authenticator with a code generated in their authenticator app from a private key that's supplied by your user pool. Marks the user's software token MFA status as "verified" if successful. The request takes an access token or a session string, but not both.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_verify_software_token/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_verify_software_token/) for full documentation.
#'
#' @param AccessToken A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for `aws.cognito.signin.user.admin`.
#' @param Session The session ID from an [`associate_software_token`][cognitoidentityprovider_associate_software_token] request.
#' @param UserCode [required] A TOTP that the user generated in their configured authenticator app.
#' @param FriendlyDeviceName A friendly name for the device that's running the TOTP authenticator.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_verify_software_token
cognitoidentityprovider_verify_software_token <- function(AccessToken = NULL, Session = NULL, UserCode, FriendlyDeviceName = NULL) {
op <- new_operation(
name = "VerifySoftwareToken",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$verify_software_token_input(AccessToken = AccessToken, Session = Session, UserCode = UserCode, FriendlyDeviceName = FriendlyDeviceName)
output <- .cognitoidentityprovider$verify_software_token_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$verify_software_token <- cognitoidentityprovider_verify_software_token
#' Submits a verification code for a signed-in user who has added or
#' changed a value of an auto-verified attribute
#'
#' @description
#' Submits a verification code for a signed-in user who has added or changed a value of an auto-verified attribute. When successful, the user's attribute becomes verified and the attribute `email_verified` or `phone_number_verified` becomes `true`.
#'
#' See [https://www.paws-r-sdk.com/docs/cognitoidentityprovider_verify_user_attribute/](https://www.paws-r-sdk.com/docs/cognitoidentityprovider_verify_user_attribute/) for full documentation.
#'
#' @param AccessToken [required] A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for `aws.cognito.signin.user.admin`.
#' @param AttributeName [required] The name of the attribute that you want to verify.
#' @param Code [required] The verification code that your user pool sent to the added or changed attribute, for example the user's email address.
#'
#' @keywords internal
#'
#' @rdname cognitoidentityprovider_verify_user_attribute
cognitoidentityprovider_verify_user_attribute <- function(AccessToken, AttributeName, Code) {
op <- new_operation(
name = "VerifyUserAttribute",
http_method = "POST",
http_path = "/",
host_prefix = "",
paginator = list(),
stream_api = FALSE
)
input <- .cognitoidentityprovider$verify_user_attribute_input(AccessToken = AccessToken, AttributeName = AttributeName, Code = Code)
output <- .cognitoidentityprovider$verify_user_attribute_output()
config <- get_config()
svc <- .cognitoidentityprovider$service(config, op)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.cognitoidentityprovider$operations$verify_user_attribute <- cognitoidentityprovider_verify_user_attribute
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.