VerifiedPermissions / Client / list_identity_sources
list_identity_sources#
- VerifiedPermissions.Client.list_identity_sources(**kwargs)#
Returns a paginated list of all of the identity sources defined in the specified policy store.
See also: AWS API Documentation
Request Syntax
response = client.list_identity_sources( policyStoreId='string', nextToken='string', maxResults=123, filters=[ { 'principalEntityType': 'string' }, ] )
- Parameters:
policyStoreId (string) –
[REQUIRED]
Specifies the ID of the policy store that contains the identity sources that you want to list.
nextToken (string) – Specifies that you want to receive the next page of results. Valid only if you received a
NextToken
response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call’sNextToken
response to request the next page of results.maxResults (integer) –
Specifies the total number of results that you want included in each response. If additional items exist beyond the number you specify, the
NextToken
response element is returned with a value (not null). Include the specified value as theNextToken
request parameter in the next call to the operation to get the next set of results. Note that the service might return fewer results than the maximum even when there are more results available. You should checkNextToken
after every operation to ensure that you receive all of the results.If you do not specify this parameter, the operation defaults to 10 identity sources per response. You can specify a maximum of 50 identity sources per response.
filters (list) –
Specifies characteristics of an identity source that you can use to limit the output to matching identity sources.
(dict) –
A structure that defines characteristics of an identity source that you can use to filter.
This data type is a request parameter for the ListIdentityStores operation.
principalEntityType (string) –
The Cedar entity type of the principals returned by the identity provider (IdP) associated with this identity source.
- Return type:
dict
- Returns:
Response Syntax
{ 'nextToken': 'string', 'identitySources': [ { 'createdDate': datetime(2015, 1, 1), 'details': { 'clientIds': [ 'string', ], 'userPoolArn': 'string', 'discoveryUrl': 'string', 'openIdIssuer': 'COGNITO' }, 'identitySourceId': 'string', 'lastUpdatedDate': datetime(2015, 1, 1), 'policyStoreId': 'string', 'principalEntityType': 'string', 'configuration': { 'cognitoUserPoolConfiguration': { 'userPoolArn': 'string', 'clientIds': [ 'string', ], 'issuer': 'string', 'groupConfiguration': { 'groupEntityType': 'string' } } } }, ] }
Response Structure
(dict) –
nextToken (string) –
If present, this value indicates that more output is available than is included in the current response. Use this value in the
NextToken
request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextToken
response element comes back asnull
. This indicates that this is the last page of results.identitySources (list) –
The list of identity sources stored in the specified policy store.
(dict) –
A structure that defines an identity source.
This data type is a response parameter to the ListIdentitySources operation.
createdDate (datetime) –
The date and time the identity source was originally created.
details (dict) –
A structure that contains the details of the associated identity provider (IdP).
clientIds (list) –
The application client IDs associated with the specified Amazon Cognito user pool that are enabled for this identity source.
(string) –
userPoolArn (string) –
The Amazon Cognito user pool whose identities are accessible to this Verified Permissions policy store.
discoveryUrl (string) –
The well-known URL that points to this user pool’s OIDC discovery endpoint. This is a URL string in the following format. This URL replaces the placeholders for both the Amazon Web Services Region and the user pool identifier with those appropriate for this user pool.
https://cognito-idp.<region>.amazonaws.com/<user-pool-id>/.well-known/openid-configuration
openIdIssuer (string) –
A string that identifies the type of OIDC service represented by this identity source.
At this time, the only valid value is
cognito
.
identitySourceId (string) –
The unique identifier of the identity source.
lastUpdatedDate (datetime) –
The date and time the identity source was most recently updated.
policyStoreId (string) –
The identifier of the policy store that contains the identity source.
principalEntityType (string) –
The Cedar entity type of the principals returned from the IdP associated with this identity source.
configuration (dict) –
Contains configuration information about an identity source.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
cognitoUserPoolConfiguration
. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBER
is as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
cognitoUserPoolConfiguration (dict) –
Contains configuration details of a Amazon Cognito user pool that Verified Permissions can use as a source of authenticated identities as entities. It specifies the Amazon Resource Name (ARN) of a Amazon Cognito user pool, the policy store entity that you want to assign to user groups, and one or more application client IDs.
Example:
"configuration":{"cognitoUserPoolConfiguration":{"userPoolArn":"arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5","clientIds": ["a1b2c3d4e5f6g7h8i9j0kalbmc"],"groupConfiguration": {"groupEntityType": "MyCorp::Group"}}}
userPoolArn (string) –
The Amazon Resource Name (ARN) of the Amazon Cognito user pool that contains the identities to be authorized.
Example:
"userPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5"
clientIds (list) –
The unique application client IDs that are associated with the specified Amazon Cognito user pool.
Example:
"clientIds": ["&ExampleCogClientId;"]
(string) –
issuer (string) –
The OpenID Connect (OIDC)
issuer
ID of the Amazon Cognito user pool that contains the identities to be authorized.Example:
"issuer": "https://cognito-idp.us-east-1.amazonaws.com/us-east-1_1a2b3c4d5"
groupConfiguration (dict) –
The type of entity that a policy store maps to groups from an Amazon Cognito user pool identity source.
groupEntityType (string) –
The name of the schema entity type that’s mapped to the user pool group. Defaults to
AWS::CognitoGroup
.
Exceptions
VerifiedPermissions.Client.exceptions.ValidationException
VerifiedPermissions.Client.exceptions.AccessDeniedException
VerifiedPermissions.Client.exceptions.ResourceNotFoundException
VerifiedPermissions.Client.exceptions.ThrottlingException
VerifiedPermissions.Client.exceptions.InternalServerException