Class: AWSCDK::AppConfig::SQSDestination
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::AppConfig::SQSDestination
- Includes:
- IEventDestination
- Defined in:
- app_config/sqs_destination.rb
Overview
Use an Amazon SQS queue as an event destination.
Class Method Summary collapse
Instance Method Summary collapse
-
#extension_uri ⇒ String
The URI of the extension event destination.
-
#initialize(queue) ⇒ SQSDestination
constructor
A new instance of SQSDestination.
-
#policy_document ⇒ AWSCDK::IAM::PolicyDocument?
The IAM policy document to invoke the event destination.
-
#type ⇒ AWSCDK::AppConfig::SourceType
The type of the extension event destination.
Constructor Details
#initialize(queue) ⇒ SQSDestination
Returns a new instance of SQSDestination.
10 11 12 13 |
# File 'app_config/sqs_destination.rb', line 10 def initialize(queue) Jsii::Type.check_type(queue, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3FzLklRdWV1ZSJ9")), "queue") Jsii::Object.instance_method(:initialize).bind(self).call(queue) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
15 16 17 18 19 20 21 |
# File 'app_config/sqs_destination.rb', line 15 def self.jsii_overridable_methods { :extension_uri => { kind: :property, name: "extensionUri", is_optional: false }, :type => { kind: :property, name: "type", is_optional: false }, :policy_document => { kind: :property, name: "policyDocument", is_optional: true }, } end |
Instance Method Details
#extension_uri ⇒ String
The URI of the extension event destination.
26 27 28 |
# File 'app_config/sqs_destination.rb', line 26 def extension_uri() jsii_get_property("extensionUri") end |
#policy_document ⇒ AWSCDK::IAM::PolicyDocument?
The IAM policy document to invoke the event destination.
40 41 42 |
# File 'app_config/sqs_destination.rb', line 40 def policy_document() jsii_get_property("policyDocument") end |
#type ⇒ AWSCDK::AppConfig::SourceType
The type of the extension event destination.
33 34 35 |
# File 'app_config/sqs_destination.rb', line 33 def type() jsii_get_property("type") end |