Table of Contents
A low-level client representing AmplifyBackend
AWS Amplify Admin API
import boto3
client = boto3.client('amplifybackend')
These are the available methods:
Check if an operation can be paginated.
This operation clones an existing backend.
See also: AWS API Documentation
Request Syntax
response = client.clone_backend(
AppId='string',
BackendEnvironmentName='string',
TargetEnvironmentName='string'
)
[REQUIRED]
The app ID.
[REQUIRED]
The name of the backend environment.
[REQUIRED]
The name of the destination backend environment to be created.
dict
Response Syntax
{
'AppId': 'string',
'BackendEnvironmentName': 'string',
'Error': 'string',
'JobId': 'string',
'Operation': 'string',
'Status': 'string'
}
Response Structure
(dict) --
200 response
AppId (string) --
The app ID.
BackendEnvironmentName (string) --
The name of the backend environment.
Error (string) --
If the request fails, this error is returned.
JobId (string) --
The ID for the job.
Operation (string) --
The name of the operation.
Status (string) --
The current status of the request.
Exceptions
This operation creates a backend for an Amplify app. Backends are automatically created at the time of app creation.
See also: AWS API Documentation
Request Syntax
response = client.create_backend(
AppId='string',
AppName='string',
BackendEnvironmentName='string',
ResourceConfig={}
,
ResourceName='string'
)
[REQUIRED]
The app ID.
[REQUIRED]
The name of the app.
[REQUIRED]
The name of the backend environment.
dict
Response Syntax
{
'AppId': 'string',
'BackendEnvironmentName': 'string',
'Error': 'string',
'JobId': 'string',
'Operation': 'string',
'Status': 'string'
}
Response Structure
(dict) --
200 response
AppId (string) --
The app ID.
BackendEnvironmentName (string) --
The name of the backend environment.
Error (string) --
If the request fails, this error is returned.
JobId (string) --
The ID for the job.
Operation (string) --
The name of the operation.
Status (string) --
The current status of the request.
Exceptions
Creates a new backend API resource.
See also: AWS API Documentation
Request Syntax
response = client.create_backend_api(
AppId='string',
BackendEnvironmentName='string',
ResourceConfig={
'AdditionalAuthTypes': [
{
'Mode': 'API_KEY'|'AWS_IAM'|'AMAZON_COGNITO_USER_POOLS'|'OPENID_CONNECT',
'Settings': {
'CognitoUserPoolId': 'string',
'Description': 'string',
'ExpirationTime': 123.0,
'OpenIDAuthTTL': 'string',
'OpenIDClientId': 'string',
'OpenIDIatTTL': 'string',
'OpenIDIssueURL': 'string',
'OpenIDProviderName': 'string'
}
},
],
'ApiName': 'string',
'ConflictResolution': {
'ResolutionStrategy': 'OPTIMISTIC_CONCURRENCY'|'LAMBDA'|'AUTOMERGE'|'NONE'
},
'DefaultAuthType': {
'Mode': 'API_KEY'|'AWS_IAM'|'AMAZON_COGNITO_USER_POOLS'|'OPENID_CONNECT',
'Settings': {
'CognitoUserPoolId': 'string',
'Description': 'string',
'ExpirationTime': 123.0,
'OpenIDAuthTTL': 'string',
'OpenIDClientId': 'string',
'OpenIDIatTTL': 'string',
'OpenIDIssueURL': 'string',
'OpenIDProviderName': 'string'
}
},
'Service': 'string',
'TransformSchema': 'string'
},
ResourceName='string'
)
[REQUIRED]
The app ID.
[REQUIRED]
The name of the backend environment.
[REQUIRED]
The resource configuration for this request.
Additional authentication methods used to interact with your data models.
Describes the auth types for your configured data models.
Describes the authentication mode.
Describes settings for the authentication mode.
The Amazon Cognito user pool ID, if Amazon Cognito was used as an authentication setting to access your data models.
The API key description for API_KEY, if it was used as an authentication mechanism to access your data models.
The API key expiration time for API_KEY, if it was used as an authentication mechanism to access your data models.
The expiry time for the OpenID authentication mechanism.
The clientID for openID, if openID was used as an authentication setting to access your data models.
The expiry time for the OpenID authentication mechanism.
The openID issuer URL, if openID was used as an authentication setting to access your data models.
The OpenID provider name, if OpenID was used as an authentication mechanism to access your data models.
The API name used to interact with the data model, configured as a part of your Amplify project.
The conflict resolution strategy for your data stored in the data models.
The strategy for conflict resolution.
The default authentication type for interacting with the configured data models in your Amplify project.
Describes the authentication mode.
Describes settings for the authentication mode.
The Amazon Cognito user pool ID, if Amazon Cognito was used as an authentication setting to access your data models.
The API key description for API_KEY, if it was used as an authentication mechanism to access your data models.
The API key expiration time for API_KEY, if it was used as an authentication mechanism to access your data models.
The expiry time for the OpenID authentication mechanism.
The clientID for openID, if openID was used as an authentication setting to access your data models.
The expiry time for the OpenID authentication mechanism.
The openID issuer URL, if openID was used as an authentication setting to access your data models.
The OpenID provider name, if OpenID was used as an authentication mechanism to access your data models.
The service used to provision and interact with the data model.
The definition of the data model in the annotated transform of the GraphQL schema.
[REQUIRED]
The name of this resource.
dict
Response Syntax
{
'AppId': 'string',
'BackendEnvironmentName': 'string',
'Error': 'string',
'JobId': 'string',
'Operation': 'string',
'Status': 'string'
}
Response Structure
(dict) --
200 response
AppId (string) --
The app ID.
BackendEnvironmentName (string) --
The name of the backend environment.
Error (string) --
If the request fails, this error is returned.
JobId (string) --
The ID for the job.
Operation (string) --
The name of the operation.
Status (string) --
The current status of the request.
Exceptions
Creates a new backend authentication resource.
See also: AWS API Documentation
Request Syntax
response = client.create_backend_auth(
AppId='string',
BackendEnvironmentName='string',
ResourceConfig={
'AuthResources': 'USER_POOL_ONLY'|'IDENTITY_POOL_AND_USER_POOL',
'IdentityPoolConfigs': {
'IdentityPoolName': 'string',
'UnauthenticatedLogin': True|False
},
'Service': 'COGNITO',
'UserPoolConfigs': {
'ForgotPassword': {
'DeliveryMethod': 'EMAIL'|'SMS',
'EmailSettings': {
'EmailMessage': 'string',
'EmailSubject': 'string'
},
'SmsSettings': {
'SmsMessage': 'string'
}
},
'Mfa': {
'MFAMode': 'ON'|'OFF'|'OPTIONAL',
'Settings': {
'MfaTypes': [
'SMS'|'TOTP',
],
'SmsMessage': 'string'
}
},
'OAuth': {
'DomainPrefix': 'string',
'OAuthGrantType': 'CODE'|'IMPLICIT',
'OAuthScopes': [
'PHONE'|'EMAIL'|'OPENID'|'PROFILE'|'AWS_COGNITO_SIGNIN_USER_ADMIN',
],
'RedirectSignInURIs': [
'string',
],
'RedirectSignOutURIs': [
'string',
],
'SocialProviderSettings': {
'Facebook': {
'ClientId': 'string',
'ClientSecret': 'string'
},
'Google': {
'ClientId': 'string',
'ClientSecret': 'string'
},
'LoginWithAmazon': {
'ClientId': 'string',
'ClientSecret': 'string'
},
'SignInWithApple': {
'ClientId': 'string',
'KeyId': 'string',
'PrivateKey': 'string',
'TeamId': 'string'
}
}
},
'PasswordPolicy': {
'AdditionalConstraints': [
'REQUIRE_DIGIT'|'REQUIRE_LOWERCASE'|'REQUIRE_SYMBOL'|'REQUIRE_UPPERCASE',
],
'MinimumLength': 123.0
},
'RequiredSignUpAttributes': [
'ADDRESS'|'BIRTHDATE'|'EMAIL'|'FAMILY_NAME'|'GENDER'|'GIVEN_NAME'|'LOCALE'|'MIDDLE_NAME'|'NAME'|'NICKNAME'|'PHONE_NUMBER'|'PICTURE'|'PREFERRED_USERNAME'|'PROFILE'|'UPDATED_AT'|'WEBSITE'|'ZONE_INFO',
],
'SignInMethod': 'EMAIL'|'EMAIL_AND_PHONE_NUMBER'|'PHONE_NUMBER'|'USERNAME',
'UserPoolName': 'string'
}
},
ResourceName='string'
)
[REQUIRED]
The app ID.
[REQUIRED]
The name of the backend environment.
[REQUIRED]
The resource configuration for this request object.
Defines whether you want to configure only authentication or both authentication and authorization settings.
Describes the authorization configuration for the Amazon Cognito identity pool, provisioned as a part of your auth resource in the Amplify project.
Name of the Amazon Cognito identity pool used for authorization.
Set to true or false based on whether you want to enable guest authorization to your Amplify app.
Defines the service name to use when configuring an authentication resource in your Amplify project.
Describes authentication configuration for the Amazon Cognito user pool, provisioned as a part of your auth resource in the Amplify project.
Describes the forgotten password policy for your Amazon Cognito user pool, configured as a part of your Amplify project.
Describes which mode to use (either SMS or email) to deliver messages to app users who want to recover their password.
The configuration for the email sent when an app user forgets their password.
The body of the email.
The subject of the email.
The configuration for the SMS message sent when an app user forgets their password.
The body of the SMS message.
Describes whether to apply multi-factor authentication policies for your Amazon Cognito user pool configured as a part of your Amplify project.
Describes whether MFA should be [ON, OFF, or OPTIONAL] for authentication in your Amplify project.
Describes the configuration settings and methods for your Amplify app users to use MFA.
The supported MFA types.
The body of the SMS message.
Describes the OAuth policy and rules for your Amazon Cognito user pool, configured as a part of your Amplify project.
The domain prefix for your Amplify app.
The OAuth grant type that you use to allow app users to authenticate from your Amplify app.
List of OAuth-related flows used to allow your app users to authenticate from your Amplify app.
The redirected URI for signing in to your Amplify app.
Redirect URLs that OAuth uses when a user signs out of an Amplify app.
The settings for using social providers to access your Amplify app.
Describes third-party social federation configurations for allowing your app users to sign in using OAuth.
Describes the client_id, which can be obtained from the third-party social federation provider.
Describes the client_secret, which can be obtained from third-party social federation providers.
Describes third-party social federation configurations for allowing your app users to sign in using OAuth.
Describes the client_id, which can be obtained from the third-party social federation provider.
Describes the client_secret, which can be obtained from third-party social federation providers.
Describes third-party social federation configurations for allowing your app users to sign in using OAuth.
Describes the client_id, which can be obtained from the third-party social federation provider.
Describes the client_secret, which can be obtained from third-party social federation providers.
Describes Apple social federation configurations for allowing your app users to sign in using OAuth.
Describes the client_id (also called Services ID) that comes from Apple.
Describes the key_id that comes from Apple.
Describes the private_key that comes from Apple.
Describes the team_id that comes from Apple.
Describes the password policy for your Amazon Cognito user pool, configured as a part of your Amplify project.
Additional constraints for the password used to access the backend of your Amplify project.
The minimum length of the password used to access the backend of your Amplify project.
The required attributes to sign up new users in the user pool.
Describes the sign-in methods that your Amplify app users use to log in using the Amazon Cognito user pool, configured as a part of your Amplify project.
The Amazon Cognito user pool name.
[REQUIRED]
The name of this resource.
dict
Response Syntax
{
'AppId': 'string',
'BackendEnvironmentName': 'string',
'Error': 'string',
'JobId': 'string',
'Operation': 'string',
'Status': 'string'
}
Response Structure
(dict) --
200 response
AppId (string) --
The app ID.
BackendEnvironmentName (string) --
The name of the backend environment.
Error (string) --
If the request fails, this error is returned.
JobId (string) --
The ID for the job.
Operation (string) --
The name of the operation.
Status (string) --
The current status of the request.
Exceptions
Creates a config object for a backend.
See also: AWS API Documentation
Request Syntax
response = client.create_backend_config(
AppId='string',
BackendManagerAppId='string'
)
[REQUIRED]
The app ID.
dict
Response Syntax
{
'AppId': 'string',
'BackendEnvironmentName': 'string',
'JobId': 'string',
'Status': 'string'
}
Response Structure
(dict) --
200 response
AppId (string) --
The app ID.
BackendEnvironmentName (string) --
The name of the backend environment.
JobId (string) --
The ID for the job.
Status (string) --
The current status of the request.
Exceptions
Generates a one-time challenge code to authenticate a user into your Amplify Admin UI.
See also: AWS API Documentation
Request Syntax
response = client.create_token(
AppId='string'
)
[REQUIRED]
The app ID.
{
'AppId': 'string',
'ChallengeCode': 'string',
'SessionId': 'string',
'Ttl': 'string'
}
Response Structure
200 response
The app ID.
One-time challenge code for authenticating into the Amplify Admin UI.
A unique ID provided when creating a new challenge token.
The expiry time for the one-time generated token code.
Exceptions
Removes an existing environment from your Amplify project.
See also: AWS API Documentation
Request Syntax
response = client.delete_backend(
AppId='string',
BackendEnvironmentName='string'
)
[REQUIRED]
The app ID.
[REQUIRED]
The name of the backend environment.
dict
Response Syntax
{
'AppId': 'string',
'BackendEnvironmentName': 'string',
'Error': 'string',
'JobId': 'string',
'Operation': 'string',
'Status': 'string'
}
Response Structure
(dict) --
200 response
AppId (string) --
The app ID.
BackendEnvironmentName (string) --
The name of the backend environment.
Error (string) --
If the request fails, this error is returned.
JobId (string) --
The ID for the job.
Operation (string) --
The name of the operation.
Status (string) --
The current status of the request.
Exceptions
Deletes an existing backend API resource.
See also: AWS API Documentation
Request Syntax
response = client.delete_backend_api(
AppId='string',
BackendEnvironmentName='string',
ResourceConfig={
'AdditionalAuthTypes': [
{
'Mode': 'API_KEY'|'AWS_IAM'|'AMAZON_COGNITO_USER_POOLS'|'OPENID_CONNECT',
'Settings': {
'CognitoUserPoolId': 'string',
'Description': 'string',
'ExpirationTime': 123.0,
'OpenIDAuthTTL': 'string',
'OpenIDClientId': 'string',
'OpenIDIatTTL': 'string',
'OpenIDIssueURL': 'string',
'OpenIDProviderName': 'string'
}
},
],
'ApiName': 'string',
'ConflictResolution': {
'ResolutionStrategy': 'OPTIMISTIC_CONCURRENCY'|'LAMBDA'|'AUTOMERGE'|'NONE'
},
'DefaultAuthType': {
'Mode': 'API_KEY'|'AWS_IAM'|'AMAZON_COGNITO_USER_POOLS'|'OPENID_CONNECT',
'Settings': {
'CognitoUserPoolId': 'string',
'Description': 'string',
'ExpirationTime': 123.0,
'OpenIDAuthTTL': 'string',
'OpenIDClientId': 'string',
'OpenIDIatTTL': 'string',
'OpenIDIssueURL': 'string',
'OpenIDProviderName': 'string'
}
},
'Service': 'string',
'TransformSchema': 'string'
},
ResourceName='string'
)
[REQUIRED]
The app ID.
[REQUIRED]
The name of the backend environment.
Defines the resource configuration for the data model in your Amplify project.
Additional authentication methods used to interact with your data models.
Describes the auth types for your configured data models.
Describes the authentication mode.
Describes settings for the authentication mode.
The Amazon Cognito user pool ID, if Amazon Cognito was used as an authentication setting to access your data models.
The API key description for API_KEY, if it was used as an authentication mechanism to access your data models.
The API key expiration time for API_KEY, if it was used as an authentication mechanism to access your data models.
The expiry time for the OpenID authentication mechanism.
The clientID for openID, if openID was used as an authentication setting to access your data models.
The expiry time for the OpenID authentication mechanism.
The openID issuer URL, if openID was used as an authentication setting to access your data models.
The OpenID provider name, if OpenID was used as an authentication mechanism to access your data models.
The API name used to interact with the data model, configured as a part of your Amplify project.
The conflict resolution strategy for your data stored in the data models.
The strategy for conflict resolution.
The default authentication type for interacting with the configured data models in your Amplify project.
Describes the authentication mode.
Describes settings for the authentication mode.
The Amazon Cognito user pool ID, if Amazon Cognito was used as an authentication setting to access your data models.
The API key description for API_KEY, if it was used as an authentication mechanism to access your data models.
The API key expiration time for API_KEY, if it was used as an authentication mechanism to access your data models.
The expiry time for the OpenID authentication mechanism.
The clientID for openID, if openID was used as an authentication setting to access your data models.
The expiry time for the OpenID authentication mechanism.
The openID issuer URL, if openID was used as an authentication setting to access your data models.
The OpenID provider name, if OpenID was used as an authentication mechanism to access your data models.
The service used to provision and interact with the data model.
The definition of the data model in the annotated transform of the GraphQL schema.
[REQUIRED]
The name of this resource.
dict
Response Syntax
{
'AppId': 'string',
'BackendEnvironmentName': 'string',
'Error': 'string',
'JobId': 'string',
'Operation': 'string',
'Status': 'string'
}
Response Structure
(dict) --
200 response
AppId (string) --
The app ID.
BackendEnvironmentName (string) --
The name of the backend environment.
Error (string) --
If the request fails, this error is returned.
JobId (string) --
The ID for the job.
Operation (string) --
The name of the operation.
Status (string) --
The current status of the request.
Exceptions
Deletes an existing backend authentication resource.
See also: AWS API Documentation
Request Syntax
response = client.delete_backend_auth(
AppId='string',
BackendEnvironmentName='string',
ResourceName='string'
)
[REQUIRED]
The app ID.
[REQUIRED]
The name of the backend environment.
[REQUIRED]
The name of this resource.
dict
Response Syntax
{
'AppId': 'string',
'BackendEnvironmentName': 'string',
'Error': 'string',
'JobId': 'string',
'Operation': 'string',
'Status': 'string'
}
Response Structure
(dict) --
200 response
AppId (string) --
The app ID.
BackendEnvironmentName (string) --
The name of the backend environment.
Error (string) --
If the request fails, this error is returned.
JobId (string) --
The ID for the job.
Operation (string) --
The name of the operation.
Status (string) --
The current status of the request.
Exceptions
Deletes the challenge token based on the given appId and sessionId.
See also: AWS API Documentation
Request Syntax
response = client.delete_token(
AppId='string',
SessionId='string'
)
[REQUIRED]
The app ID.
[REQUIRED]
The session ID.
dict
Response Syntax
{
'IsSuccess': True|False
}
Response Structure
(dict) --
200 response
IsSuccess (boolean) --
Indicates whether the request succeeded or failed.
Exceptions
Generates a model schema for an existing backend API resource.
See also: AWS API Documentation
Request Syntax
response = client.generate_backend_api_models(
AppId='string',
BackendEnvironmentName='string',
ResourceName='string'
)
[REQUIRED]
The app ID.
[REQUIRED]
The name of the backend environment.
[REQUIRED]
The name of this resource.
dict
Response Syntax
{
'AppId': 'string',
'BackendEnvironmentName': 'string',
'Error': 'string',
'JobId': 'string',
'Operation': 'string',
'Status': 'string'
}
Response Structure
(dict) --
200 response
AppId (string) --
The app ID.
BackendEnvironmentName (string) --
The name of the backend environment.
Error (string) --
If the request fails, this error is returned.
JobId (string) --
The ID for the job.
Operation (string) --
The name of the operation.
Status (string) --
The current status of the request.
Exceptions
Generate a presigned url given a client, its method, and arguments
The presigned url
Provides project-level details for your Amplify UI project.
See also: AWS API Documentation
Request Syntax
response = client.get_backend(
AppId='string',
BackendEnvironmentName='string'
)
[REQUIRED]
The app ID.
dict
Response Syntax
{
'AmplifyMetaConfig': 'string',
'AppId': 'string',
'AppName': 'string',
'BackendEnvironmentList': [
'string',
],
'BackendEnvironmentName': 'string',
'Error': 'string'
}
Response Structure
(dict) --
200 response
AmplifyMetaConfig (string) --
A stringified version of the current configs for your Amplify project.
AppId (string) --
The app ID.
AppName (string) --
The name of the app.
BackendEnvironmentList (list) --
A list of backend environments in an array.
BackendEnvironmentName (string) --
The name of the backend environment.
Error (string) --
If the request failed, this is the returned error.
Exceptions
Gets the details for a backend API.
See also: AWS API Documentation
Request Syntax
response = client.get_backend_api(
AppId='string',
BackendEnvironmentName='string',
ResourceConfig={
'AdditionalAuthTypes': [
{
'Mode': 'API_KEY'|'AWS_IAM'|'AMAZON_COGNITO_USER_POOLS'|'OPENID_CONNECT',
'Settings': {
'CognitoUserPoolId': 'string',
'Description': 'string',
'ExpirationTime': 123.0,
'OpenIDAuthTTL': 'string',
'OpenIDClientId': 'string',
'OpenIDIatTTL': 'string',
'OpenIDIssueURL': 'string',
'OpenIDProviderName': 'string'
}
},
],
'ApiName': 'string',
'ConflictResolution': {
'ResolutionStrategy': 'OPTIMISTIC_CONCURRENCY'|'LAMBDA'|'AUTOMERGE'|'NONE'
},
'DefaultAuthType': {
'Mode': 'API_KEY'|'AWS_IAM'|'AMAZON_COGNITO_USER_POOLS'|'OPENID_CONNECT',
'Settings': {
'CognitoUserPoolId': 'string',
'Description': 'string',
'ExpirationTime': 123.0,
'OpenIDAuthTTL': 'string',
'OpenIDClientId': 'string',
'OpenIDIatTTL': 'string',
'OpenIDIssueURL': 'string',
'OpenIDProviderName': 'string'
}
},
'Service': 'string',
'TransformSchema': 'string'
},
ResourceName='string'
)
[REQUIRED]
The app ID.
[REQUIRED]
The name of the backend environment.
Defines the resource configuration for the data model in your Amplify project.
Additional authentication methods used to interact with your data models.
Describes the auth types for your configured data models.
Describes the authentication mode.
Describes settings for the authentication mode.
The Amazon Cognito user pool ID, if Amazon Cognito was used as an authentication setting to access your data models.
The API key description for API_KEY, if it was used as an authentication mechanism to access your data models.
The API key expiration time for API_KEY, if it was used as an authentication mechanism to access your data models.
The expiry time for the OpenID authentication mechanism.
The clientID for openID, if openID was used as an authentication setting to access your data models.
The expiry time for the OpenID authentication mechanism.
The openID issuer URL, if openID was used as an authentication setting to access your data models.
The OpenID provider name, if OpenID was used as an authentication mechanism to access your data models.
The API name used to interact with the data model, configured as a part of your Amplify project.
The conflict resolution strategy for your data stored in the data models.
The strategy for conflict resolution.
The default authentication type for interacting with the configured data models in your Amplify project.
Describes the authentication mode.
Describes settings for the authentication mode.
The Amazon Cognito user pool ID, if Amazon Cognito was used as an authentication setting to access your data models.
The API key description for API_KEY, if it was used as an authentication mechanism to access your data models.
The API key expiration time for API_KEY, if it was used as an authentication mechanism to access your data models.
The expiry time for the OpenID authentication mechanism.
The clientID for openID, if openID was used as an authentication setting to access your data models.
The expiry time for the OpenID authentication mechanism.
The openID issuer URL, if openID was used as an authentication setting to access your data models.
The OpenID provider name, if OpenID was used as an authentication mechanism to access your data models.
The service used to provision and interact with the data model.
The definition of the data model in the annotated transform of the GraphQL schema.
[REQUIRED]
The name of this resource.
dict
Response Syntax
{
'AppId': 'string',
'BackendEnvironmentName': 'string',
'Error': 'string',
'ResourceConfig': {
'AdditionalAuthTypes': [
{
'Mode': 'API_KEY'|'AWS_IAM'|'AMAZON_COGNITO_USER_POOLS'|'OPENID_CONNECT',
'Settings': {
'CognitoUserPoolId': 'string',
'Description': 'string',
'ExpirationTime': 123.0,
'OpenIDAuthTTL': 'string',
'OpenIDClientId': 'string',
'OpenIDIatTTL': 'string',
'OpenIDIssueURL': 'string',
'OpenIDProviderName': 'string'
}
},
],
'ApiName': 'string',
'ConflictResolution': {
'ResolutionStrategy': 'OPTIMISTIC_CONCURRENCY'|'LAMBDA'|'AUTOMERGE'|'NONE'
},
'DefaultAuthType': {
'Mode': 'API_KEY'|'AWS_IAM'|'AMAZON_COGNITO_USER_POOLS'|'OPENID_CONNECT',
'Settings': {
'CognitoUserPoolId': 'string',
'Description': 'string',
'ExpirationTime': 123.0,
'OpenIDAuthTTL': 'string',
'OpenIDClientId': 'string',
'OpenIDIatTTL': 'string',
'OpenIDIssueURL': 'string',
'OpenIDProviderName': 'string'
}
},
'Service': 'string',
'TransformSchema': 'string'
},
'ResourceName': 'string'
}
Response Structure
(dict) --
200 response
AppId (string) --
The app ID.
BackendEnvironmentName (string) --
The name of the backend environment.
Error (string) --
If the request fails, this error is returned.
ResourceConfig (dict) --
The resource configuration for this response object.
AdditionalAuthTypes (list) --
Additional authentication methods used to interact with your data models.
(dict) --
Describes the auth types for your configured data models.
Mode (string) --
Describes the authentication mode.
Settings (dict) --
Describes settings for the authentication mode.
CognitoUserPoolId (string) --
The Amazon Cognito user pool ID, if Amazon Cognito was used as an authentication setting to access your data models.
Description (string) --
The API key description for API_KEY, if it was used as an authentication mechanism to access your data models.
ExpirationTime (float) --
The API key expiration time for API_KEY, if it was used as an authentication mechanism to access your data models.
OpenIDAuthTTL (string) --
The expiry time for the OpenID authentication mechanism.
OpenIDClientId (string) --
The clientID for openID, if openID was used as an authentication setting to access your data models.
OpenIDIatTTL (string) --
The expiry time for the OpenID authentication mechanism.
OpenIDIssueURL (string) --
The openID issuer URL, if openID was used as an authentication setting to access your data models.
OpenIDProviderName (string) --
The OpenID provider name, if OpenID was used as an authentication mechanism to access your data models.
ApiName (string) --
The API name used to interact with the data model, configured as a part of your Amplify project.
ConflictResolution (dict) --
The conflict resolution strategy for your data stored in the data models.
ResolutionStrategy (string) --
The strategy for conflict resolution.
DefaultAuthType (dict) --
The default authentication type for interacting with the configured data models in your Amplify project.
Mode (string) --
Describes the authentication mode.
Settings (dict) --
Describes settings for the authentication mode.
CognitoUserPoolId (string) --
The Amazon Cognito user pool ID, if Amazon Cognito was used as an authentication setting to access your data models.
Description (string) --
The API key description for API_KEY, if it was used as an authentication mechanism to access your data models.
ExpirationTime (float) --
The API key expiration time for API_KEY, if it was used as an authentication mechanism to access your data models.
OpenIDAuthTTL (string) --
The expiry time for the OpenID authentication mechanism.
OpenIDClientId (string) --
The clientID for openID, if openID was used as an authentication setting to access your data models.
OpenIDIatTTL (string) --
The expiry time for the OpenID authentication mechanism.
OpenIDIssueURL (string) --
The openID issuer URL, if openID was used as an authentication setting to access your data models.
OpenIDProviderName (string) --
The OpenID provider name, if OpenID was used as an authentication mechanism to access your data models.
Service (string) --
The service used to provision and interact with the data model.
TransformSchema (string) --
The definition of the data model in the annotated transform of the GraphQL schema.
ResourceName (string) --
The name of this resource.
Exceptions
Generates a model schema for existing backend API resource.
See also: AWS API Documentation
Request Syntax
response = client.get_backend_api_models(
AppId='string',
BackendEnvironmentName='string',
ResourceName='string'
)
[REQUIRED]
The app ID.
[REQUIRED]
The name of the backend environment.
[REQUIRED]
The name of this resource.
dict
Response Syntax
{
'Models': 'string',
'Status': 'LATEST'|'STALE'
}
Response Structure
(dict) --
200 response
Models (string) --
Stringified JSON of the datastore model.
Status (string) --
The current status of the request.
Exceptions
Gets a backend auth details.
See also: AWS API Documentation
Request Syntax
response = client.get_backend_auth(
AppId='string',
BackendEnvironmentName='string',
ResourceName='string'
)
[REQUIRED]
The app ID.
[REQUIRED]
The name of the backend environment.
[REQUIRED]
The name of this resource.
dict
Response Syntax
{
'AppId': 'string',
'BackendEnvironmentName': 'string',
'Error': 'string',
'ResourceConfig': {
'AuthResources': 'USER_POOL_ONLY'|'IDENTITY_POOL_AND_USER_POOL',
'IdentityPoolConfigs': {
'IdentityPoolName': 'string',
'UnauthenticatedLogin': True|False
},
'Service': 'COGNITO',
'UserPoolConfigs': {
'ForgotPassword': {
'DeliveryMethod': 'EMAIL'|'SMS',
'EmailSettings': {
'EmailMessage': 'string',
'EmailSubject': 'string'
},
'SmsSettings': {
'SmsMessage': 'string'
}
},
'Mfa': {
'MFAMode': 'ON'|'OFF'|'OPTIONAL',
'Settings': {
'MfaTypes': [
'SMS'|'TOTP',
],
'SmsMessage': 'string'
}
},
'OAuth': {
'DomainPrefix': 'string',
'OAuthGrantType': 'CODE'|'IMPLICIT',
'OAuthScopes': [
'PHONE'|'EMAIL'|'OPENID'|'PROFILE'|'AWS_COGNITO_SIGNIN_USER_ADMIN',
],
'RedirectSignInURIs': [
'string',
],
'RedirectSignOutURIs': [
'string',
],
'SocialProviderSettings': {
'Facebook': {
'ClientId': 'string',
'ClientSecret': 'string'
},
'Google': {
'ClientId': 'string',
'ClientSecret': 'string'
},
'LoginWithAmazon': {
'ClientId': 'string',
'ClientSecret': 'string'
},
'SignInWithApple': {
'ClientId': 'string',
'KeyId': 'string',
'PrivateKey': 'string',
'TeamId': 'string'
}
}
},
'PasswordPolicy': {
'AdditionalConstraints': [
'REQUIRE_DIGIT'|'REQUIRE_LOWERCASE'|'REQUIRE_SYMBOL'|'REQUIRE_UPPERCASE',
],
'MinimumLength': 123.0
},
'RequiredSignUpAttributes': [
'ADDRESS'|'BIRTHDATE'|'EMAIL'|'FAMILY_NAME'|'GENDER'|'GIVEN_NAME'|'LOCALE'|'MIDDLE_NAME'|'NAME'|'NICKNAME'|'PHONE_NUMBER'|'PICTURE'|'PREFERRED_USERNAME'|'PROFILE'|'UPDATED_AT'|'WEBSITE'|'ZONE_INFO',
],
'SignInMethod': 'EMAIL'|'EMAIL_AND_PHONE_NUMBER'|'PHONE_NUMBER'|'USERNAME',
'UserPoolName': 'string'
}
},
'ResourceName': 'string'
}
Response Structure
(dict) --
200 response
AppId (string) --
The app ID.
BackendEnvironmentName (string) --
The name of the backend environment.
Error (string) --
If the request fails, this error is returned.
ResourceConfig (dict) --
The resource configuration for authorization requests to the backend of your Amplify project.
AuthResources (string) --
Defines whether you want to configure only authentication or both authentication and authorization settings.
IdentityPoolConfigs (dict) --
Describes the authorization configuration for the Amazon Cognito identity pool, provisioned as a part of your auth resource in the Amplify project.
IdentityPoolName (string) --
Name of the Amazon Cognito identity pool used for authorization.
UnauthenticatedLogin (boolean) --
Set to true or false based on whether you want to enable guest authorization to your Amplify app.
Service (string) --
Defines the service name to use when configuring an authentication resource in your Amplify project.
UserPoolConfigs (dict) --
Describes authentication configuration for the Amazon Cognito user pool, provisioned as a part of your auth resource in the Amplify project.
ForgotPassword (dict) --
Describes the forgotten password policy for your Amazon Cognito user pool, configured as a part of your Amplify project.
DeliveryMethod (string) --
Describes which mode to use (either SMS or email) to deliver messages to app users who want to recover their password.
EmailSettings (dict) --
The configuration for the email sent when an app user forgets their password.
EmailMessage (string) --
The body of the email.
EmailSubject (string) --
The subject of the email.
SmsSettings (dict) --
The configuration for the SMS message sent when an app user forgets their password.
SmsMessage (string) --
The body of the SMS message.
Mfa (dict) --
Describes whether to apply multi-factor authentication policies for your Amazon Cognito user pool configured as a part of your Amplify project.
MFAMode (string) --
Describes whether MFA should be [ON, OFF, or OPTIONAL] for authentication in your Amplify project.
Settings (dict) --
Describes the configuration settings and methods for your Amplify app users to use MFA.
MfaTypes (list) --
The supported MFA types.
SmsMessage (string) --
The body of the SMS message.
OAuth (dict) --
Describes the OAuth policy and rules for your Amazon Cognito user pool, configured as a part of your Amplify project.
DomainPrefix (string) --
The domain prefix for your Amplify app.
OAuthGrantType (string) --
The OAuth grant type that you use to allow app users to authenticate from your Amplify app.
OAuthScopes (list) --
List of OAuth-related flows used to allow your app users to authenticate from your Amplify app.
RedirectSignInURIs (list) --
The redirected URI for signing in to your Amplify app.
RedirectSignOutURIs (list) --
Redirect URLs that OAuth uses when a user signs out of an Amplify app.
SocialProviderSettings (dict) --
The settings for using social providers to access your Amplify app.
Facebook (dict) --
Describes third-party social federation configurations for allowing your app users to sign in using OAuth.
ClientId (string) --
Describes the client_id, which can be obtained from the third-party social federation provider.
ClientSecret (string) --
Describes the client_secret, which can be obtained from third-party social federation providers.
Google (dict) --
Describes third-party social federation configurations for allowing your app users to sign in using OAuth.
ClientId (string) --
Describes the client_id, which can be obtained from the third-party social federation provider.
ClientSecret (string) --
Describes the client_secret, which can be obtained from third-party social federation providers.
LoginWithAmazon (dict) --
Describes third-party social federation configurations for allowing your app users to sign in using OAuth.
ClientId (string) --
Describes the client_id, which can be obtained from the third-party social federation provider.
ClientSecret (string) --
Describes the client_secret, which can be obtained from third-party social federation providers.
SignInWithApple (dict) --
Describes Apple social federation configurations for allowing your app users to sign in using OAuth.
ClientId (string) --
Describes the client_id (also called Services ID) that comes from Apple.
KeyId (string) --
Describes the key_id that comes from Apple.
PrivateKey (string) --
Describes the private_key that comes from Apple.
TeamId (string) --
Describes the team_id that comes from Apple.
PasswordPolicy (dict) --
Describes the password policy for your Amazon Cognito user pool, configured as a part of your Amplify project.
AdditionalConstraints (list) --
Additional constraints for the password used to access the backend of your Amplify project.
MinimumLength (float) --
The minimum length of the password used to access the backend of your Amplify project.
RequiredSignUpAttributes (list) --
The required attributes to sign up new users in the user pool.
SignInMethod (string) --
Describes the sign-in methods that your Amplify app users use to log in using the Amazon Cognito user pool, configured as a part of your Amplify project.
UserPoolName (string) --
The Amazon Cognito user pool name.
ResourceName (string) --
The name of this resource.
Exceptions
Returns information about a specific job.
See also: AWS API Documentation
Request Syntax
response = client.get_backend_job(
AppId='string',
BackendEnvironmentName='string',
JobId='string'
)
[REQUIRED]
The app ID.
[REQUIRED]
The name of the backend environment.
[REQUIRED]
The ID for the job.
dict
Response Syntax
{
'AppId': 'string',
'BackendEnvironmentName': 'string',
'CreateTime': 'string',
'Error': 'string',
'JobId': 'string',
'Operation': 'string',
'Status': 'string',
'UpdateTime': 'string'
}
Response Structure
(dict) --
200 response
AppId (string) --
The app ID.
BackendEnvironmentName (string) --
The name of the backend environment.
CreateTime (string) --
The time when the job was created.
Error (string) --
If the request fails, this error is returned.
JobId (string) --
The ID for the job.
Operation (string) --
The name of the operation.
Status (string) --
The current status of the request.
UpdateTime (string) --
The time when the job was last updated.
Exceptions
Create a paginator for an operation.
Gets the challenge token based on the given appId and sessionId.
See also: AWS API Documentation
Request Syntax
response = client.get_token(
AppId='string',
SessionId='string'
)
[REQUIRED]
The app ID.
[REQUIRED]
The session ID.
dict
Response Syntax
{
'AppId': 'string',
'ChallengeCode': 'string',
'SessionId': 'string',
'Ttl': 'string'
}
Response Structure
(dict) --
200 response
AppId (string) --
The app ID.
ChallengeCode (string) --
The one-time challenge code for authenticating into the Amplify Admin UI.
SessionId (string) --
A unique ID provided when creating a new challenge token.
Ttl (string) --
The expiry time for the one-time generated token code.
Exceptions
Returns an object that can wait for some condition.
Imports an existing backend authentication resource.
See also: AWS API Documentation
Request Syntax
response = client.import_backend_auth(
AppId='string',
BackendEnvironmentName='string',
IdentityPoolId='string',
NativeClientId='string',
UserPoolId='string',
WebClientId='string'
)
[REQUIRED]
The app ID.
[REQUIRED]
The name of the backend environment.
[REQUIRED]
The ID of the Amazon Cognito native client.
[REQUIRED]
The ID of the Amazon Cognito user pool.
[REQUIRED]
The ID of the Amazon Cognito web client.
dict
Response Syntax
{
'AppId': 'string',
'BackendEnvironmentName': 'string',
'Error': 'string',
'JobId': 'string',
'Operation': 'string',
'Status': 'string'
}
Response Structure
(dict) --
200 response
AppId (string) --
The app ID.
BackendEnvironmentName (string) --
The name of the backend environment.
Error (string) --
If the request fails, this error is returned.
JobId (string) --
The ID for the job.
Operation (string) --
The name of the operation.
Status (string) --
The current status of the request.
Exceptions
Lists the jobs for the backend of an Amplify app.
See also: AWS API Documentation
Request Syntax
response = client.list_backend_jobs(
AppId='string',
BackendEnvironmentName='string',
JobId='string',
MaxResults=123,
NextToken='string',
Operation='string',
Status='string'
)
[REQUIRED]
The app ID.
[REQUIRED]
The name of the backend environment.
dict
Response Syntax
{
'Jobs': [
{
'AppId': 'string',
'BackendEnvironmentName': 'string',
'CreateTime': 'string',
'Error': 'string',
'JobId': 'string',
'Operation': 'string',
'Status': 'string',
'UpdateTime': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
200 response
Jobs (list) --
An array of jobs and their properties.
(dict) --
The response object for this operation.
AppId (string) --
The app ID.
BackendEnvironmentName (string) --
The name of the backend environment.
CreateTime (string) --
The time when the job was created.
Error (string) --
If the request fails, this error is returned.
JobId (string) --
The ID for the job.
Operation (string) --
The name of the operation.
Status (string) --
The current status of the request.
UpdateTime (string) --
The time when the job was last updated.
NextToken (string) --
The token for the next set of results.
Exceptions
Removes all backend environments from your Amplify project.
See also: AWS API Documentation
Request Syntax
response = client.remove_all_backends(
AppId='string',
CleanAmplifyApp=True|False
)
[REQUIRED]
The app ID.
dict
Response Syntax
{
'AppId': 'string',
'Error': 'string',
'JobId': 'string',
'Operation': 'string',
'Status': 'string'
}
Response Structure
(dict) --
200 response
AppId (string) --
The app ID.
Error (string) --
If the request fails, this error is returned.
JobId (string) --
The ID for the job.
Operation (string) --
The name of the operation.
Status (string) --
The current status of the request.
Exceptions
Removes the AWS resources required to access the Amplify Admin UI.
See also: AWS API Documentation
Request Syntax
response = client.remove_backend_config(
AppId='string'
)
[REQUIRED]
The app ID.
{
'Error': 'string'
}
Response Structure
200 response
If the request fails, this error is returned.
Exceptions
Updates an existing backend API resource.
See also: AWS API Documentation
Request Syntax
response = client.update_backend_api(
AppId='string',
BackendEnvironmentName='string',
ResourceConfig={
'AdditionalAuthTypes': [
{
'Mode': 'API_KEY'|'AWS_IAM'|'AMAZON_COGNITO_USER_POOLS'|'OPENID_CONNECT',
'Settings': {
'CognitoUserPoolId': 'string',
'Description': 'string',
'ExpirationTime': 123.0,
'OpenIDAuthTTL': 'string',
'OpenIDClientId': 'string',
'OpenIDIatTTL': 'string',
'OpenIDIssueURL': 'string',
'OpenIDProviderName': 'string'
}
},
],
'ApiName': 'string',
'ConflictResolution': {
'ResolutionStrategy': 'OPTIMISTIC_CONCURRENCY'|'LAMBDA'|'AUTOMERGE'|'NONE'
},
'DefaultAuthType': {
'Mode': 'API_KEY'|'AWS_IAM'|'AMAZON_COGNITO_USER_POOLS'|'OPENID_CONNECT',
'Settings': {
'CognitoUserPoolId': 'string',
'Description': 'string',
'ExpirationTime': 123.0,
'OpenIDAuthTTL': 'string',
'OpenIDClientId': 'string',
'OpenIDIatTTL': 'string',
'OpenIDIssueURL': 'string',
'OpenIDProviderName': 'string'
}
},
'Service': 'string',
'TransformSchema': 'string'
},
ResourceName='string'
)
[REQUIRED]
The app ID.
[REQUIRED]
The name of the backend environment.
Defines the resource configuration for the data model in your Amplify project.
Additional authentication methods used to interact with your data models.
Describes the auth types for your configured data models.
Describes the authentication mode.
Describes settings for the authentication mode.
The Amazon Cognito user pool ID, if Amazon Cognito was used as an authentication setting to access your data models.
The API key description for API_KEY, if it was used as an authentication mechanism to access your data models.
The API key expiration time for API_KEY, if it was used as an authentication mechanism to access your data models.
The expiry time for the OpenID authentication mechanism.
The clientID for openID, if openID was used as an authentication setting to access your data models.
The expiry time for the OpenID authentication mechanism.
The openID issuer URL, if openID was used as an authentication setting to access your data models.
The OpenID provider name, if OpenID was used as an authentication mechanism to access your data models.
The API name used to interact with the data model, configured as a part of your Amplify project.
The conflict resolution strategy for your data stored in the data models.
The strategy for conflict resolution.
The default authentication type for interacting with the configured data models in your Amplify project.
Describes the authentication mode.
Describes settings for the authentication mode.
The Amazon Cognito user pool ID, if Amazon Cognito was used as an authentication setting to access your data models.
The API key description for API_KEY, if it was used as an authentication mechanism to access your data models.
The API key expiration time for API_KEY, if it was used as an authentication mechanism to access your data models.
The expiry time for the OpenID authentication mechanism.
The clientID for openID, if openID was used as an authentication setting to access your data models.
The expiry time for the OpenID authentication mechanism.
The openID issuer URL, if openID was used as an authentication setting to access your data models.
The OpenID provider name, if OpenID was used as an authentication mechanism to access your data models.
The service used to provision and interact with the data model.
The definition of the data model in the annotated transform of the GraphQL schema.
[REQUIRED]
The name of this resource.
dict
Response Syntax
{
'AppId': 'string',
'BackendEnvironmentName': 'string',
'Error': 'string',
'JobId': 'string',
'Operation': 'string',
'Status': 'string'
}
Response Structure
(dict) --
200 response
AppId (string) --
The app ID.
BackendEnvironmentName (string) --
The name of the backend environment.
Error (string) --
If the request fails, this error is returned.
JobId (string) --
The ID for the job.
Operation (string) --
The name of the operation.
Status (string) --
The current status of the request.
Exceptions
Updates an existing backend authentication resource.
See also: AWS API Documentation
Request Syntax
response = client.update_backend_auth(
AppId='string',
BackendEnvironmentName='string',
ResourceConfig={
'AuthResources': 'USER_POOL_ONLY'|'IDENTITY_POOL_AND_USER_POOL',
'IdentityPoolConfigs': {
'UnauthenticatedLogin': True|False
},
'Service': 'COGNITO',
'UserPoolConfigs': {
'ForgotPassword': {
'DeliveryMethod': 'EMAIL'|'SMS',
'EmailSettings': {
'EmailMessage': 'string',
'EmailSubject': 'string'
},
'SmsSettings': {
'SmsMessage': 'string'
}
},
'Mfa': {
'MFAMode': 'ON'|'OFF'|'OPTIONAL',
'Settings': {
'MfaTypes': [
'SMS'|'TOTP',
],
'SmsMessage': 'string'
}
},
'OAuth': {
'DomainPrefix': 'string',
'OAuthGrantType': 'CODE'|'IMPLICIT',
'OAuthScopes': [
'PHONE'|'EMAIL'|'OPENID'|'PROFILE'|'AWS_COGNITO_SIGNIN_USER_ADMIN',
],
'RedirectSignInURIs': [
'string',
],
'RedirectSignOutURIs': [
'string',
],
'SocialProviderSettings': {
'Facebook': {
'ClientId': 'string',
'ClientSecret': 'string'
},
'Google': {
'ClientId': 'string',
'ClientSecret': 'string'
},
'LoginWithAmazon': {
'ClientId': 'string',
'ClientSecret': 'string'
},
'SignInWithApple': {
'ClientId': 'string',
'KeyId': 'string',
'PrivateKey': 'string',
'TeamId': 'string'
}
}
},
'PasswordPolicy': {
'AdditionalConstraints': [
'REQUIRE_DIGIT'|'REQUIRE_LOWERCASE'|'REQUIRE_SYMBOL'|'REQUIRE_UPPERCASE',
],
'MinimumLength': 123.0
}
}
},
ResourceName='string'
)
[REQUIRED]
The app ID.
[REQUIRED]
The name of the backend environment.
[REQUIRED]
The resource configuration for this request object.
Defines the service name to use when configuring an authentication resource in your Amplify project.
Describes the authorization configuration for the Amazon Cognito identity pool, provisioned as a part of your auth resource in the Amplify project.
A boolean value that can be set to allow or disallow guest-level authorization into your Amplify app.
Defines the service name to use when configuring an authentication resource in your Amplify project.
Describes the authentication configuration for the Amazon Cognito user pool, provisioned as a part of your auth resource in the Amplify project.
Describes the forgot password policy for your Amazon Cognito user pool, configured as a part of your Amplify project.
Describes which mode to use (either SMS or email) to deliver messages to app users that want to recover their password.
The configuration for the email sent when an app user forgets their password.
The body of the email.
The subject of the email.
The configuration for the SMS message sent when an Amplify app user forgets their password.
The body of the SMS message.
Describes whether to apply multi-factor authentication policies for your Amazon Cognito user pool configured as a part of your Amplify project.
The MFA mode for the backend of your Amplify project.
The settings of your MFA configuration for the backend of your Amplify project.
The supported MFA types.
The body of the SMS message.
Describes the OAuth policy and rules for your Amazon Cognito user pool, configured as a part of your Amplify project.
The Amazon Cognito domain prefix used to create a hosted UI for authentication.
The OAuth grant type to allow app users to authenticate from your Amplify app.
The list of OAuth-related flows that can allow users to authenticate from your Amplify app.
Redirect URLs that OAuth uses when a user signs in to an Amplify app.
Redirect URLs that OAuth uses when a user signs out of an Amplify app.
Describes third-party social federation configurations for allowing your users to sign in with OAuth.
Describes third-party social federation configurations for allowing your app users to sign in using OAuth.
Describes the client_id, which can be obtained from the third-party social federation provider.
Describes the client_secret, which can be obtained from third-party social federation providers.
Describes third-party social federation configurations for allowing your app users to sign in using OAuth.
Describes the client_id, which can be obtained from the third-party social federation provider.
Describes the client_secret, which can be obtained from third-party social federation providers.
Describes third-party social federation configurations for allowing your app users to sign in using OAuth.
Describes the client_id, which can be obtained from the third-party social federation provider.
Describes the client_secret, which can be obtained from third-party social federation providers.
Describes Apple social federation configurations for allowing your app users to sign in using OAuth.
Describes the client_id (also called Services ID) that comes from Apple.
Describes the key_id that comes from Apple.
Describes the private_key that comes from Apple.
Describes the team_id that comes from Apple.
Describes the password policy for your Amazon Cognito user pool, configured as a part of your Amplify project.
Describes additional constraints on password requirements to sign in to the auth resource, configured as a part of your Amplify project.
Describes the minimum length of the password required to sign in to the auth resource, configured as a part of your Amplify project.
[REQUIRED]
The name of this resource.
dict
Response Syntax
{
'AppId': 'string',
'BackendEnvironmentName': 'string',
'Error': 'string',
'JobId': 'string',
'Operation': 'string',
'Status': 'string'
}
Response Structure
(dict) --
200 response
AppId (string) --
The app ID.
BackendEnvironmentName (string) --
The name of the backend environment.
Error (string) --
If the request fails, this error is returned.
JobId (string) --
The ID for the job.
Operation (string) --
The name of the operation.
Status (string) --
The current status of the request.
Exceptions
Updates the AWS resources required to access the Amplify Admin UI.
See also: AWS API Documentation
Request Syntax
response = client.update_backend_config(
AppId='string',
LoginAuthConfig={
'AwsCognitoIdentityPoolId': 'string',
'AwsCognitoRegion': 'string',
'AwsUserPoolsId': 'string',
'AwsUserPoolsWebClientId': 'string'
}
)
[REQUIRED]
The app ID.
Describes the Amazon Cognito configuration for Admin UI access.
The Amazon Cognito identity pool ID used for the Amplify Admin UI login authorization.
The AWS Region for the Amplify Admin UI login.
The Amazon Cognito user pool ID used for Amplify Admin UI login authentication.
The web client ID for the Amazon Cognito user pools.
dict
Response Syntax
{
'AppId': 'string',
'BackendManagerAppId': 'string',
'Error': 'string',
'LoginAuthConfig': {
'AwsCognitoIdentityPoolId': 'string',
'AwsCognitoRegion': 'string',
'AwsUserPoolsId': 'string',
'AwsUserPoolsWebClientId': 'string'
}
}
Response Structure
(dict) --
200 response
AppId (string) --
The app ID.
BackendManagerAppId (string) --
The app ID for the backend manager.
Error (string) --
If the request fails, this error is returned.
LoginAuthConfig (dict) --
Describes the Amazon Cognito configurations for the Admin UI auth resource to log in with.
AwsCognitoIdentityPoolId (string) --
The Amazon Cognito identity pool ID used for the Amplify Admin UI login authorization.
AwsCognitoRegion (string) --
The AWS Region for the Amplify Admin UI login.
AwsUserPoolsId (string) --
The Amazon Cognito user pool ID used for Amplify Admin UI login authentication.
AwsUserPoolsWebClientId (string) --
The web client ID for the Amazon Cognito user pools.
Exceptions
Updates a specific job.
See also: AWS API Documentation
Request Syntax
response = client.update_backend_job(
AppId='string',
BackendEnvironmentName='string',
JobId='string',
Operation='string',
Status='string'
)
[REQUIRED]
The app ID.
[REQUIRED]
The name of the backend environment.
[REQUIRED]
The ID for the job.
dict
Response Syntax
{
'AppId': 'string',
'BackendEnvironmentName': 'string',
'CreateTime': 'string',
'Error': 'string',
'JobId': 'string',
'Operation': 'string',
'Status': 'string',
'UpdateTime': 'string'
}
Response Structure
(dict) --
200 response
AppId (string) --
The app ID.
BackendEnvironmentName (string) --
The name of the backend environment.
CreateTime (string) --
The time when the job was created.
Error (string) --
If the request fails, this error is returned.
JobId (string) --
The ID for the job.
Operation (string) --
The name of the operation.
Status (string) --
The current status of the request.
UpdateTime (string) --
The time when the job was last updated.
Exceptions
The available paginators are:
paginator = client.get_paginator('list_backend_jobs')
Creates an iterator that will paginate through responses from AmplifyBackend.Client.list_backend_jobs().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
AppId='string',
BackendEnvironmentName='string',
JobId='string',
Operation='string',
Status='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The app ID.
[REQUIRED]
The name of the backend environment.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'Jobs': [
{
'AppId': 'string',
'BackendEnvironmentName': 'string',
'CreateTime': 'string',
'Error': 'string',
'JobId': 'string',
'Operation': 'string',
'Status': 'string',
'UpdateTime': 'string'
},
],
}
Response Structure
(dict) --
200 response
Jobs (list) --
An array of jobs and their properties.
(dict) --
The response object for this operation.
AppId (string) --
The app ID.
BackendEnvironmentName (string) --
The name of the backend environment.
CreateTime (string) --
The time when the job was created.
Error (string) --
If the request fails, this error is returned.
JobId (string) --
The ID for the job.
Operation (string) --
The name of the operation.
Status (string) --
The current status of the request.
UpdateTime (string) --
The time when the job was last updated.