# CfnQueueInlinePolicyProps

Properties for defining a `CfnQueueInlinePolicy`.

Used as props by: [CfnQueueInlinePolicy](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sqs.CfnQueueInlinePolicy.html)

- Source: Generated at build time
- Type last changed: v2.91.0 · 10 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sqs as sqs } from 'aws-cdk-lib';

declare const policyDocument: any;
const cfnQueueInlinePolicyProps: sqs.CfnQueueInlinePolicyProps = {
  policyDocument: policyDocument,
  queue: 'queue',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sqs as sqs

# policy_document: Any

cfn_queue_inline_policy_props = sqs.CfnQueueInlinePolicyProps(
    policy_document=policy_document,
    queue="queue"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sqs.*;

Object policyDocument;

CfnQueueInlinePolicyProps cfnQueueInlinePolicyProps = CfnQueueInlinePolicyProps.builder()
        .policyDocument(policyDocument)
        .queue("queue")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SQS;

var policyDocument;

var cfnQueueInlinePolicyProps = new CfnQueueInlinePolicyProps {
    PolicyDocument = policyDocument,
    Queue = "queue"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var policyDocument interface{}

cfnQueueInlinePolicyProps := &CfnQueueInlinePolicyProps{
	PolicyDocument: policyDocument,
	Queue: jsii.String("queue"),
}
```

## Properties

- `policyDocument`: any (required) — 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* .

- `queue`: string (required) — 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.
