Skip to main content

queue_inline_policies

Creates, updates, deletes or gets a queue_inline_policy resource or lists queue_inline_policies in a region

Overview

Namequeue_inline_policies
TypeResource
DescriptionSchema for SQS QueueInlinePolicy
Idaws.sqs.queue_inline_policies

Fields

NameDatatypeDescription
policy_documentobjectA policy document that contains permissions to add to the specified SQS queue
queuestringThe URL of the SQS queue.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTPolicyDocument, Queue, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual queue_inline_policy.

SELECT
region,
policy_document,
queue
FROM aws.sqs.queue_inline_policies
WHERE region = 'us-east-1' AND data__Identifier = '<Queue>';

INSERT example

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

/*+ create */
INSERT INTO aws.sqs.queue_inline_policies (
PolicyDocument,
Queue,
region
)
SELECT
'{{ PolicyDocument }}',
'{{ Queue }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.sqs.queue_inline_policies
WHERE data__Identifier = '<Queue>'
AND region = 'us-east-1';

Permissions

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

Create

sqs:SetQueueAttributes,
sqs:GetQueueAttributes,
sqs:GetQueueUrl

Read

sqs:GetQueueAttributes,
sqs:GetQueueUrl

Delete

sqs:SetQueueAttributes,
sqs:GetQueueAttributes

Update

sqs:SetQueueAttributes,
sqs:GetQueueAttributes,
sqs:GetQueueUrl