Skip to main content

user_pool_identity_providers

Creates, updates, deletes or gets an user_pool_identity_provider resource or lists user_pool_identity_providers in a region

Overview

Nameuser_pool_identity_providers
TypeResource
DescriptionResource Type definition for AWS::Cognito::UserPoolIdentityProvider
Idaws.cognito.user_pool_identity_providers

Fields

NameDatatypeDescription
user_pool_idstring
provider_namestring
provider_typestring
provider_detailsobject
idp_identifiersarray
attribute_mappingobject
regionstringAWS region.

For more information, see AWS::Cognito::UserPoolIdentityProvider.

Methods

NameAccessible byRequired Params
create_resourceINSERTUserPoolId, ProviderName, ProviderType, ProviderDetails, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all user_pool_identity_providers in a region.

SELECT
region,
user_pool_id,
provider_name,
provider_type,
provider_details,
idp_identifiers,
attribute_mapping
FROM aws.cognito.user_pool_identity_providers
WHERE region = 'us-east-1';

Gets all properties from an individual user_pool_identity_provider.

SELECT
region,
user_pool_id,
provider_name,
provider_type,
provider_details,
idp_identifiers,
attribute_mapping
FROM aws.cognito.user_pool_identity_providers
WHERE region = 'us-east-1' AND data__Identifier = '<UserPoolId>|<ProviderName>';

INSERT example

Use the following StackQL query and manifest file to create a new user_pool_identity_provider resource, using stack-deploy.

/*+ create */
INSERT INTO aws.cognito.user_pool_identity_providers (
UserPoolId,
ProviderName,
ProviderType,
ProviderDetails,
region
)
SELECT
'{{ UserPoolId }}',
'{{ ProviderName }}',
'{{ ProviderType }}',
'{{ ProviderDetails }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.cognito.user_pool_identity_providers
WHERE data__Identifier = '<UserPoolId|ProviderName>'
AND region = 'us-east-1';

Permissions

To operate on the user_pool_identity_providers resource, the following permissions are required:

Create

cognito-idp:CreateIdentityProvider,
cognito-idp:DescribeIdentityProvider

Read

cognito-idp:DescribeIdentityProvider

Update

cognito-idp:UpdateIdentityProvider,
cognito-idp:DescribeIdentityProvider

Delete

cognito-idp:DeleteIdentityProvider,
cognito-idp:DescribeIdentityProvider

List

cognito-idp:ListIdentityProviders