@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.276Z") @Stability(value=Stable) public class QueuePolicy extends Resource
Policies define the operations that are allowed on this resource.
You almost never need to define this construct directly.
All AWS resources that support resource policies have a method called
addToResourcePolicy(), which will automatically create a new resource
policy if one doesn't exist yet, otherwise it will add to the existing
policy.
Prefer to use addToResourcePolicy() instead.
Example:
// 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;
QueuePolicy queuePolicy = QueuePolicy.Builder.create(this, "MyQueuePolicy")
.queues(List.of(queue))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
QueuePolicy.Builder
A fluent builder for
QueuePolicy. |
software.amazon.jsii.JsiiObject.InitializationModeIResource.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
QueuePolicy(software.constructs.Construct scope,
String id,
QueuePolicyProps props) |
protected |
QueuePolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
QueuePolicy(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
PolicyDocument |
getDocument()
The IAM policy document for this policy.
|
String |
getQueuePolicyId()
Not currently supported by AWS CloudFormation.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected QueuePolicy(software.amazon.jsii.JsiiObjectRef objRef)
protected QueuePolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public QueuePolicy(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
QueuePolicyProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public PolicyDocument getDocument()
@Stability(value=Stable) @NotNull public String getQueuePolicyId()
This attribute temporarily existed in CloudFormation, and then was removed again.
Copyright © 2022. All rights reserved.