# QueuePolicyProps

Properties to associate SQS queues with a policy.

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

- Source: [`aws-sqs/lib/policy.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-sqs/lib/policy.ts#L14)

## 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 queue: sqs.Queue;
const queuePolicyProps: sqs.QueuePolicyProps = {
  queues: [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

# queue: sqs.Queue

queue_policy_props = sqs.QueuePolicyProps(
    queues=[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.*;

Queue queue;

QueuePolicyProps queuePolicyProps = QueuePolicyProps.builder()
        .queues(List.of(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;

Queue queue;

var queuePolicyProps = new QueuePolicyProps {
    Queues = new [] { 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 queue Queue

queuePolicyProps := &QueuePolicyProps{
	Queues: []IQueue{
		queue,
	},
}
```

## Properties

- `queues`: [IQueue](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sqs.IQueue.html)[] (required) — The set of queues this policy applies to.
