Options
All
  • Public
  • Public/Protected
  • All
Menu
AWS Amplify

Discord Chat Language grade: JavaScript build:started

Reporting Bugs / Feature Requests

Open Bugs Feature Requests Closed Issues

Note aws-amplify 6 has been released. If you are looking for upgrade guidance click here

AWS Amplify is a JavaScript library for frontend and mobile developers building cloud-enabled applications

AWS Amplify provides a declarative and easy-to-use interface across different categories of cloud operations. AWS Amplify goes well with any JavaScript based frontend workflow and React Native for mobile developers.

Our default implementation works with Amazon Web Services (AWS), but AWS Amplify is designed to be open and pluggable for any custom backend or service.

Visit our Documentation site to learn more about AWS Amplify. Please see our Amplify JavaScript page within our Documentation site for information around the full list of features we support.

Features

Category AWS Provider Description
Authentication Amazon Cognito APIs and Building blocks to create Authentication experiences.
Analytics Amazon Pinpoint Collect Analytics data for your application including tracking user sessions.
REST API Amazon API Gateway Sigv4 signing and AWS auth for API Gateway and other REST endpoints.
GraphQL API AWS AppSync Interact with your GraphQL or AWS AppSync endpoint(s).
DataStore AWS AppSync Programming model for shared and distributed data, with simple online/offline synchronization.
Storage Amazon S3 Manages content in public, protected, private storage buckets.
Geo (Developer preview) Amazon Location Service Provides APIs and UI components for maps and location search for JavaScript-based web apps.
Push Notifications Amazon Pinpoint Allows you to integrate push notifications in your app with Amazon Pinpoint targeting and campaign management support.
Interactions Amazon Lex Create conversational bots powered by deep learning technologies.
PubSub AWS IoT Provides connectivity with cloud-based message-oriented middleware.
Internationalization --- A lightweight internationalization solution.
Cache --- Provides a generic LRU cache for JavaScript developers to store data with priority and expiration settings.
Predictions Various* Connect your app with machine learning services like NLP, computer vision, TTS, and more.
  • Predictions utilizes a range of Amazon's Machine Learning services, including: Amazon Comprehend, Amazon Polly, Amazon Rekognition, Amazon Textract, and Amazon Translate.

Getting Started

AWS Amplify is available as aws-amplify on npm.

To get started pick your platform from our Getting Started home page

Notice:

Amplify 6.x.x has breaking changes. Please see the breaking changes on our migration guide

