Class: AWSCDK::IoT::CfnTopicRuleDestinationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t/cfn_topic_rule_destination_props.rb

Overview

Properties for defining a CfnTopicRuleDestination.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_url_properties: nil, status: nil, vpc_properties: nil) ⇒ CfnTopicRuleDestinationProps

Returns a new instance of CfnTopicRuleDestinationProps.

Parameters:



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_propertiesAWSCDK::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

#statusString? (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 DISABLED by calling UpdateTopicRuleDestination .
  • DISABLED - Confirmation was completed, and traffic to this destination is not allowed. You can set status to ENABLED by calling UpdateTopicRuleDestination .
  • ERROR - Confirmation could not be completed; for example, if the confirmation timed out. You can call GetTopicRuleDestination for details about the error. You can set status to IN_PROGRESS by calling UpdateTopicRuleDestination . Calling UpdateTopicRuleDestination causes 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_propertiesAWSCDK::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_propertiesObject



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_jsiiObject



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