identity_sources
Creates, updates, deletes or gets an identity_source resource or lists identity_sources in a region
Overview
| Name | identity_sources |
| Type | Resource |
| Description | Definition of AWS::VerifiedPermissions::IdentitySource Resource Type |
| Id | awscc.verifiedpermissions.identity_sources |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
configuration | object | |
details | object | |
identity_source_id | string | |
policy_store_id | string | |
principal_entity_type | string | |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
identity_source_id | string | |
policy_store_id | string | |
region | string | AWS region. |
For more information, see AWS::VerifiedPermissions::IdentitySource.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | identity_sources | INSERT | Configuration, PolicyStoreId, region |
delete_resource | identity_sources | DELETE | Identifier, region |
update_resource | identity_sources | UPDATE | Identifier, PatchDocument, region |
list_resources | identity_sources_list_only | SELECT | region |
get_resource | identity_sources | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual identity_source.
SELECT
region,
configuration,
details,
identity_source_id,
policy_store_id,
principal_entity_type
FROM awscc.verifiedpermissions.identity_sources
WHERE
region = '{{ region }}' AND
Identifier = '{{ identity_source_id }}|{{ policy_store_id }}';
Lists all identity_sources in a region.
SELECT
region,
identity_source_id,
policy_store_id
FROM awscc.verifiedpermissions.identity_sources_list_only
WHERE
region = '{{ region }}';
INSERT example
Use the following StackQL query and manifest file to create a new identity_source resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.verifiedpermissions.identity_sources (
Configuration,
PolicyStoreId,
region
)
SELECT
'{{ configuration }}',
'{{ policy_store_id }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
/*+ create */
INSERT INTO awscc.verifiedpermissions.identity_sources (
Configuration,
PolicyStoreId,
PrincipalEntityType,
region
)
SELECT
'{{ configuration }}',
'{{ policy_store_id }}',
'{{ principal_entity_type }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: identity_source
props:
- name: configuration
value: null
- name: policy_store_id
value: '{{ policy_store_id }}'
- name: principal_entity_type
value: '{{ principal_entity_type }}'
UPDATE example
Use the following StackQL query and manifest file to update a identity_source resource, using stack-deploy.
/*+ update */
UPDATE awscc.verifiedpermissions.identity_sources
SET PatchDocument = string('{{ {
"Configuration": configuration,
"PrincipalEntityType": principal_entity_type
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ identity_source_id }}|{{ policy_store_id }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
DELETE example
/*+ delete */
DELETE FROM awscc.verifiedpermissions.identity_sources
WHERE
Identifier = '{{ identity_source_id }}|{{ policy_store_id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
Additional Parameters
Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:
| Parameter | Description |
|---|---|
ClientToken | A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.A client token is valid for 36 hours once used. After that, a resource request with the same client token is treated as a new request. If you do not specify a client token, one is generated for inclusion in the request. |
RoleArn | The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.If you do not specify a role, a temporary session is created using your AWS user credentials. |
TypeVersionId | For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used. |
Permissions
To operate on the identity_sources resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
verifiedpermissions:CreateIdentitySource,
verifiedpermissions:GetIdentitySource,
cognito-idp:DescribeUserPool,
cognito-idp:ListUserPoolClients
verifiedpermissions:GetIdentitySource,
cognito-idp:DescribeUserPool,
cognito-idp:ListUserPoolClients
verifiedpermissions:UpdateIdentitySource,
verifiedpermissions:GetIdentitySource,
cognito-idp:DescribeUserPool,
cognito-idp:ListUserPoolClients
verifiedpermissions:DeleteIdentitySource,
verifiedpermissions:GetIdentitySource,
cognito-idp:DescribeUserPool,
cognito-idp:ListUserPoolClients
verifiedpermissions:ListIdentitySources,
verifiedpermissions:GetIdentitySource,
cognito-idp:DescribeUserPool,
cognito-idp:ListUserPoolClients