Skip to main content

policy_statements

Creates, updates, deletes or gets a policy_statement resource or lists policy_statements in a region

Overview

Namepolicy_statements
TypeResource
DescriptionPolicy Statement defined in AWS Entity Resolution Service
Idawscc.entityresolution.policy_statements

Fields

NameDatatypeDescription
arnstringArn of the resource to which the policy statement is being attached.
statement_idstringThe Statement Id of the policy statement that is being attached.
effectstring
actionarray
principalarray
conditionstring
regionstringAWS region.

For more information, see AWS::EntityResolution::PolicyStatement.

Methods

NameResourceAccessible byRequired Params
create_resourcepolicy_statementsINSERTArn, StatementId, region
delete_resourcepolicy_statementsDELETEIdentifier, region
update_resourcepolicy_statementsUPDATEIdentifier, PatchDocument, region
list_resourcespolicy_statements_list_onlySELECTregion
get_resourcepolicy_statementsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual policy_statement.

SELECT
region,
arn,
statement_id,
effect,
action,
principal,
condition
FROM awscc.entityresolution.policy_statements
WHERE
region = 'us-east-1' AND
Identifier = '{{ arn }}|{{ statement_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.entityresolution.policy_statements (
Arn,
StatementId,
region
)
SELECT
'{{ arn }}',
'{{ statement_id }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a policy_statement resource, using stack-deploy.

/*+ update */
UPDATE awscc.entityresolution.policy_statements
SET PatchDocument = string('{{ {
"Effect": effect,
"Action": action,
"Principal": principal,
"Condition": condition
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}|{{ statement_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.entityresolution.policy_statements
WHERE
Identifier = '{{ arn }}|{{ statement_id }}' AND
region = 'us-east-1';

Permissions

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

entityresolution:AddPolicyStatement