Class: AWSCDK::SQS::CfnQueueInlinePolicyProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SQS::CfnQueueInlinePolicyProps
- Defined in:
- sqs/cfn_queue_inline_policy_props.rb
Overview
Properties for defining a CfnQueueInlinePolicy.
Instance Attribute Summary collapse
-
#policy_document ⇒ Object
readonly
A policy document that contains the permissions for the specified Amazon SQS queues.
-
#queue ⇒ String
readonly
The URLs of the queues to which you want to add the policy.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(policy_document:, queue:) ⇒ CfnQueueInlinePolicyProps
constructor
A new instance of CfnQueueInlinePolicyProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(policy_document:, queue:) ⇒ CfnQueueInlinePolicyProps
Returns a new instance of CfnQueueInlinePolicyProps.
11 12 13 14 15 16 |
# File 'sqs/cfn_queue_inline_policy_props.rb', line 11 def initialize(policy_document:, queue:) @policy_document = policy_document Jsii::Type.check_type(@policy_document, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "policyDocument") @queue = queue Jsii::Type.check_type(@queue, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "queue") end |
Instance Attribute Details
#policy_document ⇒ Object (readonly)
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 in the Amazon SQS Developer Guide .
24 25 26 |
# File 'sqs/cfn_queue_inline_policy_props.rb', line 24 def policy_document @policy_document end |
#queue ⇒ String (readonly)
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.
31 32 33 |
# File 'sqs/cfn_queue_inline_policy_props.rb', line 31 def queue @queue end |
Class Method Details
.jsii_properties ⇒ Object
33 34 35 36 37 38 |
# File 'sqs/cfn_queue_inline_policy_props.rb', line 33 def self.jsii_properties { :policy_document => "policyDocument", :queue => "queue", } end |
Instance Method Details
#to_jsii ⇒ Object
40 41 42 43 44 45 46 47 |
# File 'sqs/cfn_queue_inline_policy_props.rb', line 40 def to_jsii result = {} result.merge!({ "policyDocument" => @policy_document, "queue" => @queue, }) result.compact end |