AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::SQS::QueueInlinePolicy

CfnQueueInlinePolicy

The `AWS::SQS::QueueInlinePolicy` resource associates one Amazon SQS queue with one policy.

Import

import { CfnQueueInlinePolicy } from 'aws-cdk-lib/aws-sqs';

Or use the module namespace:

import * as sqs from 'aws-cdk-lib/aws-sqs';
// sqs.CfnQueueInlinePolicy

Properties

Configuration passed to the constructor as CfnQueueInlinePolicyProps.

policyDocumentRequired
any

A policy document that contains the permissions for the specified Amazon SQS queues. For more information about Amazon SQS policies, see [Using custom policies with the Amazon SQS access policy language](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-creating-custom-policies.html) in the *Amazon SQS Developer Guide* .

queueRequired
string

The URLs of the queues to which you want to add the policy. You can use the `[Ref](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html)` function to specify an `[AWS::SQS::Queue](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html)` resource.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon SQS Cheat Sheet

Everything you need to know about Amazon SQS on one page. HD quality, print-friendly.

Download Free Infographic