Class: AWSCDK::IoTWireless::CfnDestinationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTWireless::CfnDestinationProps
- Defined in:
- io_t_wireless/cfn_destination_props.rb
Overview
Properties for defining a CfnDestination.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The description of the new resource.
-
#expression ⇒ String
readonly
The rule name to send messages to.
-
#expression_type ⇒ String
readonly
The type of value in
Expression. -
#name ⇒ String
readonly
The name of the new resource.
-
#role_arn ⇒ String?
readonly
The ARN of the IAM Role that authorizes the destination.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags are an array of key-value pairs to attach to the specified resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(expression:, expression_type:, name:, description: nil, role_arn: nil, tags: nil) ⇒ CfnDestinationProps
constructor
A new instance of CfnDestinationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(expression:, expression_type:, name:, description: nil, role_arn: nil, tags: nil) ⇒ CfnDestinationProps
Returns a new instance of CfnDestinationProps.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'io_t_wireless/cfn_destination_props.rb', line 15 def initialize(expression:, expression_type:, name:, description: nil, role_arn: nil, tags: nil) @expression = expression Jsii::Type.check_type(@expression, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "expression") @expression_type = expression_type Jsii::Type.check_type(@expression_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "expressionType") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") unless @role_arn.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
The description of the new resource.
Maximum length is 2048 characters.
51 52 53 |
# File 'io_t_wireless/cfn_destination_props.rb', line 51 def description @description end |
#expression ⇒ String (readonly)
The rule name to send messages to.
34 35 36 |
# File 'io_t_wireless/cfn_destination_props.rb', line 34 def expression @expression end |
#expression_type ⇒ String (readonly)
The type of value in Expression .
39 40 41 |
# File 'io_t_wireless/cfn_destination_props.rb', line 39 def expression_type @expression_type end |
#name ⇒ String (readonly)
The name of the new resource.
44 45 46 |
# File 'io_t_wireless/cfn_destination_props.rb', line 44 def name @name end |
#role_arn ⇒ String? (readonly)
The ARN of the IAM Role that authorizes the destination.
56 57 58 |
# File 'io_t_wireless/cfn_destination_props.rb', line 56 def role_arn @role_arn end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags are an array of key-value pairs to attach to the specified resource.
Tags can have a minimum of 0 and a maximum of 50 items.
63 64 65 |
# File 'io_t_wireless/cfn_destination_props.rb', line 63 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
65 66 67 68 69 70 71 72 73 74 |
# File 'io_t_wireless/cfn_destination_props.rb', line 65 def self.jsii_properties { :expression => "expression", :expression_type => "expressionType", :name => "name", :description => "description", :role_arn => "roleArn", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'io_t_wireless/cfn_destination_props.rb', line 76 def to_jsii result = {} result.merge!({ "expression" => @expression, "expressionType" => @expression_type, "name" => @name, "description" => @description, "roleArn" => @role_arn, "tags" => @tags, }) result.compact end |