Class: AWSCDK::IoTWireless::CfnDestinationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_wireless/cfn_destination_props.rb

Overview

Properties for defining a CfnDestination.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(expression:, expression_type:, name:, description: nil, role_arn: nil, tags: nil) ⇒ CfnDestinationProps

Returns a new instance of CfnDestinationProps.

Parameters:

  • expression (String)

    The rule name to send messages to.

  • expression_type (String)

    The type of value in Expression .

  • name (String)

    The name of the new resource.

  • description (String, nil) (defaults to: nil)

    The description of the new resource.

  • role_arn (String, nil) (defaults to: nil)

    The ARN of the IAM Role that authorizes the destination.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    The tags are an array of key-value pairs to attach to the specified resource.



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#descriptionString? (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

#expressionString (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_typeString (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

#nameString (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_arnString? (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

#tagsArray<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
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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