Backend appId Auth backendEnvironmentName
The authentication and authorization settings from your Amplify project.
URI
/prod/backend/appId/auth/backendEnvironmentName
HTTP methods
POST
Operation ID: UpdateBackendAuth
Updates an existing backend authentication resource.
| Name | Type | Required | Description |
|---|---|---|---|
appId | String | True | The app ID. |
backendEnvironmentName | String | True | The name of the backend environment. |
| Status code | Response model | Description |
|---|---|---|
200 | BackendAuthRespObj | 200 response |
400 | BadRequestException | 400 response |
404 | NotFoundException | 404 response |
429 | LimitExceededException | 429 response |
504 | InternalServiceException | 504 response |
OPTIONS
Enables CORS by returning the correct headers.
| Name | Type | Required | Description |
|---|---|---|---|
appId | String | True | The app ID. |
backendEnvironmentName | String | True | The name of the backend environment. |
| Status code | Response model | Description |
|---|---|---|
200 | None | 200 response |
Schemas
Request bodies
{ "resourceConfig resourceConfig": { "userPoolConfigs userPoolConfigs": { "forgotPassword forgotPassword": { "smsSettings smsSettings": { "smsMessage smsMessage": "string" }, "deliveryMethod deliveryMethod": enum, "emailSettings emailSettings": { "emailMessage emailMessage": "string", "emailSubject emailSubject": "string" } }, "passwordPolicy passwordPolicy": { "minimumLength minimumLength": number, "additionalConstraints additionalConstraints": [ enum ] }, "mfa mfa": { "MFAMode MFAMode": enum, "settings settings": { } }, "oAuth oAuth": { "redirectSignOutURIs redirectSignOutURIs": [ "string" ], "domainPrefix domainPrefix": "string", "redirectSignInURIs redirectSignInURIs": [ "string" ], "oAuthScopes oAuthScopes": [ enum ], "socialProviderSettings socialProviderSettings": { }, "oAuthGrantType oAuthGrantType": enum }, "verificationMessage verificationMessage": { "smsSettings smsSettings": { "smsMessage smsMessage": "string" }, "deliveryMethod deliveryMethod": enum, "emailSettings emailSettings": { "emailMessage emailMessage": "string", "emailSubject emailSubject": "string" } } }, "authResources authResources": enum, "service service": enum, "identityPoolConfigs identityPoolConfigs": { "unauthenticatedLogin unauthenticatedLogin": boolean } }, "resourceName resourceName": "string" }
Response bodies
{ "jobId jobId": "string", "appId appId": "string", "error error": "string", "operation operation": "string", "backendEnvironmentName backendEnvironmentName": "string", "status status": "string" }
{ "message message": "string" }
{ "message message": "string", "resourceType resourceType": "string" }
{ "message message": "string", "limitType limitType": "string" }
{ "message message": "string" }
Properties
BackendAuthRespObj
The response object for this operation.
| Property | Type | Required | Description |
|---|---|---|---|
appId | string | True | The app ID. |
backendEnvironmentName | string | True | The name of the backend environment. |
error | string | False | If the request fails, this error is returned. |
jobId | string | False | The ID for the job. |
operation | string | False | The name of the operation. |
status | string | False | The current status of the request. |
jobId
The ID for the job.
Type: string
Required: False
appId
The app ID.
Type: string
Required: True
error
If the request fails, this error is returned.
Type: string
Required: False
operation
The name of the operation.
Type: string
Required: False
backendEnvironmentName
The name of the backend environment.
Type: string
Required: True
status
The current status of the request.
Type: string
Required: False
BadRequestException
An error returned if a request is not formed properly.
| Property | Type | Required | Description |
|---|---|---|---|
message | string | False | An error message to inform that the request failed. |
message
An error message to inform that the request failed.
Type: string
Required: False
DeliveryMethod
The type of verification message to send.
EMAILSMS
EmailSettings
The settings for the email message.
| Property | Type | Required | Description |
|---|---|---|---|
emailMessage | string | False | The contents of the email message. |
emailSubject | string | False | The contents of the subject line of the email message. |
emailMessage
The contents of the email message.
Type: string
Required: False
emailSubject
The contents of the subject line of the email message.
Type: string
Required: False
InternalServiceException
An error returned if there's a temporary issue with the service.
| Property | Type | Required | Description |
|---|---|---|---|
message | string | False | An error message to inform that the request failed. |
message
An error message to inform that the request failed.
Type: string
Required: False
LimitExceededException
An error that is returned when a limit of a specific type has been exceeded.
| Property | Type | Required | Description |
|---|---|---|---|
limitType | string | False | The type of limit that was exceeded. |
message | string | False | An error message to inform that the request has failed. |
message
An error message to inform that the request has failed.
Type: string
Required: False
limitType
The type of limit that was exceeded.
Type: string
Required: False
NotFoundException
An error returned when a specific resource type is not found.
| Property | Type | Required | Description |
|---|---|---|---|
message | string | False | An error message to inform that the request has failed. |
resourceType | string | False | The type of resource that is not found. |
message
An error message to inform that the request has failed.
Type: string
Required: False
resourceType
The type of resource that is not found.
Type: string
Required: False
SmsSettings
The settings for the SMS message.
| Property | Type | Required | Description |
|---|---|---|---|
smsMessage | string | False | The contents of the SMS message. |
smsMessage
The contents of the SMS message.
Type: string
Required: False
UpdateBackendAuthForgotPasswordConfig
(DEPRECATED) Describes the forgot password policy for authenticating into the Amplify app.
| Property | Type | Required | Description |
|---|---|---|---|
deliveryMethod | False | (DEPRECATED) Describes which mode to use (either SMS or email) to deliver messages to app users that want to recover their password. | |
emailSettings | False | (DEPRECATED) The configuration for the email sent when an app user forgets their password. | |
smsSettings | False | (DEPRECATED) The configuration for the SMS message sent when an Amplify app user forgets their password. |
smsSettings
(DEPRECATED) The configuration for the SMS message sent when an Amplify app user forgets their password.
Type: SmsSettings
Required: False
deliveryMethod
(DEPRECATED) Describes which mode to use (either SMS or email) to deliver messages to app users that want to recover their password.
Type: DeliveryMethod
Required: False
emailSettings
(DEPRECATED) The configuration for the email sent when an app user forgets their password.
Type: EmailSettings
Required: False
UpdateBackendAuthIdentityPoolConfig
Describes the authorization configuration for the Amazon Cognito identity pool, provisioned as a part of your auth resource in the Amplify project.
| Property | Type | Required | Description |
|---|---|---|---|
unauthenticatedLogin | boolean | False | A boolean value that can be set to allow or disallow guest-level authorization into your Amplify app. |
unauthenticatedLogin
A boolean value that can be set to allow or disallow guest-level authorization into your Amplify app.
Type: boolean
Required: False
UpdateBackendAuthMFAConfig
Updates the multi-factor authentication (MFA) configuration for the backend of your Amplify project.
| Property | Type | Required | Description |
|---|---|---|---|
MFAMode | string Values: | False | The MFA mode for the backend of your Amplify project. |
settings | object | False | The settings of your MFA configuration for the backend of your Amplify project. |
MFAMode
The MFA mode for the backend of your Amplify project.
Type: string
Required: False
Values:
ON | OFF | OPTIONAL
settings
The settings of your MFA configuration for the backend of your Amplify project.
Type: object
Required: False
UpdateBackendAuthOAuthConfig
The OAuth configurations for authenticating users into your Amplify app.
| Property | Type | Required | Description |
|---|---|---|---|
domainPrefix | string | False | The Amazon Cognito domain prefix used to create a hosted UI for authentication. |
oAuthGrantType | string Values: | False | The OAuth grant type to allow app users to authenticate from your Amplify app. |
oAuthScopes | Array of type string Values: | False | The list of OAuth-related flows that can allow users to authenticate from your Amplify app. |
redirectSignInURIs | Array of type string | False | Redirect URLs that OAuth uses when a user signs in to an Amplify app. |
redirectSignOutURIs | Array of type string | False | Redirect URLs that OAuth uses when a user signs out of an Amplify app. |
socialProviderSettings | object | False | Describes third-party social federation configurations for allowing your users to sign in with OAuth. |
redirectSignOutURIs
Redirect URLs that OAuth uses when a user signs out of an Amplify app.
Type: Array of type string
Required: False
domainPrefix
The Amazon Cognito domain prefix used to create a hosted UI for authentication.
Type: string
Required: False
redirectSignInURIs
Redirect URLs that OAuth uses when a user signs in to an Amplify app.
Type: Array of type string
Required: False
oAuthScopes
The list of OAuth-related flows that can allow users to authenticate from your Amplify app.
Type: Array of type string
Required: False
Values:
PHONE | EMAIL | OPENID | PROFILE | AWS_COGNITO_SIGNIN_USER_ADMIN
socialProviderSettings
Describes third-party social federation configurations for allowing your users to sign in with OAuth.
Type: object
Required: False
oAuthGrantType
The OAuth grant type to allow app users to authenticate from your Amplify app.
Type: string
Required: False
Values:
CODE | IMPLICIT
UpdateBackendAuthPasswordPolicyConfig
Describes the password policy for your Amazon Cognito user pool configured as a part of your Amplify project.
| Property | Type | Required | Description |
|---|---|---|---|
additionalConstraints | Array of type string Values: | False | Describes additional constraints on password requirements to sign in to the auth resource, configured as a part of your Amplify project. |
minimumLength | number | False | Describes the minimum length of the password required to sign in to the auth resource, configured as a part of your Amplify project. |
minimumLength
Describes the minimum length of the password required to sign in to the auth resource, configured as a part of your Amplify project.
Type: number
Required: False
additionalConstraints
Describes additional constraints on password requirements to sign in to the auth resource, configured as a part of your Amplify project.
Type: Array of type string
Required: False
Values:
REQUIRE_DIGIT | REQUIRE_LOWERCASE | REQUIRE_SYMBOL | REQUIRE_UPPERCASE
UpdateBackendAuthReqObj
The request object for this operation.
| Property | Type | Required | Description |
|---|---|---|---|
resourceConfig | True | The resource configuration for this request object. | |
resourceName | string | True | The name of this resource. |
resourceConfig
The resource configuration for this request object.
Required: True
resourceName
The name of this resource.
Type: string
Required: True
UpdateBackendAuthResourceConfig
Defines the resource configuration when updating an authentication resource in your Amplify project.
| Property | Type | Required | Description |
|---|---|---|---|
authResources | string Values: | True | Defines the service name to use when configuring an authentication resource in your Amplify project. |
identityPoolConfigs | False | Describes the authorization configuration for the Amazon Cognito identity pool, provisioned as a part of your auth resource in the Amplify project. | |
service | string Values: | True | Defines the service name to use when configuring an authentication resource in your Amplify project. |
userPoolConfigs | True | Describes the authentication configuration for the Amazon Cognito user pool, provisioned as a part of your auth resource in the Amplify project. |
userPoolConfigs
Describes the authentication configuration for the Amazon Cognito user pool, provisioned as a part of your auth resource in the Amplify project.
Required: True
authResources
Defines the service name to use when configuring an authentication resource in your Amplify project.
Type: string
Required: True
Values:
USER_POOL_ONLY | IDENTITY_POOL_AND_USER_POOL
service
Defines the service name to use when configuring an authentication resource in your Amplify project.
Type: string
Required: True
Values:
COGNITO
identityPoolConfigs
Describes the authorization configuration for the Amazon Cognito identity pool, provisioned as a part of your auth resource in the Amplify project.
Required: False
UpdateBackendAuthUserPoolConfig
Describes the Amazon Cognito user pool configuration for the authorization resource to be configured for your Amplify project on an update.
| Property | Type | Required | Description |
|---|---|---|---|
forgotPassword | False | (DEPRECATED) Describes the forgot password policy for your Amazon Cognito user pool, configured as a part of your Amplify project. | |
mfa | False | Describes whether to apply multi-factor authentication policies for your Amazon Cognito user pool configured as a part of your Amplify project. | |
oAuth | False | Describes the OAuth policy and rules for your Amazon Cognito user pool, configured as a part of your Amplify project. | |
passwordPolicy | False | Describes the password policy for your Amazon Cognito user pool, configured as a part of your Amplify project. | |
verificationMessage | False | Describes the email or SMS verification message for your Amazon Cognito user pool, configured as a part of your Amplify project. |
forgotPassword
(DEPRECATED) Describes the forgot password policy for your Amazon Cognito user pool, configured as a part of your Amplify project.
Required: False
passwordPolicy
Describes the password policy for your Amazon Cognito user pool, configured as a part of your Amplify project.
Required: False
mfa
Describes whether to apply multi-factor authentication policies for your Amazon Cognito user pool configured as a part of your Amplify project.
Required: False
oAuth
Describes the OAuth policy and rules for your Amazon Cognito user pool, configured as a part of your Amplify project.
Required: False
verificationMessage
Describes the email or SMS verification message for your Amazon Cognito user pool, configured as a part of your Amplify project.
Required: False
UpdateBackendAuthVerificationMessageConfig
Updates the configuration of the email or SMS message for the auth resource configured for your Amplify project.
| Property | Type | Required | Description |
|---|---|---|---|
deliveryMethod | True | The type of verification message to send. | |
emailSettings | False | The settings for the email message. | |
smsSettings | False | The settings for the SMS message. |
See also
For more information about using this API in one of the language-specific AWS SDKs and references, see the following: