AWSCognitoIdentityProvider

@interface AWSCognitoIdentityProvider

Using the Amazon Cognito User Pools API, you can create a user pool to manage directories and users. You can authenticate a user to obtain tokens related to user identity and access policies.

This API reference provides information about user pools in Amazon Cognito User Pools.

For more information, see the Amazon Cognito Documentation.

  • The service configuration used to instantiate this service client.

    Warning

    Once the client is instantiated, do not modify the configuration object. It may cause unspecified behaviors.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) AWSServiceConfiguration *configuration

    Swift

    var configuration: UnsafeMutablePointer<Int32> { get }
  • Returns the singleton service client. If the singleton object does not exist, the SDK instantiates the default service client with defaultServiceConfiguration from [AWSServiceManager defaultServiceManager]. The reference to this object is maintained by the SDK, and you do not need to retain it manually.

    For example, set the default service configuration in - application:didFinishLaunchingWithOptions:

    Swift

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
       let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
       let configuration = AWSServiceConfiguration(region: .USEast1, credentialsProvider: credentialProvider)
       AWSServiceManager.default().defaultServiceConfiguration = configuration
    
       return true
    

    }

    Objective-C

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
         AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
                                                                                                         identityPoolId:@"YourIdentityPoolId"];
         AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1
                                                                              credentialsProvider:credentialsProvider];
         [AWSServiceManager defaultServiceManager].defaultServiceConfiguration = configuration;
    
         return YES;
     }
    

    Then call the following to get the default service client:

    Swift

    let CognitoIdentityProvider = AWSCognitoIdentityProvider.default()
    

    Objective-C

    AWSCognitoIdentityProvider *CognitoIdentityProvider = [AWSCognitoIdentityProvider defaultCognitoIdentityProvider];
    

    Declaration

    Objective-C

    + (nonnull instancetype)defaultCognitoIdentityProvider;

    Swift

    class func `default`() -> Self

    Return Value

    The default service client.

  • Creates a service client with the given service configuration and registers it for the key.

    For example, set the default service configuration in - application:didFinishLaunchingWithOptions:

    Swift

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
       let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
       let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider)
       AWSCognitoIdentityProvider.register(with: configuration!, forKey: "USWest2CognitoIdentityProvider")
    
       return true
    

    }

    Objective-C

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
        AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
                                                                                                        identityPoolId:@"YourIdentityPoolId"];
        AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2
                                                                             credentialsProvider:credentialsProvider];
    
        [AWSCognitoIdentityProvider registerCognitoIdentityProviderWithConfiguration:configuration forKey:@"USWest2CognitoIdentityProvider"];
    
        return YES;
    }
    

    Then call the following to get the service client:

    Swift

    let CognitoIdentityProvider = AWSCognitoIdentityProvider(forKey: "USWest2CognitoIdentityProvider")
    

    Objective-C

    AWSCognitoIdentityProvider *CognitoIdentityProvider = [AWSCognitoIdentityProvider CognitoIdentityProviderForKey:@"USWest2CognitoIdentityProvider"];
    

    Warning

    After calling this method, do not modify the configuration object. It may cause unspecified behaviors.

    Declaration

    Objective-C

    + (void)registerCognitoIdentityProviderWithConfiguration:(id)configuration
                                                      forKey:
                                                          (nonnull NSString *)key;

    Swift

    class func register(withConfiguration configuration: Any!, forKey key: String)

    Parameters

    configuration

    A service configuration object.

    key

    A string to identify the service client.

  • Retrieves the service client associated with the key. You need to call + registerCognitoIdentityProviderWithConfiguration:forKey: before invoking this method.

    For example, set the default service configuration in - application:didFinishLaunchingWithOptions:

    Swift

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
       let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
       let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider)
       AWSCognitoIdentityProvider.register(with: configuration!, forKey: "USWest2CognitoIdentityProvider")
    
       return true
    

    }

    Objective-C

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
        AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
                                                                                                        identityPoolId:@"YourIdentityPoolId"];
        AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2
                                                                             credentialsProvider:credentialsProvider];
    
        [AWSCognitoIdentityProvider registerCognitoIdentityProviderWithConfiguration:configuration forKey:@"USWest2CognitoIdentityProvider"];
    
        return YES;
    }
    

    Then call the following to get the service client:

    Swift

    let CognitoIdentityProvider = AWSCognitoIdentityProvider(forKey: "USWest2CognitoIdentityProvider")
    

    Objective-C

    AWSCognitoIdentityProvider *CognitoIdentityProvider = [AWSCognitoIdentityProvider CognitoIdentityProviderForKey:@"USWest2CognitoIdentityProvider"];
    

    Declaration

    Objective-C

    + (nonnull instancetype)CognitoIdentityProviderForKey:(nonnull NSString *)key;

    Swift

    convenience init(forKey key: String)

    Parameters

    key

    A string to identify the service client.

    Return Value

    An instance of the service client.

  • Removes the service client associated with the key and release it.

    Warning

    Before calling this method, make sure no method is running on this client.

    Declaration

    Objective-C

    + (void)removeCognitoIdentityProviderForKey:(nonnull NSString *)key;

    Swift

    class func remove(forKey key: String)

    Parameters

    key

    A string to identify the service client.

  • Adds additional user attributes to the user pool schema.

    See

    AWSCognitoIdentityProviderAddCustomAttributesRequest

    See

    AWSCognitoIdentityProviderAddCustomAttributesResponse

    Declaration

    Objective-C

    - (id)addCustomAttributes:
        (nonnull AWSCognitoIdentityProviderAddCustomAttributesRequest *)request;

    Swift

    func addCustomAttributes(_ request: AWSCognitoIdentityProviderAddCustomAttributesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AddCustomAttributes service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderAddCustomAttributesResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserImportInProgress, AWSCognitoIdentityProviderErrorInternalError.

  • Adds additional user attributes to the user pool schema.

    See

    AWSCognitoIdentityProviderAddCustomAttributesRequest

    See

    AWSCognitoIdentityProviderAddCustomAttributesResponse

    Declaration

    Objective-C

    - (void)
        addCustomAttributes:
            (nonnull AWSCognitoIdentityProviderAddCustomAttributesRequest *)request
          completionHandler:
              (void (^_Nullable)(
                  AWSCognitoIdentityProviderAddCustomAttributesResponse *_Nullable,
                  NSError *_Nullable))completionHandler;

    Swift

    func addCustomAttributes(_ request: AWSCognitoIdentityProviderAddCustomAttributesRequest, completionHandler: ((AWSCognitoIdentityProviderAddCustomAttributesResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AddCustomAttributes service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserImportInProgress, AWSCognitoIdentityProviderErrorInternalError.

  • Adds the specified user to the specified group.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminAddUserToGroupRequest

    Declaration

    Objective-C

    - (id)adminAddUserToGroup:
        (nonnull AWSCognitoIdentityProviderAdminAddUserToGroupRequest *)request;

    Swift

    func adminAddUser(toGroup request: AWSCognitoIdentityProviderAdminAddUserToGroupRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdminAddUserToGroup service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Adds the specified user to the specified group.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminAddUserToGroupRequest

    Declaration

    Objective-C

    - (void)adminAddUserToGroup:
                (nonnull AWSCognitoIdentityProviderAdminAddUserToGroupRequest *)
                    request
              completionHandler:
                  (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func adminAddUser(toGroup request: AWSCognitoIdentityProviderAdminAddUserToGroupRequest, completionHandler: ((Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AdminAddUserToGroup service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Confirms user registration as an admin without using a confirmation code. Works on any user.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminConfirmSignUpRequest

    See

    AWSCognitoIdentityProviderAdminConfirmSignUpResponse

    Declaration

    Objective-C

    - (id)adminConfirmSignUp:
        (nonnull AWSCognitoIdentityProviderAdminConfirmSignUpRequest *)request;

    Swift

    func adminConfirmSignUp(_ request: AWSCognitoIdentityProviderAdminConfirmSignUpRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdminConfirmSignUp service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderAdminConfirmSignUpResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyFailedAttempts, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Confirms user registration as an admin without using a confirmation code. Works on any user.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminConfirmSignUpRequest

    See

    AWSCognitoIdentityProviderAdminConfirmSignUpResponse

    Declaration

    Objective-C

    - (void)
        adminConfirmSignUp:
            (nonnull AWSCognitoIdentityProviderAdminConfirmSignUpRequest *)request
         completionHandler:
             (void (^_Nullable)(
                 AWSCognitoIdentityProviderAdminConfirmSignUpResponse *_Nullable,
                 NSError *_Nullable))completionHandler;

    Swift

    func adminConfirmSignUp(_ request: AWSCognitoIdentityProviderAdminConfirmSignUpRequest, completionHandler: ((AWSCognitoIdentityProviderAdminConfirmSignUpResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AdminConfirmSignUp service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyFailedAttempts, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Creates a new user in the specified user pool.

    If MessageAction is not set, the default is to send a welcome message via email or phone (SMS).

    This message is based on a template that you configured in your call to or . This template includes your custom sign-up instructions and placeholders for user name and temporary password.

    Alternatively, you can call AdminCreateUser with “SUPPRESS” for the MessageAction parameter, and Amazon Cognito will not send any email.

    In either case, the user will be in the FORCE_CHANGE_PASSWORD state until they sign in and change their password.

    AdminCreateUser requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminCreateUserRequest

    See

    AWSCognitoIdentityProviderAdminCreateUserResponse

    Declaration

    Objective-C

    - (id)adminCreateUser:
        (nonnull AWSCognitoIdentityProviderAdminCreateUserRequest *)request;

    Swift

    func adminCreateUser(_ request: AWSCognitoIdentityProviderAdminCreateUserRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdminCreateUser service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderAdminCreateUserResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUsernameExists, AWSCognitoIdentityProviderErrorInvalidPassword, AWSCognitoIdentityProviderErrorCodeDeliveryFailure, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorPreconditionNotMet, AWSCognitoIdentityProviderErrorInvalidSmsRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidSmsRoleTrustRelationship, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUnsupportedUserState, AWSCognitoIdentityProviderErrorInternalError.

  • Creates a new user in the specified user pool.

    If MessageAction is not set, the default is to send a welcome message via email or phone (SMS).

    This message is based on a template that you configured in your call to or . This template includes your custom sign-up instructions and placeholders for user name and temporary password.

    Alternatively, you can call AdminCreateUser with “SUPPRESS” for the MessageAction parameter, and Amazon Cognito will not send any email.

    In either case, the user will be in the FORCE_CHANGE_PASSWORD state until they sign in and change their password.

    AdminCreateUser requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminCreateUserRequest

    See

    AWSCognitoIdentityProviderAdminCreateUserResponse

    Declaration

    Objective-C

    - (void)adminCreateUser:
                (nonnull AWSCognitoIdentityProviderAdminCreateUserRequest *)request
          completionHandler:
              (void (^_Nullable)(
                  AWSCognitoIdentityProviderAdminCreateUserResponse *_Nullable,
                  NSError *_Nullable))completionHandler;

    Swift

    func adminCreateUser(_ request: AWSCognitoIdentityProviderAdminCreateUserRequest, completionHandler: ((AWSCognitoIdentityProviderAdminCreateUserResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AdminCreateUser service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUsernameExists, AWSCognitoIdentityProviderErrorInvalidPassword, AWSCognitoIdentityProviderErrorCodeDeliveryFailure, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorPreconditionNotMet, AWSCognitoIdentityProviderErrorInvalidSmsRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidSmsRoleTrustRelationship, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUnsupportedUserState, AWSCognitoIdentityProviderErrorInternalError.

  • Deletes a user as an administrator. Works on any user.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminDeleteUserRequest

    Declaration

    Objective-C

    - (id)adminDeleteUser:
        (nonnull AWSCognitoIdentityProviderAdminDeleteUserRequest *)request;

    Swift

    func adminDeleteUser(_ request: AWSCognitoIdentityProviderAdminDeleteUserRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdminDeleteUser service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Deletes a user as an administrator. Works on any user.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminDeleteUserRequest

    Declaration

    Objective-C

    - (void)adminDeleteUser:
                (nonnull AWSCognitoIdentityProviderAdminDeleteUserRequest *)request
          completionHandler:
              (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func adminDeleteUser(_ request: AWSCognitoIdentityProviderAdminDeleteUserRequest, completionHandler: ((Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AdminDeleteUser service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Deletes the user attributes in a user pool as an administrator. Works on any user.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminDeleteUserAttributesRequest

    See

    AWSCognitoIdentityProviderAdminDeleteUserAttributesResponse

    Declaration

    Objective-C

    - (id)adminDeleteUserAttributes:
        (nonnull AWSCognitoIdentityProviderAdminDeleteUserAttributesRequest *)
            request;

    Swift

    func adminDeleteUserAttributes(_ request: AWSCognitoIdentityProviderAdminDeleteUserAttributesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdminDeleteUserAttributes service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderAdminDeleteUserAttributesResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Deletes the user attributes in a user pool as an administrator. Works on any user.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminDeleteUserAttributesRequest

    See

    AWSCognitoIdentityProviderAdminDeleteUserAttributesResponse

    Declaration

    Objective-C

    - (void)
        adminDeleteUserAttributes:
            (nonnull AWSCognitoIdentityProviderAdminDeleteUserAttributesRequest *)
                request
                completionHandler:
                    (void (^_Nullable)(
                        AWSCognitoIdentityProviderAdminDeleteUserAttributesResponse
                            *_Nullable,
                        NSError *_Nullable))completionHandler;

    Swift

    func adminDeleteUserAttributes(_ request: AWSCognitoIdentityProviderAdminDeleteUserAttributesRequest, completionHandler: ((AWSCognitoIdentityProviderAdminDeleteUserAttributesResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AdminDeleteUserAttributes service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Disables the user from signing in with the specified external (SAML or social) identity provider. If the user to disable is a Cognito User Pools native username + password user, they are not permitted to use their password to sign-in. If the user to disable is a linked external IdP user, any link between that user and an existing user is removed. The next time the external user (no longer attached to the previously linked DestinationUser) signs in, they must create a new user account. See .

    This action is enabled only for admin access and requires developer credentials.

    The ProviderName must match the value specified when creating an IdP for the pool.

    To disable a native username + password user, the ProviderName value must be Cognito and the ProviderAttributeName must be Cognito_Subject, with the ProviderAttributeValue being the name that is used in the user pool for the user.

    The ProviderAttributeName must always be Cognito_Subject for social identity providers. The ProviderAttributeValue must always be the exact subject that was used when the user was originally linked as a source user.

    For de-linking a SAML identity, there are two scenarios. If the linked identity has not yet been used to sign-in, the ProviderAttributeName and ProviderAttributeValue must be the same values that were used for the SourceUser when the identities were originally linked in the call. (If the linking was done with ProviderAttributeName set to Cognito_Subject, the same applies here). However, if the user has already signed in, the ProviderAttributeName must be Cognito_Subject and ProviderAttributeValue must be the subject of the SAML assertion.

    See

    AWSCognitoIdentityProviderAdminDisableProviderForUserRequest

    See

    AWSCognitoIdentityProviderAdminDisableProviderForUserResponse

    Declaration

    Objective-C

    - (id)adminDisableProviderForUser:
        (nonnull AWSCognitoIdentityProviderAdminDisableProviderForUserRequest *)
            request;

    Swift

    func adminDisableProvider(forUser request: AWSCognitoIdentityProviderAdminDisableProviderForUserRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdminDisableProviderForUser service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderAdminDisableProviderForUserResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorAliasExists, AWSCognitoIdentityProviderErrorInternalError.

  • Disables the user from signing in with the specified external (SAML or social) identity provider. If the user to disable is a Cognito User Pools native username + password user, they are not permitted to use their password to sign-in. If the user to disable is a linked external IdP user, any link between that user and an existing user is removed. The next time the external user (no longer attached to the previously linked DestinationUser) signs in, they must create a new user account. See .

    This action is enabled only for admin access and requires developer credentials.

    The ProviderName must match the value specified when creating an IdP for the pool.

    To disable a native username + password user, the ProviderName value must be Cognito and the ProviderAttributeName must be Cognito_Subject, with the ProviderAttributeValue being the name that is used in the user pool for the user.

    The ProviderAttributeName must always be Cognito_Subject for social identity providers. The ProviderAttributeValue must always be the exact subject that was used when the user was originally linked as a source user.

    For de-linking a SAML identity, there are two scenarios. If the linked identity has not yet been used to sign-in, the ProviderAttributeName and ProviderAttributeValue must be the same values that were used for the SourceUser when the identities were originally linked in the call. (If the linking was done with ProviderAttributeName set to Cognito_Subject, the same applies here). However, if the user has already signed in, the ProviderAttributeName must be Cognito_Subject and ProviderAttributeValue must be the subject of the SAML assertion.

    See

    AWSCognitoIdentityProviderAdminDisableProviderForUserRequest

    See

    AWSCognitoIdentityProviderAdminDisableProviderForUserResponse

    Declaration

    Objective-C

    - (void)
        adminDisableProviderForUser:
            (nonnull AWSCognitoIdentityProviderAdminDisableProviderForUserRequest *)
                request
                  completionHandler:
                      (void (^_Nullable)(
                          AWSCognitoIdentityProviderAdminDisableProviderForUserResponse
                              *_Nullable,
                          NSError *_Nullable))completionHandler;

    Swift

    func adminDisableProvider(forUser request: AWSCognitoIdentityProviderAdminDisableProviderForUserRequest, completionHandler: ((AWSCognitoIdentityProviderAdminDisableProviderForUserResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AdminDisableProviderForUser service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorAliasExists, AWSCognitoIdentityProviderErrorInternalError.

  • Disables the specified user.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminDisableUserRequest

    See

    AWSCognitoIdentityProviderAdminDisableUserResponse

    Declaration

    Objective-C

    - (id)adminDisableUser:
        (nonnull AWSCognitoIdentityProviderAdminDisableUserRequest *)request;

    Swift

    func adminDisableUser(_ request: AWSCognitoIdentityProviderAdminDisableUserRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdminDisableUser service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderAdminDisableUserResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Disables the specified user.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminDisableUserRequest

    See

    AWSCognitoIdentityProviderAdminDisableUserResponse

    Declaration

    Objective-C

    - (void)adminDisableUser:
                (nonnull AWSCognitoIdentityProviderAdminDisableUserRequest *)request
           completionHandler:
               (void (^_Nullable)(
                   AWSCognitoIdentityProviderAdminDisableUserResponse *_Nullable,
                   NSError *_Nullable))completionHandler;

    Swift

    func adminDisableUser(_ request: AWSCognitoIdentityProviderAdminDisableUserRequest, completionHandler: ((AWSCognitoIdentityProviderAdminDisableUserResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AdminDisableUser service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Enables the specified user as an administrator. Works on any user.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminEnableUserRequest

    See

    AWSCognitoIdentityProviderAdminEnableUserResponse

    Declaration

    Objective-C

    - (id)adminEnableUser:
        (nonnull AWSCognitoIdentityProviderAdminEnableUserRequest *)request;

    Swift

    func adminEnableUser(_ request: AWSCognitoIdentityProviderAdminEnableUserRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdminEnableUser service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderAdminEnableUserResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Enables the specified user as an administrator. Works on any user.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminEnableUserRequest

    See

    AWSCognitoIdentityProviderAdminEnableUserResponse

    Declaration

    Objective-C

    - (void)adminEnableUser:
                (nonnull AWSCognitoIdentityProviderAdminEnableUserRequest *)request
          completionHandler:
              (void (^_Nullable)(
                  AWSCognitoIdentityProviderAdminEnableUserResponse *_Nullable,
                  NSError *_Nullable))completionHandler;

    Swift

    func adminEnableUser(_ request: AWSCognitoIdentityProviderAdminEnableUserRequest, completionHandler: ((AWSCognitoIdentityProviderAdminEnableUserResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AdminEnableUser service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Forgets the device, as an administrator.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminForgetDeviceRequest

    Declaration

    Objective-C

    - (id)adminForgetDevice:
        (nonnull AWSCognitoIdentityProviderAdminForgetDeviceRequest *)request;

    Swift

    func adminForgetDevice(_ request: AWSCognitoIdentityProviderAdminForgetDeviceRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdminForgetDevice service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorInvalidUserPoolConfiguration, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Forgets the device, as an administrator.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminForgetDeviceRequest

    Declaration

    Objective-C

    - (void)
        adminForgetDevice:
            (nonnull AWSCognitoIdentityProviderAdminForgetDeviceRequest *)request
        completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func adminForgetDevice(_ request: AWSCognitoIdentityProviderAdminForgetDeviceRequest, completionHandler: ((Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AdminForgetDevice service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorInvalidUserPoolConfiguration, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Gets the device, as an administrator.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminGetDeviceRequest

    See

    AWSCognitoIdentityProviderAdminGetDeviceResponse

    Declaration

    Objective-C

    - (id)adminGetDevice:
        (nonnull AWSCognitoIdentityProviderAdminGetDeviceRequest *)request;

    Swift

    func adminGetDevice(_ request: AWSCognitoIdentityProviderAdminGetDeviceRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdminGetDevice service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderAdminGetDeviceResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorInvalidUserPoolConfiguration, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError, AWSCognitoIdentityProviderErrorNotAuthorized.

  • Gets the device, as an administrator.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminGetDeviceRequest

    See

    AWSCognitoIdentityProviderAdminGetDeviceResponse

    Declaration

    Objective-C

    - (void)adminGetDevice:
                (nonnull AWSCognitoIdentityProviderAdminGetDeviceRequest *)request
         completionHandler:
             (void (^_Nullable)(
                 AWSCognitoIdentityProviderAdminGetDeviceResponse *_Nullable,
                 NSError *_Nullable))completionHandler;

    Swift

    func adminGetDevice(_ request: AWSCognitoIdentityProviderAdminGetDeviceRequest, completionHandler: ((AWSCognitoIdentityProviderAdminGetDeviceResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AdminGetDevice service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorInvalidUserPoolConfiguration, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError, AWSCognitoIdentityProviderErrorNotAuthorized.

  • Gets the specified user by user name in a user pool as an administrator. Works on any user.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminGetUserRequest

    See

    AWSCognitoIdentityProviderAdminGetUserResponse

    Declaration

    Objective-C

    - (id)adminGetUser:
        (nonnull AWSCognitoIdentityProviderAdminGetUserRequest *)request;

    Swift

    func adminGetUser(_ request: AWSCognitoIdentityProviderAdminGetUserRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdminGetUser service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderAdminGetUserResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Gets the specified user by user name in a user pool as an administrator. Works on any user.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminGetUserRequest

    See

    AWSCognitoIdentityProviderAdminGetUserResponse

    Declaration

    Objective-C

    - (void)adminGetUser:
                (nonnull AWSCognitoIdentityProviderAdminGetUserRequest *)request
        completionHandler:
            (void (^_Nullable)(
                AWSCognitoIdentityProviderAdminGetUserResponse *_Nullable,
                NSError *_Nullable))completionHandler;

    Swift

    func adminGetUser(_ request: AWSCognitoIdentityProviderAdminGetUserRequest, completionHandler: ((AWSCognitoIdentityProviderAdminGetUserResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AdminGetUser service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Initiates the authentication flow, as an administrator.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminInitiateAuthRequest

    See

    AWSCognitoIdentityProviderAdminInitiateAuthResponse

    Declaration

    Objective-C

    - (id)adminInitiateAuth:
        (nonnull AWSCognitoIdentityProviderAdminInitiateAuthRequest *)request;

    Swift

    func adminInitiateAuth(_ request: AWSCognitoIdentityProviderAdminInitiateAuthRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdminInitiateAuth service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderAdminInitiateAuthResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorInvalidUserPoolConfiguration, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorMFAMethodNotFound, AWSCognitoIdentityProviderErrorInvalidSmsRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidSmsRoleTrustRelationship, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed.

  • Initiates the authentication flow, as an administrator.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminInitiateAuthRequest

    See

    AWSCognitoIdentityProviderAdminInitiateAuthResponse

    Declaration

    Objective-C

    - (void)adminInitiateAuth:
                (nonnull AWSCognitoIdentityProviderAdminInitiateAuthRequest *)
                    request
            completionHandler:
                (void (^_Nullable)(
                    AWSCognitoIdentityProviderAdminInitiateAuthResponse *_Nullable,
                    NSError *_Nullable))completionHandler;

    Swift

    func adminInitiateAuth(_ request: AWSCognitoIdentityProviderAdminInitiateAuthRequest, completionHandler: ((AWSCognitoIdentityProviderAdminInitiateAuthResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AdminInitiateAuth service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorInvalidUserPoolConfiguration, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorMFAMethodNotFound, AWSCognitoIdentityProviderErrorInvalidSmsRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidSmsRoleTrustRelationship, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed.

  • Links an existing user account in a user pool (DestinationUser) to an identity from an external identity provider (SourceUser) based on a specified attribute name and value from the external identity provider. This allows you to create a link from the existing user account to an external federated user identity that has not yet been used to sign in, so that the federated user identity can be used to sign in as the existing user account.

    For example, if there is an existing user with a username and password, this API links that user to a federated user identity, so that when the federated user identity is used, the user signs in as the existing user account.

    Because this API allows a user with an external federated identity to sign in as an existing user in the user pool, it is critical that it only be used with external identity providers and provider attributes that have been trusted by the application owner.

    See also .

    This action is enabled only for admin access and requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminLinkProviderForUserRequest

    See

    AWSCognitoIdentityProviderAdminLinkProviderForUserResponse

    Declaration

    Objective-C

    - (id)adminLinkProviderForUser:
        (nonnull AWSCognitoIdentityProviderAdminLinkProviderForUserRequest *)
            request;

    Swift

    func adminLinkProvider(forUser request: AWSCognitoIdentityProviderAdminLinkProviderForUserRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdminLinkProviderForUser service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderAdminLinkProviderForUserResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorAliasExists, AWSCognitoIdentityProviderErrorInternalError.

  • Links an existing user account in a user pool (DestinationUser) to an identity from an external identity provider (SourceUser) based on a specified attribute name and value from the external identity provider. This allows you to create a link from the existing user account to an external federated user identity that has not yet been used to sign in, so that the federated user identity can be used to sign in as the existing user account.

    For example, if there is an existing user with a username and password, this API links that user to a federated user identity, so that when the federated user identity is used, the user signs in as the existing user account.

    Because this API allows a user with an external federated identity to sign in as an existing user in the user pool, it is critical that it only be used with external identity providers and provider attributes that have been trusted by the application owner.

    See also .

    This action is enabled only for admin access and requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminLinkProviderForUserRequest

    See

    AWSCognitoIdentityProviderAdminLinkProviderForUserResponse

    Declaration

    Objective-C

    - (void)
        adminLinkProviderForUser:
            (nonnull AWSCognitoIdentityProviderAdminLinkProviderForUserRequest *)
                request
               completionHandler:
                   (void (^_Nullable)(
                       AWSCognitoIdentityProviderAdminLinkProviderForUserResponse
                           *_Nullable,
                       NSError *_Nullable))completionHandler;

    Swift

    func adminLinkProvider(forUser request: AWSCognitoIdentityProviderAdminLinkProviderForUserRequest, completionHandler: ((AWSCognitoIdentityProviderAdminLinkProviderForUserResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AdminLinkProviderForUser service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorAliasExists, AWSCognitoIdentityProviderErrorInternalError.

  • Lists devices, as an administrator.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminListDevicesRequest

    See

    AWSCognitoIdentityProviderAdminListDevicesResponse

    Declaration

    Objective-C

    - (id)adminListDevices:
        (nonnull AWSCognitoIdentityProviderAdminListDevicesRequest *)request;

    Swift

    func adminListDevices(_ request: AWSCognitoIdentityProviderAdminListDevicesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdminListDevices service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderAdminListDevicesResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidUserPoolConfiguration, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError, AWSCognitoIdentityProviderErrorNotAuthorized.

  • Lists devices, as an administrator.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminListDevicesRequest

    See

    AWSCognitoIdentityProviderAdminListDevicesResponse

    Declaration

    Objective-C

    - (void)adminListDevices:
                (nonnull AWSCognitoIdentityProviderAdminListDevicesRequest *)request
           completionHandler:
               (void (^_Nullable)(
                   AWSCognitoIdentityProviderAdminListDevicesResponse *_Nullable,
                   NSError *_Nullable))completionHandler;

    Swift

    func adminListDevices(_ request: AWSCognitoIdentityProviderAdminListDevicesRequest, completionHandler: ((AWSCognitoIdentityProviderAdminListDevicesResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AdminListDevices service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidUserPoolConfiguration, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError, AWSCognitoIdentityProviderErrorNotAuthorized.

  • Lists the groups that the user belongs to.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminListGroupsForUserRequest

    See

    AWSCognitoIdentityProviderAdminListGroupsForUserResponse

    Declaration

    Objective-C

    - (id)adminListGroupsForUser:
        (nonnull AWSCognitoIdentityProviderAdminListGroupsForUserRequest *)request;

    Swift

    func adminListGroups(forUser request: AWSCognitoIdentityProviderAdminListGroupsForUserRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdminListGroupsForUser service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderAdminListGroupsForUserResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Lists the groups that the user belongs to.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminListGroupsForUserRequest

    See

    AWSCognitoIdentityProviderAdminListGroupsForUserResponse

    Declaration

    Objective-C

    - (void)adminListGroupsForUser:
                (nonnull AWSCognitoIdentityProviderAdminListGroupsForUserRequest *)
                    request
                 completionHandler:
                     (void (^_Nullable)(
                         AWSCognitoIdentityProviderAdminListGroupsForUserResponse
                             *_Nullable,
                         NSError *_Nullable))completionHandler;

    Swift

    func adminListGroups(forUser request: AWSCognitoIdentityProviderAdminListGroupsForUserRequest, completionHandler: ((AWSCognitoIdentityProviderAdminListGroupsForUserResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AdminListGroupsForUser service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Lists a history of user activity and any risks detected as part of Amazon Cognito advanced security.

    See

    AWSCognitoIdentityProviderAdminListUserAuthEventsRequest

    See

    AWSCognitoIdentityProviderAdminListUserAuthEventsResponse

    Declaration

    Objective-C

    - (id)adminListUserAuthEvents:
        (nonnull AWSCognitoIdentityProviderAdminListUserAuthEventsRequest *)request;

    Swift

    func adminListUserAuthEvents(_ request: AWSCognitoIdentityProviderAdminListUserAuthEventsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdminListUserAuthEvents service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderAdminListUserAuthEventsResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserPoolAddOnNotEnabled, AWSCognitoIdentityProviderErrorInternalError.

  • Lists a history of user activity and any risks detected as part of Amazon Cognito advanced security.

    See

    AWSCognitoIdentityProviderAdminListUserAuthEventsRequest

    See

    AWSCognitoIdentityProviderAdminListUserAuthEventsResponse

    Declaration

    Objective-C

    - (void)adminListUserAuthEvents:
                (nonnull AWSCognitoIdentityProviderAdminListUserAuthEventsRequest *)
                    request
                  completionHandler:
                      (void (^_Nullable)(
                          AWSCognitoIdentityProviderAdminListUserAuthEventsResponse
                              *_Nullable,
                          NSError *_Nullable))completionHandler;

    Swift

    func adminListUserAuthEvents(_ request: AWSCognitoIdentityProviderAdminListUserAuthEventsRequest, completionHandler: ((AWSCognitoIdentityProviderAdminListUserAuthEventsResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AdminListUserAuthEvents service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserPoolAddOnNotEnabled, AWSCognitoIdentityProviderErrorInternalError.

  • Removes the specified user from the specified group.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminRemoveUserFromGroupRequest

    Declaration

    Objective-C

    - (id)adminRemoveUserFromGroup:
        (nonnull AWSCognitoIdentityProviderAdminRemoveUserFromGroupRequest *)
            request;

    Swift

    func adminRemoveUser(fromGroup request: AWSCognitoIdentityProviderAdminRemoveUserFromGroupRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdminRemoveUserFromGroup service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Removes the specified user from the specified group.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminRemoveUserFromGroupRequest

    Declaration

    Objective-C

    - (void)
        adminRemoveUserFromGroup:
            (nonnull AWSCognitoIdentityProviderAdminRemoveUserFromGroupRequest *)
                request
               completionHandler:
                   (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func adminRemoveUser(fromGroup request: AWSCognitoIdentityProviderAdminRemoveUserFromGroupRequest, completionHandler: ((Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AdminRemoveUserFromGroup service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Resets the specified user’s password in a user pool as an administrator. Works on any user.

    When a developer calls this API, the current password is invalidated, so it must be changed. If a user tries to sign in after the API is called, the app will get a PasswordResetRequiredException exception back and should direct the user down the flow to reset the password, which is the same as the forgot password flow. In addition, if the user pool has phone verification selected and a verified phone number exists for the user, or if email verification is selected and a verified email exists for the user, calling this API will also result in sending a message to the end user with the code to change their password.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminResetUserPasswordRequest

    See

    AWSCognitoIdentityProviderAdminResetUserPasswordResponse

    Declaration

    Objective-C

    - (id)adminResetUserPassword:
        (nonnull AWSCognitoIdentityProviderAdminResetUserPasswordRequest *)request;

    Swift

    func adminResetUserPassword(_ request: AWSCognitoIdentityProviderAdminResetUserPasswordRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdminResetUserPassword service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderAdminResetUserPasswordResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInvalidSmsRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidEmailRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidSmsRoleTrustRelationship, AWSCognitoIdentityProviderErrorInternalError.

  • Resets the specified user’s password in a user pool as an administrator. Works on any user.

    When a developer calls this API, the current password is invalidated, so it must be changed. If a user tries to sign in after the API is called, the app will get a PasswordResetRequiredException exception back and should direct the user down the flow to reset the password, which is the same as the forgot password flow. In addition, if the user pool has phone verification selected and a verified phone number exists for the user, or if email verification is selected and a verified email exists for the user, calling this API will also result in sending a message to the end user with the code to change their password.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminResetUserPasswordRequest

    See

    AWSCognitoIdentityProviderAdminResetUserPasswordResponse

    Declaration

    Objective-C

    - (void)adminResetUserPassword:
                (nonnull AWSCognitoIdentityProviderAdminResetUserPasswordRequest *)
                    request
                 completionHandler:
                     (void (^_Nullable)(
                         AWSCognitoIdentityProviderAdminResetUserPasswordResponse
                             *_Nullable,
                         NSError *_Nullable))completionHandler;

    Swift

    func adminResetUserPassword(_ request: AWSCognitoIdentityProviderAdminResetUserPasswordRequest, completionHandler: ((AWSCognitoIdentityProviderAdminResetUserPasswordResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AdminResetUserPassword service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInvalidSmsRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidEmailRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidSmsRoleTrustRelationship, AWSCognitoIdentityProviderErrorInternalError.

  • Responds to an authentication challenge, as an administrator.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminRespondToAuthChallengeRequest

    See

    AWSCognitoIdentityProviderAdminRespondToAuthChallengeResponse

    Declaration

    Objective-C

    - (id)adminRespondToAuthChallenge:
        (nonnull AWSCognitoIdentityProviderAdminRespondToAuthChallengeRequest *)
            request;

    Swift

    func adminRespond(toAuthChallenge request: AWSCognitoIdentityProviderAdminRespondToAuthChallengeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdminRespondToAuthChallenge service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderAdminRespondToAuthChallengeResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorCodeMismatch, AWSCognitoIdentityProviderErrorExpiredCode, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorInvalidPassword, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInvalidUserPoolConfiguration, AWSCognitoIdentityProviderErrorInternalError, AWSCognitoIdentityProviderErrorMFAMethodNotFound, AWSCognitoIdentityProviderErrorInvalidSmsRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidSmsRoleTrustRelationship, AWSCognitoIdentityProviderErrorAliasExists, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorSoftwareTokenMFANotFound.

  • Responds to an authentication challenge, as an administrator.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminRespondToAuthChallengeRequest

    See

    AWSCognitoIdentityProviderAdminRespondToAuthChallengeResponse

    Declaration

    Objective-C

    - (void)
        adminRespondToAuthChallenge:
            (nonnull AWSCognitoIdentityProviderAdminRespondToAuthChallengeRequest *)
                request
                  completionHandler:
                      (void (^_Nullable)(
                          AWSCognitoIdentityProviderAdminRespondToAuthChallengeResponse
                              *_Nullable,
                          NSError *_Nullable))completionHandler;

    Swift

    func adminRespond(toAuthChallenge request: AWSCognitoIdentityProviderAdminRespondToAuthChallengeRequest, completionHandler: ((AWSCognitoIdentityProviderAdminRespondToAuthChallengeResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AdminRespondToAuthChallenge service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorCodeMismatch, AWSCognitoIdentityProviderErrorExpiredCode, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorInvalidPassword, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInvalidUserPoolConfiguration, AWSCognitoIdentityProviderErrorInternalError, AWSCognitoIdentityProviderErrorMFAMethodNotFound, AWSCognitoIdentityProviderErrorInvalidSmsRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidSmsRoleTrustRelationship, AWSCognitoIdentityProviderErrorAliasExists, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorSoftwareTokenMFANotFound.

  • Sets the user’s multi-factor authentication (MFA) preference, including which MFA options are enabled and if any are preferred. Only one factor can be set as preferred. The preferred MFA factor will be used to authenticate a user if multiple factors are enabled. If multiple options are enabled and no preference is set, a challenge to choose an MFA option will be returned during sign in.

    See

    AWSCognitoIdentityProviderAdminSetUserMFAPreferenceRequest

    See

    AWSCognitoIdentityProviderAdminSetUserMFAPreferenceResponse

    Declaration

    Objective-C

    - (id)adminSetUserMFAPreference:
        (nonnull AWSCognitoIdentityProviderAdminSetUserMFAPreferenceRequest *)
            request;

    Swift

    func adminSetUserMFAPreference(_ request: AWSCognitoIdentityProviderAdminSetUserMFAPreferenceRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdminSetUserMFAPreference service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderAdminSetUserMFAPreferenceResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Sets the user’s multi-factor authentication (MFA) preference, including which MFA options are enabled and if any are preferred. Only one factor can be set as preferred. The preferred MFA factor will be used to authenticate a user if multiple factors are enabled. If multiple options are enabled and no preference is set, a challenge to choose an MFA option will be returned during sign in.

    See

    AWSCognitoIdentityProviderAdminSetUserMFAPreferenceRequest

    See

    AWSCognitoIdentityProviderAdminSetUserMFAPreferenceResponse

    Declaration

    Objective-C

    - (void)
        adminSetUserMFAPreference:
            (nonnull AWSCognitoIdentityProviderAdminSetUserMFAPreferenceRequest *)
                request
                completionHandler:
                    (void (^_Nullable)(
                        AWSCognitoIdentityProviderAdminSetUserMFAPreferenceResponse
                            *_Nullable,
                        NSError *_Nullable))completionHandler;

    Swift

    func adminSetUserMFAPreference(_ request: AWSCognitoIdentityProviderAdminSetUserMFAPreferenceRequest, completionHandler: ((AWSCognitoIdentityProviderAdminSetUserMFAPreferenceResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AdminSetUserMFAPreference service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Sets the specified user’s password in a user pool as an administrator. Works on any user.

    The password can be temporary or permanent. If it is temporary, the user status will be placed into the FORCE_CHANGE_PASSWORD state. When the user next tries to sign in, the InitiateAuth/AdminInitiateAuth response will contain the NEW_PASSWORD_REQUIRED challenge. If the user does not sign in before it expires, the user will not be able to sign in and their password will need to be reset by an administrator.

    Once the user has set a new password, or the password is permanent, the user status will be set to Confirmed.

    See

    AWSCognitoIdentityProviderAdminSetUserPasswordRequest

    See

    AWSCognitoIdentityProviderAdminSetUserPasswordResponse

    Declaration

    Objective-C

    - (id)adminSetUserPassword:
        (nonnull AWSCognitoIdentityProviderAdminSetUserPasswordRequest *)request;

    Swift

    func adminSetUserPassword(_ request: AWSCognitoIdentityProviderAdminSetUserPasswordRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdminSetUserPassword service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderAdminSetUserPasswordResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorInvalidPassword.

  • Sets the specified user’s password in a user pool as an administrator. Works on any user.

    The password can be temporary or permanent. If it is temporary, the user status will be placed into the FORCE_CHANGE_PASSWORD state. When the user next tries to sign in, the InitiateAuth/AdminInitiateAuth response will contain the NEW_PASSWORD_REQUIRED challenge. If the user does not sign in before it expires, the user will not be able to sign in and their password will need to be reset by an administrator.

    Once the user has set a new password, or the password is permanent, the user status will be set to Confirmed.

    See

    AWSCognitoIdentityProviderAdminSetUserPasswordRequest

    See

    AWSCognitoIdentityProviderAdminSetUserPasswordResponse

    Declaration

    Objective-C

    - (void)adminSetUserPassword:
                (nonnull AWSCognitoIdentityProviderAdminSetUserPasswordRequest *)
                    request
               completionHandler:
                   (void (^_Nullable)(
                       AWSCognitoIdentityProviderAdminSetUserPasswordResponse
                           *_Nullable,
                       NSError *_Nullable))completionHandler;

    Swift

    func adminSetUserPassword(_ request: AWSCognitoIdentityProviderAdminSetUserPasswordRequest, completionHandler: ((AWSCognitoIdentityProviderAdminSetUserPasswordResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AdminSetUserPassword service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorInvalidPassword.

  • This action is no longer supported. You can use it to configure only SMS MFA. You can’t use it to configure TOTP software token MFA. To configure either type of MFA, use the AdminSetUserMFAPreference action instead.

    See

    AWSCognitoIdentityProviderAdminSetUserSettingsRequest

    See

    AWSCognitoIdentityProviderAdminSetUserSettingsResponse

    Declaration

    Objective-C

    - (id)adminSetUserSettings:
        (nonnull AWSCognitoIdentityProviderAdminSetUserSettingsRequest *)request;

    Swift

    func adminSetUserSettings(_ request: AWSCognitoIdentityProviderAdminSetUserSettingsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdminSetUserSettings service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderAdminSetUserSettingsResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • This action is no longer supported. You can use it to configure only SMS MFA. You can’t use it to configure TOTP software token MFA. To configure either type of MFA, use the AdminSetUserMFAPreference action instead.

    See

    AWSCognitoIdentityProviderAdminSetUserSettingsRequest

    See

    AWSCognitoIdentityProviderAdminSetUserSettingsResponse

    Declaration

    Objective-C

    - (void)adminSetUserSettings:
                (nonnull AWSCognitoIdentityProviderAdminSetUserSettingsRequest *)
                    request
               completionHandler:
                   (void (^_Nullable)(
                       AWSCognitoIdentityProviderAdminSetUserSettingsResponse
                           *_Nullable,
                       NSError *_Nullable))completionHandler;

    Swift

    func adminSetUserSettings(_ request: AWSCognitoIdentityProviderAdminSetUserSettingsRequest, completionHandler: ((AWSCognitoIdentityProviderAdminSetUserSettingsResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AdminSetUserSettings service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Provides feedback for an authentication event as to whether it was from a valid user. This feedback is used for improving the risk evaluation decision for the user pool as part of Amazon Cognito advanced security.

    See

    AWSCognitoIdentityProviderAdminUpdateAuthEventFeedbackRequest

    See

    AWSCognitoIdentityProviderAdminUpdateAuthEventFeedbackResponse

    Declaration

    Objective-C

    - (id)adminUpdateAuthEventFeedback:
        (nonnull AWSCognitoIdentityProviderAdminUpdateAuthEventFeedbackRequest *)
            request;

    Swift

    func adminUpdateAuthEventFeedback(_ request: AWSCognitoIdentityProviderAdminUpdateAuthEventFeedbackRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdminUpdateAuthEventFeedback service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderAdminUpdateAuthEventFeedbackResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserPoolAddOnNotEnabled, AWSCognitoIdentityProviderErrorInternalError.

  • Provides feedback for an authentication event as to whether it was from a valid user. This feedback is used for improving the risk evaluation decision for the user pool as part of Amazon Cognito advanced security.

    See

    AWSCognitoIdentityProviderAdminUpdateAuthEventFeedbackRequest

    See

    AWSCognitoIdentityProviderAdminUpdateAuthEventFeedbackResponse

    Declaration

    Objective-C

    - (void)
        adminUpdateAuthEventFeedback:
            (nonnull AWSCognitoIdentityProviderAdminUpdateAuthEventFeedbackRequest
                 *)request
                   completionHandler:
                       (void (^_Nullable)(
                           AWSCognitoIdentityProviderAdminUpdateAuthEventFeedbackResponse
                               *_Nullable,
                           NSError *_Nullable))completionHandler;

    Swift

    func adminUpdateAuthEventFeedback(_ request: AWSCognitoIdentityProviderAdminUpdateAuthEventFeedbackRequest, completionHandler: ((AWSCognitoIdentityProviderAdminUpdateAuthEventFeedbackResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AdminUpdateAuthEventFeedback service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserPoolAddOnNotEnabled, AWSCognitoIdentityProviderErrorInternalError.

  • Updates the device status as an administrator.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminUpdateDeviceStatusRequest

    See

    AWSCognitoIdentityProviderAdminUpdateDeviceStatusResponse

    Declaration

    Objective-C

    - (id)adminUpdateDeviceStatus:
        (nonnull AWSCognitoIdentityProviderAdminUpdateDeviceStatusRequest *)request;

    Swift

    func adminUpdateDeviceStatus(_ request: AWSCognitoIdentityProviderAdminUpdateDeviceStatusRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdminUpdateDeviceStatus service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderAdminUpdateDeviceStatusResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidUserPoolConfiguration, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Updates the device status as an administrator.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminUpdateDeviceStatusRequest

    See

    AWSCognitoIdentityProviderAdminUpdateDeviceStatusResponse

    Declaration

    Objective-C

    - (void)adminUpdateDeviceStatus:
                (nonnull AWSCognitoIdentityProviderAdminUpdateDeviceStatusRequest *)
                    request
                  completionHandler:
                      (void (^_Nullable)(
                          AWSCognitoIdentityProviderAdminUpdateDeviceStatusResponse
                              *_Nullable,
                          NSError *_Nullable))completionHandler;

    Swift

    func adminUpdateDeviceStatus(_ request: AWSCognitoIdentityProviderAdminUpdateDeviceStatusRequest, completionHandler: ((AWSCognitoIdentityProviderAdminUpdateDeviceStatusResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AdminUpdateDeviceStatus service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidUserPoolConfiguration, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Updates the specified user’s attributes, including developer attributes, as an administrator. Works on any user.

    For custom attributes, you must prepend the custom: prefix to the attribute name.

    In addition to updating user attributes, this API can also be used to mark phone and email as verified.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminUpdateUserAttributesRequest

    See

    AWSCognitoIdentityProviderAdminUpdateUserAttributesResponse

    Declaration

    Objective-C

    - (id)adminUpdateUserAttributes:
        (nonnull AWSCognitoIdentityProviderAdminUpdateUserAttributesRequest *)
            request;

    Swift

    func adminUpdateUserAttributes(_ request: AWSCognitoIdentityProviderAdminUpdateUserAttributesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdminUpdateUserAttributes service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderAdminUpdateUserAttributesResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorAliasExists, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError, AWSCognitoIdentityProviderErrorInvalidSmsRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidEmailRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidSmsRoleTrustRelationship.

  • Updates the specified user’s attributes, including developer attributes, as an administrator. Works on any user.

    For custom attributes, you must prepend the custom: prefix to the attribute name.

    In addition to updating user attributes, this API can also be used to mark phone and email as verified.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminUpdateUserAttributesRequest

    See

    AWSCognitoIdentityProviderAdminUpdateUserAttributesResponse

    Declaration

    Objective-C

    - (void)
        adminUpdateUserAttributes:
            (nonnull AWSCognitoIdentityProviderAdminUpdateUserAttributesRequest *)
                request
                completionHandler:
                    (void (^_Nullable)(
                        AWSCognitoIdentityProviderAdminUpdateUserAttributesResponse
                            *_Nullable,
                        NSError *_Nullable))completionHandler;

    Swift

    func adminUpdateUserAttributes(_ request: AWSCognitoIdentityProviderAdminUpdateUserAttributesRequest, completionHandler: ((AWSCognitoIdentityProviderAdminUpdateUserAttributesResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AdminUpdateUserAttributes service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorAliasExists, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError, AWSCognitoIdentityProviderErrorInvalidSmsRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidEmailRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidSmsRoleTrustRelationship.

  • Signs out users from all devices, as an administrator. It also invalidates all refresh tokens issued to a user. The user’s current access and Id tokens remain valid until their expiry. Access and Id tokens expire one hour after they are issued.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminUserGlobalSignOutRequest

    See

    AWSCognitoIdentityProviderAdminUserGlobalSignOutResponse

    Declaration

    Objective-C

    - (id)adminUserGlobalSignOut:
        (nonnull AWSCognitoIdentityProviderAdminUserGlobalSignOutRequest *)request;

    Swift

    func adminUserGlobalSignOut(_ request: AWSCognitoIdentityProviderAdminUserGlobalSignOutRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdminUserGlobalSignOut service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderAdminUserGlobalSignOutResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Signs out users from all devices, as an administrator. It also invalidates all refresh tokens issued to a user. The user’s current access and Id tokens remain valid until their expiry. Access and Id tokens expire one hour after they are issued.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderAdminUserGlobalSignOutRequest

    See

    AWSCognitoIdentityProviderAdminUserGlobalSignOutResponse

    Declaration

    Objective-C

    - (void)adminUserGlobalSignOut:
                (nonnull AWSCognitoIdentityProviderAdminUserGlobalSignOutRequest *)
                    request
                 completionHandler:
                     (void (^_Nullable)(
                         AWSCognitoIdentityProviderAdminUserGlobalSignOutResponse
                             *_Nullable,
                         NSError *_Nullable))completionHandler;

    Swift

    func adminUserGlobalSignOut(_ request: AWSCognitoIdentityProviderAdminUserGlobalSignOutRequest, completionHandler: ((AWSCognitoIdentityProviderAdminUserGlobalSignOutResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AdminUserGlobalSignOut service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Returns a unique generated shared secret key code for the user account. The request takes an access token or a session string, but not both.

    See

    AWSCognitoIdentityProviderAssociateSoftwareTokenRequest

    See

    AWSCognitoIdentityProviderAssociateSoftwareTokenResponse

    Declaration

    Objective-C

    - (id)associateSoftwareToken:
        (nonnull AWSCognitoIdentityProviderAssociateSoftwareTokenRequest *)request;

    Swift

    func associateSoftwareToken(_ request: AWSCognitoIdentityProviderAssociateSoftwareTokenRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AssociateSoftwareToken service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderAssociateSoftwareTokenResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInternalError, AWSCognitoIdentityProviderErrorSoftwareTokenMFANotFound.

  • Returns a unique generated shared secret key code for the user account. The request takes an access token or a session string, but not both.

    See

    AWSCognitoIdentityProviderAssociateSoftwareTokenRequest

    See

    AWSCognitoIdentityProviderAssociateSoftwareTokenResponse

    Declaration

    Objective-C

    - (void)associateSoftwareToken:
                (nonnull AWSCognitoIdentityProviderAssociateSoftwareTokenRequest *)
                    request
                 completionHandler:
                     (void (^_Nullable)(
                         AWSCognitoIdentityProviderAssociateSoftwareTokenResponse
                             *_Nullable,
                         NSError *_Nullable))completionHandler;

    Swift

    func associateSoftwareToken(_ request: AWSCognitoIdentityProviderAssociateSoftwareTokenRequest, completionHandler: ((AWSCognitoIdentityProviderAssociateSoftwareTokenResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the AssociateSoftwareToken service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInternalError, AWSCognitoIdentityProviderErrorSoftwareTokenMFANotFound.

  • Changes the password for a specified user in a user pool.

    See

    AWSCognitoIdentityProviderChangePasswordRequest

    See

    AWSCognitoIdentityProviderChangePasswordResponse

    Declaration

    Objective-C

    - (id)changePassword:
        (nonnull AWSCognitoIdentityProviderChangePasswordRequest *)request;

    Swift

    func changePassword(_ request: AWSCognitoIdentityProviderChangePasswordRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ChangePassword service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderChangePasswordResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorInvalidPassword, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Changes the password for a specified user in a user pool.

    See

    AWSCognitoIdentityProviderChangePasswordRequest

    See

    AWSCognitoIdentityProviderChangePasswordResponse

    Declaration

    Objective-C

    - (void)changePassword:
                (nonnull AWSCognitoIdentityProviderChangePasswordRequest *)request
         completionHandler:
             (void (^_Nullable)(
                 AWSCognitoIdentityProviderChangePasswordResponse *_Nullable,
                 NSError *_Nullable))completionHandler;

    Swift

    func changePassword(_ request: AWSCognitoIdentityProviderChangePasswordRequest, completionHandler: ((AWSCognitoIdentityProviderChangePasswordResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the ChangePassword service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorInvalidPassword, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Confirms tracking of the device. This API call is the call that begins device tracking.

    See

    AWSCognitoIdentityProviderConfirmDeviceRequest

    See

    AWSCognitoIdentityProviderConfirmDeviceResponse

    Declaration

    Objective-C

    - (id)confirmDevice:
        (nonnull AWSCognitoIdentityProviderConfirmDeviceRequest *)request;

    Swift

    func confirmDevice(_ request: AWSCognitoIdentityProviderConfirmDeviceRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ConfirmDevice service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderConfirmDeviceResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInvalidPassword, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorUsernameExists, AWSCognitoIdentityProviderErrorInvalidUserPoolConfiguration, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Confirms tracking of the device. This API call is the call that begins device tracking.

    See

    AWSCognitoIdentityProviderConfirmDeviceRequest

    See

    AWSCognitoIdentityProviderConfirmDeviceResponse

    Declaration

    Objective-C

    - (void)confirmDevice:
                (nonnull AWSCognitoIdentityProviderConfirmDeviceRequest *)request
        completionHandler:
            (void (^_Nullable)(
                AWSCognitoIdentityProviderConfirmDeviceResponse *_Nullable,
                NSError *_Nullable))completionHandler;

    Swift

    func confirmDevice(_ request: AWSCognitoIdentityProviderConfirmDeviceRequest, completionHandler: ((AWSCognitoIdentityProviderConfirmDeviceResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the ConfirmDevice service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInvalidPassword, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorUsernameExists, AWSCognitoIdentityProviderErrorInvalidUserPoolConfiguration, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Allows a user to enter a confirmation code to reset a forgotten password.

    See

    AWSCognitoIdentityProviderConfirmForgotPasswordRequest

    See

    AWSCognitoIdentityProviderConfirmForgotPasswordResponse

    Declaration

    Objective-C

    - (id)confirmForgotPassword:
        (nonnull AWSCognitoIdentityProviderConfirmForgotPasswordRequest *)request;

    Swift

    func confirmForgotPassword(_ request: AWSCognitoIdentityProviderConfirmForgotPasswordRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ConfirmForgotPassword service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderConfirmForgotPasswordResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorInvalidPassword, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorCodeMismatch, AWSCognitoIdentityProviderErrorExpiredCode, AWSCognitoIdentityProviderErrorTooManyFailedAttempts, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Allows a user to enter a confirmation code to reset a forgotten password.

    See

    AWSCognitoIdentityProviderConfirmForgotPasswordRequest

    See

    AWSCognitoIdentityProviderConfirmForgotPasswordResponse

    Declaration

    Objective-C

    - (void)confirmForgotPassword:
                (nonnull AWSCognitoIdentityProviderConfirmForgotPasswordRequest *)
                    request
                completionHandler:
                    (void (^_Nullable)(
                        AWSCognitoIdentityProviderConfirmForgotPasswordResponse
                            *_Nullable,
                        NSError *_Nullable))completionHandler;

    Swift

    func confirmForgotPassword(_ request: AWSCognitoIdentityProviderConfirmForgotPasswordRequest, completionHandler: ((AWSCognitoIdentityProviderConfirmForgotPasswordResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the ConfirmForgotPassword service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorInvalidPassword, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorCodeMismatch, AWSCognitoIdentityProviderErrorExpiredCode, AWSCognitoIdentityProviderErrorTooManyFailedAttempts, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Confirms registration of a user and handles the existing alias from a previous user.

    See

    AWSCognitoIdentityProviderConfirmSignUpRequest

    See

    AWSCognitoIdentityProviderConfirmSignUpResponse

    Declaration

    Objective-C

    - (id)confirmSignUp:
        (nonnull AWSCognitoIdentityProviderConfirmSignUpRequest *)request;

    Swift

    func confirmSignUp(_ request: AWSCognitoIdentityProviderConfirmSignUpRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ConfirmSignUp service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderConfirmSignUpResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyFailedAttempts, AWSCognitoIdentityProviderErrorCodeMismatch, AWSCognitoIdentityProviderErrorExpiredCode, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorAliasExists, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Confirms registration of a user and handles the existing alias from a previous user.

    See

    AWSCognitoIdentityProviderConfirmSignUpRequest

    See

    AWSCognitoIdentityProviderConfirmSignUpResponse

    Declaration

    Objective-C

    - (void)confirmSignUp:
                (nonnull AWSCognitoIdentityProviderConfirmSignUpRequest *)request
        completionHandler:
            (void (^_Nullable)(
                AWSCognitoIdentityProviderConfirmSignUpResponse *_Nullable,
                NSError *_Nullable))completionHandler;

    Swift

    func confirmSignUp(_ request: AWSCognitoIdentityProviderConfirmSignUpRequest, completionHandler: ((AWSCognitoIdentityProviderConfirmSignUpResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the ConfirmSignUp service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyFailedAttempts, AWSCognitoIdentityProviderErrorCodeMismatch, AWSCognitoIdentityProviderErrorExpiredCode, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorAliasExists, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Creates a new group in the specified user pool.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderCreateGroupRequest

    See

    AWSCognitoIdentityProviderCreateGroupResponse

    Declaration

    Objective-C

    - (id)createGroup:
        (nonnull AWSCognitoIdentityProviderCreateGroupRequest *)request;

    Swift

    func createGroup(_ request: AWSCognitoIdentityProviderCreateGroupRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateGroup service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderCreateGroupResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorGroupExists, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Creates a new group in the specified user pool.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderCreateGroupRequest

    See

    AWSCognitoIdentityProviderCreateGroupResponse

    Declaration

    Objective-C

    - (void)createGroup:
                (nonnull AWSCognitoIdentityProviderCreateGroupRequest *)request
        completionHandler:
            (void (^_Nullable)(
                AWSCognitoIdentityProviderCreateGroupResponse *_Nullable,
                NSError *_Nullable))completionHandler;

    Swift

    func createGroup(_ request: AWSCognitoIdentityProviderCreateGroupRequest, completionHandler: ((AWSCognitoIdentityProviderCreateGroupResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the CreateGroup service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorGroupExists, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Creates an identity provider for a user pool.

    See

    AWSCognitoIdentityProviderCreateIdentityProviderRequest

    See

    AWSCognitoIdentityProviderCreateIdentityProviderResponse

    Declaration

    Objective-C

    - (id)createIdentityProvider:
        (nonnull AWSCognitoIdentityProviderCreateIdentityProviderRequest *)request;

    Swift

    func createIdentityProvider(_ request: AWSCognitoIdentityProviderCreateIdentityProviderRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateIdentityProvider service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderCreateIdentityProviderResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorDuplicateProvider, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorInternalError.

  • Creates an identity provider for a user pool.

    See

    AWSCognitoIdentityProviderCreateIdentityProviderRequest

    See

    AWSCognitoIdentityProviderCreateIdentityProviderResponse

    Declaration

    Objective-C

    - (void)createIdentityProvider:
                (nonnull AWSCognitoIdentityProviderCreateIdentityProviderRequest *)
                    request
                 completionHandler:
                     (void (^_Nullable)(
                         AWSCognitoIdentityProviderCreateIdentityProviderResponse
                             *_Nullable,
                         NSError *_Nullable))completionHandler;

    Swift

    func createIdentityProvider(_ request: AWSCognitoIdentityProviderCreateIdentityProviderRequest, completionHandler: ((AWSCognitoIdentityProviderCreateIdentityProviderResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the CreateIdentityProvider service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorDuplicateProvider, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorInternalError.

  • Creates a new OAuth2.0 resource server and defines custom scopes in it.

    See

    AWSCognitoIdentityProviderCreateResourceServerRequest

    See

    AWSCognitoIdentityProviderCreateResourceServerResponse

    Declaration

    Objective-C

    - (id)createResourceServer:
        (nonnull AWSCognitoIdentityProviderCreateResourceServerRequest *)request;

    Swift

    func createResourceServer(_ request: AWSCognitoIdentityProviderCreateResourceServerRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateResourceServer service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderCreateResourceServerResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorInternalError.

  • Creates a new OAuth2.0 resource server and defines custom scopes in it.

    See

    AWSCognitoIdentityProviderCreateResourceServerRequest

    See

    AWSCognitoIdentityProviderCreateResourceServerResponse

    Declaration

    Objective-C

    - (void)createResourceServer:
                (nonnull AWSCognitoIdentityProviderCreateResourceServerRequest *)
                    request
               completionHandler:
                   (void (^_Nullable)(
                       AWSCognitoIdentityProviderCreateResourceServerResponse
                           *_Nullable,
                       NSError *_Nullable))completionHandler;

    Swift

    func createResourceServer(_ request: AWSCognitoIdentityProviderCreateResourceServerRequest, completionHandler: ((AWSCognitoIdentityProviderCreateResourceServerResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the CreateResourceServer service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorInternalError.

  • Creates the user import job.

    See

    AWSCognitoIdentityProviderCreateUserImportJobRequest

    See

    AWSCognitoIdentityProviderCreateUserImportJobResponse

    Declaration

    Objective-C

    - (id)createUserImportJob:
        (nonnull AWSCognitoIdentityProviderCreateUserImportJobRequest *)request;

    Swift

    func createUserImportJob(_ request: AWSCognitoIdentityProviderCreateUserImportJobRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateUserImportJob service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderCreateUserImportJobResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorPreconditionNotMet, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorInternalError.

  • Creates the user import job.

    See

    AWSCognitoIdentityProviderCreateUserImportJobRequest

    See

    AWSCognitoIdentityProviderCreateUserImportJobResponse

    Declaration

    Objective-C

    - (void)
        createUserImportJob:
            (nonnull AWSCognitoIdentityProviderCreateUserImportJobRequest *)request
          completionHandler:
              (void (^_Nullable)(
                  AWSCognitoIdentityProviderCreateUserImportJobResponse *_Nullable,
                  NSError *_Nullable))completionHandler;

    Swift

    func createUserImportJob(_ request: AWSCognitoIdentityProviderCreateUserImportJobRequest, completionHandler: ((AWSCognitoIdentityProviderCreateUserImportJobResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the CreateUserImportJob service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorPreconditionNotMet, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorInternalError.

  • Creates a new Amazon Cognito user pool and sets the password policy for the pool.

    See

    AWSCognitoIdentityProviderCreateUserPoolRequest

    See

    AWSCognitoIdentityProviderCreateUserPoolResponse

    Declaration

    Objective-C

    - (id)createUserPool:
        (nonnull AWSCognitoIdentityProviderCreateUserPoolRequest *)request;

    Swift

    func createUserPool(_ request: AWSCognitoIdentityProviderCreateUserPoolRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateUserPool service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderCreateUserPoolResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorInvalidSmsRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidSmsRoleTrustRelationship, AWSCognitoIdentityProviderErrorInvalidEmailRoleAccessPolicy, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserPoolTagging, AWSCognitoIdentityProviderErrorInternalError.

  • Creates a new Amazon Cognito user pool and sets the password policy for the pool.

    See

    AWSCognitoIdentityProviderCreateUserPoolRequest

    See

    AWSCognitoIdentityProviderCreateUserPoolResponse

    Declaration

    Objective-C

    - (void)createUserPool:
                (nonnull AWSCognitoIdentityProviderCreateUserPoolRequest *)request
         completionHandler:
             (void (^_Nullable)(
                 AWSCognitoIdentityProviderCreateUserPoolResponse *_Nullable,
                 NSError *_Nullable))completionHandler;

    Swift

    func createUserPool(_ request: AWSCognitoIdentityProviderCreateUserPoolRequest, completionHandler: ((AWSCognitoIdentityProviderCreateUserPoolResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the CreateUserPool service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorInvalidSmsRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidSmsRoleTrustRelationship, AWSCognitoIdentityProviderErrorInvalidEmailRoleAccessPolicy, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserPoolTagging, AWSCognitoIdentityProviderErrorInternalError.

  • Creates the user pool client.

    See

    AWSCognitoIdentityProviderCreateUserPoolClientRequest

    See

    AWSCognitoIdentityProviderCreateUserPoolClientResponse

    Declaration

    Objective-C

    - (id)createUserPoolClient:
        (nonnull AWSCognitoIdentityProviderCreateUserPoolClientRequest *)request;

    Swift

    func createUserPoolClient(_ request: AWSCognitoIdentityProviderCreateUserPoolClientRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateUserPoolClient service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderCreateUserPoolClientResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorScopeDoesNotExist, AWSCognitoIdentityProviderErrorInvalidOAuthFlow, AWSCognitoIdentityProviderErrorInternalError.

  • Creates the user pool client.

    See

    AWSCognitoIdentityProviderCreateUserPoolClientRequest

    See

    AWSCognitoIdentityProviderCreateUserPoolClientResponse

    Declaration

    Objective-C

    - (void)createUserPoolClient:
                (nonnull AWSCognitoIdentityProviderCreateUserPoolClientRequest *)
                    request
               completionHandler:
                   (void (^_Nullable)(
                       AWSCognitoIdentityProviderCreateUserPoolClientResponse
                           *_Nullable,
                       NSError *_Nullable))completionHandler;

    Swift

    func createUserPoolClient(_ request: AWSCognitoIdentityProviderCreateUserPoolClientRequest, completionHandler: ((AWSCognitoIdentityProviderCreateUserPoolClientResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the CreateUserPoolClient service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorScopeDoesNotExist, AWSCognitoIdentityProviderErrorInvalidOAuthFlow, AWSCognitoIdentityProviderErrorInternalError.

  • Creates a new domain for a user pool.

    See

    AWSCognitoIdentityProviderCreateUserPoolDomainRequest

    See

    AWSCognitoIdentityProviderCreateUserPoolDomainResponse

    Declaration

    Objective-C

    - (id)createUserPoolDomain:
        (nonnull AWSCognitoIdentityProviderCreateUserPoolDomainRequest *)request;

    Swift

    func createUserPoolDomain(_ request: AWSCognitoIdentityProviderCreateUserPoolDomainRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateUserPoolDomain service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderCreateUserPoolDomainResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorInternalError.

  • Creates a new domain for a user pool.

    See

    AWSCognitoIdentityProviderCreateUserPoolDomainRequest

    See

    AWSCognitoIdentityProviderCreateUserPoolDomainResponse

    Declaration

    Objective-C

    - (void)createUserPoolDomain:
                (nonnull AWSCognitoIdentityProviderCreateUserPoolDomainRequest *)
                    request
               completionHandler:
                   (void (^_Nullable)(
                       AWSCognitoIdentityProviderCreateUserPoolDomainResponse
                           *_Nullable,
                       NSError *_Nullable))completionHandler;

    Swift

    func createUserPoolDomain(_ request: AWSCognitoIdentityProviderCreateUserPoolDomainRequest, completionHandler: ((AWSCognitoIdentityProviderCreateUserPoolDomainResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the CreateUserPoolDomain service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorInternalError.

  • Deletes a group. Currently only groups with no members can be deleted.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderDeleteGroupRequest

    Declaration

    Objective-C

    - (id)deleteGroup:
        (nonnull AWSCognitoIdentityProviderDeleteGroupRequest *)request;

    Swift

    func deleteGroup(_ request: AWSCognitoIdentityProviderDeleteGroupRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteGroup service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Deletes a group. Currently only groups with no members can be deleted.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderDeleteGroupRequest

    Declaration

    Objective-C

    - (void)deleteGroup:
                (nonnull AWSCognitoIdentityProviderDeleteGroupRequest *)request
        completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func deleteGroup(_ request: AWSCognitoIdentityProviderDeleteGroupRequest, completionHandler: ((Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the DeleteGroup service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Deletes an identity provider for a user pool.

    See

    AWSCognitoIdentityProviderDeleteIdentityProviderRequest

    Declaration

    Objective-C

    - (id)deleteIdentityProvider:
        (nonnull AWSCognitoIdentityProviderDeleteIdentityProviderRequest *)request;

    Swift

    func delete(_ request: AWSCognitoIdentityProviderDeleteIdentityProviderRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteIdentityProvider service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorUnsupportedIdentityProvider, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError.

  • Deletes an identity provider for a user pool.

    See

    AWSCognitoIdentityProviderDeleteIdentityProviderRequest

    Declaration

    Objective-C

    - (void)deleteIdentityProvider:
                (nonnull AWSCognitoIdentityProviderDeleteIdentityProviderRequest *)
                    request
                 completionHandler:
                     (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func delete(_ request: AWSCognitoIdentityProviderDeleteIdentityProviderRequest, completionHandler: ((Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the DeleteIdentityProvider service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorUnsupportedIdentityProvider, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError.

  • Deletes a resource server.

    See

    AWSCognitoIdentityProviderDeleteResourceServerRequest

    Declaration

    Objective-C

    - (id)deleteResourceServer:
        (nonnull AWSCognitoIdentityProviderDeleteResourceServerRequest *)request;

    Swift

    func deleteResourceServer(_ request: AWSCognitoIdentityProviderDeleteResourceServerRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteResourceServer service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError.

  • Deletes a resource server.

    See

    AWSCognitoIdentityProviderDeleteResourceServerRequest

    Declaration

    Objective-C

    - (void)deleteResourceServer:
                (nonnull AWSCognitoIdentityProviderDeleteResourceServerRequest *)
                    request
               completionHandler:
                   (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func deleteResourceServer(_ request: AWSCognitoIdentityProviderDeleteResourceServerRequest, completionHandler: ((Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the DeleteResourceServer service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError.

  • Allows a user to delete himself or herself.

    See

    AWSCognitoIdentityProviderDeleteUserRequest

    Declaration

    Objective-C

    - (id)deleteUser:(nonnull AWSCognitoIdentityProviderDeleteUserRequest *)request;

    Swift

    func deleteUser(_ request: AWSCognitoIdentityProviderDeleteUserRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteUser service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Allows a user to delete himself or herself.

    See

    AWSCognitoIdentityProviderDeleteUserRequest

    Declaration

    Objective-C

    - (void)deleteUser:
                (nonnull AWSCognitoIdentityProviderDeleteUserRequest *)request
        completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func deleteUser(_ request: AWSCognitoIdentityProviderDeleteUserRequest, completionHandler: ((Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the DeleteUser service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Deletes the attributes for a user.

    See

    AWSCognitoIdentityProviderDeleteUserAttributesRequest

    See

    AWSCognitoIdentityProviderDeleteUserAttributesResponse

    Declaration

    Objective-C

    - (id)deleteUserAttributes:
        (nonnull AWSCognitoIdentityProviderDeleteUserAttributesRequest *)request;

    Swift

    func deleteUserAttributes(_ request: AWSCognitoIdentityProviderDeleteUserAttributesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteUserAttributes service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderDeleteUserAttributesResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Deletes the attributes for a user.

    See

    AWSCognitoIdentityProviderDeleteUserAttributesRequest

    See

    AWSCognitoIdentityProviderDeleteUserAttributesResponse

    Declaration

    Objective-C

    - (void)deleteUserAttributes:
                (nonnull AWSCognitoIdentityProviderDeleteUserAttributesRequest *)
                    request
               completionHandler:
                   (void (^_Nullable)(
                       AWSCognitoIdentityProviderDeleteUserAttributesResponse
                           *_Nullable,
                       NSError *_Nullable))completionHandler;

    Swift

    func deleteUserAttributes(_ request: AWSCognitoIdentityProviderDeleteUserAttributesRequest, completionHandler: ((AWSCognitoIdentityProviderDeleteUserAttributesResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the DeleteUserAttributes service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Deletes the specified Amazon Cognito user pool.

    See

    AWSCognitoIdentityProviderDeleteUserPoolRequest

    Declaration

    Objective-C

    - (id)deleteUserPool:
        (nonnull AWSCognitoIdentityProviderDeleteUserPoolRequest *)request;

    Swift

    func deleteUserPool(_ request: AWSCognitoIdentityProviderDeleteUserPoolRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteUserPool service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserImportInProgress, AWSCognitoIdentityProviderErrorInternalError.

  • Deletes the specified Amazon Cognito user pool.

    See

    AWSCognitoIdentityProviderDeleteUserPoolRequest

    Declaration

    Objective-C

    - (void)deleteUserPool:
                (nonnull AWSCognitoIdentityProviderDeleteUserPoolRequest *)request
         completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func deleteUserPool(_ request: AWSCognitoIdentityProviderDeleteUserPoolRequest, completionHandler: ((Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the DeleteUserPool service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserImportInProgress, AWSCognitoIdentityProviderErrorInternalError.

  • Allows the developer to delete the user pool client.

    See

    AWSCognitoIdentityProviderDeleteUserPoolClientRequest

    Declaration

    Objective-C

    - (id)deleteUserPoolClient:
        (nonnull AWSCognitoIdentityProviderDeleteUserPoolClientRequest *)request;

    Swift

    func deleteUserPoolClient(_ request: AWSCognitoIdentityProviderDeleteUserPoolClientRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteUserPoolClient service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Allows the developer to delete the user pool client.

    See

    AWSCognitoIdentityProviderDeleteUserPoolClientRequest

    Declaration

    Objective-C

    - (void)deleteUserPoolClient:
                (nonnull AWSCognitoIdentityProviderDeleteUserPoolClientRequest *)
                    request
               completionHandler:
                   (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func deleteUserPoolClient(_ request: AWSCognitoIdentityProviderDeleteUserPoolClientRequest, completionHandler: ((Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the DeleteUserPoolClient service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Deletes a domain for a user pool.

    See

    AWSCognitoIdentityProviderDeleteUserPoolDomainRequest

    See

    AWSCognitoIdentityProviderDeleteUserPoolDomainResponse

    Declaration

    Objective-C

    - (id)deleteUserPoolDomain:
        (nonnull AWSCognitoIdentityProviderDeleteUserPoolDomainRequest *)request;

    Swift

    func deleteUserPoolDomain(_ request: AWSCognitoIdentityProviderDeleteUserPoolDomainRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteUserPoolDomain service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderDeleteUserPoolDomainResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Deletes a domain for a user pool.

    See

    AWSCognitoIdentityProviderDeleteUserPoolDomainRequest

    See

    AWSCognitoIdentityProviderDeleteUserPoolDomainResponse

    Declaration

    Objective-C

    - (void)deleteUserPoolDomain:
                (nonnull AWSCognitoIdentityProviderDeleteUserPoolDomainRequest *)
                    request
               completionHandler:
                   (void (^_Nullable)(
                       AWSCognitoIdentityProviderDeleteUserPoolDomainResponse
                           *_Nullable,
                       NSError *_Nullable))completionHandler;

    Swift

    func deleteUserPoolDomain(_ request: AWSCognitoIdentityProviderDeleteUserPoolDomainRequest, completionHandler: ((AWSCognitoIdentityProviderDeleteUserPoolDomainResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the DeleteUserPoolDomain service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Gets information about a specific identity provider.

    See

    AWSCognitoIdentityProviderDescribeIdentityProviderRequest

    See

    AWSCognitoIdentityProviderDescribeIdentityProviderResponse

    Declaration

    Objective-C

    - (id)describeIdentityProvider:
        (nonnull AWSCognitoIdentityProviderDescribeIdentityProviderRequest *)
            request;

    Swift

    func describe(_ request: AWSCognitoIdentityProviderDescribeIdentityProviderRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeIdentityProvider service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderDescribeIdentityProviderResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError.

  • Gets information about a specific identity provider.

    See

    AWSCognitoIdentityProviderDescribeIdentityProviderRequest

    See

    AWSCognitoIdentityProviderDescribeIdentityProviderResponse

    Declaration

    Objective-C

    - (void)
        describeIdentityProvider:
            (nonnull AWSCognitoIdentityProviderDescribeIdentityProviderRequest *)
                request
               completionHandler:
                   (void (^_Nullable)(
                       AWSCognitoIdentityProviderDescribeIdentityProviderResponse
                           *_Nullable,
                       NSError *_Nullable))completionHandler;

    Swift

    func describe(_ request: AWSCognitoIdentityProviderDescribeIdentityProviderRequest, completionHandler: ((AWSCognitoIdentityProviderDescribeIdentityProviderResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the DescribeIdentityProvider service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError.

  • Describes a resource server.

    See

    AWSCognitoIdentityProviderDescribeResourceServerRequest

    See

    AWSCognitoIdentityProviderDescribeResourceServerResponse

    Declaration

    Objective-C

    - (id)describeResourceServer:
        (nonnull AWSCognitoIdentityProviderDescribeResourceServerRequest *)request;

    Swift

    func describeResourceServer(_ request: AWSCognitoIdentityProviderDescribeResourceServerRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeResourceServer service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderDescribeResourceServerResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError.

  • Describes a resource server.

    See

    AWSCognitoIdentityProviderDescribeResourceServerRequest

    See

    AWSCognitoIdentityProviderDescribeResourceServerResponse

    Declaration

    Objective-C

    - (void)describeResourceServer:
                (nonnull AWSCognitoIdentityProviderDescribeResourceServerRequest *)
                    request
                 completionHandler:
                     (void (^_Nullable)(
                         AWSCognitoIdentityProviderDescribeResourceServerResponse
                             *_Nullable,
                         NSError *_Nullable))completionHandler;

    Swift

    func describeResourceServer(_ request: AWSCognitoIdentityProviderDescribeResourceServerRequest, completionHandler: ((AWSCognitoIdentityProviderDescribeResourceServerResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the DescribeResourceServer service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError.

  • Describes the risk configuration.

    See

    AWSCognitoIdentityProviderDescribeRiskConfigurationRequest

    See

    AWSCognitoIdentityProviderDescribeRiskConfigurationResponse

    Declaration

    Objective-C

    - (id)describeRiskConfiguration:
        (nonnull AWSCognitoIdentityProviderDescribeRiskConfigurationRequest *)
            request;

    Swift

    func describeRiskConfiguration(_ request: AWSCognitoIdentityProviderDescribeRiskConfigurationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeRiskConfiguration service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderDescribeRiskConfigurationResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserPoolAddOnNotEnabled, AWSCognitoIdentityProviderErrorInternalError.

  • Describes the risk configuration.

    See

    AWSCognitoIdentityProviderDescribeRiskConfigurationRequest

    See

    AWSCognitoIdentityProviderDescribeRiskConfigurationResponse

    Declaration

    Objective-C

    - (void)
        describeRiskConfiguration:
            (nonnull AWSCognitoIdentityProviderDescribeRiskConfigurationRequest *)
                request
                completionHandler:
                    (void (^_Nullable)(
                        AWSCognitoIdentityProviderDescribeRiskConfigurationResponse
                            *_Nullable,
                        NSError *_Nullable))completionHandler;

    Swift

    func describeRiskConfiguration(_ request: AWSCognitoIdentityProviderDescribeRiskConfigurationRequest, completionHandler: ((AWSCognitoIdentityProviderDescribeRiskConfigurationResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the DescribeRiskConfiguration service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserPoolAddOnNotEnabled, AWSCognitoIdentityProviderErrorInternalError.

  • Describes the user import job.

    See

    AWSCognitoIdentityProviderDescribeUserImportJobRequest

    See

    AWSCognitoIdentityProviderDescribeUserImportJobResponse

    Declaration

    Objective-C

    - (id)describeUserImportJob:
        (nonnull AWSCognitoIdentityProviderDescribeUserImportJobRequest *)request;

    Swift

    func describeUserImportJob(_ request: AWSCognitoIdentityProviderDescribeUserImportJobRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeUserImportJob service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderDescribeUserImportJobResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Describes the user import job.

    See

    AWSCognitoIdentityProviderDescribeUserImportJobRequest

    See

    AWSCognitoIdentityProviderDescribeUserImportJobResponse

    Declaration

    Objective-C

    - (void)describeUserImportJob:
                (nonnull AWSCognitoIdentityProviderDescribeUserImportJobRequest *)
                    request
                completionHandler:
                    (void (^_Nullable)(
                        AWSCognitoIdentityProviderDescribeUserImportJobResponse
                            *_Nullable,
                        NSError *_Nullable))completionHandler;

    Swift

    func describeUserImportJob(_ request: AWSCognitoIdentityProviderDescribeUserImportJobRequest, completionHandler: ((AWSCognitoIdentityProviderDescribeUserImportJobResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the DescribeUserImportJob service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Returns the configuration information and metadata of the specified user pool.

    See

    AWSCognitoIdentityProviderDescribeUserPoolRequest

    See

    AWSCognitoIdentityProviderDescribeUserPoolResponse

    Declaration

    Objective-C

    - (id)describeUserPool:
        (nonnull AWSCognitoIdentityProviderDescribeUserPoolRequest *)request;

    Swift

    func describeUserPool(_ request: AWSCognitoIdentityProviderDescribeUserPoolRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeUserPool service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderDescribeUserPoolResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserPoolTagging, AWSCognitoIdentityProviderErrorInternalError.

  • Returns the configuration information and metadata of the specified user pool.

    See

    AWSCognitoIdentityProviderDescribeUserPoolRequest

    See

    AWSCognitoIdentityProviderDescribeUserPoolResponse

    Declaration

    Objective-C

    - (void)describeUserPool:
                (nonnull AWSCognitoIdentityProviderDescribeUserPoolRequest *)request
           completionHandler:
               (void (^_Nullable)(
                   AWSCognitoIdentityProviderDescribeUserPoolResponse *_Nullable,
                   NSError *_Nullable))completionHandler;

    Swift

    func describeUserPool(_ request: AWSCognitoIdentityProviderDescribeUserPoolRequest, completionHandler: ((AWSCognitoIdentityProviderDescribeUserPoolResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the DescribeUserPool service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserPoolTagging, AWSCognitoIdentityProviderErrorInternalError.

  • Client method for returning the configuration information and metadata of the specified user pool app client.

    See

    AWSCognitoIdentityProviderDescribeUserPoolClientRequest

    See

    AWSCognitoIdentityProviderDescribeUserPoolClientResponse

    Declaration

    Objective-C

    - (id)describeUserPoolClient:
        (nonnull AWSCognitoIdentityProviderDescribeUserPoolClientRequest *)request;

    Swift

    func describeUserPoolClient(_ request: AWSCognitoIdentityProviderDescribeUserPoolClientRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeUserPoolClient service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderDescribeUserPoolClientResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Client method for returning the configuration information and metadata of the specified user pool app client.

    See

    AWSCognitoIdentityProviderDescribeUserPoolClientRequest

    See

    AWSCognitoIdentityProviderDescribeUserPoolClientResponse

    Declaration

    Objective-C

    - (void)describeUserPoolClient:
                (nonnull AWSCognitoIdentityProviderDescribeUserPoolClientRequest *)
                    request
                 completionHandler:
                     (void (^_Nullable)(
                         AWSCognitoIdentityProviderDescribeUserPoolClientResponse
                             *_Nullable,
                         NSError *_Nullable))completionHandler;

    Swift

    func describeUserPoolClient(_ request: AWSCognitoIdentityProviderDescribeUserPoolClientRequest, completionHandler: ((AWSCognitoIdentityProviderDescribeUserPoolClientResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the DescribeUserPoolClient service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Gets information about a domain.

    See

    AWSCognitoIdentityProviderDescribeUserPoolDomainRequest

    See

    AWSCognitoIdentityProviderDescribeUserPoolDomainResponse

    Declaration

    Objective-C

    - (id)describeUserPoolDomain:
        (nonnull AWSCognitoIdentityProviderDescribeUserPoolDomainRequest *)request;

    Swift

    func describeUserPoolDomain(_ request: AWSCognitoIdentityProviderDescribeUserPoolDomainRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeUserPoolDomain service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderDescribeUserPoolDomainResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Gets information about a domain.

    See

    AWSCognitoIdentityProviderDescribeUserPoolDomainRequest

    See

    AWSCognitoIdentityProviderDescribeUserPoolDomainResponse

    Declaration

    Objective-C

    - (void)describeUserPoolDomain:
                (nonnull AWSCognitoIdentityProviderDescribeUserPoolDomainRequest *)
                    request
                 completionHandler:
                     (void (^_Nullable)(
                         AWSCognitoIdentityProviderDescribeUserPoolDomainResponse
                             *_Nullable,
                         NSError *_Nullable))completionHandler;

    Swift

    func describeUserPoolDomain(_ request: AWSCognitoIdentityProviderDescribeUserPoolDomainRequest, completionHandler: ((AWSCognitoIdentityProviderDescribeUserPoolDomainResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the DescribeUserPoolDomain service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Forgets the specified device.

    See

    AWSCognitoIdentityProviderForgetDeviceRequest

    Declaration

    Objective-C

    - (id)forgetDevice:
        (nonnull AWSCognitoIdentityProviderForgetDeviceRequest *)request;

    Swift

    func forgetDevice(_ request: AWSCognitoIdentityProviderForgetDeviceRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ForgetDevice service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInvalidUserPoolConfiguration, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Forgets the specified device.

    See

    AWSCognitoIdentityProviderForgetDeviceRequest

    Declaration

    Objective-C

    - (void)forgetDevice:
                (nonnull AWSCognitoIdentityProviderForgetDeviceRequest *)request
        completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func forgetDevice(_ request: AWSCognitoIdentityProviderForgetDeviceRequest, completionHandler: ((Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the ForgetDevice service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInvalidUserPoolConfiguration, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Calling this API causes a message to be sent to the end user with a confirmation code that is required to change the user’s password. For the Username parameter, you can use the username or user alias. The method used to send the confirmation code is sent according to the specified AccountRecoverySetting. For more information, see Recovering User Accounts in the Amazon Cognito Developer Guide. If neither a verified phone number nor a verified email exists, an InvalidParameterException is thrown. To use the confirmation code for resetting the password, call .

    See

    AWSCognitoIdentityProviderForgotPasswordRequest

    See

    AWSCognitoIdentityProviderForgotPasswordResponse

    Declaration

    Objective-C

    - (id)forgotPassword:
        (nonnull AWSCognitoIdentityProviderForgotPasswordRequest *)request;

    Swift

    func forgotPassword(_ request: AWSCognitoIdentityProviderForgotPasswordRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ForgotPassword service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderForgotPasswordResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorInvalidSmsRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidSmsRoleTrustRelationship, AWSCognitoIdentityProviderErrorInvalidEmailRoleAccessPolicy, AWSCognitoIdentityProviderErrorCodeDeliveryFailure, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Calling this API causes a message to be sent to the end user with a confirmation code that is required to change the user’s password. For the Username parameter, you can use the username or user alias. The method used to send the confirmation code is sent according to the specified AccountRecoverySetting. For more information, see Recovering User Accounts in the Amazon Cognito Developer Guide. If neither a verified phone number nor a verified email exists, an InvalidParameterException is thrown. To use the confirmation code for resetting the password, call .

    See

    AWSCognitoIdentityProviderForgotPasswordRequest

    See

    AWSCognitoIdentityProviderForgotPasswordResponse

    Declaration

    Objective-C

    - (void)forgotPassword:
                (nonnull AWSCognitoIdentityProviderForgotPasswordRequest *)request
         completionHandler:
             (void (^_Nullable)(
                 AWSCognitoIdentityProviderForgotPasswordResponse *_Nullable,
                 NSError *_Nullable))completionHandler;

    Swift

    func forgotPassword(_ request: AWSCognitoIdentityProviderForgotPasswordRequest, completionHandler: ((AWSCognitoIdentityProviderForgotPasswordResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the ForgotPassword service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorInvalidSmsRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidSmsRoleTrustRelationship, AWSCognitoIdentityProviderErrorInvalidEmailRoleAccessPolicy, AWSCognitoIdentityProviderErrorCodeDeliveryFailure, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Gets the header information for the .csv file to be used as input for the user import job.

    See

    AWSCognitoIdentityProviderGetCSVHeaderRequest

    See

    AWSCognitoIdentityProviderGetCSVHeaderResponse

    Declaration

    Objective-C

    - (id)getCSVHeader:
        (nonnull AWSCognitoIdentityProviderGetCSVHeaderRequest *)request;

    Swift

    func getCSVHeader(_ request: AWSCognitoIdentityProviderGetCSVHeaderRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetCSVHeader service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderGetCSVHeaderResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Gets the header information for the .csv file to be used as input for the user import job.

    See

    AWSCognitoIdentityProviderGetCSVHeaderRequest

    See

    AWSCognitoIdentityProviderGetCSVHeaderResponse

    Declaration

    Objective-C

    - (void)getCSVHeader:
                (nonnull AWSCognitoIdentityProviderGetCSVHeaderRequest *)request
        completionHandler:
            (void (^_Nullable)(
                AWSCognitoIdentityProviderGetCSVHeaderResponse *_Nullable,
                NSError *_Nullable))completionHandler;

    Swift

    func getCSVHeader(_ request: AWSCognitoIdentityProviderGetCSVHeaderRequest, completionHandler: ((AWSCognitoIdentityProviderGetCSVHeaderResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the GetCSVHeader service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Gets the device.

    See

    AWSCognitoIdentityProviderGetDeviceRequest

    See

    AWSCognitoIdentityProviderGetDeviceResponse

    Declaration

    Objective-C

    - (id)getDevice:(nonnull AWSCognitoIdentityProviderGetDeviceRequest *)request;

    Swift

    func getDevice(_ request: AWSCognitoIdentityProviderGetDeviceRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetDevice service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderGetDeviceResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorInvalidUserPoolConfiguration, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Gets the device.

    See

    AWSCognitoIdentityProviderGetDeviceRequest

    See

    AWSCognitoIdentityProviderGetDeviceResponse

    Declaration

    Objective-C

    - (void)getDevice:(nonnull AWSCognitoIdentityProviderGetDeviceRequest *)request
        completionHandler:
            (void (^_Nullable)(
                AWSCognitoIdentityProviderGetDeviceResponse *_Nullable,
                NSError *_Nullable))completionHandler;

    Swift

    func getDevice(_ request: AWSCognitoIdentityProviderGetDeviceRequest, completionHandler: ((AWSCognitoIdentityProviderGetDeviceResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the GetDevice service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorInvalidUserPoolConfiguration, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Gets a group.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderGetGroupRequest

    See

    AWSCognitoIdentityProviderGetGroupResponse

    Declaration

    Objective-C

    - (id)getGroup:(nonnull AWSCognitoIdentityProviderGetGroupRequest *)request;

    Swift

    func getGroup(_ request: AWSCognitoIdentityProviderGetGroupRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetGroup service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderGetGroupResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Gets a group.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderGetGroupRequest

    See

    AWSCognitoIdentityProviderGetGroupResponse

    Declaration

    Objective-C

    - (void)getGroup:(nonnull AWSCognitoIdentityProviderGetGroupRequest *)request
        completionHandler:(void (^_Nullable)(
                              AWSCognitoIdentityProviderGetGroupResponse *_Nullable,
                              NSError *_Nullable))completionHandler;

    Swift

    func getGroup(_ request: AWSCognitoIdentityProviderGetGroupRequest, completionHandler: ((AWSCognitoIdentityProviderGetGroupResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the GetGroup service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Gets the specified identity provider.

    See

    AWSCognitoIdentityProviderGetIdentityProviderByIdentifierRequest

    See

    AWSCognitoIdentityProviderGetIdentityProviderByIdentifierResponse

    Declaration

    Objective-C

    - (id)getIdentityProviderByIdentifier:
        (nonnull AWSCognitoIdentityProviderGetIdentityProviderByIdentifierRequest *)
            request;

    Swift

    func getByIdentifier(_ request: AWSCognitoIdentityProviderGetIdentityProviderByIdentifierRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetIdentityProviderByIdentifier service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderGetIdentityProviderByIdentifierResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError.

  • Gets the specified identity provider.

    See

    AWSCognitoIdentityProviderGetIdentityProviderByIdentifierRequest

    See

    AWSCognitoIdentityProviderGetIdentityProviderByIdentifierResponse

    Declaration

    Objective-C

    - (void)
        getIdentityProviderByIdentifier:
            (nonnull
                 AWSCognitoIdentityProviderGetIdentityProviderByIdentifierRequest *)
                request
                      completionHandler:
                          (void (^_Nullable)(
                              AWSCognitoIdentityProviderGetIdentityProviderByIdentifierResponse
                                  *_Nullable,
                              NSError *_Nullable))completionHandler;

    Swift

    func getByIdentifier(_ request: AWSCognitoIdentityProviderGetIdentityProviderByIdentifierRequest, completionHandler: ((AWSCognitoIdentityProviderGetIdentityProviderByIdentifierResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the GetIdentityProviderByIdentifier service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError.

  • This method takes a user pool ID, and returns the signing certificate.

    See

    AWSCognitoIdentityProviderGetSigningCertificateRequest

    See

    AWSCognitoIdentityProviderGetSigningCertificateResponse

    Declaration

    Objective-C

    - (id)getSigningCertificate:
        (nonnull AWSCognitoIdentityProviderGetSigningCertificateRequest *)request;

    Swift

    func getSigningCertificate(_ request: AWSCognitoIdentityProviderGetSigningCertificateRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetSigningCertificate service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderGetSigningCertificateResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInternalError, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound.

  • This method takes a user pool ID, and returns the signing certificate.

    See

    AWSCognitoIdentityProviderGetSigningCertificateRequest

    See

    AWSCognitoIdentityProviderGetSigningCertificateResponse

    Declaration

    Objective-C

    - (void)getSigningCertificate:
                (nonnull AWSCognitoIdentityProviderGetSigningCertificateRequest *)
                    request
                completionHandler:
                    (void (^_Nullable)(
                        AWSCognitoIdentityProviderGetSigningCertificateResponse
                            *_Nullable,
                        NSError *_Nullable))completionHandler;

    Swift

    func getSigningCertificate(_ request: AWSCognitoIdentityProviderGetSigningCertificateRequest, completionHandler: ((AWSCognitoIdentityProviderGetSigningCertificateResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the GetSigningCertificate service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInternalError, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound.

  • Gets the UI Customization information for a particular app client’s app UI, if there is something set. If nothing is set for the particular client, but there is an existing pool level customization (app clientId will be ALL), then that is returned. If nothing is present, then an empty shape is returned.

    See

    AWSCognitoIdentityProviderGetUICustomizationRequest

    See

    AWSCognitoIdentityProviderGetUICustomizationResponse

    Declaration

    Objective-C

    - (id)getUICustomization:
        (nonnull AWSCognitoIdentityProviderGetUICustomizationRequest *)request;

    Swift

    func getUICustomization(_ request: AWSCognitoIdentityProviderGetUICustomizationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetUICustomization service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderGetUICustomizationResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError.

  • Gets the UI Customization information for a particular app client’s app UI, if there is something set. If nothing is set for the particular client, but there is an existing pool level customization (app clientId will be ALL), then that is returned. If nothing is present, then an empty shape is returned.

    See

    AWSCognitoIdentityProviderGetUICustomizationRequest

    See

    AWSCognitoIdentityProviderGetUICustomizationResponse

    Declaration

    Objective-C

    - (void)
        getUICustomization:
            (nonnull AWSCognitoIdentityProviderGetUICustomizationRequest *)request
         completionHandler:
             (void (^_Nullable)(
                 AWSCognitoIdentityProviderGetUICustomizationResponse *_Nullable,
                 NSError *_Nullable))completionHandler;

    Swift

    func getUICustomization(_ request: AWSCognitoIdentityProviderGetUICustomizationRequest, completionHandler: ((AWSCognitoIdentityProviderGetUICustomizationResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the GetUICustomization service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError.

  • Gets the user attributes and metadata for a user.

    See

    AWSCognitoIdentityProviderGetUserRequest

    See

    AWSCognitoIdentityProviderGetUserResponse

    Declaration

    Objective-C

    - (id)getUser:(nonnull AWSCognitoIdentityProviderGetUserRequest *)request;

    Swift

    func getUser(_ request: AWSCognitoIdentityProviderGetUserRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetUser service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderGetUserResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Gets the user attributes and metadata for a user.

    See

    AWSCognitoIdentityProviderGetUserRequest

    See

    AWSCognitoIdentityProviderGetUserResponse

    Declaration

    Objective-C

    - (void)getUser:(nonnull AWSCognitoIdentityProviderGetUserRequest *)request
        completionHandler:
            (void (^_Nullable)(AWSCognitoIdentityProviderGetUserResponse *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func getUser(_ request: AWSCognitoIdentityProviderGetUserRequest, completionHandler: ((AWSCognitoIdentityProviderGetUserResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the GetUser service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Gets the user attribute verification code for the specified attribute name.

    See

    AWSCognitoIdentityProviderGetUserAttributeVerificationCodeRequest

    See

    AWSCognitoIdentityProviderGetUserAttributeVerificationCodeResponse

    Declaration

    Objective-C

    - (id)getUserAttributeVerificationCode:
        (nonnull AWSCognitoIdentityProviderGetUserAttributeVerificationCodeRequest
             *)request;

    Swift

    func getUserAttributeVerificationCode(_ request: AWSCognitoIdentityProviderGetUserAttributeVerificationCodeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetUserAttributeVerificationCode service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderGetUserAttributeVerificationCodeResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorInvalidSmsRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidSmsRoleTrustRelationship, AWSCognitoIdentityProviderErrorInvalidEmailRoleAccessPolicy, AWSCognitoIdentityProviderErrorCodeDeliveryFailure, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Gets the user attribute verification code for the specified attribute name.

    See

    AWSCognitoIdentityProviderGetUserAttributeVerificationCodeRequest

    See

    AWSCognitoIdentityProviderGetUserAttributeVerificationCodeResponse

    Declaration

    Objective-C

    - (void)
        getUserAttributeVerificationCode:
            (nonnull
                 AWSCognitoIdentityProviderGetUserAttributeVerificationCodeRequest
                     *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSCognitoIdentityProviderGetUserAttributeVerificationCodeResponse
                                   *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func getUserAttributeVerificationCode(_ request: AWSCognitoIdentityProviderGetUserAttributeVerificationCodeRequest, completionHandler: ((AWSCognitoIdentityProviderGetUserAttributeVerificationCodeResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the GetUserAttributeVerificationCode service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorInvalidSmsRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidSmsRoleTrustRelationship, AWSCognitoIdentityProviderErrorInvalidEmailRoleAccessPolicy, AWSCognitoIdentityProviderErrorCodeDeliveryFailure, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Gets the user pool multi-factor authentication (MFA) configuration.

    See

    AWSCognitoIdentityProviderGetUserPoolMfaConfigRequest

    See

    AWSCognitoIdentityProviderGetUserPoolMfaConfigResponse

    Declaration

    Objective-C

    - (id)getUserPoolMfaConfig:
        (nonnull AWSCognitoIdentityProviderGetUserPoolMfaConfigRequest *)request;

    Swift

    func getUserPoolMfaConfig(_ request: AWSCognitoIdentityProviderGetUserPoolMfaConfigRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetUserPoolMfaConfig service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderGetUserPoolMfaConfigResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Gets the user pool multi-factor authentication (MFA) configuration.

    See

    AWSCognitoIdentityProviderGetUserPoolMfaConfigRequest

    See

    AWSCognitoIdentityProviderGetUserPoolMfaConfigResponse

    Declaration

    Objective-C

    - (void)getUserPoolMfaConfig:
                (nonnull AWSCognitoIdentityProviderGetUserPoolMfaConfigRequest *)
                    request
               completionHandler:
                   (void (^_Nullable)(
                       AWSCognitoIdentityProviderGetUserPoolMfaConfigResponse
                           *_Nullable,
                       NSError *_Nullable))completionHandler;

    Swift

    func getUserPoolMfaConfig(_ request: AWSCognitoIdentityProviderGetUserPoolMfaConfigRequest, completionHandler: ((AWSCognitoIdentityProviderGetUserPoolMfaConfigResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the GetUserPoolMfaConfig service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Signs out users from all devices. It also invalidates all refresh tokens issued to a user. The user’s current access and Id tokens remain valid until their expiry. Access and Id tokens expire one hour after they are issued.

    See

    AWSCognitoIdentityProviderGlobalSignOutRequest

    See

    AWSCognitoIdentityProviderGlobalSignOutResponse

    Declaration

    Objective-C

    - (id)globalSignOut:
        (nonnull AWSCognitoIdentityProviderGlobalSignOutRequest *)request;

    Swift

    func globalSignOut(_ request: AWSCognitoIdentityProviderGlobalSignOutRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GlobalSignOut service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderGlobalSignOutResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Signs out users from all devices. It also invalidates all refresh tokens issued to a user. The user’s current access and Id tokens remain valid until their expiry. Access and Id tokens expire one hour after they are issued.

    See

    AWSCognitoIdentityProviderGlobalSignOutRequest

    See

    AWSCognitoIdentityProviderGlobalSignOutResponse

    Declaration

    Objective-C

    - (void)globalSignOut:
                (nonnull AWSCognitoIdentityProviderGlobalSignOutRequest *)request
        completionHandler:
            (void (^_Nullable)(
                AWSCognitoIdentityProviderGlobalSignOutResponse *_Nullable,
                NSError *_Nullable))completionHandler;

    Swift

    func globalSignOut(_ request: AWSCognitoIdentityProviderGlobalSignOutRequest, completionHandler: ((AWSCognitoIdentityProviderGlobalSignOutResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the GlobalSignOut service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Initiates the authentication flow.

    See

    AWSCognitoIdentityProviderInitiateAuthRequest

    See

    AWSCognitoIdentityProviderInitiateAuthResponse

    Declaration

    Objective-C

    - (id)initiateAuth:
        (nonnull AWSCognitoIdentityProviderInitiateAuthRequest *)request;

    Swift

    func initiateAuth(_ request: AWSCognitoIdentityProviderInitiateAuthRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the InitiateAuth service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderInitiateAuthResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorInvalidUserPoolConfiguration, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError, AWSCognitoIdentityProviderErrorInvalidSmsRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidSmsRoleTrustRelationship.

  • Initiates the authentication flow.

    See

    AWSCognitoIdentityProviderInitiateAuthRequest

    See

    AWSCognitoIdentityProviderInitiateAuthResponse

    Declaration

    Objective-C

    - (void)initiateAuth:
                (nonnull AWSCognitoIdentityProviderInitiateAuthRequest *)request
        completionHandler:
            (void (^_Nullable)(
                AWSCognitoIdentityProviderInitiateAuthResponse *_Nullable,
                NSError *_Nullable))completionHandler;

    Swift

    func initiateAuth(_ request: AWSCognitoIdentityProviderInitiateAuthRequest, completionHandler: ((AWSCognitoIdentityProviderInitiateAuthResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the InitiateAuth service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorInvalidUserPoolConfiguration, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError, AWSCognitoIdentityProviderErrorInvalidSmsRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidSmsRoleTrustRelationship.

  • Lists the devices.

    See

    AWSCognitoIdentityProviderListDevicesRequest

    See

    AWSCognitoIdentityProviderListDevicesResponse

    Declaration

    Objective-C

    - (id)listDevices:
        (nonnull AWSCognitoIdentityProviderListDevicesRequest *)request;

    Swift

    func listDevices(_ request: AWSCognitoIdentityProviderListDevicesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ListDevices service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderListDevicesResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInvalidUserPoolConfiguration, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Lists the devices.

    See

    AWSCognitoIdentityProviderListDevicesRequest

    See

    AWSCognitoIdentityProviderListDevicesResponse

    Declaration

    Objective-C

    - (void)listDevices:
                (nonnull AWSCognitoIdentityProviderListDevicesRequest *)request
        completionHandler:
            (void (^_Nullable)(
                AWSCognitoIdentityProviderListDevicesResponse *_Nullable,
                NSError *_Nullable))completionHandler;

    Swift

    func listDevices(_ request: AWSCognitoIdentityProviderListDevicesRequest, completionHandler: ((AWSCognitoIdentityProviderListDevicesResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the ListDevices service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInvalidUserPoolConfiguration, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Lists the groups associated with a user pool.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderListGroupsRequest

    See

    AWSCognitoIdentityProviderListGroupsResponse

    Declaration

    Objective-C

    - (id)listGroups:(nonnull AWSCognitoIdentityProviderListGroupsRequest *)request;

    Swift

    func listGroups(_ request: AWSCognitoIdentityProviderListGroupsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ListGroups service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderListGroupsResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Lists the groups associated with a user pool.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderListGroupsRequest

    See

    AWSCognitoIdentityProviderListGroupsResponse

    Declaration

    Objective-C

    - (void)listGroups:
                (nonnull AWSCognitoIdentityProviderListGroupsRequest *)request
        completionHandler:
            (void (^_Nullable)(
                AWSCognitoIdentityProviderListGroupsResponse *_Nullable,
                NSError *_Nullable))completionHandler;

    Swift

    func listGroups(_ request: AWSCognitoIdentityProviderListGroupsRequest, completionHandler: ((AWSCognitoIdentityProviderListGroupsResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the ListGroups service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Lists information about all identity providers for a user pool.

    See

    AWSCognitoIdentityProviderListIdentityProvidersRequest

    See

    AWSCognitoIdentityProviderListIdentityProvidersResponse

    Declaration

    Objective-C

    - (id)listIdentityProviders:
        (nonnull AWSCognitoIdentityProviderListIdentityProvidersRequest *)request;

    Swift

    func listIdentityProviders(_ request: AWSCognitoIdentityProviderListIdentityProvidersRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ListIdentityProviders service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderListIdentityProvidersResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError.

  • Lists information about all identity providers for a user pool.

    See

    AWSCognitoIdentityProviderListIdentityProvidersRequest

    See

    AWSCognitoIdentityProviderListIdentityProvidersResponse

    Declaration

    Objective-C

    - (void)listIdentityProviders:
                (nonnull AWSCognitoIdentityProviderListIdentityProvidersRequest *)
                    request
                completionHandler:
                    (void (^_Nullable)(
                        AWSCognitoIdentityProviderListIdentityProvidersResponse
                            *_Nullable,
                        NSError *_Nullable))completionHandler;

    Swift

    func listIdentityProviders(_ request: AWSCognitoIdentityProviderListIdentityProvidersRequest, completionHandler: ((AWSCognitoIdentityProviderListIdentityProvidersResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the ListIdentityProviders service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError.

  • Lists the resource servers for a user pool.

    See

    AWSCognitoIdentityProviderListResourceServersRequest

    See

    AWSCognitoIdentityProviderListResourceServersResponse

    Declaration

    Objective-C

    - (id)listResourceServers:
        (nonnull AWSCognitoIdentityProviderListResourceServersRequest *)request;

    Swift

    func listResourceServers(_ request: AWSCognitoIdentityProviderListResourceServersRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ListResourceServers service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderListResourceServersResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError.

  • Lists the resource servers for a user pool.

    See

    AWSCognitoIdentityProviderListResourceServersRequest

    See

    AWSCognitoIdentityProviderListResourceServersResponse

    Declaration

    Objective-C

    - (void)
        listResourceServers:
            (nonnull AWSCognitoIdentityProviderListResourceServersRequest *)request
          completionHandler:
              (void (^_Nullable)(
                  AWSCognitoIdentityProviderListResourceServersResponse *_Nullable,
                  NSError *_Nullable))completionHandler;

    Swift

    func listResourceServers(_ request: AWSCognitoIdentityProviderListResourceServersRequest, completionHandler: ((AWSCognitoIdentityProviderListResourceServersResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the ListResourceServers service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError.

  • Lists the tags that are assigned to an Amazon Cognito user pool.

    A tag is a label that you can apply to user pools to categorize and manage them in different ways, such as by purpose, owner, environment, or other criteria.

    You can use this action up to 10 times per second, per account.

    See

    AWSCognitoIdentityProviderListTagsForResourceRequest

    See

    AWSCognitoIdentityProviderListTagsForResourceResponse

    Declaration

    Objective-C

    - (id)listTagsForResource:
        (nonnull AWSCognitoIdentityProviderListTagsForResourceRequest *)request;

    Swift

    func listTags(forResource request: AWSCognitoIdentityProviderListTagsForResourceRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ListTagsForResource service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderListTagsForResourceResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorInternalError.

  • Lists the tags that are assigned to an Amazon Cognito user pool.

    A tag is a label that you can apply to user pools to categorize and manage them in different ways, such as by purpose, owner, environment, or other criteria.

    You can use this action up to 10 times per second, per account.

    See

    AWSCognitoIdentityProviderListTagsForResourceRequest

    See

    AWSCognitoIdentityProviderListTagsForResourceResponse

    Declaration

    Objective-C

    - (void)
        listTagsForResource:
            (nonnull AWSCognitoIdentityProviderListTagsForResourceRequest *)request
          completionHandler:
              (void (^_Nullable)(
                  AWSCognitoIdentityProviderListTagsForResourceResponse *_Nullable,
                  NSError *_Nullable))completionHandler;

    Swift

    func listTags(forResource request: AWSCognitoIdentityProviderListTagsForResourceRequest, completionHandler: ((AWSCognitoIdentityProviderListTagsForResourceResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the ListTagsForResource service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorInternalError.

  • Lists the user import jobs.

    See

    AWSCognitoIdentityProviderListUserImportJobsRequest

    See

    AWSCognitoIdentityProviderListUserImportJobsResponse

    Declaration

    Objective-C

    - (id)listUserImportJobs:
        (nonnull AWSCognitoIdentityProviderListUserImportJobsRequest *)request;

    Swift

    func listUserImportJobs(_ request: AWSCognitoIdentityProviderListUserImportJobsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ListUserImportJobs service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderListUserImportJobsResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Lists the user import jobs.

    See

    AWSCognitoIdentityProviderListUserImportJobsRequest

    See

    AWSCognitoIdentityProviderListUserImportJobsResponse

    Declaration

    Objective-C

    - (void)
        listUserImportJobs:
            (nonnull AWSCognitoIdentityProviderListUserImportJobsRequest *)request
         completionHandler:
             (void (^_Nullable)(
                 AWSCognitoIdentityProviderListUserImportJobsResponse *_Nullable,
                 NSError *_Nullable))completionHandler;

    Swift

    func listUserImportJobs(_ request: AWSCognitoIdentityProviderListUserImportJobsRequest, completionHandler: ((AWSCognitoIdentityProviderListUserImportJobsResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the ListUserImportJobs service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Lists the clients that have been created for the specified user pool.

    See

    AWSCognitoIdentityProviderListUserPoolClientsRequest

    See

    AWSCognitoIdentityProviderListUserPoolClientsResponse

    Declaration

    Objective-C

    - (id)listUserPoolClients:
        (nonnull AWSCognitoIdentityProviderListUserPoolClientsRequest *)request;

    Swift

    func listUserPoolClients(_ request: AWSCognitoIdentityProviderListUserPoolClientsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ListUserPoolClients service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderListUserPoolClientsResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Lists the clients that have been created for the specified user pool.

    See

    AWSCognitoIdentityProviderListUserPoolClientsRequest

    See

    AWSCognitoIdentityProviderListUserPoolClientsResponse

    Declaration

    Objective-C

    - (void)
        listUserPoolClients:
            (nonnull AWSCognitoIdentityProviderListUserPoolClientsRequest *)request
          completionHandler:
              (void (^_Nullable)(
                  AWSCognitoIdentityProviderListUserPoolClientsResponse *_Nullable,
                  NSError *_Nullable))completionHandler;

    Swift

    func listUserPoolClients(_ request: AWSCognitoIdentityProviderListUserPoolClientsRequest, completionHandler: ((AWSCognitoIdentityProviderListUserPoolClientsResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the ListUserPoolClients service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Lists the user pools associated with an AWS account.

    See

    AWSCognitoIdentityProviderListUserPoolsRequest

    See

    AWSCognitoIdentityProviderListUserPoolsResponse

    Declaration

    Objective-C

    - (id)listUserPools:
        (nonnull AWSCognitoIdentityProviderListUserPoolsRequest *)request;

    Swift

    func listUserPools(_ request: AWSCognitoIdentityProviderListUserPoolsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ListUserPools service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderListUserPoolsResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Lists the user pools associated with an AWS account.

    See

    AWSCognitoIdentityProviderListUserPoolsRequest

    See

    AWSCognitoIdentityProviderListUserPoolsResponse

    Declaration

    Objective-C

    - (void)listUserPools:
                (nonnull AWSCognitoIdentityProviderListUserPoolsRequest *)request
        completionHandler:
            (void (^_Nullable)(
                AWSCognitoIdentityProviderListUserPoolsResponse *_Nullable,
                NSError *_Nullable))completionHandler;

    Swift

    func listUserPools(_ request: AWSCognitoIdentityProviderListUserPoolsRequest, completionHandler: ((AWSCognitoIdentityProviderListUserPoolsResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the ListUserPools service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Lists the users in the Amazon Cognito user pool.

    See

    AWSCognitoIdentityProviderListUsersRequest

    See

    AWSCognitoIdentityProviderListUsersResponse

    Declaration

    Objective-C

    - (id)listUsers:(nonnull AWSCognitoIdentityProviderListUsersRequest *)request;

    Swift

    func listUsers(_ request: AWSCognitoIdentityProviderListUsersRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ListUsers service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderListUsersResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Lists the users in the Amazon Cognito user pool.

    See

    AWSCognitoIdentityProviderListUsersRequest

    See

    AWSCognitoIdentityProviderListUsersResponse

    Declaration

    Objective-C

    - (void)listUsers:(nonnull AWSCognitoIdentityProviderListUsersRequest *)request
        completionHandler:
            (void (^_Nullable)(
                AWSCognitoIdentityProviderListUsersResponse *_Nullable,
                NSError *_Nullable))completionHandler;

    Swift

    func listUsers(_ request: AWSCognitoIdentityProviderListUsersRequest, completionHandler: ((AWSCognitoIdentityProviderListUsersResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the ListUsers service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Lists the users in the specified group.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderListUsersInGroupRequest

    See

    AWSCognitoIdentityProviderListUsersInGroupResponse

    Declaration

    Objective-C

    - (id)listUsersInGroup:
        (nonnull AWSCognitoIdentityProviderListUsersInGroupRequest *)request;

    Swift

    func listUsers(inGroup request: AWSCognitoIdentityProviderListUsersInGroupRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ListUsersInGroup service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderListUsersInGroupResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Lists the users in the specified group.

    Calling this action requires developer credentials.

    See

    AWSCognitoIdentityProviderListUsersInGroupRequest

    See

    AWSCognitoIdentityProviderListUsersInGroupResponse

    Declaration

    Objective-C

    - (void)listUsersInGroup:
                (nonnull AWSCognitoIdentityProviderListUsersInGroupRequest *)request
           completionHandler:
               (void (^_Nullable)(
                   AWSCognitoIdentityProviderListUsersInGroupResponse *_Nullable,
                   NSError *_Nullable))completionHandler;

    Swift

    func listUsers(inGroup request: AWSCognitoIdentityProviderListUsersInGroupRequest, completionHandler: ((AWSCognitoIdentityProviderListUsersInGroupResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the ListUsersInGroup service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Resends the confirmation (for confirmation of registration) to a specific user in the user pool.

    See

    AWSCognitoIdentityProviderResendConfirmationCodeRequest

    See

    AWSCognitoIdentityProviderResendConfirmationCodeResponse

    Declaration

    Objective-C

    - (id)resendConfirmationCode:
        (nonnull AWSCognitoIdentityProviderResendConfirmationCodeRequest *)request;

    Swift

    func resendConfirmationCode(_ request: AWSCognitoIdentityProviderResendConfirmationCodeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ResendConfirmationCode service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderResendConfirmationCodeResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorInvalidSmsRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidSmsRoleTrustRelationship, AWSCognitoIdentityProviderErrorInvalidEmailRoleAccessPolicy, AWSCognitoIdentityProviderErrorCodeDeliveryFailure, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Resends the confirmation (for confirmation of registration) to a specific user in the user pool.

    See

    AWSCognitoIdentityProviderResendConfirmationCodeRequest

    See

    AWSCognitoIdentityProviderResendConfirmationCodeResponse

    Declaration

    Objective-C

    - (void)resendConfirmationCode:
                (nonnull AWSCognitoIdentityProviderResendConfirmationCodeRequest *)
                    request
                 completionHandler:
                     (void (^_Nullable)(
                         AWSCognitoIdentityProviderResendConfirmationCodeResponse
                             *_Nullable,
                         NSError *_Nullable))completionHandler;

    Swift

    func resendConfirmationCode(_ request: AWSCognitoIdentityProviderResendConfirmationCodeRequest, completionHandler: ((AWSCognitoIdentityProviderResendConfirmationCodeResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the ResendConfirmationCode service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorLimitExceeded, AWSCognitoIdentityProviderErrorInvalidSmsRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidSmsRoleTrustRelationship, AWSCognitoIdentityProviderErrorInvalidEmailRoleAccessPolicy, AWSCognitoIdentityProviderErrorCodeDeliveryFailure, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorInternalError.

  • Responds to the authentication challenge.

    See

    AWSCognitoIdentityProviderRespondToAuthChallengeRequest

    See

    AWSCognitoIdentityProviderRespondToAuthChallengeResponse

    Declaration

    Objective-C

    - (id)respondToAuthChallenge:
        (nonnull AWSCognitoIdentityProviderRespondToAuthChallengeRequest *)request;

    Swift

    func respond(toAuthChallenge request: AWSCognitoIdentityProviderRespondToAuthChallengeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the RespondToAuthChallenge service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderRespondToAuthChallengeResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorCodeMismatch, AWSCognitoIdentityProviderErrorExpiredCode, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorInvalidPassword, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInvalidUserPoolConfiguration, AWSCognitoIdentityProviderErrorMFAMethodNotFound, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInvalidSmsRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidSmsRoleTrustRelationship, AWSCognitoIdentityProviderErrorAliasExists, AWSCognitoIdentityProviderErrorInternalError, AWSCognitoIdentityProviderErrorSoftwareTokenMFANotFound.

  • Responds to the authentication challenge.

    See

    AWSCognitoIdentityProviderRespondToAuthChallengeRequest

    See

    AWSCognitoIdentityProviderRespondToAuthChallengeResponse

    Declaration

    Objective-C

    - (void)respondToAuthChallenge:
                (nonnull AWSCognitoIdentityProviderRespondToAuthChallengeRequest *)
                    request
                 completionHandler:
                     (void (^_Nullable)(
                         AWSCognitoIdentityProviderRespondToAuthChallengeResponse
                             *_Nullable,
                         NSError *_Nullable))completionHandler;

    Swift

    func respond(toAuthChallenge request: AWSCognitoIdentityProviderRespondToAuthChallengeRequest, completionHandler: ((AWSCognitoIdentityProviderRespondToAuthChallengeResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the RespondToAuthChallenge service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorCodeMismatch, AWSCognitoIdentityProviderErrorExpiredCode, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorInvalidPassword, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInvalidUserPoolConfiguration, AWSCognitoIdentityProviderErrorMFAMethodNotFound, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInvalidSmsRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidSmsRoleTrustRelationship, AWSCognitoIdentityProviderErrorAliasExists, AWSCognitoIdentityProviderErrorInternalError, AWSCognitoIdentityProviderErrorSoftwareTokenMFANotFound.

  • Configures actions on detected risks. To delete the risk configuration for UserPoolId or ClientId, pass null values for all four configuration types.

    To enable Amazon Cognito advanced security features, update the user pool to include the UserPoolAddOns keyAdvancedSecurityMode.

    See .

    See

    AWSCognitoIdentityProviderSetRiskConfigurationRequest

    See

    AWSCognitoIdentityProviderSetRiskConfigurationResponse

    Declaration

    Objective-C

    - (id)setRiskConfiguration:
        (nonnull AWSCognitoIdentityProviderSetRiskConfigurationRequest *)request;

    Swift

    func setRiskConfiguration(_ request: AWSCognitoIdentityProviderSetRiskConfigurationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the SetRiskConfiguration service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderSetRiskConfigurationResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserPoolAddOnNotEnabled, AWSCognitoIdentityProviderErrorCodeDeliveryFailure, AWSCognitoIdentityProviderErrorInvalidEmailRoleAccessPolicy, AWSCognitoIdentityProviderErrorInternalError.

  • Configures actions on detected risks. To delete the risk configuration for UserPoolId or ClientId, pass null values for all four configuration types.

    To enable Amazon Cognito advanced security features, update the user pool to include the UserPoolAddOns keyAdvancedSecurityMode.

    See .

    See

    AWSCognitoIdentityProviderSetRiskConfigurationRequest

    See

    AWSCognitoIdentityProviderSetRiskConfigurationResponse

    Declaration

    Objective-C

    - (void)setRiskConfiguration:
                (nonnull AWSCognitoIdentityProviderSetRiskConfigurationRequest *)
                    request
               completionHandler:
                   (void (^_Nullable)(
                       AWSCognitoIdentityProviderSetRiskConfigurationResponse
                           *_Nullable,
                       NSError *_Nullable))completionHandler;

    Swift

    func setRiskConfiguration(_ request: AWSCognitoIdentityProviderSetRiskConfigurationRequest, completionHandler: ((AWSCognitoIdentityProviderSetRiskConfigurationResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the SetRiskConfiguration service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorUserPoolAddOnNotEnabled, AWSCognitoIdentityProviderErrorCodeDeliveryFailure, AWSCognitoIdentityProviderErrorInvalidEmailRoleAccessPolicy, AWSCognitoIdentityProviderErrorInternalError.

  • Sets the UI customization information for a user pool’s built-in app UI.

    You can specify app UI customization settings for a single client (with a specific clientId) or for all clients (by setting the clientId to ALL). If you specify ALL, the default configuration will be used for every client that has no UI customization set previously. If you specify UI customization settings for a particular client, it will no longer fall back to the ALL configuration.

    To use this API, your user pool must have a domain associated with it. Otherwise, there is no place to host the app’s pages, and the service will throw an error.

    See

    AWSCognitoIdentityProviderSetUICustomizationRequest

    See

    AWSCognitoIdentityProviderSetUICustomizationResponse

    Declaration

    Objective-C

    - (id)setUICustomization:
        (nonnull AWSCognitoIdentityProviderSetUICustomizationRequest *)request;

    Swift

    func setUICustomization(_ request: AWSCognitoIdentityProviderSetUICustomizationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the SetUICustomization service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderSetUICustomizationResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError.

  • Sets the UI customization information for a user pool’s built-in app UI.

    You can specify app UI customization settings for a single client (with a specific clientId) or for all clients (by setting the clientId to ALL). If you specify ALL, the default configuration will be used for every client that has no UI customization set previously. If you specify UI customization settings for a particular client, it will no longer fall back to the ALL configuration.

    To use this API, your user pool must have a domain associated with it. Otherwise, there is no place to host the app’s pages, and the service will throw an error.

    See

    AWSCognitoIdentityProviderSetUICustomizationRequest

    See

    AWSCognitoIdentityProviderSetUICustomizationResponse

    Declaration

    Objective-C

    - (void)
        setUICustomization:
            (nonnull AWSCognitoIdentityProviderSetUICustomizationRequest *)request
         completionHandler:
             (void (^_Nullable)(
                 AWSCognitoIdentityProviderSetUICustomizationResponse *_Nullable,
                 NSError *_Nullable))completionHandler;

    Swift

    func setUICustomization(_ request: AWSCognitoIdentityProviderSetUICustomizationRequest, completionHandler: ((AWSCognitoIdentityProviderSetUICustomizationResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the SetUICustomization service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError.

  • Set the user’s multi-factor authentication (MFA) method preference, including which MFA factors are enabled and if any are preferred. Only one factor can be set as preferred. The preferred MFA factor will be used to authenticate a user if multiple factors are enabled. If multiple options are enabled and no preference is set, a challenge to choose an MFA option will be returned during sign in.

    See

    AWSCognitoIdentityProviderSetUserMFAPreferenceRequest

    See

    AWSCognitoIdentityProviderSetUserMFAPreferenceResponse

    Declaration

    Objective-C

    - (id)setUserMFAPreference:
        (nonnull AWSCognitoIdentityProviderSetUserMFAPreferenceRequest *)request;

    Swift

    func setUserMFAPreference(_ request: AWSCognitoIdentityProviderSetUserMFAPreferenceRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the SetUserMFAPreference service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderSetUserMFAPreferenceResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Set the user’s multi-factor authentication (MFA) method preference, including which MFA factors are enabled and if any are preferred. Only one factor can be set as preferred. The preferred MFA factor will be used to authenticate a user if multiple factors are enabled. If multiple options are enabled and no preference is set, a challenge to choose an MFA option will be returned during sign in.

    See

    AWSCognitoIdentityProviderSetUserMFAPreferenceRequest

    See

    AWSCognitoIdentityProviderSetUserMFAPreferenceResponse

    Declaration

    Objective-C

    - (void)setUserMFAPreference:
                (nonnull AWSCognitoIdentityProviderSetUserMFAPreferenceRequest *)
                    request
               completionHandler:
                   (void (^_Nullable)(
                       AWSCognitoIdentityProviderSetUserMFAPreferenceResponse
                           *_Nullable,
                       NSError *_Nullable))completionHandler;

    Swift

    func setUserMFAPreference(_ request: AWSCognitoIdentityProviderSetUserMFAPreferenceRequest, completionHandler: ((AWSCognitoIdentityProviderSetUserMFAPreferenceResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the SetUserMFAPreference service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Set the user pool multi-factor authentication (MFA) configuration.

    See

    AWSCognitoIdentityProviderSetUserPoolMfaConfigRequest

    See

    AWSCognitoIdentityProviderSetUserPoolMfaConfigResponse

    Declaration

    Objective-C

    - (id)setUserPoolMfaConfig:
        (nonnull AWSCognitoIdentityProviderSetUserPoolMfaConfigRequest *)request;

    Swift

    func setUserPoolMfaConfig(_ request: AWSCognitoIdentityProviderSetUserPoolMfaConfigRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the SetUserPoolMfaConfig service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderSetUserPoolMfaConfigResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidSmsRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidSmsRoleTrustRelationship, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • Set the user pool multi-factor authentication (MFA) configuration.

    See

    AWSCognitoIdentityProviderSetUserPoolMfaConfigRequest

    See

    AWSCognitoIdentityProviderSetUserPoolMfaConfigResponse

    Declaration

    Objective-C

    - (void)setUserPoolMfaConfig:
                (nonnull AWSCognitoIdentityProviderSetUserPoolMfaConfigRequest *)
                    request
               completionHandler:
                   (void (^_Nullable)(
                       AWSCognitoIdentityProviderSetUserPoolMfaConfigResponse
                           *_Nullable,
                       NSError *_Nullable))completionHandler;

    Swift

    func setUserPoolMfaConfig(_ request: AWSCognitoIdentityProviderSetUserPoolMfaConfigRequest, completionHandler: ((AWSCognitoIdentityProviderSetUserPoolMfaConfigResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the SetUserPoolMfaConfig service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidSmsRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidSmsRoleTrustRelationship, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInternalError.

  • This action is no longer supported. You can use it to configure only SMS MFA. You can’t use it to configure TOTP software token MFA. To configure either type of MFA, use the SetUserMFAPreference action instead.

    See

    AWSCognitoIdentityProviderSetUserSettingsRequest

    See

    AWSCognitoIdentityProviderSetUserSettingsResponse

    Declaration

    Objective-C

    - (id)setUserSettings:
        (nonnull AWSCognitoIdentityProviderSetUserSettingsRequest *)request;

    Swift

    func setUserSettings(_ request: AWSCognitoIdentityProviderSetUserSettingsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the SetUserSettings service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderSetUserSettingsResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • This action is no longer supported. You can use it to configure only SMS MFA. You can’t use it to configure TOTP software token MFA. To configure either type of MFA, use the SetUserMFAPreference action instead.

    See

    AWSCognitoIdentityProviderSetUserSettingsRequest

    See

    AWSCognitoIdentityProviderSetUserSettingsResponse

    Declaration

    Objective-C

    - (void)setUserSettings:
                (nonnull AWSCognitoIdentityProviderSetUserSettingsRequest *)request
          completionHandler:
              (void (^_Nullable)(
                  AWSCognitoIdentityProviderSetUserSettingsResponse *_Nullable,
                  NSError *_Nullable))completionHandler;

    Swift

    func setUserSettings(_ request: AWSCognitoIdentityProviderSetUserSettingsRequest, completionHandler: ((AWSCognitoIdentityProviderSetUserSettingsResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the SetUserSettings service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorPasswordResetRequired, AWSCognitoIdentityProviderErrorUserNotFound, AWSCognitoIdentityProviderErrorUserNotConfirmed, AWSCognitoIdentityProviderErrorInternalError.

  • Registers the user in the specified user pool and creates a user name, password, and user attributes.

    See

    AWSCognitoIdentityProviderSignUpRequest

    See

    AWSCognitoIdentityProviderSignUpResponse

    Declaration

    Objective-C

    - (id)signUp:(nonnull AWSCognitoIdentityProviderSignUpRequest *)request;

    Swift

    func signUp(_ request: AWSCognitoIdentityProviderSignUpRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the SignUp service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderSignUpResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInvalidPassword, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorUsernameExists, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError, AWSCognitoIdentityProviderErrorInvalidSmsRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidSmsRoleTrustRelationship, AWSCognitoIdentityProviderErrorInvalidEmailRoleAccessPolicy, AWSCognitoIdentityProviderErrorCodeDeliveryFailure.

  • Registers the user in the specified user pool and creates a user name, password, and user attributes.

    See

    AWSCognitoIdentityProviderSignUpRequest

    See

    AWSCognitoIdentityProviderSignUpResponse

    Declaration

    Objective-C

    - (void)signUp:(nonnull AWSCognitoIdentityProviderSignUpRequest *)request
        completionHandler:
            (void (^_Nullable)(AWSCognitoIdentityProviderSignUpResponse *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func signUp(_ request: AWSCognitoIdentityProviderSignUpRequest, completionHandler: ((AWSCognitoIdentityProviderSignUpResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the SignUp service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorUnexpectedLambda, AWSCognitoIdentityProviderErrorUserLambdaValidation, AWSCognitoIdentityProviderErrorNotAuthorized, AWSCognitoIdentityProviderErrorInvalidPassword, AWSCognitoIdentityProviderErrorInvalidLambdaResponse, AWSCognitoIdentityProviderErrorUsernameExists, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError, AWSCognitoIdentityProviderErrorInvalidSmsRoleAccessPolicy, AWSCognitoIdentityProviderErrorInvalidSmsRoleTrustRelationship, AWSCognitoIdentityProviderErrorInvalidEmailRoleAccessPolicy, AWSCognitoIdentityProviderErrorCodeDeliveryFailure.

  • Starts the user import.

    See

    AWSCognitoIdentityProviderStartUserImportJobRequest

    See

    AWSCognitoIdentityProviderStartUserImportJobResponse

    Declaration

    Objective-C

    - (id)startUserImportJob:
        (nonnull AWSCognitoIdentityProviderStartUserImportJobRequest *)request;

    Swift

    func startUserImportJob(_ request: AWSCognitoIdentityProviderStartUserImportJobRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the StartUserImportJob service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderStartUserImportJobResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError, AWSCognitoIdentityProviderErrorPreconditionNotMet, AWSCognitoIdentityProviderErrorNotAuthorized.

  • Starts the user import.

    See

    AWSCognitoIdentityProviderStartUserImportJobRequest

    See

    AWSCognitoIdentityProviderStartUserImportJobResponse

    Declaration

    Objective-C

    - (void)
        startUserImportJob:
            (nonnull AWSCognitoIdentityProviderStartUserImportJobRequest *)request
         completionHandler:
             (void (^_Nullable)(
                 AWSCognitoIdentityProviderStartUserImportJobResponse *_Nullable,
                 NSError *_Nullable))completionHandler;

    Swift

    func startUserImportJob(_ request: AWSCognitoIdentityProviderStartUserImportJobRequest, completionHandler: ((AWSCognitoIdentityProviderStartUserImportJobResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the StartUserImportJob service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError, AWSCognitoIdentityProviderErrorPreconditionNotMet, AWSCognitoIdentityProviderErrorNotAuthorized.

  • Stops the user import job.

    See

    AWSCognitoIdentityProviderStopUserImportJobRequest

    See

    AWSCognitoIdentityProviderStopUserImportJobResponse

    Declaration

    Objective-C

    - (id)stopUserImportJob:
        (nonnull AWSCognitoIdentityProviderStopUserImportJobRequest *)request;

    Swift

    func stopUserImportJob(_ request: AWSCognitoIdentityProviderStopUserImportJobRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the StopUserImportJob service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSCognitoIdentityProviderStopUserImportJobResponse. On failed execution, task.error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError, AWSCognitoIdentityProviderErrorPreconditionNotMet, AWSCognitoIdentityProviderErrorNotAuthorized.

  • Stops the user import job.

    See

    AWSCognitoIdentityProviderStopUserImportJobRequest

    See

    AWSCognitoIdentityProviderStopUserImportJobResponse

    Declaration

    Objective-C

    - (void)stopUserImportJob:
                (nonnull AWSCognitoIdentityProviderStopUserImportJobRequest *)
                    request
            completionHandler:
                (void (^_Nullable)(
                    AWSCognitoIdentityProviderStopUserImportJobResponse *_Nullable,
                    NSError *_Nullable))completionHandler;

    Swift

    func stopUserImportJob(_ request: AWSCognitoIdentityProviderStopUserImportJobRequest, completionHandler: ((AWSCognitoIdentityProviderStopUserImportJobResponse?, Error?) -> Void)? = nil)

    Parameters

    request

    A container for the necessary parameters to execute the StopUserImportJob service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSCognitoIdentityProviderErrorDomain domain and the following error code: AWSCognitoIdentityProviderErrorResourceNotFound, AWSCognitoIdentityProviderErrorInvalidParameter, AWSCognitoIdentityProviderErrorTooManyRequests, AWSCognitoIdentityProviderErrorInternalError, AWSCognitoIdentityProviderErrorPreconditionNotMet, AWSCognitoIdentityProviderErrorNotAuthorized.

  • Assigns a set of tags to an Amazon Cognito user pool. A tag is a label that you can use to categorize and manage user pools in different ways, such as by purpose, owner, environment, or other criteria.

    Each tag consists of a key and value, both of which you define. A key is a general category for more specific values. For example, if you have two versions of a user pool, one for testing and another for production, you might assign an Environment tag key to both user pools. The value of this key might be Test for one user pool and Production for the other.

    Tags are useful for cost tracking and access control. You can activate your tags so that they appear on the Billing and Cost Management console, where you can track