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
Idaws.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.

Methods

NameAccessible byRequired Params
create_resourceINSERTArn, StatementId, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all policy_statements in a region.

SELECT
region,
arn,
statement_id,
effect,
action,
principal,
condition
FROM aws.entityresolution.policy_statements
WHERE region = 'us-east-1';

Gets all properties from an individual policy_statement.

SELECT
region,
arn,
statement_id,
effect,
action,
principal,
condition
FROM aws.entityresolution.policy_statements
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>|<StatementId>';

INSERT example

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

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

DELETE example

/*+ delete */
DELETE FROM aws.entityresolution.policy_statements
WHERE data__Identifier = '<Arn|StatementId>'
AND region = 'us-east-1';

Permissions

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

Create

entityresolution:AddPolicyStatement

Read

entityresolution:GetPolicy

Update

entityresolution:AddPolicyStatement,
entityresolution:DeletePolicyStatement

Delete

entityresolution:DeletePolicyStatement,
entityresolution:GetPolicy

List

entityresolution:GetPolicy