Amplify 5.x.x has breaking changes. Please see the breaking changes below:

  • If you are using default exports from any Amplify package, then you will need to migrate to using named exports. For example:

    - import Amplify from 'aws-amplify';
    + import { Amplify } from 'aws-amplify'
    
    - import Analytics from '@aws-amplify/analytics';
    + import { Analytics } from '@aws-amplify/analytics';
    // or better
    + import { Analytics } from 'aws-amplify';
    
    - import Storage from '@aws-amplify/storage';
    + import { Storage } from '@aws-amplify/storage';
    // or better
    + import { Storage } from 'aws-amplify';
  • Datastore predicate syntax has changed, impacting the DataStore.query, DataStore.save, DataStore.delete, and DataStore.observe interfaces. For example:

    - await DataStore.delete(Post, (post) => post.status('eq', PostStatus.INACTIVE));
    + await DataStore.delete(Post, (post) => post.status.eq(PostStatus.INACTIVE));
    
    - await DataStore.query(Post, p => p.and( p => [p.title('eq', 'Amplify Getting Started Guide'), p.score('gt', 8)]));
    + await DataStore.query(Post, p => p.and( p => [p.title.eq('Amplify Getting Started Guide'), p.score.gt(8)]));
  • Storage.list has changed the name of the maxKeys parameter to pageSize and has a new return type that contains the results list. For example:

    - const photos = await Storage.list('photos/', { maxKeys: 100 });
    - const { key } = photos[0];
    
    + const photos = await Storage.list('photos/', { pageSize: 100 });
    + const { key } = photos.results[0];
  • Storage.put with resumable turned on has changed the key to no longer include the bucket name. For example:

    - let uploadedObjectKey;
    - Storage.put(file.name, file, {
    -   resumable: true,
    -   // Necessary to parse the bucket name out to work with the key
    -   completeCallback: (obj) => uploadedObjectKey = obj.key.substring( obj.key.indexOf("/") + 1 )
    - }
    
    + let uploadedObjectKey;
    + Storage.put(file.name, file, {
    +   resumable: true,
    +   completeCallback: (obj) => uploadedObjectKey = obj.key
    + }
  • Analytics.record no longer accepts string as input. For example:

    - Analytics.record('my example event');
    + Analytics.record({ name: 'my example event' });
  • The JS export has been removed from @aws-amplify/core in favor of exporting the functions it contained.

  • Any calls to Amplify.Auth, Amplify.Cache, and Amplify.ServiceWorker are no longer supported. Instead, your code should use the named exports. For example:

    - import { Amplify } from 'aws-amplify';
    - Amplify.configure(...);
    - // ...
    - Amplify.Auth.signIn(...);
    
    + import { Amplify, Auth } from 'aws-amplify';
    + Amplify.configure(...);
    + // ...
    + Auth.signIn(...);

Amplify 4.x.x has breaking changes for React Native. Please see the breaking changes below:

  • If you are using React Native (vanilla or Expo), you will need to add the following React Native community dependencies:
    • @react-native-community/netinfo
    • @react-native-async-storage/async-storage
// React Native
yarn add aws-amplify amazon-cognito-identity-js @react-native-community/netinfo @react-native-async-storage/async-storage
npx pod-install

// Expo
yarn add aws-amplify @react-native-community/netinfo @react-native-async-storage/async-storage

Amplify 3.x.x has breaking changes. Please see the breaking changes below:

  • AWS.credentials and AWS.config don’t exist anymore in Amplify JavaScript.
    • Both options will not be available to use in version 3. You will not be able to use and set your own credentials.
    • For more information on this change, please see the AWS SDK for JavaScript v3
  • aws-sdk@2.x has been removed from Amplify@3.x.x in favor of version 3 of aws-sdk-js. We recommend to migrate to aws-sdk-js-v3 if you rely on AWS services that are not supported by Amplify, since aws-sdk-js-v3 is imported modularly.

If you can't migrate to aws-sdk-js-v3 or rely on aws-sdk@2.x, you will need to import it separately.

  • If you are using exported paths within your Amplify JS application, (e.g. import from "@aws-amplify/analytics/lib/Analytics") this will now break and no longer will be supported. You will need to change to named imports:

    import { Analytics } from 'aws-amplify';
  • If you are using categories as Amplify.<Category>, this will no longer work and we recommend to import the category you are needing to use:

    import { Auth } from 'aws-amplify';

DataStore Docs

For more information on contributing to DataStore / how DataStore works, see the DataStore Docs

Index

Namespaces

Enumerations

Classes

Interfaces

Type aliases

Variables

Functions

Object literals

Type aliases

APIConfig

APIGraphQLConfig

APIGraphQLConfig: object

Type declaration

  • Optional apiKey?: string

    Optional API key string. Required only if the auth mode is 'apiKey'.

  • Optional customEndpoint?: string

    Custom domain endpoint for GraphQL API.

  • Optional customEndpointRegion?: string

    Optional region string used to sign the request to customEndpoint. Effective only if customEndpoint is specified, and the auth mode is 'iam'.

  • defaultAuthMode: GraphQLAuthMode

    Default auth mode for all the API calls to given service.

  • endpoint: string

    Required GraphQL endpoint, must be a valid URL string.

  • Optional modelIntrospection?: ModelIntrospectionSchema
  • Optional region?: string

    Optional region string used to sign the request. Required only if the auth mode is 'iam'.

APIRestConfig

APIRestConfig: object

Type declaration

  • endpoint: string

    Required REST endpoint, must be a valid URL string.

  • Optional region?: string

    Optional region string used to sign the request with IAM credentials. If Omitted, region will be extracted from the endpoint.

    default

    'us-east-1'

  • Optional service?: string

    Optional service name string to sign the request with IAM credentials.

    default

    'execute-api'

AWSAppSyncRealTimeAuthInput

AWSAppSyncRealTimeAuthInput: Partial<AWSAppSyncRealTimeProviderOptions> & object

AWSAuthDevice

AWSAuthDevice: AuthDevice & object

Holds the device specific information along with it's id and name.

AWSAuthUser

AWSAuthUser: object

The AWSAuthUser object contains username and userId from the idToken.

Type declaration

  • userId: string
  • username: string

AWSCredentials

AWSCredentials: object

Type declaration

  • accessKeyId: string
  • Optional expiration?: Date
  • secretAccessKey: string
  • Optional sessionToken?: string

AWSLexProviderSendResponse

AWSLexProviderSendResponse: PostTextCommandOutput | PostContentCommandOutputFormatted

AWSLexV2ProviderSendResponse

AWSLexV2ProviderSendResponse: RecognizeTextCommandOutput | RecognizeUtteranceCommandOutputFormatted

AbortMultipartUploadInput

AbortMultipartUploadInput: Pick<AbortMultipartUploadCommandInput, "Bucket" | "Key" | "UploadId">

ActionMap

ActionMap: object

Type declaration

AdditionalDetails

AdditionalDetails: [][]

Alignment

Alignment: object[keyof typeof Alignment]

AllFieldOperators

AllFieldOperators: keyof AllOperators

AllOperators

AllOperators: NumberOperators<any> & StringOperators<any> & ArrayOperators<any>

AmazonLocationServiceBatchGeofenceError

AmazonLocationServiceBatchGeofenceError: Omit<GeofenceError, "error"> & object

AmazonLocationServiceBatchGeofenceErrorMessages

AmazonLocationServiceBatchGeofenceErrorMessages: "AccessDeniedException" | "InternalServerException" | "ResourceNotFoundException" | "ThrottlingException" | "ValidationException"

AmazonLocationServiceDeleteGeofencesResults

AmazonLocationServiceDeleteGeofencesResults: Omit<DeleteGeofencesResults, "errors"> & object

AmazonLocationServiceGeofence

AmazonLocationServiceGeofence: Omit<Geofence, "status"> & object

AmazonLocationServiceGeofenceOptions

AmazonLocationServiceGeofenceOptions: GeofenceOptions & object

AmazonLocationServiceGeofenceStatus

AmazonLocationServiceGeofenceStatus: "ACTIVE" | "PENDING" | "FAILED" | "DELETED" | "DELETING"

AmazonLocationServiceListGeofenceOptions

AmazonLocationServiceListGeofenceOptions: ListGeofenceOptions & object

AmplifyChannel

AmplifyChannel: "auth"

AmplifyContext

AmplifyContext: object

Type declaration

  • InternalAPI: typeof InternalAPI

AmplifyErrorMap

AmplifyErrorMap: object

Type declaration

AmplifyErrorParams

AmplifyErrorParams: object

Type declaration

  • message: string
  • name: ErrorCode
  • Optional recoverySuggestion?: string
  • Optional underlyingError?: Error | unknown

AmplifyEventData

AmplifyEventData: object

Type declaration

AmplifyHubCallbackMap

AmplifyHubCallbackMap: object

Type declaration

AmplifyServerContextSpec

AmplifyServerContextSpec: ContextSpec

AmplifyWebBrowser

AmplifyWebBrowser: object

Type declaration

  • openAuthSessionAsync: function
      • (url: string, redirectUrls: string[], prefersEphemeralSession?: boolean): Promise<string | null>
      • Parameters

        • url: string
        • redirectUrls: string[]
        • Optional prefersEphemeralSession: boolean

        Returns Promise<string | null>

AnalyticsConfig

AnalyticsConfigureAutoTrackInput

AnalyticsConfigureAutoTrackInput: object & object | object | object

Input type for configureAutoTrack.

AnalyticsEventAttributes

AnalyticsEventAttributes: object

Type declaration

AnalyticsIdentifyUserInput

AnalyticsIdentifyUserInput: object

Input type for identifyUser.

Type declaration

  • Optional options?: ServiceOptions

    Options to be passed to the API.

  • userId: string

    A User ID associated to the current device.

  • userProfile: UserProfile

    Additional information about the user and their device.

AnalyticsServiceOptions

AnalyticsServiceOptions: Record<string, unknown>

Base type for service options.

AndroidPermissionStatus

AndroidPermissionStatus: "ShouldRequest" | "ShouldExplainThenRequest" | "Granted" | "Denied"

ApiInput

ApiInput: object
internal

Type declaration

  • apiName: string

    Name of the REST API configured in Amplify singleton.

  • Optional options?: Options

    Options to overwrite the REST API call behavior.

  • path: string

    Path of the REST API.

ApnsMessage

ApnsMessage: object

Type declaration

  • aps: object
    • Optional alert?: object
      • Optional body?: string
      • Optional subtitle?: string
      • Optional title?: string
  • Optional completionHandlerId?: string
  • Optional data?: object
    • Optional media-url?: string
    • Optional pinpoint?: NativeAction
  • Optional rawData?: never

ArchiveStatus

ArchiveStatus: object[keyof typeof ArchiveStatus]

ArrayOperators

ArrayOperators: object

Type declaration

  • contains: T
  • notContains: T

AssertionFunction

AssertionFunction: function

Type declaration

    • (assertion: boolean, name: ErrorCode, additionalContext?: string): assertion
    • Parameters

      • assertion: boolean
      • name: ErrorCode
      • Optional additionalContext: string

      Returns assertion

AssociatedWith

AssociatedWith: object

Type declaration

  • associatedWith: string | string[]
  • connectionType: "HAS_MANY" | "HAS_ONE"
  • Optional targetName?: string
  • Optional targetNames?: string[]

AssociationBaseType

AssociationBaseType: object

Type declaration

AssociationBelongsTo

AssociationBelongsTo: AssociationBaseType & object

AssociationHasMany

AssociationHasMany: AssociationBaseType & object

AssociationHasOne

AssociationHasOne: AssociationBaseType & object

AssociationType

AtLeastOne

AtLeastOne: Partial<T> & U[keyof U]

AuthAdditionalInfo

AuthAdditionalInfo: object

Additional data that may be returned from Auth APIs.

Type declaration

  • [key: string]: string

AuthAllowedMFATypes

AuthAllowedMFATypes: AuthMFAType[]

AuthAnyAttribute

AuthAnyAttribute: string & object

AuthAttribute

AuthAttribute: object

Type declaration

  • properties: object
  • type: "auth"

AuthCodeDeliveryDetails

AuthCodeDeliveryDetails: object

Data describing the dispatch of a confirmation code.

Type declaration

  • Optional attributeName?: UserAttributeKey
  • Optional deliveryMedium?: AuthDeliveryMedium
  • Optional destination?: string

AuthConfig

AuthConfigUserAttributes

AuthConfigUserAttributes: Partial<Record<AuthStandardAttributeKey, object>>

AuthConfirmResetPasswordInput

AuthConfirmResetPasswordInput: object

Type declaration

  • confirmationCode: string
  • newPassword: string
  • Optional options?: ServiceOptions
  • username: string

AuthConfirmSignInInput

AuthConfirmSignInInput: object

Constructs a confirmSignIn input.

param

required parameter for responding to {@link AuthSignInStep } returned during the sign in process.

param

optional parameters for the Confirm Sign In process such as the service options

Type declaration

  • challengeResponse: string
  • Optional options?: ServiceOptions

AuthConfirmSignUpInput

AuthConfirmSignUpInput: object

Constructs a confirmSignUp input.

param

a standard username, potentially an email/phone number

param

the user's confirmation code sent to email or cellphone

param

optional parameters for the Sign Up process, including user attributes

Type declaration

  • confirmationCode: string
  • Optional options?: ServiceOptions
  • username: string

AuthConfirmUserAttributeInput

AuthConfirmUserAttributeInput: object

Type declaration

  • confirmationCode: string
  • userAttributeKey: UserAttributeKey

AuthDeleteUserAttributesInput

AuthDeleteUserAttributesInput: object

Constructs a deleteUserAttributes input.

param

the user attribute keys to be deleted

Type declaration

  • userAttributeKeys: []

AuthDeliveryMedium

AuthDeliveryMedium: "EMAIL" | "SMS" | "PHONE" | "UNKNOWN"

Denotes the medium over which a confirmation code was sent.

AuthDevice

AuthDevice: object

The AuthDevice object contains id and name of the device.

Type declaration

  • id: string

AuthErrorMessages

AuthErrorMessages: object

Type declaration

AuthForgetDeviceInput

AuthForgetDeviceInput: object

Constructs a forgetDevice input.

param

optional parameter to forget an external device

Type declaration

AuthHubEventData

AuthHubEventData: object | object | object | object | object | object | object

AuthIdentityPoolConfig

AuthIdentityPoolConfig: object

Type declaration

AuthKeys

AuthKeys: object

Type declaration

AuthMFAType

AuthMFAType: "SMS" | "TOTP"

AuthModeParams

AuthModeParams: object

Type declaration

AuthModeStrategy

AuthModeStrategy: function

Type declaration

AuthModeStrategyParams

AuthModeStrategyParams: object

Type declaration

AuthModeStrategyReturn

AuthModeStrategyReturn: GraphQLAuthMode | GraphQLAuthMode[] | undefined | null

AuthNextResetPasswordStep

AuthNextResetPasswordStep: object

Type declaration

AuthNextSignInStep

AuthNextSignUpStep

AuthNextSignUpStep: ConfirmSignUpSignUpStep<UserAttributeKey> | AutoSignInSignUpStep<UserAttributeKey> | DoneSignUpStep

Data encapsulating the next step in the Sign Up process

AuthNextUpdateAttributeStep

AuthNextUpdateAttributeStep: object

Type declaration

AuthProvider

AuthProvider: "Amazon" | "Apple" | "Facebook" | "Google"

AuthProviders

AuthProviders: object

Type declaration

  • functionAuthProvider: function

AuthResendSignUpCodeInput

AuthResendSignUpCodeInput: object

The parameters for constructing a Resend Sign Up code input.

param

a standard username, potentially an email/phone number

param

optional parameters for the Sign Up process such as the plugin options

Type declaration

  • Optional options?: ServiceOptions
  • username: string

AuthResetPasswordInput

AuthResetPasswordInput: object

Type declaration

  • Optional options?: ServiceOptions
  • username: string

AuthResetPasswordOutput

AuthResetPasswordOutput: object

Type declaration

AuthResetPasswordStep

AuthResetPasswordStep: "CONFIRM_RESET_PASSWORD_WITH_CODE" | "DONE"

Denotes the next step in the Reset Password process.

AuthRule

AuthRule: object

Only the portions of an Auth rule we care about.

Type declaration

  • allow: string
  • Optional ownerField?: string

AuthSendUserAttributeVerificationCodeInput

AuthSendUserAttributeVerificationCodeInput: object

Constructs a sendUserAttributeVerificationCode request.

param

the user attribute key

param

optional parameters for the Resend Attribute Code process such as the service options.

Type declaration

  • Optional options?: ServiceOptions
  • userAttributeKey: UserAttributeKey

AuthServiceOptions

AuthServiceOptions: Record<string, unknown>

Base type for service options.

AuthSession

AuthSession: object

Type declaration

  • Optional credentials?: AWSCredentials
  • Optional identityId?: string
  • Optional tokens?: AuthTokens
  • Optional userSub?: string

AuthSignInInput

AuthSignInInput: object

Type declaration

  • Optional options?: ServiceOptions
  • Optional password?: string
  • username: string

AuthSignInOutput

AuthSignInOutput: object

Type declaration

AuthSignInWithRedirectInput

AuthSignInWithRedirectInput: object

Type declaration

  • Optional customState?: string
  • Optional options?: object
    • Optional preferPrivateSession?: boolean

      On iOS devices, setting this to true requests that the browser not share cookies or other browsing data between the authentication session and the user’s normal browser session. This will bypass the permissions dialog that is displayed your user during sign-in and sign-out but also prevents reuse of existing sessions from the user's browser, requiring them to re-enter their credentials even if they are already externally logged in on their browser.

      On all other platforms, this flag is ignored.

  • Optional provider?: AuthProvider | object

AuthSignOutInput

AuthSignOutInput: object

Type declaration

  • global: boolean

AuthSignUpInput

AuthSignUpInput: object

The parameters for constructing a Sign Up input.

param

a standard username, potentially an email/phone number

param

the user's password

param

optional parameters for the Sign Up process, including user attributes

Type declaration

  • Optional options?: ServiceOptions
  • password: string
  • username: string

AuthSignUpOptions

AuthSignUpOptions: object

The optional parameters for the Sign Up process.

remarks

Particular services may require some of these parameters.

Type declaration

AuthSignUpOutput

AuthSignUpOutput: object

Type declaration

  • isSignUpComplete: boolean
  • nextStep: AuthNextSignUpStep<UserAttributeKey>
  • Optional userId?: string

AuthStandardAttributeKey

AuthStandardAttributeKey: "address" | "birthdate" | "email_verified" | "family_name" | "gender" | "given_name" | "locale" | "middle_name" | "name" | "nickname" | "phone_number_verified" | "picture" | "preferred_username" | "profile" | "sub" | "updated_at" | "website" | "zoneinfo" | AuthVerifiableAttributeKey

AuthTOTPSetupDetails

AuthTOTPSetupDetails: object

Type declaration

  • getSetupUri: function
      • (appName: string, accountName?: string): __type
      • Parameters

        • appName: string
        • Optional accountName: string

        Returns __type

  • sharedSecret: string

AuthTokens

AuthTokens: object

Type declaration

  • accessToken: JWT
  • Optional idToken?: JWT

AuthUpdateAttributeStep

AuthUpdateAttributeStep: "CONFIRM_ATTRIBUTE_WITH_CODE" | "DONE"

Denotes the next step in the Update User Attribute process.

AuthUpdatePasswordInput

AuthUpdatePasswordInput: object

Constructs a updatePassword input.

param

previous password used for signIn

param

new password to be used for signIn

Type declaration

  • newPassword: string
  • oldPassword: string

AuthUpdateUserAttributeInput

AuthUpdateUserAttributeInput: object

Constructs a updateUserAttributes input.

param

the user attribute to be updated

param

optional parameters for the Update User Attributes process such as the service options.

Type declaration

  • Optional options?: ServiceOptions
  • userAttribute: AuthUserAttribute<UserAttributeKey>

AuthUpdateUserAttributeOutput

AuthUpdateUserAttributeOutput: object

Type declaration

AuthUpdateUserAttributesInput

AuthUpdateUserAttributesInput: object

Constructs a updateUserAttributes input.

param

the user attributes to be updated

param

optional parameters for the Update User Attributes process such as the service options.

Type declaration

AuthUpdateUserAttributesOutput

AuthUpdateUserAttributesOutput: object

Type declaration

AuthUserAgentInput

AuthUserAgentInput: object

Type declaration

AuthUserAttribute

AuthUserAttribute: object

The interface of a user attribute.

Type declaration

  • attributeKey: UserAttributeKey
  • value: string

AuthUserAttributeKey

A user attribute key type consisting of standard OIDC claims or custom attributes.

AuthUserAttributes

AuthUserAttributes: object

Key/value pairs describing a user attributes.

Type declaration

AuthUserPoolAndIdentityPoolConfig

AuthUserPoolAndIdentityPoolConfig: object

Type declaration

AuthUserPoolConfig

AuthUserPoolConfig: object

Type declaration

AuthVerifiableAttributeKey

AuthVerifiableAttributeKey: "email" | "phone_number"

AuthVerifyTOTPSetupInput

AuthVerifyTOTPSetupInput: object

Constructs a VerifyTOTPSetup input.

param

required parameter for verifying the TOTP setup.

param

optional parameters for the Verify TOTP Setup process such as the service options.

Type declaration

  • code: string
  • Optional options?: ServiceOptions

AuthorizationInfo

AuthorizationInfo: object

Type declaration

  • authMode: GraphQLAuthMode
  • isOwner: boolean
  • Optional ownerField?: string
  • Optional ownerValue?: string

AuthorizationRule

AuthorizationRule: object

Type declaration

  • areSubscriptionsPublic: boolean
  • authStrategy: "owner" | "groups" | "private" | "public"
  • groupClaim: string
  • groups: []
  • groupsField: string
  • identityClaim: string
  • ownerField: string
  • provider: "userPools" | "oidc" | "iam" | "apiKey"

AutoSignInCallback

AutoSignInCallback: function

Type declaration

AutoSignInEventData

AutoSignInEventData: object | object

AutoSignInSignUpStep

AutoSignInSignUpStep: object

Type declaration

BNP

BNP: object

Type declaration

  • s: number
  • t: number

BlockList

BlockList: Block[]

BooleanOperators

BooleanOperators: EqualityOperators<T>

BoundingBox

BoundingBox: []

Optional height

height: Number

Optional left

left: Number

Optional top

top: Number

Optional width

width: Number

BufferedEvent

BufferedEvent: object

Type declaration

BufferedEventMap

BufferedEventMap: object

Type declaration

ButtonAction

ButtonAction: object[keyof typeof ButtonAction]

BytesRangeOptions

BytesRangeOptions: object

Type declaration

  • Optional bytesRange?: object
    • end: number
    • start: number

CancellableTask

CancellableTask: DownloadTask<Result>

CategoryUserAgentStateMap

CategoryUserAgentStateMap: Record<string, object>

refCount tracks how many consumers have set state for a particular API to avoid it being cleared before all consumers are done using it.

Category -> Action -> Custom State

ChallengeName

ChallengeName: "SMS_MFA" | "SOFTWARE_TOKEN_MFA" | "SELECT_MFA_TYPE" | "MFA_SETUP" | "PASSWORD_VERIFIER" | "CUSTOM_CHALLENGE" | "DEVICE_SRP_AUTH" | "DEVICE_PASSWORD_VERIFIER" | "ADMIN_NO_SRP_AUTH" | "NEW_PASSWORD_REQUIRED"

ChallengeParameters

ChallengeParameters: object & object

ChannelType

ChannelType: Parameters<typeof updateEndpoint>[0]["channelType"]

ChecksumAlgorithm

ChecksumAlgorithm: object[keyof typeof ChecksumAlgorithm]

ChecksumMode

ChecksumMode: object[keyof typeof ChecksumMode]

Client

Client: V6Client<T>

ClientMetaData

ClientMetaData: object | undefined

ClientMetadata

ClientMetadata: object

Arbitrary key/value pairs that may be passed as part of certain Cognito requests

Type declaration

  • [key: string]: string

ClientOperation

ClientOperation: "SignUp" | "ConfirmSignUp" | "ForgotPassword" | "ConfirmForgotPassword" | "InitiateAuth" | "RespondToAuthChallenge" | "ResendConfirmationCode" | "VerifySoftwareToken" | "AssociateSoftwareToken" | "SetUserMFAPreference" | "GetUser" | "ChangePassword" | "ConfirmDevice" | "ForgetDevice" | "DeleteUser" | "GetUserAttributeVerificationCode" | "GlobalSignOut" | "UpdateUserAttributes" | "VerifyUserAttribute" | "DeleteUserAttributes" | "UpdateDeviceStatus" | "ListDevices" | "RevokeToken"

ClientUsingSSRCookies

ClientUsingSSRCookies: V6ClientSSRCookies<T>

ClientUsingSSRReq

ClientUsingSSRReq: V6ClientSSRRequest<T>

ClientWithModels

ClientWithModels: V6Client<Record<string, any>> | V6ClientSSRRequest<Record<string, any>> | V6ClientSSRCookies<Record<string, any>>

CodeDeliveryDetails

CodeDeliveryDetails: AuthCodeDeliveryDetails<CognitoUserAttributeKey>

Holds data describing the dispatch of a confirmation code.

CognitoAuthSignInDetails

CognitoAuthSignInDetails: object

Holds the sign in details of the user.

Type declaration

  • Optional authFlowType?: AuthFlowType
  • Optional loginId?: string

CognitoAuthTokens

CognitoAuthTokens: AuthTokens & object

CognitoIdentityPoolConfig

CognitoIdentityPoolConfig: object

Type declaration

  • Optional allowGuestAccess?: boolean
  • identityPoolId: string

CognitoMFASettings

CognitoMFASettings: object

Type declaration

  • Optional Enabled?: boolean
  • Optional PreferredMfa?: boolean

CognitoMFAType

CognitoMFAType: "SMS_MFA" | "SOFTWARE_TOKEN_MFA"

CognitoProviderConfig

CognitoUserPoolAndIdentityPoolConfig

CognitoUserPoolAndIdentityPoolConfig: CognitoUserPoolConfig & CognitoIdentityPoolConfig

CognitoUserPoolConfig

CognitoUserPoolConfig: object

Type declaration

  • Optional loginWith?: object
    • Optional email?: boolean
    • Optional oauth?: OAuthConfig
    • Optional phone?: boolean
    • Optional username?: boolean
  • Optional mfa?: object