diff --git a/.gitignore b/.gitignore index f2dcf09..ec45ce9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,9 @@ # Analytics +AWSPinpoint.framework/ +AWSCore.framework/ amplify/ awsconfiguration.json .amplifyrc +.DS_Store +Conjugar.xcodeproj/project.xcworkspace/xcuserdata/ +Conjugar.xcodeproj/xcuserdata/ diff --git a/AWSCore.framework/AWSCore b/AWSCore.framework/AWSCore deleted file mode 100755 index c2689e5..0000000 Binary files a/AWSCore.framework/AWSCore and /dev/null differ diff --git a/AWSCore.framework/Headers/AWSBolts.h b/AWSCore.framework/Headers/AWSBolts.h deleted file mode 100644 index ce6e420..0000000 --- a/AWSCore.framework/Headers/AWSBolts.h +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (c) 2014, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ - -#import "AWSCancellationToken.h" -#import "AWSCancellationTokenRegistration.h" -#import "AWSCancellationTokenSource.h" -#import "AWSExecutor.h" -#import "AWSGeneric.h" -#import "AWSTask.h" -#import "AWSTaskCompletionSource.h" - - -NS_ASSUME_NONNULL_BEGIN - -/** - A string containing the version of the Bolts Framework used by the current application. - */ -extern NSString *const AWSBoltsFrameworkVersionString; - -NS_ASSUME_NONNULL_END diff --git a/AWSCore.framework/Headers/AWSCancellationToken.h b/AWSCore.framework/Headers/AWSCancellationToken.h deleted file mode 100644 index 9b49629..0000000 --- a/AWSCore.framework/Headers/AWSCancellationToken.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) 2014, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ - -#import - -#import "AWSCancellationTokenRegistration.h" - -NS_ASSUME_NONNULL_BEGIN - -/*! - A block that will be called when a token is cancelled. - */ -typedef void(^AWSCancellationBlock)(void); - -/*! - The consumer view of a CancellationToken. - Propagates notification that operations should be canceled. - A AWSCancellationToken has methods to inspect whether the token has been cancelled. - */ -@interface AWSCancellationToken : NSObject - -/*! - Whether cancellation has been requested for this token source. - */ -@property (nonatomic, assign, readonly, getter=isCancellationRequested) BOOL cancellationRequested; - -/*! - Register a block to be notified when the token is cancelled. - If the token is already cancelled the delegate will be notified immediately. - */ -- (AWSCancellationTokenRegistration *)registerCancellationObserverWithBlock:(AWSCancellationBlock)block; - -@end - -NS_ASSUME_NONNULL_END diff --git a/AWSCore.framework/Headers/AWSCancellationTokenRegistration.h b/AWSCore.framework/Headers/AWSCancellationTokenRegistration.h deleted file mode 100644 index 2b158ba..0000000 --- a/AWSCore.framework/Headers/AWSCancellationTokenRegistration.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) 2014, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ - -#import - -NS_ASSUME_NONNULL_BEGIN - -/*! - Represents the registration of a cancellation observer with a cancellation token. - Can be used to unregister the observer at a later time. - */ -@interface AWSCancellationTokenRegistration : NSObject - -/*! - Removes the cancellation observer registered with the token - and releases all resources associated with this registration. - */ -- (void)dispose; - -@end - -NS_ASSUME_NONNULL_END diff --git a/AWSCore.framework/Headers/AWSCancellationTokenSource.h b/AWSCore.framework/Headers/AWSCancellationTokenSource.h deleted file mode 100644 index 8356299..0000000 --- a/AWSCore.framework/Headers/AWSCancellationTokenSource.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) 2014, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - */ - -#import - -NS_ASSUME_NONNULL_BEGIN - -@class AWSCancellationToken; - -/*! - AWSCancellationTokenSource represents the producer side of a CancellationToken. - Signals to a CancellationToken that it should be canceled. - It is a cancellation token that also has methods - for changing the state of a token by cancelling it. - */ -@interface AWSCancellationTokenSource : NSObject - -/*! - Creates a new cancellation token source. - */ -+ (instancetype)cancellationTokenSource; - -/*! - The cancellation token associated with this CancellationTokenSource. - */ -@property (nonatomic, strong, readonly) AWSCancellationToken *token; - -/*! - Whether cancellation has been requested for this token source. - */ -@property (nonatomic, assign, readonly, getter=isCancellationRequested) BOOL cancellationRequested; - -/*! - Cancels the token if it has not already been cancelled. - */ -- (void)cancel; - -/*! - Schedules a cancel operation on this CancellationTokenSource after the specified number of milliseconds. - @param millis The number of milliseconds to wait before completing the returned task. - If delay is `0` the cancel is executed immediately. If delay is `-1` any scheduled cancellation is stopped. - */ -- (void)cancelAfterDelay:(int)millis; - -/*! - Releases all resources associated with this token source, - including disposing of all registrations. - */ -- (void)dispose; - -@end - -NS_ASSUME_NONNULL_END diff --git a/AWSCore.framework/Headers/AWSCategory.h b/AWSCore.framework/Headers/AWSCategory.h deleted file mode 100644 index 981da0e..0000000 --- a/AWSCore.framework/Headers/AWSCategory.h +++ /dev/null @@ -1,101 +0,0 @@ -// -// Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"). -// You may not use this file except in compliance with the License. -// A copy of the License is located at -// -// http://aws.amazon.com/apache2.0 -// -// or in the "license" file accompanying this file. This file is distributed -// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either -// express or implied. See the License for the specific language governing -// permissions and limitations under the License. -// - -#import -#import "AWSServiceEnum.h" - -FOUNDATION_EXPORT NSString *const AWSDateRFC822DateFormat1; -FOUNDATION_EXPORT NSString *const AWSDateISO8601DateFormat1; -FOUNDATION_EXPORT NSString *const AWSDateISO8601DateFormat2; -FOUNDATION_EXPORT NSString *const AWSDateISO8601DateFormat3; -FOUNDATION_EXPORT NSString *const AWSDateShortDateFormat1; -FOUNDATION_EXPORT NSString *const AWSDateShortDateFormat2; - -@interface NSDate (AWS) - -+ (NSDate *)aws_clockSkewFixedDate; - -+ (NSDate *)aws_dateFromString:(NSString *)string; -+ (NSDate *)aws_dateFromString:(NSString *)string format:(NSString *)dateFormat; -- (NSString *)aws_stringValue:(NSString *)dateFormat; - -/** - * Set the clock skew for the current device. This clock skew will be used for calculating - * signatures to AWS signatures and for parsing/converting date values from responses. - * - * @param clockskew the skew (in seconds) for this device. If the clock on the device is fast, pass positive skew to correct. If the clock on the device is slow, pass negative skew to correct. - */ -+ (void)aws_setRuntimeClockSkew:(NSTimeInterval)clockskew; - -/** - * Get the clock skew for the current device. - * - * @return the skew (in seconds) currently set for this device. Positive clock skew implies the device is fast, negative implies the device is slow. - */ -+ (NSTimeInterval)aws_getRuntimeClockSkew; - -@end - -@interface NSDictionary (AWS) - -- (NSDictionary *)aws_removeNullValues; -- (id)aws_objectForCaseInsensitiveKey:(id)aKey; - -@end - -@interface NSJSONSerialization (AWS) - -+ (NSData *)aws_dataWithJSONObject:(id)obj - options:(NSJSONWritingOptions)opt - error:(NSError **)error; - -@end - -@interface NSNumber (AWS) - -+ (NSNumber *)aws_numberFromString:(NSString *)string; - -@end - -@interface NSObject (AWS) - -- (NSDictionary *)aws_properties; -- (void)aws_copyPropertiesFromObject:(NSObject *)object; - -@end - -@interface NSString (AWS) - -+ (NSString *)aws_base64md5FromData:(NSData *)data; -- (BOOL)aws_isBase64Data; -- (NSString *)aws_stringWithURLEncoding; -- (NSString *)aws_stringWithURLEncodingPath; -- (NSString *)aws_stringWithURLEncodingPathWithoutPriorDecoding; -- (NSString *)aws_md5String; -- (NSString *)aws_md5StringLittleEndian; -- (BOOL)aws_isVirtualHostedStyleCompliant; - -- (AWSRegionType)aws_regionTypeValue; - -@end - -@interface NSFileManager (AWS) - -- (BOOL)aws_atomicallyCopyItemAtURL:(NSURL *)sourceURL - toURL:(NSURL *)destinationURL - backupItemName:(NSString *)backupItemName - error:(NSError **)outError; - -@end diff --git a/AWSCore.framework/Headers/AWSClientContext.h b/AWSCore.framework/Headers/AWSClientContext.h deleted file mode 100644 index 4d1260a..0000000 --- a/AWSCore.framework/Headers/AWSClientContext.h +++ /dev/null @@ -1,56 +0,0 @@ -// -// Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"). -// You may not use this file except in compliance with the License. -// A copy of the License is located at -// -// http://aws.amazon.com/apache2.0 -// -// or in the "license" file accompanying this file. This file is distributed -// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either -// express or implied. See the License for the specific language governing -// permissions and limitations under the License. -// - -#import - -FOUNDATION_EXPORT NSString *const AWSClientContextVersion; -FOUNDATION_EXPORT NSString *const AWSClientContextHeader; -FOUNDATION_EXPORT NSString *const AWSClientContextHeaderEncoding; - -@interface AWSClientContext : NSObject - -#pragma mark - App Details -@property (nonatomic, strong, readonly) NSString *installationId; -@property (nonatomic, strong) NSString *appVersion; -@property (nonatomic, strong) NSString *appBuild; -@property (nonatomic, strong) NSString *appPackageName; -@property (nonatomic, strong) NSString *appName; - -#pragma mark - Device Details -@property (nonatomic, strong) NSString *devicePlatformVersion; -@property (nonatomic, strong) NSString *devicePlatform; -@property (nonatomic, strong) NSString *deviceManufacturer; -@property (nonatomic, strong) NSString *deviceModel; -@property (nonatomic, strong) NSString *deviceModelVersion; -@property (nonatomic, strong) NSString *deviceLocale; - -#pragma mark - Custom Attributes -@property (nonatomic, strong) NSDictionary *customAttributes; - -#pragma mark - Service Details -@property (nonatomic, strong, readonly) NSDictionary *serviceDetails; - -- (instancetype)init; - -- (NSDictionary *)dictionaryRepresentation; - -- (NSString *)JSONString; - -- (NSString *)base64EncodedJSONString; - -- (void)setDetails:(id)details - forService:(NSString *)service; - -@end diff --git a/AWSCore.framework/Headers/AWSCocoaLumberjack.h b/AWSCore.framework/Headers/AWSCocoaLumberjack.h deleted file mode 100644 index 6904772..0000000 --- a/AWSCore.framework/Headers/AWSCocoaLumberjack.h +++ /dev/null @@ -1,87 +0,0 @@ -// Software License Agreement (BSD License) -// -// Copyright (c) 2010-2016, Deusty, LLC -// All rights reserved. -// -// Redistribution and use of this software in source and binary forms, -// with or without modification, are permitted provided that the following conditions are met: -// -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimer. -// -// * Neither the name of Deusty nor the names of its contributors may be used -// to endorse or promote products derived from this software without specific -// prior written permission of Deusty, LLC. - -/** - * Welcome to CocoaLumberjack! - * - * The project page has a wealth of documentation if you have any questions. - * https://github.com/CocoaLumberjack/CocoaLumberjack - * - * If you're new to the project you may wish to read "Getting Started" at: - * Documentation/GettingStarted.md - * - * Otherwise, here is a quick refresher. - * There are three steps to using the macros: - * - * Step 1: - * Import the header in your implementation or prefix file: - * - * #import - * - * Step 2: - * Define your logging level in your implementation file: - * - * // Log levels: off, error, warn, info, verbose - * static const AWSDDLogLevel ddLogLevel = AWSDDLogLevelVerbose; - * - * Step 2 [3rd party frameworks]: - * - * Define your LOG_LEVEL_DEF to a different variable/function than ddLogLevel: - * - * // #undef LOG_LEVEL_DEF // Undefine first only if needed - * #define LOG_LEVEL_DEF myLibLogLevel - * - * Define your logging level in your implementation file: - * - * // Log levels: off, error, warn, info, verbose - * static const AWSDDLogLevel myLibLogLevel = AWSDDLogLevelVerbose; - * - * Step 3: - * Replace your NSLog statements with AWSDDLog statements according to the severity of the message. - * - * NSLog(@"Fatal error, no dohickey found!"); -> AWSDDLogError(@"Fatal error, no dohickey found!"); - * - * AWSDDLog works exactly the same as NSLog. - * This means you can pass it multiple variables just like NSLog. - **/ - -#import - - -// Disable legacy macros -#ifndef AWSDD_LEGACY_MACROS - #define AWSDD_LEGACY_MACROS 0 -#endif - -// Core -#import "AWSDDLog.h" - -// Main macros -#import "AWSDDLogMacros.h" -#import "AWSDDAssertMacros.h" - -// Capture ASL -#import "AWSDDASLLogCapture.h" - -// Loggers -#import "AWSDDTTYLogger.h" -#import "AWSDDASLLogger.h" -#import "AWSDDFileLogger.h" -#import "AWSDDOSLogger.h" - -// CLI -#if __has_include("CLIColor.h") && TARGET_OS_OSX -#import "CLIColor.h" -#endif diff --git a/AWSCore.framework/Headers/AWSCognitoIdentity.h b/AWSCore.framework/Headers/AWSCognitoIdentity.h deleted file mode 100644 index 7fb4e1f..0000000 --- a/AWSCore.framework/Headers/AWSCognitoIdentity.h +++ /dev/null @@ -1,22 +0,0 @@ -// -// Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"). -// You may not use this file except in compliance with the License. -// A copy of the License is located at -// -// http://aws.amazon.com/apache2.0 -// -// or in the "license" file accompanying this file. This file is distributed -// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either -// express or implied. See the License for the specific language governing -// permissions and limitations under the License. -// - -#import - - - - -#import "AWSCore.h" -#import "AWSCognitoIdentityService.h" diff --git a/AWSCore.framework/Headers/AWSCognitoIdentityModel.h b/AWSCore.framework/Headers/AWSCognitoIdentityModel.h deleted file mode 100644 index 0b092ea..0000000 --- a/AWSCore.framework/Headers/AWSCognitoIdentityModel.h +++ /dev/null @@ -1,911 +0,0 @@ -// -// Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"). -// You may not use this file except in compliance with the License. -// A copy of the License is located at -// -// http://aws.amazon.com/apache2.0 -// -// or in the "license" file accompanying this file. This file is distributed -// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either -// express or implied. See the License for the specific language governing -// permissions and limitations under the License. -// - -#import -#import "AWSNetworking.h" -#import "AWSModel.h" - -NS_ASSUME_NONNULL_BEGIN - -FOUNDATION_EXPORT NSString *const AWSCognitoIdentityErrorDomain; - -typedef NS_ENUM(NSInteger, AWSCognitoIdentityErrorType) { - AWSCognitoIdentityErrorUnknown, - AWSCognitoIdentityErrorConcurrentModification, - AWSCognitoIdentityErrorDeveloperUserAlreadyRegistered, - AWSCognitoIdentityErrorExternalService, - AWSCognitoIdentityErrorInternalError, - AWSCognitoIdentityErrorInvalidIdentityPoolConfiguration, - AWSCognitoIdentityErrorInvalidParameter, - AWSCognitoIdentityErrorLimitExceeded, - AWSCognitoIdentityErrorNotAuthorized, - AWSCognitoIdentityErrorResourceConflict, - AWSCognitoIdentityErrorResourceNotFound, - AWSCognitoIdentityErrorTooManyRequests, -}; - -typedef NS_ENUM(NSInteger, AWSCognitoIdentityAmbiguousRoleResolutionType) { - AWSCognitoIdentityAmbiguousRoleResolutionTypeUnknown, - AWSCognitoIdentityAmbiguousRoleResolutionTypeAuthenticatedRole, - AWSCognitoIdentityAmbiguousRoleResolutionTypeDeny, -}; - -typedef NS_ENUM(NSInteger, AWSCognitoIdentityErrorCode) { - AWSCognitoIdentityErrorCodeUnknown, - AWSCognitoIdentityErrorCodeAccessDenied, - AWSCognitoIdentityErrorCodeInternalServerError, -}; - -typedef NS_ENUM(NSInteger, AWSCognitoIdentityMappingRuleMatchType) { - AWSCognitoIdentityMappingRuleMatchTypeUnknown, - AWSCognitoIdentityMappingRuleMatchTypeEquals, - AWSCognitoIdentityMappingRuleMatchTypeContains, - AWSCognitoIdentityMappingRuleMatchTypeStartsWith, - AWSCognitoIdentityMappingRuleMatchTypeNotEqual, -}; - -typedef NS_ENUM(NSInteger, AWSCognitoIdentityRoleMappingType) { - AWSCognitoIdentityRoleMappingTypeUnknown, - AWSCognitoIdentityRoleMappingTypeToken, - AWSCognitoIdentityRoleMappingTypeRules, -}; - -@class AWSCognitoIdentityCognitoIdentityProvider; -@class AWSCognitoIdentityCreateIdentityPoolInput; -@class AWSCognitoIdentityCredentials; -@class AWSCognitoIdentityDeleteIdentitiesInput; -@class AWSCognitoIdentityDeleteIdentitiesResponse; -@class AWSCognitoIdentityDeleteIdentityPoolInput; -@class AWSCognitoIdentityDescribeIdentityInput; -@class AWSCognitoIdentityDescribeIdentityPoolInput; -@class AWSCognitoIdentityGetCredentialsForIdentityInput; -@class AWSCognitoIdentityGetCredentialsForIdentityResponse; -@class AWSCognitoIdentityGetIdInput; -@class AWSCognitoIdentityGetIdResponse; -@class AWSCognitoIdentityGetIdentityPoolRolesInput; -@class AWSCognitoIdentityGetIdentityPoolRolesResponse; -@class AWSCognitoIdentityGetOpenIdTokenForDeveloperIdentityInput; -@class AWSCognitoIdentityGetOpenIdTokenForDeveloperIdentityResponse; -@class AWSCognitoIdentityGetOpenIdTokenInput; -@class AWSCognitoIdentityGetOpenIdTokenResponse; -@class AWSCognitoIdentityIdentityDescription; -@class AWSCognitoIdentityIdentityPool; -@class AWSCognitoIdentityIdentityPoolShortDescription; -@class AWSCognitoIdentityListIdentitiesInput; -@class AWSCognitoIdentityListIdentitiesResponse; -@class AWSCognitoIdentityListIdentityPoolsInput; -@class AWSCognitoIdentityListIdentityPoolsResponse; -@class AWSCognitoIdentityLookupDeveloperIdentityInput; -@class AWSCognitoIdentityLookupDeveloperIdentityResponse; -@class AWSCognitoIdentityMappingRule; -@class AWSCognitoIdentityMergeDeveloperIdentitiesInput; -@class AWSCognitoIdentityMergeDeveloperIdentitiesResponse; -@class AWSCognitoIdentityRoleMapping; -@class AWSCognitoIdentityRulesConfigurationType; -@class AWSCognitoIdentitySetIdentityPoolRolesInput; -@class AWSCognitoIdentityUnlinkDeveloperIdentityInput; -@class AWSCognitoIdentityUnlinkIdentityInput; -@class AWSCognitoIdentityUnprocessedIdentityId; - -/** -

