Skip to main content

identity_sources

Creates, updates, deletes or gets an identity_source resource or lists identity_sources in a region

Overview

Nameidentity_sources
TypeResource
DescriptionDefinition of AWS::VerifiedPermissions::IdentitySource Resource Type
Idaws.verifiedpermissions.identity_sources

Fields

NameDatatypeDescription
configurationundefined
detailsobject
identity_source_idstring
policy_store_idstring
principal_entity_typestring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTConfiguration, PolicyStoreId, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all identity_sources in a region.

SELECT
region,
configuration,
details,
identity_source_id,
policy_store_id,
principal_entity_type
FROM aws.verifiedpermissions.identity_sources
WHERE region = 'us-east-1';

Gets all properties from an individual identity_source.

SELECT
region,
configuration,
details,
identity_source_id,
policy_store_id,
principal_entity_type
FROM aws.verifiedpermissions.identity_sources
WHERE region = 'us-east-1' AND data__Identifier = '<IdentitySourceId>|<PolicyStoreId>';

INSERT example

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

/*+ create */
INSERT INTO aws.verifiedpermissions.identity_sources (
Configuration,
PolicyStoreId,
region
)
SELECT
'{{ Configuration }}',
'{{ PolicyStoreId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.verifiedpermissions.identity_sources
WHERE data__Identifier = '<IdentitySourceId|PolicyStoreId>'
AND region = 'us-east-1';

Permissions

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

Create

verifiedpermissions:CreateIdentitySource,
verifiedpermissions:GetIdentitySource,
cognito-idp:DescribeUserPool,
cognito-idp:ListUserPoolClients

Read

verifiedpermissions:GetIdentitySource,
cognito-idp:DescribeUserPool,
cognito-idp:ListUserPoolClients

Update

verifiedpermissions:UpdateIdentitySource,
verifiedpermissions:GetIdentitySource,
cognito-idp:DescribeUserPool,
cognito-idp:ListUserPoolClients

Delete

verifiedpermissions:DeleteIdentitySource,
verifiedpermissions:GetIdentitySource,
cognito-idp:DescribeUserPool,
cognito-idp:ListUserPoolClients

List

verifiedpermissions:ListIdentitySources,
verifiedpermissions:GetIdentitySource,
cognito-idp:DescribeUserPool,
cognito-idp:ListUserPoolClients