123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005 |
- //
- // Copyright 2010-2019 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/Foundation.h>
- #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 AWSCognitoIdentityListTagsForResourceInput;
- @class AWSCognitoIdentityListTagsForResourceResponse;
- @class AWSCognitoIdentityLookupDeveloperIdentityInput;
- @class AWSCognitoIdentityLookupDeveloperIdentityResponse;
- @class AWSCognitoIdentityMappingRule;
- @class AWSCognitoIdentityMergeDeveloperIdentitiesInput;
- @class AWSCognitoIdentityMergeDeveloperIdentitiesResponse;
- @class AWSCognitoIdentityRoleMapping;
- @class AWSCognitoIdentityRulesConfigurationType;
- @class AWSCognitoIdentitySetIdentityPoolRolesInput;
- @class AWSCognitoIdentityTagResourceInput;
- @class AWSCognitoIdentityTagResourceResponse;
- @class AWSCognitoIdentityUnlinkDeveloperIdentityInput;
- @class AWSCognitoIdentityUnlinkIdentityInput;
- @class AWSCognitoIdentityUnprocessedIdentityId;
- @class AWSCognitoIdentityUntagResourceInput;
- @class AWSCognitoIdentityUntagResourceResponse;
-
- /**
- <p>A provider representing an Amazon Cognito user pool and its client ID.</p>
- */
- @interface AWSCognitoIdentityCognitoIdentityProvider : AWSModel
-
-
- /**
- <p>The client ID for the Amazon Cognito user pool.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable clientId;
-
- /**
- <p>The provider name for an Amazon Cognito user pool. For example, <code>cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789</code>.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable providerName;
-
- /**
- <p>TRUE if server-side token validation is enabled for the identity provider’s token.</p><p>Once you set <code>ServerSideTokenCheck</code> to TRUE for an identity pool, that identity pool will check with the integrated user pools to make sure that the user has not been globally signed out or deleted before the identity pool provides an OIDC token or AWS credentials for the user.</p><p>If the user is signed out or deleted, the identity pool will return a 400 Not Authorized error.</p>
- */
- @property (nonatomic, strong) NSNumber * _Nullable serverSideTokenCheck;
-
- @end
-
- /**
- <p>Input to the CreateIdentityPool action.</p>
- Required parameters: [IdentityPoolName, AllowUnauthenticatedIdentities]
- */
- @interface AWSCognitoIdentityCreateIdentityPoolInput : AWSRequest
-
-
- /**
- <p>TRUE if the identity pool supports unauthenticated logins.</p>
- */
- @property (nonatomic, strong) NSNumber * _Nullable allowUnauthenticatedIdentities;
-
- /**
- <p>An array of Amazon Cognito user pools and their client IDs.</p>
- */
- @property (nonatomic, strong) NSArray<AWSCognitoIdentityCognitoIdentityProvider *> * _Nullable cognitoIdentityProviders;
-
- /**
- <p>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 <code>DeveloperProviderName</code>, you can use letters as well as period (<code>.</code>), underscore (<code>_</code>), and dash (<code>-</code>).</p><p>Once you have set a developer provider name, you cannot change it. Please take care in setting this parameter.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable developerProviderName;
-
- /**
- <p>A string that you provide.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolName;
-
- /**
- <p>Tags to assign to the identity pool. A tag is a label that you can apply to identity pools to categorize and manage them in different ways, such as by purpose, owner, environment, or other criteria.</p>
- */
- @property (nonatomic, strong) NSDictionary<NSString *, NSString *> * _Nullable identityPoolTags;
-
- /**
- <p>A list of OpendID Connect provider ARNs.</p>
- */
- @property (nonatomic, strong) NSArray<NSString *> * _Nullable openIdConnectProviderARNs;
-
- /**
- <p>An array of Amazon Resource Names (ARNs) of the SAML provider for your identity pool.</p>
- */
- @property (nonatomic, strong) NSArray<NSString *> * _Nullable samlProviderARNs;
-
- /**
- <p>Optional key:value pairs mapping provider names to provider app IDs.</p>
- */
- @property (nonatomic, strong) NSDictionary<NSString *, NSString *> * _Nullable supportedLoginProviders;
-
- @end
-
- /**
- <p>Credentials for the provided identity ID.</p>
- */
- @interface AWSCognitoIdentityCredentials : AWSModel
-
-
- /**
- <p>The Access Key portion of the credentials.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable accessKeyId;
-
- /**
- <p>The date at which these credentials will expire.</p>
- */
- @property (nonatomic, strong) NSDate * _Nullable expiration;
-
- /**
- <p>The Secret Access Key portion of the credentials</p>
- */
- @property (nonatomic, strong) NSString * _Nullable secretKey;
-
- /**
- <p>The Session Token portion of the credentials</p>
- */
- @property (nonatomic, strong) NSString * _Nullable sessionToken;
-
- @end
-
- /**
- <p>Input to the <code>DeleteIdentities</code> action.</p>
- Required parameters: [IdentityIdsToDelete]
- */
- @interface AWSCognitoIdentityDeleteIdentitiesInput : AWSRequest
-
-
- /**
- <p>A list of 1-60 identities that you want to delete.</p>
- */
- @property (nonatomic, strong) NSArray<NSString *> * _Nullable identityIdsToDelete;
-
- @end
-
- /**
- <p>Returned in response to a successful <code>DeleteIdentities</code> operation.</p>
- */
- @interface AWSCognitoIdentityDeleteIdentitiesResponse : AWSModel
-
-
- /**
- <p>An array of UnprocessedIdentityId objects, each of which contains an ErrorCode and IdentityId.</p>
- */
- @property (nonatomic, strong) NSArray<AWSCognitoIdentityUnprocessedIdentityId *> * _Nullable unprocessedIdentityIds;
-
- @end
-
- /**
- <p>Input to the DeleteIdentityPool action.</p>
- Required parameters: [IdentityPoolId]
- */
- @interface AWSCognitoIdentityDeleteIdentityPoolInput : AWSRequest
-
-
- /**
- <p>An identity pool ID in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- @end
-
- /**
- <p>Input to the <code>DescribeIdentity</code> action.</p>
- Required parameters: [IdentityId]
- */
- @interface AWSCognitoIdentityDescribeIdentityInput : AWSRequest
-
-
- /**
- <p>A unique identifier in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityId;
-
- @end
-
- /**
- <p>Input to the DescribeIdentityPool action.</p>
- Required parameters: [IdentityPoolId]
- */
- @interface AWSCognitoIdentityDescribeIdentityPoolInput : AWSRequest
-
-
- /**
- <p>An identity pool ID in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- @end
-
- /**
- <p>Input to the <code>GetCredentialsForIdentity</code> action.</p>
- Required parameters: [IdentityId]
- */
- @interface AWSCognitoIdentityGetCredentialsForIdentityInput : AWSRequest
-
-
- /**
- <p>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.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable customRoleArn;
-
- /**
- <p>A unique identifier in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityId;
-
- /**
- <p>A set of optional name-value pairs that map provider names to provider tokens. The name-value pair will follow the syntax "provider_name": "provider_user_identifier".</p><p>Logins should not be specified when trying to get credentials for an unauthenticated identity.</p><p>The Logins parameter is required when using identities associated with external identity providers such as FaceBook. For examples of <code>Logins</code> maps, see the code examples in the <a href="http://docs.aws.amazon.com/cognito/latest/developerguide/external-identity-providers.html">External Identity Providers</a> section of the Amazon Cognito Developer Guide.</p>
- */
- @property (nonatomic, strong) NSDictionary<NSString *, NSString *> * _Nullable logins;
-
- @end
-
- /**
- <p>Returned in response to a successful <code>GetCredentialsForIdentity</code> operation.</p>
- */
- @interface AWSCognitoIdentityGetCredentialsForIdentityResponse : AWSModel
-
-
- /**
- <p>Credentials for the provided identity ID.</p>
- */
- @property (nonatomic, strong) AWSCognitoIdentityCredentials * _Nullable credentials;
-
- /**
- <p>A unique identifier in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityId;
-
- @end
-
- /**
- <p>Input to the GetId action.</p>
- Required parameters: [IdentityPoolId]
- */
- @interface AWSCognitoIdentityGetIdInput : AWSRequest
-
-
- /**
- <p>A standard AWS account ID (9+ digits).</p>
- */
- @property (nonatomic, strong) NSString * _Nullable accountId;
-
- /**
- <p>An identity pool ID in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- /**
- <p>A set of optional name-value pairs that map provider names to provider tokens. The available provider names for <code>Logins</code> are as follows:</p><ul><li><p>Facebook: <code>graph.facebook.com</code></p></li><li><p>Amazon Cognito user pool: <code>cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID></code>, for example, <code>cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789</code>. </p></li><li><p>Google: <code>accounts.google.com</code></p></li><li><p>Amazon: <code>www.amazon.com</code></p></li><li><p>Twitter: <code>api.twitter.com</code></p></li><li><p>Digits: <code>www.digits.com</code></p></li></ul>
- */
- @property (nonatomic, strong) NSDictionary<NSString *, NSString *> * _Nullable logins;
-
- @end
-
- /**
- <p>Returned in response to a GetId request.</p>
- */
- @interface AWSCognitoIdentityGetIdResponse : AWSModel
-
-
- /**
- <p>A unique identifier in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityId;
-
- @end
-
- /**
- <p>Input to the <code>GetIdentityPoolRoles</code> action.</p>
- Required parameters: [IdentityPoolId]
- */
- @interface AWSCognitoIdentityGetIdentityPoolRolesInput : AWSRequest
-
-
- /**
- <p>An identity pool ID in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- @end
-
- /**
- <p>Returned in response to a successful <code>GetIdentityPoolRoles</code> operation.</p>
- */
- @interface AWSCognitoIdentityGetIdentityPoolRolesResponse : AWSModel
-
-
- /**
- <p>An identity pool ID in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- /**
- <p>How users for a specific identity provider are to mapped to roles. This is a String-to-<a>RoleMapping</a> object map. The string identifies the identity provider, for example, "graph.facebook.com" or "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".</p>
- */
- @property (nonatomic, strong) NSDictionary<NSString *, AWSCognitoIdentityRoleMapping *> * _Nullable roleMappings;
-
- /**
- <p>The map of roles associated with this pool. Currently only authenticated and unauthenticated roles are supported.</p>
- */
- @property (nonatomic, strong) NSDictionary<NSString *, NSString *> * _Nullable roles;
-
- @end
-
- /**
- <p>Input to the <code>GetOpenIdTokenForDeveloperIdentity</code> action.</p>
- Required parameters: [IdentityPoolId, Logins]
- */
- @interface AWSCognitoIdentityGetOpenIdTokenForDeveloperIdentityInput : AWSRequest
-
-
- /**
- <p>A unique identifier in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityId;
-
- /**
- <p>An identity pool ID in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- /**
- <p>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 <code>"developer_provider_name": "developer_user_identifier"</code>. 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.</p>
- */
- @property (nonatomic, strong) NSDictionary<NSString *, NSString *> * _Nullable logins;
-
- /**
- <p>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.</p>
- */
- @property (nonatomic, strong) NSNumber * _Nullable tokenDuration;
-
- @end
-
- /**
- <p>Returned in response to a successful <code>GetOpenIdTokenForDeveloperIdentity</code> request.</p>
- */
- @interface AWSCognitoIdentityGetOpenIdTokenForDeveloperIdentityResponse : AWSModel
-
-
- /**
- <p>A unique identifier in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityId;
-
- /**
- <p>An OpenID token.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable token;
-
- @end
-
- /**
- <p>Input to the GetOpenIdToken action.</p>
- Required parameters: [IdentityId]
- */
- @interface AWSCognitoIdentityGetOpenIdTokenInput : AWSRequest
-
-
- /**
- <p>A unique identifier in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityId;
-
- /**
- <p>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 user pool provider, or any other OpenId Connect provider, always include the <code>id_token</code>.</p>
- */
- @property (nonatomic, strong) NSDictionary<NSString *, NSString *> * _Nullable logins;
-
- @end
-
- /**
- <p>Returned in response to a successful GetOpenIdToken request.</p>
- */
- @interface AWSCognitoIdentityGetOpenIdTokenResponse : AWSModel
-
-
- /**
- <p>A unique identifier in the format REGION:GUID. Note that the IdentityId returned may not match the one passed on input.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityId;
-
- /**
- <p>An OpenID token, valid for 10 minutes.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable token;
-
- @end
-
- /**
- <p>A description of the identity.</p>
- */
- @interface AWSCognitoIdentityIdentityDescription : AWSModel
-
-
- /**
- <p>Date on which the identity was created.</p>
- */
- @property (nonatomic, strong) NSDate * _Nullable creationDate;
-
- /**
- <p>A unique identifier in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityId;
-
- /**
- <p>Date on which the identity was last modified.</p>
- */
- @property (nonatomic, strong) NSDate * _Nullable lastModifiedDate;
-
- /**
- <p>The provider names.</p>
- */
- @property (nonatomic, strong) NSArray<NSString *> * _Nullable logins;
-
- @end
-
- /**
- <p>An object representing an Amazon Cognito identity pool.</p>
- Required parameters: [IdentityPoolId, IdentityPoolName, AllowUnauthenticatedIdentities]
- */
- @interface AWSCognitoIdentityIdentityPool : AWSRequest
-
-
- /**
- <p>TRUE if the identity pool supports unauthenticated logins.</p>
- */
- @property (nonatomic, strong) NSNumber * _Nullable allowUnauthenticatedIdentities;
-
- /**
- <p>A list representing an Amazon Cognito user pool and its client ID.</p>
- */
- @property (nonatomic, strong) NSArray<AWSCognitoIdentityCognitoIdentityProvider *> * _Nullable cognitoIdentityProviders;
-
- /**
- <p>The "domain" by which Cognito will refer to your users.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable developerProviderName;
-
- /**
- <p>An identity pool ID in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- /**
- <p>A string that you provide.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolName;
-
- /**
- <p>The tags that are assigned to the identity pool. A tag is a label that you can apply to identity pools to categorize and manage them in different ways, such as by purpose, owner, environment, or other criteria.</p>
- */
- @property (nonatomic, strong) NSDictionary<NSString *, NSString *> * _Nullable identityPoolTags;
-
- /**
- <p>A list of OpendID Connect provider ARNs.</p>
- */
- @property (nonatomic, strong) NSArray<NSString *> * _Nullable openIdConnectProviderARNs;
-
- /**
- <p>An array of Amazon Resource Names (ARNs) of the SAML provider for your identity pool.</p>
- */
- @property (nonatomic, strong) NSArray<NSString *> * _Nullable samlProviderARNs;
-
- /**
- <p>Optional key:value pairs mapping provider names to provider app IDs.</p>
- */
- @property (nonatomic, strong) NSDictionary<NSString *, NSString *> * _Nullable supportedLoginProviders;
-
- @end
-
- /**
- <p>A description of the identity pool.</p>
- */
- @interface AWSCognitoIdentityIdentityPoolShortDescription : AWSModel
-
-
- /**
- <p>An identity pool ID in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- /**
- <p>A string that you provide.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolName;
-
- @end
-
- /**
- <p>Input to the ListIdentities action.</p>
- Required parameters: [IdentityPoolId, MaxResults]
- */
- @interface AWSCognitoIdentityListIdentitiesInput : AWSRequest
-
-
- /**
- <p>An optional boolean parameter that allows you to hide disabled identities. If omitted, the ListIdentities API will include disabled identities in the response.</p>
- */
- @property (nonatomic, strong) NSNumber * _Nullable hideDisabled;
-
- /**
- <p>An identity pool ID in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- /**
- <p>The maximum number of identities to return.</p>
- */
- @property (nonatomic, strong) NSNumber * _Nullable maxResults;
-
- /**
- <p>A pagination token.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable nextToken;
-
- @end
-
- /**
- <p>The response to a ListIdentities request.</p>
- */
- @interface AWSCognitoIdentityListIdentitiesResponse : AWSModel
-
-
- /**
- <p>An object containing a set of identities and associated mappings.</p>
- */
- @property (nonatomic, strong) NSArray<AWSCognitoIdentityIdentityDescription *> * _Nullable identities;
-
- /**
- <p>An identity pool ID in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- /**
- <p>A pagination token.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable nextToken;
-
- @end
-
- /**
- <p>Input to the ListIdentityPools action.</p>
- Required parameters: [MaxResults]
- */
- @interface AWSCognitoIdentityListIdentityPoolsInput : AWSRequest
-
-
- /**
- <p>The maximum number of identities to return.</p>
- */
- @property (nonatomic, strong) NSNumber * _Nullable maxResults;
-
- /**
- <p>A pagination token.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable nextToken;
-
- @end
-
- /**
- <p>The result of a successful ListIdentityPools action.</p>
- */
- @interface AWSCognitoIdentityListIdentityPoolsResponse : AWSModel
-
-
- /**
- <p>The identity pools returned by the ListIdentityPools action.</p>
- */
- @property (nonatomic, strong) NSArray<AWSCognitoIdentityIdentityPoolShortDescription *> * _Nullable identityPools;
-
- /**
- <p>A pagination token.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable nextToken;
-
- @end
-
- /**
-
- */
- @interface AWSCognitoIdentityListTagsForResourceInput : AWSRequest
-
-
- /**
- <p>The Amazon Resource Name (ARN) of the identity pool that the tags are assigned to.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable resourceArn;
-
- @end
-
- /**
-
- */
- @interface AWSCognitoIdentityListTagsForResourceResponse : AWSModel
-
-
- /**
- <p>The tags that are assigned to the identity pool.</p>
- */
- @property (nonatomic, strong) NSDictionary<NSString *, NSString *> * _Nullable tags;
-
- @end
-
- /**
- <p>Input to the <code>LookupDeveloperIdentityInput</code> action.</p>
- Required parameters: [IdentityPoolId]
- */
- @interface AWSCognitoIdentityLookupDeveloperIdentityInput : AWSRequest
-
-
- /**
- <p>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.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable developerUserIdentifier;
-
- /**
- <p>A unique identifier in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityId;
-
- /**
- <p>An identity pool ID in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- /**
- <p>The maximum number of identities to return.</p>
- */
- @property (nonatomic, strong) NSNumber * _Nullable maxResults;
-
- /**
- <p>A pagination token. The first call you make will have <code>NextToken</code> set to null. After that the service will return <code>NextToken</code> values as needed. For example, let's say you make a request with <code>MaxResults</code> 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.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable nextToken;
-
- @end
-
- /**
- <p>Returned in response to a successful <code>LookupDeveloperIdentity</code> action.</p>
- */
- @interface AWSCognitoIdentityLookupDeveloperIdentityResponse : AWSModel
-
-
- /**
- <p>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.</p>
- */
- @property (nonatomic, strong) NSArray<NSString *> * _Nullable developerUserIdentifierList;
-
- /**
- <p>A unique identifier in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityId;
-
- /**
- <p>A pagination token. The first call you make will have <code>NextToken</code> set to null. After that the service will return <code>NextToken</code> values as needed. For example, let's say you make a request with <code>MaxResults</code> 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.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable nextToken;
-
- @end
-
- /**
- <p>A rule that maps a claim name, a claim value, and a match type to a role ARN.</p>
- Required parameters: [Claim, MatchType, Value, RoleARN]
- */
- @interface AWSCognitoIdentityMappingRule : AWSModel
-
-
- /**
- <p>The claim name that must be present in the token, for example, "isAdmin" or "paid".</p>
- */
- @property (nonatomic, strong) NSString * _Nullable claim;
-
- /**
- <p>The match condition that specifies how closely the claim value in the IdP token must match <code>Value</code>.</p>
- */
- @property (nonatomic, assign) AWSCognitoIdentityMappingRuleMatchType matchType;
-
- /**
- <p>The role ARN.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable roleARN;
-
- /**
- <p>A brief string that the claim must match, for example, "paid" or "yes".</p>
- */
- @property (nonatomic, strong) NSString * _Nullable value;
-
- @end
-
- /**
- <p>Input to the <code>MergeDeveloperIdentities</code> action.</p>
- Required parameters: [SourceUserIdentifier, DestinationUserIdentifier, DeveloperProviderName, IdentityPoolId]
- */
- @interface AWSCognitoIdentityMergeDeveloperIdentitiesInput : AWSRequest
-
-
- /**
- <p>User identifier for the destination user. The value should be a <code>DeveloperUserIdentifier</code>.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable destinationUserIdentifier;
-
- /**
- <p>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 <code>DeveloperProviderName</code>, you can use letters as well as period (.), underscore (_), and dash (-).</p>
- */
- @property (nonatomic, strong) NSString * _Nullable developerProviderName;
-
- /**
- <p>An identity pool ID in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- /**
- <p>User identifier for the source user. The value should be a <code>DeveloperUserIdentifier</code>.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable sourceUserIdentifier;
-
- @end
-
- /**
- <p>Returned in response to a successful <code>MergeDeveloperIdentities</code> action.</p>
- */
- @interface AWSCognitoIdentityMergeDeveloperIdentitiesResponse : AWSModel
-
-
- /**
- <p>A unique identifier in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityId;
-
- @end
-
- /**
- <p>A role mapping.</p>
- Required parameters: [Type]
- */
- @interface AWSCognitoIdentityRoleMapping : AWSModel
-
-
- /**
- <p>If you specify Token or Rules as the <code>Type</code>, <code>AmbiguousRoleResolution</code> is required.</p><p>Specifies the action to be taken if either no rules match the claim value for the <code>Rules</code> type, or there is no <code>cognito:preferred_role</code> claim and there are multiple <code>cognito:roles</code> matches for the <code>Token</code> type.</p>
- */
- @property (nonatomic, assign) AWSCognitoIdentityAmbiguousRoleResolutionType ambiguousRoleResolution;
-
- /**
- <p>The rules to be used for mapping users to roles.</p><p>If you specify Rules as the role mapping type, <code>RulesConfiguration</code> is required.</p>
- */
- @property (nonatomic, strong) AWSCognitoIdentityRulesConfigurationType * _Nullable rulesConfiguration;
-
- /**
- <p>The role mapping type. Token will use <code>cognito:roles</code> and <code>cognito:preferred_role</code> 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.</p>
- */
- @property (nonatomic, assign) AWSCognitoIdentityRoleMappingType types;
-
- @end
-
- /**
- <p>A container for rules.</p>
- Required parameters: [Rules]
- */
- @interface AWSCognitoIdentityRulesConfigurationType : AWSModel
-
-
- /**
- <p>An array of rules. You can specify up to 25 rules per identity provider.</p><p>Rules are evaluated in order. The first one to match specifies the role.</p>
- */
- @property (nonatomic, strong) NSArray<AWSCognitoIdentityMappingRule *> * _Nullable rules;
-
- @end
-
- /**
- <p>Input to the <code>SetIdentityPoolRoles</code> action.</p>
- Required parameters: [IdentityPoolId, Roles]
- */
- @interface AWSCognitoIdentitySetIdentityPoolRolesInput : AWSRequest
-
-
- /**
- <p>An identity pool ID in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- /**
- <p>How users for a specific identity provider are to mapped to roles. This is a string to <a>RoleMapping</a> 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".</p><p>Up to 25 rules can be specified per identity provider.</p>
- */
- @property (nonatomic, strong) NSDictionary<NSString *, AWSCognitoIdentityRoleMapping *> * _Nullable roleMappings;
-
- /**
- <p>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.</p>
- */
- @property (nonatomic, strong) NSDictionary<NSString *, NSString *> * _Nullable roles;
-
- @end
-
- /**
-
- */
- @interface AWSCognitoIdentityTagResourceInput : AWSRequest
-
-
- /**
- <p>The Amazon Resource Name (ARN) of the identity pool to assign the tags to.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable resourceArn;
-
- /**
- <p>The tags to assign to the identity pool.</p>
- */
- @property (nonatomic, strong) NSDictionary<NSString *, NSString *> * _Nullable tags;
-
- @end
-
- /**
-
- */
- @interface AWSCognitoIdentityTagResourceResponse : AWSModel
-
-
- @end
-
- /**
- <p>Input to the <code>UnlinkDeveloperIdentity</code> action.</p>
- Required parameters: [IdentityId, IdentityPoolId, DeveloperProviderName, DeveloperUserIdentifier]
- */
- @interface AWSCognitoIdentityUnlinkDeveloperIdentityInput : AWSRequest
-
-
- /**
- <p>The "domain" by which Cognito will refer to your users.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable developerProviderName;
-
- /**
- <p>A unique ID used by your backend authentication process to identify a user.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable developerUserIdentifier;
-
- /**
- <p>A unique identifier in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityId;
-
- /**
- <p>An identity pool ID in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- @end
-
- /**
- <p>Input to the UnlinkIdentity action.</p>
- Required parameters: [IdentityId, Logins, LoginsToRemove]
- */
- @interface AWSCognitoIdentityUnlinkIdentityInput : AWSRequest
-
-
- /**
- <p>A unique identifier in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityId;
-
- /**
- <p>A set of optional name-value pairs that map provider names to provider tokens.</p>
- */
- @property (nonatomic, strong) NSDictionary<NSString *, NSString *> * _Nullable logins;
-
- /**
- <p>Provider names to unlink from this identity.</p>
- */
- @property (nonatomic, strong) NSArray<NSString *> * _Nullable loginsToRemove;
-
- @end
-
- /**
- <p>An array of UnprocessedIdentityId objects, each of which contains an ErrorCode and IdentityId.</p>
- */
- @interface AWSCognitoIdentityUnprocessedIdentityId : AWSModel
-
-
- /**
- <p>The error code indicating the type of error that occurred.</p>
- */
- @property (nonatomic, assign) AWSCognitoIdentityErrorCode errorCode;
-
- /**
- <p>A unique identifier in the format REGION:GUID.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityId;
-
- @end
-
- /**
-
- */
- @interface AWSCognitoIdentityUntagResourceInput : AWSRequest
-
-
- /**
- <p>The Amazon Resource Name (ARN) of the identity pool that the tags are assigned to.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable resourceArn;
-
- /**
- <p>The keys of the tags to remove from the user pool.</p>
- */
- @property (nonatomic, strong) NSArray<NSString *> * _Nullable tagKeys;
-
- @end
-
- /**
-
- */
- @interface AWSCognitoIdentityUntagResourceResponse : AWSModel
-
-
- @end
-
- NS_ASSUME_NONNULL_END
|