A provider representing an Amazon Cognito Identity User Pool and its client ID.

- */ -@interface AWSCognitoIdentityCognitoIdentityProvider : AWSModel - - -/** -

The client ID for the Amazon Cognito Identity User Pool.

- */ -@property (nonatomic, strong) NSString * _Nullable clientId; - -/** -

The provider name for an Amazon Cognito Identity User Pool. For example, cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789.

- */ -@property (nonatomic, strong) NSString * _Nullable providerName; - -/** -

TRUE if server-side token validation is enabled for the identity provider’s token.

- */ -@property (nonatomic, strong) NSNumber * _Nullable serverSideTokenCheck; - -@end - -/** -

Input to the CreateIdentityPool action.

- Required parameters: [IdentityPoolName, AllowUnauthenticatedIdentities] - */ -@interface AWSCognitoIdentityCreateIdentityPoolInput : AWSRequest - - -/** -

TRUE if the identity pool supports unauthenticated logins.

- */ -@property (nonatomic, strong) NSNumber * _Nullable allowUnauthenticatedIdentities; - -/** -

An array of Amazon Cognito Identity user pools and their client IDs.

- */ -@property (nonatomic, strong) NSArray * _Nullable cognitoIdentityProviders; - -/** -

The "domain" by which Cognito will refer to your users. This name acts as a placeholder that allows your backend and the Cognito service to communicate about the developer provider. For the DeveloperProviderName, you can use letters as well as period (.), underscore (_), and dash (-).

Once you have set a developer provider name, you cannot change it. Please take care in setting this parameter.

- */ -@property (nonatomic, strong) NSString * _Nullable developerProviderName; - -/** -

A string that you provide.

- */ -@property (nonatomic, strong) NSString * _Nullable identityPoolName; - -/** -

A list of OpendID Connect provider ARNs.

- */ -@property (nonatomic, strong) NSArray * _Nullable openIdConnectProviderARNs; - -/** -

An array of Amazon Resource Names (ARNs) of the SAML provider for your identity pool.

- */ -@property (nonatomic, strong) NSArray * _Nullable samlProviderARNs; - -/** -

Optional key:value pairs mapping provider names to provider app IDs.

- */ -@property (nonatomic, strong) NSDictionary * _Nullable supportedLoginProviders; - -@end - -/** -

Credentials for the provided identity ID.

- */ -@interface AWSCognitoIdentityCredentials : AWSModel - - -/** -

The Access Key portion of the credentials.

- */ -@property (nonatomic, strong) NSString * _Nullable accessKeyId; - -/** -

The date at which these credentials will expire.

- */ -@property (nonatomic, strong) NSDate * _Nullable expiration; - -/** -

The Secret Access Key portion of the credentials

- */ -@property (nonatomic, strong) NSString * _Nullable secretKey; - -/** -

The Session Token portion of the credentials

- */ -@property (nonatomic, strong) NSString * _Nullable sessionToken; - -@end - -/** -

Input to the DeleteIdentities action.

- Required parameters: [IdentityIdsToDelete] - */ -@interface AWSCognitoIdentityDeleteIdentitiesInput : AWSRequest - - -/** -

A list of 1-60 identities that you want to delete.

- */ -@property (nonatomic, strong) NSArray * _Nullable identityIdsToDelete; - -@end - -/** -

Returned in response to a successful DeleteIdentities operation.

- */ -@interface AWSCognitoIdentityDeleteIdentitiesResponse : AWSModel - - -/** -

An array of UnprocessedIdentityId objects, each of which contains an ErrorCode and IdentityId.

- */ -@property (nonatomic, strong) NSArray * _Nullable unprocessedIdentityIds; - -@end - -/** -

Input to the DeleteIdentityPool action.

- Required parameters: [IdentityPoolId] - */ -@interface AWSCognitoIdentityDeleteIdentityPoolInput : AWSRequest - - -/** -

An identity pool ID in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityPoolId; - -@end - -/** -

Input to the DescribeIdentity action.

- Required parameters: [IdentityId] - */ -@interface AWSCognitoIdentityDescribeIdentityInput : AWSRequest - - -/** -

A unique identifier in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityId; - -@end - -/** -

Input to the DescribeIdentityPool action.

- Required parameters: [IdentityPoolId] - */ -@interface AWSCognitoIdentityDescribeIdentityPoolInput : AWSRequest - - -/** -

An identity pool ID in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityPoolId; - -@end - -/** -

Input to the GetCredentialsForIdentity action.

- Required parameters: [IdentityId] - */ -@interface AWSCognitoIdentityGetCredentialsForIdentityInput : AWSRequest - - -/** -

The Amazon Resource Name (ARN) of the role to be assumed when multiple roles were received in the token from the identity provider. For example, a SAML-based identity provider. This parameter is optional for identity providers that do not support role customization.

- */ -@property (nonatomic, strong) NSString * _Nullable customRoleArn; - -/** -

A unique identifier in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityId; - -/** -

A set of optional name-value pairs that map provider names to provider tokens.

- */ -@property (nonatomic, strong) NSDictionary * _Nullable logins; - -@end - -/** -

Returned in response to a successful GetCredentialsForIdentity operation.

- */ -@interface AWSCognitoIdentityGetCredentialsForIdentityResponse : AWSModel - - -/** -

Credentials for the provided identity ID.

- */ -@property (nonatomic, strong) AWSCognitoIdentityCredentials * _Nullable credentials; - -/** -

A unique identifier in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityId; - -@end - -/** -

Input to the GetId action.

- Required parameters: [IdentityPoolId] - */ -@interface AWSCognitoIdentityGetIdInput : AWSRequest - - -/** -

A standard AWS account ID (9+ digits).

- */ -@property (nonatomic, strong) NSString * _Nullable accountId; - -/** -

An identity pool ID in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityPoolId; - -/** -

A set of optional name-value pairs that map provider names to provider tokens. The available provider names for Logins are as follows:

  • Facebook: graph.facebook.com

  • Amazon Cognito Identity Provider: cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789

  • Google: accounts.google.com

  • Amazon: www.amazon.com

  • Twitter: api.twitter.com

  • Digits: www.digits.com

- */ -@property (nonatomic, strong) NSDictionary * _Nullable logins; - -@end - -/** -

Returned in response to a GetId request.

- */ -@interface AWSCognitoIdentityGetIdResponse : AWSModel - - -/** -

A unique identifier in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityId; - -@end - -/** -

Input to the GetIdentityPoolRoles action.

- Required parameters: [IdentityPoolId] - */ -@interface AWSCognitoIdentityGetIdentityPoolRolesInput : AWSRequest - - -/** -

An identity pool ID in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityPoolId; - -@end - -/** -

Returned in response to a successful GetIdentityPoolRoles operation.

- */ -@interface AWSCognitoIdentityGetIdentityPoolRolesResponse : AWSModel - - -/** -

An identity pool ID in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityPoolId; - -/** -

How users for a specific identity provider are to mapped to roles. This is a String-to-RoleMapping object map. The string identifies the identity provider, for example, "graph.facebook.com" or "cognito-idp-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".

- */ -@property (nonatomic, strong) NSDictionary * _Nullable roleMappings; - -/** -

The map of roles associated with this pool. Currently only authenticated and unauthenticated roles are supported.

- */ -@property (nonatomic, strong) NSDictionary * _Nullable roles; - -@end - -/** -

Input to the GetOpenIdTokenForDeveloperIdentity action.

- Required parameters: [IdentityPoolId, Logins] - */ -@interface AWSCognitoIdentityGetOpenIdTokenForDeveloperIdentityInput : AWSRequest - - -/** -

A unique identifier in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityId; - -/** -

An identity pool ID in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityPoolId; - -/** -

A set of optional name-value pairs that map provider names to provider tokens. Each name-value pair represents a user from a public provider or developer provider. If the user is from a developer provider, the name-value pair will follow the syntax "developer_provider_name": "developer_user_identifier". The developer provider is the "domain" by which Cognito will refer to your users; you provided this domain while creating/updating the identity pool. The developer user identifier is an identifier from your backend that uniquely identifies a user. When you create an identity pool, you can specify the supported logins.

- */ -@property (nonatomic, strong) NSDictionary * _Nullable logins; - -/** -

The expiration time of the token, in seconds. You can specify a custom expiration time for the token so that you can cache it. If you don't provide an expiration time, the token is valid for 15 minutes. You can exchange the token with Amazon STS for temporary AWS credentials, which are valid for a maximum of one hour. The maximum token duration you can set is 24 hours. You should take care in setting the expiration time for a token, as there are significant security implications: an attacker could use a leaked token to access your AWS resources for the token's duration.

- */ -@property (nonatomic, strong) NSNumber * _Nullable tokenDuration; - -@end - -/** -

Returned in response to a successful GetOpenIdTokenForDeveloperIdentity request.

- */ -@interface AWSCognitoIdentityGetOpenIdTokenForDeveloperIdentityResponse : AWSModel - - -/** -

A unique identifier in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityId; - -/** -

An OpenID token.

- */ -@property (nonatomic, strong) NSString * _Nullable token; - -@end - -/** -

Input to the GetOpenIdToken action.

- Required parameters: [IdentityId] - */ -@interface AWSCognitoIdentityGetOpenIdTokenInput : AWSRequest - - -/** -

A unique identifier in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityId; - -/** -

A set of optional name-value pairs that map provider names to provider tokens. When using graph.facebook.com and www.amazon.com, supply the access_token returned from the provider's authflow. For accounts.google.com, an Amazon Cognito Identity Provider, or any other OpenId Connect provider, always include the id_token.

- */ -@property (nonatomic, strong) NSDictionary * _Nullable logins; - -@end - -/** -

Returned in response to a successful GetOpenIdToken request.

- */ -@interface AWSCognitoIdentityGetOpenIdTokenResponse : AWSModel - - -/** -

A unique identifier in the format REGION:GUID. Note that the IdentityId returned may not match the one passed on input.

- */ -@property (nonatomic, strong) NSString * _Nullable identityId; - -/** -

An OpenID token, valid for 15 minutes.

- */ -@property (nonatomic, strong) NSString * _Nullable token; - -@end - -/** -

A description of the identity.

- */ -@interface AWSCognitoIdentityIdentityDescription : AWSModel - - -/** -

Date on which the identity was created.

- */ -@property (nonatomic, strong) NSDate * _Nullable creationDate; - -/** -

A unique identifier in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityId; - -/** -

Date on which the identity was last modified.

- */ -@property (nonatomic, strong) NSDate * _Nullable lastModifiedDate; - -/** -

A set of optional name-value pairs that map provider names to provider tokens.

- */ -@property (nonatomic, strong) NSArray * _Nullable logins; - -@end - -/** -

An object representing an Amazon Cognito identity pool.

- Required parameters: [IdentityPoolId, IdentityPoolName, AllowUnauthenticatedIdentities] - */ -@interface AWSCognitoIdentityIdentityPool : AWSRequest - - -/** -

TRUE if the identity pool supports unauthenticated logins.

- */ -@property (nonatomic, strong) NSNumber * _Nullable allowUnauthenticatedIdentities; - -/** -

A list representing an Amazon Cognito Identity User Pool and its client ID.

- */ -@property (nonatomic, strong) NSArray * _Nullable cognitoIdentityProviders; - -/** -

The "domain" by which Cognito will refer to your users.

- */ -@property (nonatomic, strong) NSString * _Nullable developerProviderName; - -/** -

An identity pool ID in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityPoolId; - -/** -

A string that you provide.

- */ -@property (nonatomic, strong) NSString * _Nullable identityPoolName; - -/** -

A list of OpendID Connect provider ARNs.

- */ -@property (nonatomic, strong) NSArray * _Nullable openIdConnectProviderARNs; - -/** -

An array of Amazon Resource Names (ARNs) of the SAML provider for your identity pool.

- */ -@property (nonatomic, strong) NSArray * _Nullable samlProviderARNs; - -/** -

Optional key:value pairs mapping provider names to provider app IDs.

- */ -@property (nonatomic, strong) NSDictionary * _Nullable supportedLoginProviders; - -@end - -/** -

A description of the identity pool.

- */ -@interface AWSCognitoIdentityIdentityPoolShortDescription : AWSModel - - -/** -

An identity pool ID in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityPoolId; - -/** -

A string that you provide.

- */ -@property (nonatomic, strong) NSString * _Nullable identityPoolName; - -@end - -/** -

Input to the ListIdentities action.

- Required parameters: [IdentityPoolId, MaxResults] - */ -@interface AWSCognitoIdentityListIdentitiesInput : AWSRequest - - -/** -

An optional boolean parameter that allows you to hide disabled identities. If omitted, the ListIdentities API will include disabled identities in the response.

- */ -@property (nonatomic, strong) NSNumber * _Nullable hideDisabled; - -/** -

An identity pool ID in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityPoolId; - -/** -

The maximum number of identities to return.

- */ -@property (nonatomic, strong) NSNumber * _Nullable maxResults; - -/** -

A pagination token.

- */ -@property (nonatomic, strong) NSString * _Nullable nextToken; - -@end - -/** -

The response to a ListIdentities request.

- */ -@interface AWSCognitoIdentityListIdentitiesResponse : AWSModel - - -/** -

An object containing a set of identities and associated mappings.

- */ -@property (nonatomic, strong) NSArray * _Nullable identities; - -/** -

An identity pool ID in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityPoolId; - -/** -

A pagination token.

- */ -@property (nonatomic, strong) NSString * _Nullable nextToken; - -@end - -/** -

Input to the ListIdentityPools action.

- Required parameters: [MaxResults] - */ -@interface AWSCognitoIdentityListIdentityPoolsInput : AWSRequest - - -/** -

The maximum number of identities to return.

- */ -@property (nonatomic, strong) NSNumber * _Nullable maxResults; - -/** -

A pagination token.

- */ -@property (nonatomic, strong) NSString * _Nullable nextToken; - -@end - -/** -

The result of a successful ListIdentityPools action.

- */ -@interface AWSCognitoIdentityListIdentityPoolsResponse : AWSModel - - -/** -

The identity pools returned by the ListIdentityPools action.

- */ -@property (nonatomic, strong) NSArray * _Nullable identityPools; - -/** -

A pagination token.

- */ -@property (nonatomic, strong) NSString * _Nullable nextToken; - -@end - -/** -

Input to the LookupDeveloperIdentityInput action.

- Required parameters: [IdentityPoolId] - */ -@interface AWSCognitoIdentityLookupDeveloperIdentityInput : AWSRequest - - -/** -

A unique ID used by your backend authentication process to identify a user. Typically, a developer identity provider would issue many developer user identifiers, in keeping with the number of users.

- */ -@property (nonatomic, strong) NSString * _Nullable developerUserIdentifier; - -/** -

A unique identifier in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityId; - -/** -

An identity pool ID in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityPoolId; - -/** -

The maximum number of identities to return.

- */ -@property (nonatomic, strong) NSNumber * _Nullable maxResults; - -/** -

A pagination token. The first call you make will have NextToken set to null. After that the service will return NextToken values as needed. For example, let's say you make a request with MaxResults set to 10, and there are 20 matches in the database. The service will return a pagination token as a part of the response. This token can be used to call the API again and get results starting from the 11th match.

- */ -@property (nonatomic, strong) NSString * _Nullable nextToken; - -@end - -/** -

Returned in response to a successful LookupDeveloperIdentity action.

- */ -@interface AWSCognitoIdentityLookupDeveloperIdentityResponse : AWSModel - - -/** -

This is the list of developer user identifiers associated with an identity ID. Cognito supports the association of multiple developer user identifiers with an identity ID.

- */ -@property (nonatomic, strong) NSArray * _Nullable developerUserIdentifierList; - -/** -

A unique identifier in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityId; - -/** -

A pagination token. The first call you make will have NextToken set to null. After that the service will return NextToken values as needed. For example, let's say you make a request with MaxResults set to 10, and there are 20 matches in the database. The service will return a pagination token as a part of the response. This token can be used to call the API again and get results starting from the 11th match.

- */ -@property (nonatomic, strong) NSString * _Nullable nextToken; - -@end - -/** -

A rule that maps a claim name, a claim value, and a match type to a role ARN.

- Required parameters: [Claim, MatchType, Value, RoleARN] - */ -@interface AWSCognitoIdentityMappingRule : AWSModel - - -/** -

The claim name that must be present in the token, for example, "isAdmin" or "paid".

- */ -@property (nonatomic, strong) NSString * _Nullable claim; - -/** -

The match condition that specifies how closely the claim value in the IdP token must match Value.

- */ -@property (nonatomic, assign) AWSCognitoIdentityMappingRuleMatchType matchType; - -/** -

The role ARN.

- */ -@property (nonatomic, strong) NSString * _Nullable roleARN; - -/** -

A brief string that the claim must match, for example, "paid" or "yes".

- */ -@property (nonatomic, strong) NSString * _Nullable value; - -@end - -/** -

Input to the MergeDeveloperIdentities action.

- Required parameters: [SourceUserIdentifier, DestinationUserIdentifier, DeveloperProviderName, IdentityPoolId] - */ -@interface AWSCognitoIdentityMergeDeveloperIdentitiesInput : AWSRequest - - -/** -

User identifier for the destination user. The value should be a DeveloperUserIdentifier.

- */ -@property (nonatomic, strong) NSString * _Nullable destinationUserIdentifier; - -/** -

The "domain" by which Cognito will refer to your users. This is a (pseudo) domain name that you provide while creating an identity pool. This name acts as a placeholder that allows your backend and the Cognito service to communicate about the developer provider. For the DeveloperProviderName, you can use letters as well as period (.), underscore (_), and dash (-).

- */ -@property (nonatomic, strong) NSString * _Nullable developerProviderName; - -/** -

An identity pool ID in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityPoolId; - -/** -

User identifier for the source user. The value should be a DeveloperUserIdentifier.

- */ -@property (nonatomic, strong) NSString * _Nullable sourceUserIdentifier; - -@end - -/** -

Returned in response to a successful MergeDeveloperIdentities action.

- */ -@interface AWSCognitoIdentityMergeDeveloperIdentitiesResponse : AWSModel - - -/** -

A unique identifier in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityId; - -@end - -/** -

A role mapping.

- Required parameters: [Type] - */ -@interface AWSCognitoIdentityRoleMapping : AWSModel - - -/** -

If you specify Token or Rules as the Type, AmbiguousRoleResolution is required.

Specifies the action to be taken if either no rules match the claim value for the Rules type, or there is no cognito:preferred_role claim and there are multiple cognito:roles matches for the Token type.

- */ -@property (nonatomic, assign) AWSCognitoIdentityAmbiguousRoleResolutionType ambiguousRoleResolution; - -/** -

The rules to be used for mapping users to roles.

If you specify Rules as the role mapping type, RulesConfiguration is required.

- */ -@property (nonatomic, strong) AWSCognitoIdentityRulesConfigurationType * _Nullable rulesConfiguration; - -/** -

The role mapping type. Token will use cognito:roles and cognito:preferred_role claims from the Cognito identity provider token to map groups to roles. Rules will attempt to match claims from the token to map to a role.

- */ -@property (nonatomic, assign) AWSCognitoIdentityRoleMappingType types; - -@end - -/** -

A container for rules.

- Required parameters: [Rules] - */ -@interface AWSCognitoIdentityRulesConfigurationType : AWSModel - - -/** -

An array of rules. You can specify up to 25 rules per identity provider.

Rules are evaluated in order. The first one to match specifies the role.

- */ -@property (nonatomic, strong) NSArray * _Nullable rules; - -@end - -/** -

Input to the SetIdentityPoolRoles action.

- Required parameters: [IdentityPoolId, Roles] - */ -@interface AWSCognitoIdentitySetIdentityPoolRolesInput : AWSRequest - - -/** -

An identity pool ID in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityPoolId; - -/** -

How users for a specific identity provider are to mapped to roles. This is a string to RoleMapping object map. The string identifies the identity provider, for example, "graph.facebook.com" or "cognito-idp-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".

Up to 25 rules can be specified per identity provider.

- */ -@property (nonatomic, strong) NSDictionary * _Nullable roleMappings; - -/** -

The map of roles associated with this pool. For a given role, the key will be either "authenticated" or "unauthenticated" and the value will be the Role ARN.

- */ -@property (nonatomic, strong) NSDictionary * _Nullable roles; - -@end - -/** -

Input to the UnlinkDeveloperIdentity action.

- Required parameters: [IdentityId, IdentityPoolId, DeveloperProviderName, DeveloperUserIdentifier] - */ -@interface AWSCognitoIdentityUnlinkDeveloperIdentityInput : AWSRequest - - -/** -

The "domain" by which Cognito will refer to your users.

- */ -@property (nonatomic, strong) NSString * _Nullable developerProviderName; - -/** -

A unique ID used by your backend authentication process to identify a user.

- */ -@property (nonatomic, strong) NSString * _Nullable developerUserIdentifier; - -/** -

A unique identifier in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityId; - -/** -

An identity pool ID in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityPoolId; - -@end - -/** -

Input to the UnlinkIdentity action.

- Required parameters: [IdentityId, Logins, LoginsToRemove] - */ -@interface AWSCognitoIdentityUnlinkIdentityInput : AWSRequest - - -/** -

A unique identifier in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityId; - -/** -

A set of optional name-value pairs that map provider names to provider tokens.

- */ -@property (nonatomic, strong) NSDictionary * _Nullable logins; - -/** -

Provider names to unlink from this identity.

- */ -@property (nonatomic, strong) NSArray * _Nullable loginsToRemove; - -@end - -/** -

An array of UnprocessedIdentityId objects, each of which contains an ErrorCode and IdentityId.

- */ -@interface AWSCognitoIdentityUnprocessedIdentityId : AWSModel - - -/** -

The error code indicating the type of error that occurred.

- */ -@property (nonatomic, assign) AWSCognitoIdentityErrorCode errorCode; - -/** -

A unique identifier in the format REGION:GUID.

- */ -@property (nonatomic, strong) NSString * _Nullable identityId; - -@end - -NS_ASSUME_NONNULL_END diff --git a/AWSCore.framework/Headers/AWSCognitoIdentityResources.h b/AWSCore.framework/Headers/AWSCognitoIdentityResources.h deleted file mode 100644 index e879c12..0000000 --- a/AWSCore.framework/Headers/AWSCognitoIdentityResources.h +++ /dev/null @@ -1,24 +0,0 @@ -// -// Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"). -// You may not use this file except in compliance with the License. -// A copy of the License is located at -// -// http://aws.amazon.com/apache2.0 -// -// or in the "license" file accompanying this file. This file is distributed -// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either -// express or implied. See the License for the specific language governing -// permissions and limitations under the License. -// - -#import - -@interface AWSCognitoIdentityResources : NSObject - -+ (instancetype)sharedInstance; - -- (NSDictionary *)JSONObject; - -@end diff --git a/AWSCore.framework/Headers/AWSCognitoIdentityService.h b/AWSCore.framework/Headers/AWSCognitoIdentityService.h deleted file mode 100644 index ea9ffb1..0000000 --- a/AWSCore.framework/Headers/AWSCognitoIdentityService.h +++ /dev/null @@ -1,614 +0,0 @@ -// -// Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"). -// You may not use this file except in compliance with the License. -// A copy of the License is located at -// -// http://aws.amazon.com/apache2.0 -// -// or in the "license" file accompanying this file. This file is distributed -// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either -// express or implied. See the License for the specific language governing -// permissions and limitations under the License. -// - -#import -#import "AWSCore.h" -#import "AWSCognitoIdentityModel.h" -#import "AWSCognitoIdentityResources.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - Amazon Cognito

