Class: AWSCDK::IoTFleetWise::CfnFleetProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_fleet_wise/cfn_fleet_props.rb

Overview

Properties for defining a CfnFleet.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, signal_catalog_arn:, description: nil, tags: nil) ⇒ CfnFleetProps

Returns a new instance of CfnFleetProps.

Parameters:

  • id (String)

    The unique ID of the fleet.

  • signal_catalog_arn (String)

    The ARN of the signal catalog associated with the fleet.

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

    A brief description of the fleet.

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

    Metadata that can be used to manage the fleet.



13
14
15
16
17
18
19
20
21
22
# File 'io_t_fleet_wise/cfn_fleet_props.rb', line 13

def initialize(id:, signal_catalog_arn:, description: nil, tags: nil)
  @id = id
  Jsii::Type.check_type(@id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id")
  @signal_catalog_arn = signal_catalog_arn
  Jsii::Type.check_type(@signal_catalog_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "signalCatalogArn")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.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)

A brief description of the fleet.



38
39
40
# File 'io_t_fleet_wise/cfn_fleet_props.rb', line 38

def description
  @description
end

#idString (readonly)

The unique ID of the fleet.



28
29
30
# File 'io_t_fleet_wise/cfn_fleet_props.rb', line 28

def id
  @id
end

#signal_catalog_arnString (readonly)

The ARN of the signal catalog associated with the fleet.



33
34
35
# File 'io_t_fleet_wise/cfn_fleet_props.rb', line 33

def signal_catalog_arn
  @signal_catalog_arn
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

Metadata that can be used to manage the fleet.



43
44
45
# File 'io_t_fleet_wise/cfn_fleet_props.rb', line 43

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
52
# File 'io_t_fleet_wise/cfn_fleet_props.rb', line 45

def self.jsii_properties
  {
    :id => "id",
    :signal_catalog_arn => "signalCatalogArn",
    :description => "description",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



54
55
56
57
58
59
60
61
62
63
# File 'io_t_fleet_wise/cfn_fleet_props.rb', line 54

def to_jsii
  result = {}
  result.merge!({
    "id" => @id,
    "signalCatalogArn" => @signal_catalog_arn,
    "description" => @description,
    "tags" => @tags,
  })
  result.compact
end