Skip to main content

user_pool_risk_configuration_attachments

Creates, updates, deletes or gets an user_pool_risk_configuration_attachment resource or lists user_pool_risk_configuration_attachments in a region

Overview

Nameuser_pool_risk_configuration_attachments
TypeResource
DescriptionResource Type definition for AWS::Cognito::UserPoolRiskConfigurationAttachment
Idaws.cognito.user_pool_risk_configuration_attachments

Fields

NameDatatypeDescription
user_pool_idstring
client_idstring
risk_exception_configurationobject
compromised_credentials_risk_configurationobject
account_takeover_risk_configurationobject
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTUserPoolId, ClientId, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual user_pool_risk_configuration_attachment.

SELECT
region,
user_pool_id,
client_id,
risk_exception_configuration,
compromised_credentials_risk_configuration,
account_takeover_risk_configuration
FROM aws.cognito.user_pool_risk_configuration_attachments
WHERE region = 'us-east-1' AND data__Identifier = '<UserPoolId>|<ClientId>';

INSERT example

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

/*+ create */
INSERT INTO aws.cognito.user_pool_risk_configuration_attachments (
UserPoolId,
ClientId,
region
)
SELECT
'{{ UserPoolId }}',
'{{ ClientId }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

cognito-idp:SetRiskConfiguration,
cognito-idp:DescribeRiskConfiguration,
iam:PassRole

Read

cognito-idp:DescribeRiskConfiguration

Update

cognito-idp:SetRiskConfiguration,
cognito-idp:DescribeRiskConfiguration,
iam:PassRole

Delete

cognito-idp:SetRiskConfiguration,
cognito-idp:DescribeRiskConfiguration