Amazon Cognito is a web service that delivers scoped temporary credentials to mobile devices and other untrusted environments. Amazon Cognito uniquely identifies a device and supplies the user with a consistent identity over the lifetime of an application.

Using Amazon Cognito, you can enable authentication with one or more third-party identity providers (Facebook, Google, or Login with Amazon), and you can also choose to support unauthenticated access from your app. Cognito delivers a unique identifier for each user and acts as an OpenID token provider trusted by AWS Security Token Service (STS) to access temporary, limited-privilege AWS credentials.

To provide end-user credentials, first make an unsigned call to GetId. If the end user is authenticated with one of the supported identity providers, set the Logins map with the identity provider token. GetId returns a unique identifier for the user.

Next, make an unsigned call to GetCredentialsForIdentity. This call expects the same Logins map as the GetId call, as well as the IdentityID originally returned by GetId. Assuming your identity pool has been configured via the SetIdentityPoolRoles operation, GetCredentialsForIdentity will return AWS credentials for your use. If your pool has not been configured with SetIdentityPoolRoles, or if you want to follow legacy flow, make an unsigned call to GetOpenIdToken, which returns the OpenID token necessary to call STS and retrieve AWS credentials. This call expects the same Logins map as the GetId call, as well as the IdentityID originally returned by GetId. The token returned by GetOpenIdToken can be passed to the STS operation AssumeRoleWithWebIdentity to retrieve AWS credentials.

