Class CfnQueueInlinePolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.sqs.CfnQueueInlinePolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnQueueInlinePolicyProps>
- Enclosing interface:
CfnQueueInlinePolicyProps
@Stability(Stable)
public static final class CfnQueueInlinePolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnQueueInlinePolicyProps>
A builder for
CfnQueueInlinePolicyProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.policyDocument
(Object policyDocument) Sets the value ofCfnQueueInlinePolicyProps.getPolicyDocument()
Sets the value ofCfnQueueInlinePolicyProps.getQueue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policyDocument
Sets the value ofCfnQueueInlinePolicyProps.getPolicyDocument()
- Parameters:
policyDocument
- A policy document that contains the permissions for the specified Amazon SQS queues. This parameter is required. For more information about Amazon SQS policies, see Using custom policies with the Amazon SQS access policy language in the Amazon SQS Developer Guide .- Returns:
this
-
queue
Sets the value ofCfnQueueInlinePolicyProps.getQueue()
- Parameters:
queue
- The URLs of the queues to which you want to add the policy. This parameter is required. 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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnQueueInlinePolicyProps>
- Returns:
- a new instance of
CfnQueueInlinePolicyProps
- Throws:
NullPointerException
- if any required attribute was not provided
-