Class: AWSCDK::IoT::CfnTopicRuleDestinationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnTopicRuleDestinationProps
- Defined in:
- io_t/cfn_topic_rule_destination_props.rb
Overview
Properties for defining a CfnTopicRuleDestination.
Instance Attribute Summary collapse
-
#http_url_properties ⇒ AWSCDK::IResolvable, ...
readonly
Properties of the HTTP URL.
-
#status ⇒ String?
readonly
- IN_PROGRESS - A topic rule destination was created but has not been confirmed.
-
#vpc_properties ⇒ AWSCDK::IResolvable, ...
readonly
Properties of the virtual private cloud (VPC) connection.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(http_url_properties: nil, status: nil, vpc_properties: nil) ⇒ CfnTopicRuleDestinationProps
constructor
A new instance of CfnTopicRuleDestinationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(http_url_properties: nil, status: nil, vpc_properties: nil) ⇒ CfnTopicRuleDestinationProps
Returns a new instance of CfnTopicRuleDestinationProps.
12 13 14 15 16 17 18 19 |
# File 'io_t/cfn_topic_rule_destination_props.rb', line 12 def initialize(http_url_properties: nil, status: nil, vpc_properties: nil) @http_url_properties = http_url_properties.is_a?(Hash) ? ::AWSCDK::IoT::CfnTopicRuleDestination::HttpURLDestinationSummaryProperty.new(**http_url_properties.transform_keys(&:to_sym)) : http_url_properties Jsii::Type.check_type(@http_url_properties, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3QuQ2ZuVG9waWNSdWxlRGVzdGluYXRpb24uSHR0cFVybERlc3RpbmF0aW9uU3VtbWFyeVByb3BlcnR5In1dfX0=")), "httpUrlProperties") unless @http_url_properties.nil? @status = status Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status") unless @status.nil? @vpc_properties = vpc_properties.is_a?(Hash) ? ::AWSCDK::IoT::CfnTopicRuleDestination::VPCDestinationPropertiesProperty.new(**vpc_properties.transform_keys(&:to_sym)) : vpc_properties Jsii::Type.check_type(@vpc_properties, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3QuQ2ZuVG9waWNSdWxlRGVzdGluYXRpb24uVnBjRGVzdGluYXRpb25Qcm9wZXJ0aWVzUHJvcGVydHkifV19fQ==")), "vpcProperties") unless @vpc_properties.nil? end |
Instance Attribute Details
#http_url_properties ⇒ AWSCDK::IResolvable, ... (readonly)
Properties of the HTTP URL.
25 26 27 |
# File 'io_t/cfn_topic_rule_destination_props.rb', line 25 def http_url_properties @http_url_properties end |
#status ⇒ String? (readonly)
- IN_PROGRESS - A topic rule destination was created but has not been confirmed.
You can set status to IN_PROGRESS by calling UpdateTopicRuleDestination . Calling UpdateTopicRuleDestination causes a new confirmation challenge to be sent to your confirmation endpoint.
- ENABLED - Confirmation was completed, and traffic to this destination is allowed. You can set status to
DISABLEDby callingUpdateTopicRuleDestination. - DISABLED - Confirmation was completed, and traffic to this destination is not allowed. You can set status to
ENABLEDby callingUpdateTopicRuleDestination. - ERROR - Confirmation could not be completed; for example, if the confirmation timed out. You can call
GetTopicRuleDestinationfor details about the error. You can set status toIN_PROGRESSby callingUpdateTopicRuleDestination. CallingUpdateTopicRuleDestinationcauses a new confirmation challenge to be sent to your confirmation endpoint.
36 37 38 |
# File 'io_t/cfn_topic_rule_destination_props.rb', line 36 def status @status end |
#vpc_properties ⇒ AWSCDK::IResolvable, ... (readonly)
Properties of the virtual private cloud (VPC) connection.
41 42 43 |
# File 'io_t/cfn_topic_rule_destination_props.rb', line 41 def vpc_properties @vpc_properties end |
Class Method Details
.jsii_properties ⇒ Object
43 44 45 46 47 48 49 |
# File 'io_t/cfn_topic_rule_destination_props.rb', line 43 def self.jsii_properties { :http_url_properties => "httpUrlProperties", :status => "status", :vpc_properties => "vpcProperties", } end |
Instance Method Details
#to_jsii ⇒ Object
51 52 53 54 55 56 57 58 59 |
# File 'io_t/cfn_topic_rule_destination_props.rb', line 51 def to_jsii result = {} result.merge!({ "httpUrlProperties" => @http_url_properties, "status" => @status, "vpcProperties" => @vpc_properties, }) result.compact end |