queue_inline_policies
Creates, updates, deletes or gets a queue_inline_policy
resource or lists queue_inline_policies
in a region
Overview
Name | queue_inline_policies |
Type | Resource |
Description | Schema for SQS QueueInlinePolicy |
Id | aws.sqs.queue_inline_policies |
Fields
Name | Datatype | Description |
---|---|---|
policy_document | object | A policy document that contains permissions to add to the specified SQS queue |
queue | string | The URL of the SQS queue. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | PolicyDocument, Queue, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.sqs.queue_inline_policies (
PolicyDocument,
Queue,
region
)
SELECT
'{{ PolicyDocument }}',
'{{ Queue }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.sqs.queue_inline_policies (
PolicyDocument,
Queue,
region
)
SELECT
'{{ PolicyDocument }}',
'{{ Queue }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: queue_inline_policy
props:
- name: PolicyDocument
value: {}
- name: Queue
value: '{{ Queue }}'
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