If you want to use Amazon Cognito in an Android, iOS, or Unity application, you will probably want to make API calls via the AWS Mobile SDK. To learn more, see the AWS Mobile SDK Developer Guide.

- */ -@interface AWSCognitoIdentity : AWSService - -/** - 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. - */ -@property (nonatomic, strong, readonly) AWSServiceConfiguration *configuration; - -/** - 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 CognitoIdentity = AWSCognitoIdentity.default() - - *Objective-C* - - AWSCognitoIdentity *CognitoIdentity = [AWSCognitoIdentity defaultCognitoIdentity]; - - @return The default service client. - */ -+ (instancetype)defaultCognitoIdentity; - -/** - 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) - AWSCognitoIdentity.register(with: configuration!, forKey: "USWest2CognitoIdentity") - - 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]; - - [AWSCognitoIdentity registerCognitoIdentityWithConfiguration:configuration forKey:@"USWest2CognitoIdentity"]; - - return YES; - } - - Then call the following to get the service client: - - *Swift* - - let CognitoIdentity = AWSCognitoIdentity(forKey: "USWest2CognitoIdentity") - - *Objective-C* - - AWSCognitoIdentity *CognitoIdentity = [AWSCognitoIdentity CognitoIdentityForKey:@"USWest2CognitoIdentity"]; - - @warning After calling this method, do not modify the configuration object. It may cause unspecified behaviors. - - @param configuration A service configuration object. - @param key A string to identify the service client. - */ -+ (void)registerCognitoIdentityWithConfiguration:(AWSServiceConfiguration *)configuration forKey:(NSString *)key; - -/** - Retrieves the service client associated with the key. You need to call `+ registerCognitoIdentityWithConfiguration: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) - AWSCognitoIdentity.register(with: configuration!, forKey: "USWest2CognitoIdentity") - - 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]; - - [AWSCognitoIdentity registerCognitoIdentityWithConfiguration:configuration forKey:@"USWest2CognitoIdentity"]; - - return YES; - } - - Then call the following to get the service client: - - *Swift* - - let CognitoIdentity = AWSCognitoIdentity(forKey: "USWest2CognitoIdentity") - - *Objective-C* - - AWSCognitoIdentity *CognitoIdentity = [AWSCognitoIdentity CognitoIdentityForKey:@"USWest2CognitoIdentity"]; - - @param key A string to identify the service client. - - @return An instance of the service client. - */ -+ (instancetype)CognitoIdentityForKey:(NSString *)key; - -/** - 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. - - @param key A string to identify the service client. - */ -+ (void)removeCognitoIdentityForKey:(NSString *)key; - -/** -

Creates a new identity pool. The identity pool is a store of user identity information that is specific to your AWS account. The limit on identity pools is 60 per account. The keys for SupportedLoginProviders are as follows:

  • Facebook: graph.facebook.com

  • Google: accounts.google.com

  • Amazon: www.amazon.com

  • Twitter: api.twitter.com

  • Digits: www.digits.com

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the CreateIdentityPool service method. - - @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSCognitoIdentityIdentityPool`. On failed execution, `task.error` may contain an `NSError` with `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorResourceConflict`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`, `AWSCognitoIdentityErrorLimitExceeded`. - - @see AWSCognitoIdentityCreateIdentityPoolInput - @see AWSCognitoIdentityIdentityPool - */ -- (AWSTask *)createIdentityPool:(AWSCognitoIdentityCreateIdentityPoolInput *)request; - -/** -

Creates a new identity pool. The identity pool is a store of user identity information that is specific to your AWS account. The limit on identity pools is 60 per account. The keys for SupportedLoginProviders are as follows:

  • Facebook: graph.facebook.com

  • Google: accounts.google.com

  • Amazon: www.amazon.com

  • Twitter: api.twitter.com

  • Digits: www.digits.com

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the CreateIdentityPool service method. - @param 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 `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorResourceConflict`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`, `AWSCognitoIdentityErrorLimitExceeded`. - - @see AWSCognitoIdentityCreateIdentityPoolInput - @see AWSCognitoIdentityIdentityPool - */ -- (void)createIdentityPool:(AWSCognitoIdentityCreateIdentityPoolInput *)request completionHandler:(void (^ _Nullable)(AWSCognitoIdentityIdentityPool * _Nullable response, NSError * _Nullable error))completionHandler; - -/** -

Deletes identities from an identity pool. You can specify a list of 1-60 identities that you want to delete.

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the DeleteIdentities service method. - - @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSCognitoIdentityDeleteIdentitiesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`. - - @see AWSCognitoIdentityDeleteIdentitiesInput - @see AWSCognitoIdentityDeleteIdentitiesResponse - */ -- (AWSTask *)deleteIdentities:(AWSCognitoIdentityDeleteIdentitiesInput *)request; - -/** -

Deletes identities from an identity pool. You can specify a list of 1-60 identities that you want to delete.

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the DeleteIdentities service method. - @param 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 `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`. - - @see AWSCognitoIdentityDeleteIdentitiesInput - @see AWSCognitoIdentityDeleteIdentitiesResponse - */ -- (void)deleteIdentities:(AWSCognitoIdentityDeleteIdentitiesInput *)request completionHandler:(void (^ _Nullable)(AWSCognitoIdentityDeleteIdentitiesResponse * _Nullable response, NSError * _Nullable error))completionHandler; - -/** -

Deletes a user pool. Once a pool is deleted, users will not be able to authenticate with the pool.

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the DeleteIdentityPool service method. - - @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`. - - @see AWSCognitoIdentityDeleteIdentityPoolInput - */ -- (AWSTask *)deleteIdentityPool:(AWSCognitoIdentityDeleteIdentityPoolInput *)request; - -/** -

Deletes a user pool. Once a pool is deleted, users will not be able to authenticate with the pool.

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the DeleteIdentityPool service method. - @param 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 `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`. - - @see AWSCognitoIdentityDeleteIdentityPoolInput - */ -- (void)deleteIdentityPool:(AWSCognitoIdentityDeleteIdentityPoolInput *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; - -/** -

Returns metadata related to the given identity, including when the identity was created and any associated linked logins.

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the DescribeIdentity service method. - - @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSCognitoIdentityIdentityDescription`. On failed execution, `task.error` may contain an `NSError` with `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`. - - @see AWSCognitoIdentityDescribeIdentityInput - @see AWSCognitoIdentityIdentityDescription - */ -- (AWSTask *)describeIdentity:(AWSCognitoIdentityDescribeIdentityInput *)request; - -/** -

Returns metadata related to the given identity, including when the identity was created and any associated linked logins.

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the DescribeIdentity service method. - @param 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 `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`. - - @see AWSCognitoIdentityDescribeIdentityInput - @see AWSCognitoIdentityIdentityDescription - */ -- (void)describeIdentity:(AWSCognitoIdentityDescribeIdentityInput *)request completionHandler:(void (^ _Nullable)(AWSCognitoIdentityIdentityDescription * _Nullable response, NSError * _Nullable error))completionHandler; - -/** -

Gets details about a particular identity pool, including the pool name, ID description, creation date, and current number of users.

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the DescribeIdentityPool service method. - - @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSCognitoIdentityIdentityPool`. On failed execution, `task.error` may contain an `NSError` with `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`. - - @see AWSCognitoIdentityDescribeIdentityPoolInput - @see AWSCognitoIdentityIdentityPool - */ -- (AWSTask *)describeIdentityPool:(AWSCognitoIdentityDescribeIdentityPoolInput *)request; - -/** -

Gets details about a particular identity pool, including the pool name, ID description, creation date, and current number of users.

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the DescribeIdentityPool service method. - @param 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 `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`. - - @see AWSCognitoIdentityDescribeIdentityPoolInput - @see AWSCognitoIdentityIdentityPool - */ -- (void)describeIdentityPool:(AWSCognitoIdentityDescribeIdentityPoolInput *)request completionHandler:(void (^ _Nullable)(AWSCognitoIdentityIdentityPool * _Nullable response, NSError * _Nullable error))completionHandler; - -/** -

Returns credentials for the provided identity ID. Any provided logins will be validated against supported login providers. If the token is for cognito-identity.amazonaws.com, it will be passed through to AWS Security Token Service with the appropriate role for the token.

This is a public API. You do not need any credentials to call this API.

- - @param request A container for the necessary parameters to execute the GetCredentialsForIdentity service method. - - @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSCognitoIdentityGetCredentialsForIdentityResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorResourceConflict`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInvalidIdentityPoolConfiguration`, `AWSCognitoIdentityErrorInternalError`, `AWSCognitoIdentityErrorExternalService`. - - @see AWSCognitoIdentityGetCredentialsForIdentityInput - @see AWSCognitoIdentityGetCredentialsForIdentityResponse - */ -- (AWSTask *)getCredentialsForIdentity:(AWSCognitoIdentityGetCredentialsForIdentityInput *)request; - -/** -

Returns credentials for the provided identity ID. Any provided logins will be validated against supported login providers. If the token is for cognito-identity.amazonaws.com, it will be passed through to AWS Security Token Service with the appropriate role for the token.

This is a public API. You do not need any credentials to call this API.

- - @param request A container for the necessary parameters to execute the GetCredentialsForIdentity service method. - @param 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 `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorResourceConflict`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInvalidIdentityPoolConfiguration`, `AWSCognitoIdentityErrorInternalError`, `AWSCognitoIdentityErrorExternalService`. - - @see AWSCognitoIdentityGetCredentialsForIdentityInput - @see AWSCognitoIdentityGetCredentialsForIdentityResponse - */ -- (void)getCredentialsForIdentity:(AWSCognitoIdentityGetCredentialsForIdentityInput *)request completionHandler:(void (^ _Nullable)(AWSCognitoIdentityGetCredentialsForIdentityResponse * _Nullable response, NSError * _Nullable error))completionHandler; - -/** -

Generates (or retrieves) a Cognito ID. Supplying multiple logins will create an implicit linked account.

This is a public API. You do not need any credentials to call this API.

- - @param request A container for the necessary parameters to execute the GetId service method. - - @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSCognitoIdentityGetIdResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorResourceConflict`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`, `AWSCognitoIdentityErrorLimitExceeded`, `AWSCognitoIdentityErrorExternalService`. - - @see AWSCognitoIdentityGetIdInput - @see AWSCognitoIdentityGetIdResponse - */ -- (AWSTask *)getId:(AWSCognitoIdentityGetIdInput *)request; - -/** -

Generates (or retrieves) a Cognito ID. Supplying multiple logins will create an implicit linked account.

This is a public API. You do not need any credentials to call this API.

- - @param request A container for the necessary parameters to execute the GetId service method. - @param 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 `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorResourceConflict`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`, `AWSCognitoIdentityErrorLimitExceeded`, `AWSCognitoIdentityErrorExternalService`. - - @see AWSCognitoIdentityGetIdInput - @see AWSCognitoIdentityGetIdResponse - */ -- (void)getId:(AWSCognitoIdentityGetIdInput *)request completionHandler:(void (^ _Nullable)(AWSCognitoIdentityGetIdResponse * _Nullable response, NSError * _Nullable error))completionHandler; - -/** -

Gets the roles for an identity pool.

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the GetIdentityPoolRoles service method. - - @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSCognitoIdentityGetIdentityPoolRolesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorResourceConflict`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`. - - @see AWSCognitoIdentityGetIdentityPoolRolesInput - @see AWSCognitoIdentityGetIdentityPoolRolesResponse - */ -- (AWSTask *)getIdentityPoolRoles:(AWSCognitoIdentityGetIdentityPoolRolesInput *)request; - -/** -

Gets the roles for an identity pool.

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the GetIdentityPoolRoles service method. - @param 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 `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorResourceConflict`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`. - - @see AWSCognitoIdentityGetIdentityPoolRolesInput - @see AWSCognitoIdentityGetIdentityPoolRolesResponse - */ -- (void)getIdentityPoolRoles:(AWSCognitoIdentityGetIdentityPoolRolesInput *)request completionHandler:(void (^ _Nullable)(AWSCognitoIdentityGetIdentityPoolRolesResponse * _Nullable response, NSError * _Nullable error))completionHandler; - -/** -

Gets an OpenID token, using a known Cognito ID. This known Cognito ID is returned by GetId. You can optionally add additional logins for the identity. Supplying multiple logins creates an implicit link.

The OpenId token is valid for 15 minutes.

This is a public API. You do not need any credentials to call this API.

- - @param request A container for the necessary parameters to execute the GetOpenIdToken service method. - - @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSCognitoIdentityGetOpenIdTokenResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorResourceConflict`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`, `AWSCognitoIdentityErrorExternalService`. - - @see AWSCognitoIdentityGetOpenIdTokenInput - @see AWSCognitoIdentityGetOpenIdTokenResponse - */ -- (AWSTask *)getOpenIdToken:(AWSCognitoIdentityGetOpenIdTokenInput *)request; - -/** -

Gets an OpenID token, using a known Cognito ID. This known Cognito ID is returned by GetId. You can optionally add additional logins for the identity. Supplying multiple logins creates an implicit link.

The OpenId token is valid for 15 minutes.

This is a public API. You do not need any credentials to call this API.

- - @param request A container for the necessary parameters to execute the GetOpenIdToken service method. - @param 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 `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorResourceConflict`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`, `AWSCognitoIdentityErrorExternalService`. - - @see AWSCognitoIdentityGetOpenIdTokenInput - @see AWSCognitoIdentityGetOpenIdTokenResponse - */ -- (void)getOpenIdToken:(AWSCognitoIdentityGetOpenIdTokenInput *)request completionHandler:(void (^ _Nullable)(AWSCognitoIdentityGetOpenIdTokenResponse * _Nullable response, NSError * _Nullable error))completionHandler; - -/** -

Registers (or retrieves) a Cognito IdentityId and an OpenID Connect token for a user authenticated by your backend authentication process. Supplying multiple logins will create an implicit linked account. You can only specify one developer provider as part of the Logins map, which is linked to the identity pool. The developer provider is the "domain" by which Cognito will refer to your users.

You can use GetOpenIdTokenForDeveloperIdentity to create a new identity and to link new logins (that is, user credentials issued by a public provider or developer provider) to an existing identity. When you want to create a new identity, the IdentityId should be null. When you want to associate a new login with an existing authenticated/unauthenticated identity, you can do so by providing the existing IdentityId. This API will create the identity in the specified IdentityPoolId.

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the GetOpenIdTokenForDeveloperIdentity service method. - - @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSCognitoIdentityGetOpenIdTokenForDeveloperIdentityResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorResourceConflict`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`, `AWSCognitoIdentityErrorDeveloperUserAlreadyRegistered`. - - @see AWSCognitoIdentityGetOpenIdTokenForDeveloperIdentityInput - @see AWSCognitoIdentityGetOpenIdTokenForDeveloperIdentityResponse - */ -- (AWSTask *)getOpenIdTokenForDeveloperIdentity:(AWSCognitoIdentityGetOpenIdTokenForDeveloperIdentityInput *)request; - -/** -

Registers (or retrieves) a Cognito IdentityId and an OpenID Connect token for a user authenticated by your backend authentication process. Supplying multiple logins will create an implicit linked account. You can only specify one developer provider as part of the Logins map, which is linked to the identity pool. The developer provider is the "domain" by which Cognito will refer to your users.

You can use GetOpenIdTokenForDeveloperIdentity to create a new identity and to link new logins (that is, user credentials issued by a public provider or developer provider) to an existing identity. When you want to create a new identity, the IdentityId should be null. When you want to associate a new login with an existing authenticated/unauthenticated identity, you can do so by providing the existing IdentityId. This API will create the identity in the specified IdentityPoolId.

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the GetOpenIdTokenForDeveloperIdentity service method. - @param 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 `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorResourceConflict`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`, `AWSCognitoIdentityErrorDeveloperUserAlreadyRegistered`. - - @see AWSCognitoIdentityGetOpenIdTokenForDeveloperIdentityInput - @see AWSCognitoIdentityGetOpenIdTokenForDeveloperIdentityResponse - */ -- (void)getOpenIdTokenForDeveloperIdentity:(AWSCognitoIdentityGetOpenIdTokenForDeveloperIdentityInput *)request completionHandler:(void (^ _Nullable)(AWSCognitoIdentityGetOpenIdTokenForDeveloperIdentityResponse * _Nullable response, NSError * _Nullable error))completionHandler; - -/** -

Lists the identities in a pool.

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the ListIdentities service method. - - @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSCognitoIdentityListIdentitiesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`. - - @see AWSCognitoIdentityListIdentitiesInput - @see AWSCognitoIdentityListIdentitiesResponse - */ -- (AWSTask *)listIdentities:(AWSCognitoIdentityListIdentitiesInput *)request; - -/** -

Lists the identities in a pool.

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the ListIdentities service method. - @param 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 `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`. - - @see AWSCognitoIdentityListIdentitiesInput - @see AWSCognitoIdentityListIdentitiesResponse - */ -- (void)listIdentities:(AWSCognitoIdentityListIdentitiesInput *)request completionHandler:(void (^ _Nullable)(AWSCognitoIdentityListIdentitiesResponse * _Nullable response, NSError * _Nullable error))completionHandler; - -/** -

Lists all of the Cognito identity pools registered for your account.

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the ListIdentityPools service method. - - @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSCognitoIdentityListIdentityPoolsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`. - - @see AWSCognitoIdentityListIdentityPoolsInput - @see AWSCognitoIdentityListIdentityPoolsResponse - */ -- (AWSTask *)listIdentityPools:(AWSCognitoIdentityListIdentityPoolsInput *)request; - -/** -

Lists all of the Cognito identity pools registered for your account.

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the ListIdentityPools service method. - @param 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 `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`. - - @see AWSCognitoIdentityListIdentityPoolsInput - @see AWSCognitoIdentityListIdentityPoolsResponse - */ -- (void)listIdentityPools:(AWSCognitoIdentityListIdentityPoolsInput *)request completionHandler:(void (^ _Nullable)(AWSCognitoIdentityListIdentityPoolsResponse * _Nullable response, NSError * _Nullable error))completionHandler; - -/** -

Retrieves the IdentityID associated with a DeveloperUserIdentifier or the list of DeveloperUserIdentifiers associated with an IdentityId for an existing identity. Either IdentityID or DeveloperUserIdentifier must not be null. If you supply only one of these values, the other value will be searched in the database and returned as a part of the response. If you supply both, DeveloperUserIdentifier will be matched against IdentityID. If the values are verified against the database, the response returns both values and is the same as the request. Otherwise a ResourceConflictException is thrown.

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the LookupDeveloperIdentity service method. - - @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSCognitoIdentityLookupDeveloperIdentityResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorResourceConflict`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`. - - @see AWSCognitoIdentityLookupDeveloperIdentityInput - @see AWSCognitoIdentityLookupDeveloperIdentityResponse - */ -- (AWSTask *)lookupDeveloperIdentity:(AWSCognitoIdentityLookupDeveloperIdentityInput *)request; - -/** -

Retrieves the IdentityID associated with a DeveloperUserIdentifier or the list of DeveloperUserIdentifiers associated with an IdentityId for an existing identity. Either IdentityID or DeveloperUserIdentifier must not be null. If you supply only one of these values, the other value will be searched in the database and returned as a part of the response. If you supply both, DeveloperUserIdentifier will be matched against IdentityID. If the values are verified against the database, the response returns both values and is the same as the request. Otherwise a ResourceConflictException is thrown.

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the LookupDeveloperIdentity service method. - @param 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 `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorResourceConflict`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`. - - @see AWSCognitoIdentityLookupDeveloperIdentityInput - @see AWSCognitoIdentityLookupDeveloperIdentityResponse - */ -- (void)lookupDeveloperIdentity:(AWSCognitoIdentityLookupDeveloperIdentityInput *)request completionHandler:(void (^ _Nullable)(AWSCognitoIdentityLookupDeveloperIdentityResponse * _Nullable response, NSError * _Nullable error))completionHandler; - -/** -

Merges two users having different IdentityIds, existing in the same identity pool, and identified by the same developer provider. You can use this action to request that discrete users be merged and identified as a single user in the Cognito environment. Cognito associates the given source user (SourceUserIdentifier) with the IdentityId of the DestinationUserIdentifier. Only developer-authenticated users can be merged. If the users to be merged are associated with the same public provider, but as two different users, an exception will be thrown.

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the MergeDeveloperIdentities service method. - - @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSCognitoIdentityMergeDeveloperIdentitiesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorResourceConflict`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`. - - @see AWSCognitoIdentityMergeDeveloperIdentitiesInput - @see AWSCognitoIdentityMergeDeveloperIdentitiesResponse - */ -- (AWSTask *)mergeDeveloperIdentities:(AWSCognitoIdentityMergeDeveloperIdentitiesInput *)request; - -/** -

Merges two users having different IdentityIds, existing in the same identity pool, and identified by the same developer provider. You can use this action to request that discrete users be merged and identified as a single user in the Cognito environment. Cognito associates the given source user (SourceUserIdentifier) with the IdentityId of the DestinationUserIdentifier. Only developer-authenticated users can be merged. If the users to be merged are associated with the same public provider, but as two different users, an exception will be thrown.

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the MergeDeveloperIdentities service method. - @param 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 `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorResourceConflict`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`. - - @see AWSCognitoIdentityMergeDeveloperIdentitiesInput - @see AWSCognitoIdentityMergeDeveloperIdentitiesResponse - */ -- (void)mergeDeveloperIdentities:(AWSCognitoIdentityMergeDeveloperIdentitiesInput *)request completionHandler:(void (^ _Nullable)(AWSCognitoIdentityMergeDeveloperIdentitiesResponse * _Nullable response, NSError * _Nullable error))completionHandler; - -/** -

Sets the roles for an identity pool. These roles are used when making calls to GetCredentialsForIdentity action.

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the SetIdentityPoolRoles service method. - - @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorResourceConflict`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`, `AWSCognitoIdentityErrorConcurrentModification`. - - @see AWSCognitoIdentitySetIdentityPoolRolesInput - */ -- (AWSTask *)setIdentityPoolRoles:(AWSCognitoIdentitySetIdentityPoolRolesInput *)request; - -/** -

Sets the roles for an identity pool. These roles are used when making calls to GetCredentialsForIdentity action.

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the SetIdentityPoolRoles service method. - @param 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 `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorResourceConflict`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`, `AWSCognitoIdentityErrorConcurrentModification`. - - @see AWSCognitoIdentitySetIdentityPoolRolesInput - */ -- (void)setIdentityPoolRoles:(AWSCognitoIdentitySetIdentityPoolRolesInput *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; - -/** -

Unlinks a DeveloperUserIdentifier from an existing identity. Unlinked developer users will be considered new identities next time they are seen. If, for a given Cognito identity, you remove all federated identities as well as the developer user identifier, the Cognito identity becomes inaccessible.

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the UnlinkDeveloperIdentity service method. - - @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorResourceConflict`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`. - - @see AWSCognitoIdentityUnlinkDeveloperIdentityInput - */ -- (AWSTask *)unlinkDeveloperIdentity:(AWSCognitoIdentityUnlinkDeveloperIdentityInput *)request; - -/** -

Unlinks a DeveloperUserIdentifier from an existing identity. Unlinked developer users will be considered new identities next time they are seen. If, for a given Cognito identity, you remove all federated identities as well as the developer user identifier, the Cognito identity becomes inaccessible.

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the UnlinkDeveloperIdentity service method. - @param 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 `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorResourceConflict`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`. - - @see AWSCognitoIdentityUnlinkDeveloperIdentityInput - */ -- (void)unlinkDeveloperIdentity:(AWSCognitoIdentityUnlinkDeveloperIdentityInput *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; - -/** -

Unlinks a federated identity from an existing account. Unlinked logins will be considered new identities next time they are seen. Removing the last linked login will make this identity inaccessible.

This is a public API. You do not need any credentials to call this API.

- - @param request A container for the necessary parameters to execute the UnlinkIdentity service method. - - @return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`. On failed execution, `task.error` may contain an `NSError` with `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorResourceConflict`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`, `AWSCognitoIdentityErrorExternalService`. - - @see AWSCognitoIdentityUnlinkIdentityInput - */ -- (AWSTask *)unlinkIdentity:(AWSCognitoIdentityUnlinkIdentityInput *)request; - -/** -

Unlinks a federated identity from an existing account. Unlinked logins will be considered new identities next time they are seen. Removing the last linked login will make this identity inaccessible.

This is a public API. You do not need any credentials to call this API.

- - @param request A container for the necessary parameters to execute the UnlinkIdentity service method. - @param 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 `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorResourceConflict`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`, `AWSCognitoIdentityErrorExternalService`. - - @see AWSCognitoIdentityUnlinkIdentityInput - */ -- (void)unlinkIdentity:(AWSCognitoIdentityUnlinkIdentityInput *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; - -/** -

Updates a user pool.

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the UpdateIdentityPool service method. - - @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSCognitoIdentityIdentityPool`. On failed execution, `task.error` may contain an `NSError` with `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorResourceConflict`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`, `AWSCognitoIdentityErrorConcurrentModification`, `AWSCognitoIdentityErrorLimitExceeded`. - - @see AWSCognitoIdentityIdentityPool - @see AWSCognitoIdentityIdentityPool - */ -- (AWSTask *)updateIdentityPool:(AWSCognitoIdentityIdentityPool *)request; - -/** -

Updates a user pool.

You must use AWS Developer credentials to call this API.

- - @param request A container for the necessary parameters to execute the UpdateIdentityPool service method. - @param 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 `AWSCognitoIdentityErrorDomain` domain and the following error code: `AWSCognitoIdentityErrorInvalidParameter`, `AWSCognitoIdentityErrorResourceNotFound`, `AWSCognitoIdentityErrorNotAuthorized`, `AWSCognitoIdentityErrorResourceConflict`, `AWSCognitoIdentityErrorTooManyRequests`, `AWSCognitoIdentityErrorInternalError`, `AWSCognitoIdentityErrorConcurrentModification`, `AWSCognitoIdentityErrorLimitExceeded`. - - @see AWSCognitoIdentityIdentityPool - @see AWSCognitoIdentityIdentityPool - */ -- (void)updateIdentityPool:(AWSCognitoIdentityIdentityPool *)request completionHandler:(void (^ _Nullable)(AWSCognitoIdentityIdentityPool * _Nullable response, NSError * _Nullable error))completionHandler; - -@end - -NS_ASSUME_NONNULL_END diff --git a/AWSCore.framework/Headers/AWSCore.h b/AWSCore.framework/Headers/AWSCore.h deleted file mode 100644 index fdae7e0..0000000 --- a/AWSCore.framework/Headers/AWSCore.h +++ /dev/null @@ -1,71 +0,0 @@ -// -// Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"). -// You may not use this file except in compliance with the License. -// A copy of the License is located at -// -// http://aws.amazon.com/apache2.0 -// -// or in the "license" file accompanying this file. This file is distributed -// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either -// express or implied. See the License for the specific language governing -// permissions and limitations under the License. -// - -#import - -/*! - Project version number for the AWSCore framework. - - @warning This value is deprecated and will be removed in an upcoming minor - version of the SDK. It conflicts with the umbrella header generated by - CocoaPods, and is not implemented at all in cases where this SDK is imported - as a CocoaPod static library. As this numeric value does not support - patch-level versioning, you should use AWSiOSSDKVersion instead. - @deprecated Use AWSiOSSDKVersion instead. - */ -FOUNDATION_EXPORT double AWSCoreVersionNumber DEPRECATED_MSG_ATTRIBUTE("Use AWSiOSSDKVersion instead."); - -/*! - Project version string for the AWSCore framework. - - @warning This value is deprecated and will be removed in an upcoming minor - version of the SDK. It conflicts with the umbrella header generated by - CocoaPods, and is not implemented at all in cases where this SDK is imported - as a CocoaPod static library. - @deprecated Use AWSiOSSDKVersion instead. - */ -FOUNDATION_EXPORT const unsigned char AWSCoreVersionString[] DEPRECATED_MSG_ATTRIBUTE("Use AWSiOSSDKVersion instead."); - -#import "AWSCocoaLumberjack.h" - -#import "AWSServiceEnum.h" -#import "AWSService.h" -#import "AWSCredentialsProvider.h" -#import "AWSIdentityProvider.h" -#import "AWSModel.h" -#import "AWSNetworking.h" -#import "AWSCategory.h" -#import "AWSLogging.h" -#import "AWSClientContext.h" -#import "AWSSynchronizedMutableDictionary.h" -#import "AWSSerialization.h" -#import "AWSURLRequestSerialization.h" -#import "AWSURLResponseSerialization.h" -#import "AWSURLSessionManager.h" -#import "AWSSignature.h" -#import "AWSURLRequestRetryHandler.h" -#import "AWSValidation.h" -#import "AWSInfo.h" - -#import "AWSBolts.h" -#import "AWSGZIP.h" -#import "AWSFMDB.h" -#import "AWSKSReachability.h" -#import "AWSTMCache.h" -#import "AWSUICKeyChainStore.h" - - -#import "AWSSTS.h" -#import "AWSCognitoIdentity.h" diff --git a/AWSCore.framework/Headers/AWSCredentialsProvider.h b/AWSCore.framework/Headers/AWSCredentialsProvider.h deleted file mode 100644 index c42a21d..0000000 --- a/AWSCore.framework/Headers/AWSCredentialsProvider.h +++ /dev/null @@ -1,263 +0,0 @@ -// -// Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"). -// You may not use this file except in compliance with the License. -// A copy of the License is located at -// -// http://aws.amazon.com/apache2.0 -// -// or in the "license" file accompanying this file. This file is distributed -// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either -// express or implied. See the License for the specific language governing -// permissions and limitations under the License. -// - -#import -#import "AWSServiceEnum.h" -#import "AWSIdentityProvider.h" - -NS_ASSUME_NONNULL_BEGIN - -FOUNDATION_EXPORT NSString *const AWSCognitoCredentialsProviderErrorDomain; -typedef NS_ENUM(NSInteger, AWSCognitoCredentialsProviderErrorType) { - AWSCognitoCredentialsProviderErrorUnknown, - AWSCognitoCredentialsProviderIdentityIdIsNil, - AWSCognitoCredentialsProviderInvalidConfiguration, - AWSCognitoCredentialsProviderInvalidCognitoIdentityToken, - AWSCognitoCredentialsProviderCredentialsRefreshTimeout, -}; - -@class AWSTask<__covariant ResultType>; - -/** - An AWS credentials container class. - */ -@interface AWSCredentials : NSObject - -/** - Access Key component of credentials. - */ -@property (nonatomic, strong, readonly) NSString *accessKey; - -/** - Secret Access Key component of credentials. - */ -@property (nonatomic, strong, readonly) NSString *secretKey; - -/** - Session Token component of credentials. - */ -@property (nonatomic, strong, readonly, nullable) NSString *sessionKey; - -/** - Date at which these credentials will expire. - */ -@property (nonatomic, strong, readonly, nullable) NSDate *expiration; - -/** - Initiates an AWS credentials object. - - @param accessKey An AWS Access key. - @param secretKey An AWS Secret key. - @param sessionKey An AWS Session key. - @param expiration The expiration date of the temporary AWS credentials. - - @return An AWS credentials object. - */ -- (instancetype)initWithAccessKey:(NSString *)accessKey - secretKey:(NSString *)secretKey - sessionKey:(nullable NSString *)sessionKey - expiration:(nullable NSDate *)expiration; - -@end - -/** - The AWS credentials provider protocol used to provide credentials to the SDK in order to make calls to the AWS services. - */ -@protocol AWSCredentialsProvider - -/** - Asynchronously returns a valid AWS credentials or an error object if it cannot retrieve valid credentials. It should cache valid credentials as much as possible and refresh them when they are invalid. - - @return A valid AWS credentials or an error object describing the error. - */ -- (AWSTask *)credentials; - -/** - Invalidates the cached temporary AWS credentials. If the credentials provider does not cache temporary credentials, this operation is a no-op. - */ -- (void)invalidateCachedTemporaryCredentials; - -@end - -/** - @warning This credentials provider is intended only for testing purposes. - We strongly discourage embedding AWS credentials in your production apps because they can be easily extracted and abused. Consider using `AWSCognitoCredentialsProvider`. - */ -@interface AWSStaticCredentialsProvider : NSObject - -/** - Instantiates a static credentials provider. - - @param accessKey An AWS Access key. - @param secretKey An AWS Secret key. - - @return An AWS credentials object. - */ -- (instancetype)initWithAccessKey:(NSString *)accessKey - secretKey:(NSString *)secretKey; - -@end - -/** - @warning This credentials provider is intended only for testing purposes. - We strongly discourage embedding AWS credentials in your production apps because they can be easily extracted and abused. Consider using `AWSCognitoCredentialsProvider`. - Simple session credentials with keys and session token. - */ -@interface AWSBasicSessionCredentialsProvider: NSObject - -/** - Instantiates a static credentials provider. - - @param accessKey An AWS Access key. - @param secretKey An AWS Secret key. - @param sessionToken The session token for this session. - @return An AWS credentials object. - */ -- (instancetype)initWithAccessKey:(NSString *)accessKey - secretKey:(NSString *)secretKey - sessionToken:(NSString *)sessionToken; - -@end - -@interface AWSAnonymousCredentialsProvider : NSObject - -@end - -/** - A credentials provider that uses AWS STS web identity federation. - */ -@interface AWSWebIdentityCredentialsProvider : NSObject - -@property (nonatomic, strong) NSString *webIdentityToken; -@property (nonatomic, strong) NSString *roleArn; -@property (nonatomic, strong) NSString *roleSessionName; -@property (nonatomic, strong) NSString *providerId; - -- (instancetype)initWithRegionType:(AWSRegionType)regionType - providerId:(nullable NSString *)providerId - roleArn:(NSString *)roleArn - roleSessionName:(NSString *)roleSessionName - webIdentityToken:(NSString *)webIdentityToken; - -@end - -/** - An AWSCredentialsProvider that uses Amazon Cognito to fetch temporary credentials tied to an identity. - - To learn more about Amazon Cognito, please visit https://aws.amazon.com/cognito. - - There are 3 different flows supported by this credentials provider, see factory and init methods for choosing the right one for your use case: - - 1. Enhanced flow: Uses Cognito for all operations and only requires an identity pool id to initialize. - 2. Basic flow: Uses Cognito + STS and requires identity pool plus IAM roles - 3. Developer authenticated identities: Uses your own AWSCognitoCredentialsProviderHelper to establish identity + - Cognito (and optionally STS) to establish credentials. - */ -@interface AWSCognitoCredentialsProvider : NSObject - -/** - The identityProvider which is responsible for establishing the identity id and (optionally) the open id token for use in the Amazon Cognito authflow. - */ -@property (nonatomic, strong, readonly) id identityProvider; - -/** - The identity id associated with this provider. This value will be fetched from the keychain at startup. If you do not want to reuse the existing identity id, you must call the clearKeychain method. - */ -@property (nonatomic, strong, readonly, nullable) NSString *identityId; - -/** - The identity pool id associated with this provider. Also used to create a namedspaced keychain area to store identity id and credentials. - */ -@property (nonatomic, strong, readonly) NSString *identityPoolId; - -/** - Initializer for credentials provider with enhanced authentication flow. This is the recommended constructor for first time Amazon Cognito developers. Will create an instance of `AWSEnhancedCognitoIdentityProvider`. - - @param regionType The region in which your identity pool exists. - @param identityPoolId The identity pool id for this provider. Value is used to communicate with Amazon Cognito as well as namespace values stored in the keychain. - */ -- (instancetype)initWithRegionType:(AWSRegionType)regionType - identityPoolId:(NSString *)identityPoolId; - -/** - Initializer for credentials provider with enhanced authentication flow. This is the recommended method for first time Amazon Cognito developers. Will create an instance of `AWSEnhancedCognitoIdentityProvider`. - - @param regionType The region in which your identity pool exists. - @param identityPoolId The identity pool id for this provider. Value is used to communicate with Amazon Cognito as well as namespace values stored in the keychain. - @param identityProviderManager An object that conforms to the `AWSIdentityProviderManager` protocol. It should return a valid `login` dictionary when requested. Can be nil if identity is unauthenticated. - */ -- (instancetype)initWithRegionType:(AWSRegionType)regionType - identityPoolId:(NSString *)identityPoolId - identityProviderManager:(nullable id)identityProviderManager; - -/** - Initializer for credentials provider with pre-created `AWSCognitoCredentialsProviderHelper`. Use this method when using developer authenticated identities. - - @param regionType The region in which your identity pool exists. - @param identityProvider Implementation of AWSCognitoCredentialsProviderHelper which is responsible for acquiring identity id and (optionally) OpenId Connect token. - */ -- (instancetype)initWithRegionType:(AWSRegionType)regionType - identityProvider:(id)identityProvider; - -/** - Initializer for credentials provider with pre-created `AWSCognitoCredentialsProviderHelper`. Only use this method if you need to set your IAM roles client side and use developer authenticated identities - - @param regionType The region in which your identity pool exists. - @param unauthRoleArn The role ARN to use when getting credentials for unauthenticated identities. Provider will check the `isAuthenticated` property of the identity provider to determine which role to use. Can be nil if unauthenticated identities are not supported or if using enhanced authentication flow. - @param authRoleArn The role ARN to use when getting credentials for authenticated identities. Provider will check the `isAuthenticated` property of the identity provider to determine which role to use. Can be nil if authenticated identities are not supported or if using enhanced authentication flow. - @param identityProvider Implementation of AWSCognitoCredentialsProviderHelper which is responsible for acquiring identity id and (optionally) OpenId Connect token. - */ -- (instancetype)initWithRegionType:(AWSRegionType)regionType - unauthRoleArn:(nullable NSString *)unauthRoleArn - authRoleArn:(nullable NSString *)authRoleArn - identityProvider:(id)identityProvider; - -/** - Initializer for credentials provider with basic auth flow. Only use this method if you still need to set your IAM roles client side. This method will create an instance of `AWSBasicCognitoIdentityProvider`. - - @param regionType The region in which your identity pool exists. - @param identityPoolId The identity pool id for this provider. Value is used to communicate with Amazon Cognito as well as namespace values stored in the keychain. - @param unauthRoleArn The role ARN to use when getting credentials for unauthenticated identities. Provider will check the `isAuthenticated` property of the identity provider to determine which role to use. Can be nil if unauthenticated identities are not supported. - @param authRoleArn The role ARN to use when getting credentials for authenticated identities. Provider will check the `isAuthenticated` property of the identity provider to determine which role to use. Can be nil if authenticated identities are not supported. - @param identityProviderManager An object that conforms to the `AWSIdentityProviderManager` protocol. It should return a valid `login` dictionary when requested. Can be nil if identity is unauthenticated. - */ -- (instancetype)initWithRegionType:(AWSRegionType)regionType - identityPoolId:(NSString *)identityPoolId - unauthRoleArn:(nullable NSString *)unauthRoleArn - authRoleArn:(nullable NSString *)authRoleArn - identityProviderManager:(nullable id)identityProviderManager; - -/** - Get/retrieve the identity id for this provider. If an identity id is already set on this provider, no remote call is made and the identity will be returned as a result of the AWSTask (the identityId is also available as a property). If no identityId is set on this provider, one will be retrieved from the service. - - @return AWSTask - */ -- (AWSTask *)getIdentityId; - -/** - Clear ALL saved values for this provider (identityId, credentials, logins). - */ -- (void)clearKeychain; - -/** - Clear the cached AWS credentials for this provider. - */ -- (void)clearCredentials; - -- (void)setIdentityProviderManagerOnce:(id)identityProviderManager; - -@end - -NS_ASSUME_NONNULL_END diff --git a/AWSCore.framework/Headers/AWSDDASLLogCapture.h b/AWSCore.framework/Headers/AWSDDASLLogCapture.h deleted file mode 100644 index 7082583..0000000 --- a/AWSCore.framework/Headers/AWSDDASLLogCapture.h +++ /dev/null @@ -1,41 +0,0 @@ -// Software License Agreement (BSD License) -// -// Copyright (c) 2010-2016, Deusty, LLC -// All rights reserved. -// -// Redistribution and use of this software in source and binary forms, -// with or without modification, are permitted provided that the following conditions are met: -// -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimer. -// -// * Neither the name of Deusty nor the names of its contributors may be used -// to endorse or promote products derived from this software without specific -// prior written permission of Deusty, LLC. - -#import "AWSDDASLLogger.h" - -@protocol AWSDDLogger; - -/** - * This class provides the ability to capture the ASL (Apple System Logs) - */ -@interface AWSDDASLLogCapture : NSObject - -/** - * Start capturing logs - */ -+ (void)start; - -/** - * Stop capturing logs - */ -+ (void)stop; - -/** - * The current capture level. - * @note Default log level: AWSDDLogLevelVerbose (i.e. capture all ASL messages). - */ -@property (class) AWSDDLogLevel captureLevel; - -@end diff --git a/AWSCore.framework/Headers/AWSDDASLLogger.h b/AWSCore.framework/Headers/AWSDDASLLogger.h deleted file mode 100644 index 757708d..0000000 --- a/AWSCore.framework/Headers/AWSDDASLLogger.h +++ /dev/null @@ -1,58 +0,0 @@ -// Software License Agreement (BSD License) -// -// Copyright (c) 2010-2016, Deusty, LLC -// All rights reserved. -// -// Redistribution and use of this software in source and binary forms, -// with or without modification, are permitted provided that the following conditions are met: -// -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimer. -// -// * Neither the name of Deusty nor the names of its contributors may be used -// to endorse or promote products derived from this software without specific -// prior written permission of Deusty, LLC. - -#import - -// Disable legacy macros -#ifndef AWSDD_LEGACY_MACROS - #define AWSDD_LEGACY_MACROS 0 -#endif - -#import "AWSDDLog.h" - -// Custom key set on messages sent to ASL -extern const char* const kAWSDDASLKeyAWSDDLog; - -// Value set for kAWSDDASLKeyAWSDDLog -extern const char* const kAWSDDASLAWSDDLogValue; - -/** - * This class provides a logger for the Apple System Log facility. - * - * As described in the "Getting Started" page, - * the traditional NSLog() function directs its output to two places: - * - * - Apple System Log - * - StdErr (if stderr is a TTY) so log statements show up in Xcode console - * - * To duplicate NSLog() functionality you can simply add this logger and a tty logger. - * However, if you instead choose to use file logging (for faster performance), - * you may choose to use a file logger and a tty logger. - **/ -@interface AWSDDASLLogger : AWSDDAbstractLogger - -/** - * Singleton method - * - * @return the shared instance - */ -@property (class, readonly, strong) AWSDDASLLogger *sharedInstance; - -// Inherited from AWSDDAbstractLogger - -// - (id )logFormatter; -// - (void)setLogFormatter:(id )formatter; - -@end diff --git a/AWSCore.framework/Headers/AWSDDAssertMacros.h b/AWSCore.framework/Headers/AWSDDAssertMacros.h deleted file mode 100644 index e38cd75..0000000 --- a/AWSCore.framework/Headers/AWSDDAssertMacros.h +++ /dev/null @@ -1,26 +0,0 @@ -// Software License Agreement (BSD License) -// -// Copyright (c) 2010-2016, Deusty, LLC -// All rights reserved. -// -// Redistribution and use of this software in source and binary forms, -// with or without modification, are permitted provided that the following conditions are met: -// -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimer. -// -// * Neither the name of Deusty nor the names of its contributors may be used -// to endorse or promote products derived from this software without specific -// prior written permission of Deusty, LLC. - -/** - * NSAsset replacement that will output a log message even when assertions are disabled. - **/ -#define AWSDDAssert(condition, frmt, ...) \ - if (!(condition)) { \ - NSString *description = [NSString stringWithFormat:frmt, ## __VA_ARGS__]; \ - AWSDDLogError(@"%@", description); \ - NSAssert(NO, description); \ - } -#define AWSDDAssertCondition(condition) AWSDDAssert(condition, @"Condition not satisfied: %s", #condition) - diff --git a/AWSCore.framework/Headers/AWSDDFileLogger.h b/AWSCore.framework/Headers/AWSDDFileLogger.h deleted file mode 100644 index d172756..0000000 --- a/AWSCore.framework/Headers/AWSDDFileLogger.h +++ /dev/null @@ -1,512 +0,0 @@ -// Software License Agreement (BSD License) -// -// Copyright (c) 2010-2016, Deusty, LLC -// All rights reserved. -// -// Redistribution and use of this software in source and binary forms, -// with or without modification, are permitted provided that the following conditions are met: -// -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimer. -// -// * Neither the name of Deusty nor the names of its contributors may be used -// to endorse or promote products derived from this software without specific -// prior written permission of Deusty, LLC. - -// Disable legacy macros -#ifndef AWSDD_LEGACY_MACROS - #define AWSDD_LEGACY_MACROS 0 -#endif - -#import "AWSDDLog.h" - -@class AWSDDLogFileInfo; - -/** - * This class provides a logger to write log statements to a file. - **/ - - -// Default configuration and safety/sanity values. -// -// maximumFileSize -> kAWSDDDefaultLogMaxFileSize -// rollingFrequency -> kAWSDDDefaultLogRollingFrequency -// maximumNumberOfLogFiles -> kAWSDDDefaultLogMaxNumLogFiles -// logFilesDiskQuota -> kAWSDDDefaultLogFilesDiskQuota -// -// You should carefully consider the proper configuration values for your application. - -extern unsigned long long const kAWSDDDefaultLogMaxFileSize; -extern NSTimeInterval const kAWSDDDefaultLogRollingFrequency; -extern NSUInteger const kAWSDDDefaultLogMaxNumLogFiles; -extern unsigned long long const kAWSDDDefaultLogFilesDiskQuota; - - -//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -#pragma mark - -//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/** - * The LogFileManager protocol is designed to allow you to control all aspects of your log files. - * - * The primary purpose of this is to allow you to do something with the log files after they have been rolled. - * Perhaps you want to compress them to save disk space. - * Perhaps you want to upload them to an FTP server. - * Perhaps you want to run some analytics on the file. - * - * A default LogFileManager is, of course, provided. - * The default LogFileManager simply deletes old log files according to the maximumNumberOfLogFiles property. - * - * This protocol provides various methods to fetch the list of log files. - * - * There are two variants: sorted and unsorted. - * If sorting is not necessary, the unsorted variant is obviously faster. - * The sorted variant will return an array sorted by when the log files were created, - * with the most recently created log file at index 0, and the oldest log file at the end of the array. - * - * You can fetch only the log file paths (full path including name), log file names (name only), - * or an array of `AWSDDLogFileInfo` objects. - * The `AWSDDLogFileInfo` class is documented below, and provides a handy wrapper that - * gives you easy access to various file attributes such as the creation date or the file size. - */ -@protocol AWSDDLogFileManager -@required - -// Public properties - -/** - * The maximum number of archived log files to keep on disk. - * For example, if this property is set to 3, - * then the LogFileManager will only keep 3 archived log files (plus the current active log file) on disk. - * Once the active log file is rolled/archived, then the oldest of the existing 3 rolled/archived log files is deleted. - * - * You may optionally disable this option by setting it to zero. - **/ -@property (readwrite, assign, atomic) NSUInteger maximumNumberOfLogFiles; - -/** - * The maximum space that logs can take. On rolling logfile all old logfiles that exceed logFilesDiskQuota will - * be deleted. - * - * You may optionally disable this option by setting it to zero. - **/ -@property (readwrite, assign, atomic) unsigned long long logFilesDiskQuota; - -// Public methods - -/** - * Returns the logs directory (path) - */ -@property (nonatomic, readonly, copy) NSString *logsDirectory; - -/** - * Returns an array of `NSString` objects, - * each of which is the filePath to an existing log file on disk. - **/ -@property (nonatomic, readonly, strong) NSArray *unsortedLogFilePaths; - -/** - * Returns an array of `NSString` objects, - * each of which is the fileName of an existing log file on disk. - **/ -@property (nonatomic, readonly, strong) NSArray *unsortedLogFileNames; - -/** - * Returns an array of `AWSDDLogFileInfo` objects, - * each representing an existing log file on disk, - * and containing important information about the log file such as it's modification date and size. - **/ -@property (nonatomic, readonly, strong) NSArray *unsortedLogFileInfos; - -/** - * Just like the `unsortedLogFilePaths` method, but sorts the array. - * The items in the array are sorted by creation date. - * The first item in the array will be the most recently created log file. - **/ -@property (nonatomic, readonly, strong) NSArray *sortedLogFilePaths; - -/** - * Just like the `unsortedLogFileNames` method, but sorts the array. - * The items in the array are sorted by creation date. - * The first item in the array will be the most recently created log file. - **/ -@property (nonatomic, readonly, strong) NSArray *sortedLogFileNames; - -/** - * Just like the `unsortedLogFileInfos` method, but sorts the array. - * The items in the array are sorted by creation date. - * The first item in the array will be the most recently created log file. - **/ -@property (nonatomic, readonly, strong) NSArray *sortedLogFileInfos; - -// Private methods (only to be used by AWSDDFileLogger) - -/** - * Generates a new unique log file path, and creates the corresponding log file. - **/ -- (NSString *)createNewLogFile; - -@optional - -// Notifications from AWSDDFileLogger - -/** - * Called when a log file was archieved - */ -- (void)didArchiveLogFile:(NSString *)logFilePath NS_SWIFT_NAME(didArchiveLogFile(atPath:)); - -/** - * Called when the roll action was executed and the log was archieved - */ -- (void)didRollAndArchiveLogFile:(NSString *)logFilePath NS_SWIFT_NAME(didRollAndArchiveLogFile(atPath:)); - -@end - -//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -#pragma mark - -//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -/** - * Default log file manager. - * - * All log files are placed inside the logsDirectory. - * If a specific logsDirectory isn't specified, the default directory is used. - * On Mac, this is in `~/Library/Logs/`. - * On iPhone, this is in `~/Library/Caches/Logs`. - * - * Log files are named `"