Class: AWSCDK::IoTFleetWise::CfnFleetProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTFleetWise::CfnFleetProps
- Defined in:
- io_t_fleet_wise/cfn_fleet_props.rb
Overview
Properties for defining a CfnFleet.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
A brief description of the fleet.
-
#id ⇒ String
readonly
The unique ID of the fleet.
-
#signal_catalog_arn ⇒ String
readonly
The ARN of the signal catalog associated with the fleet.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
Metadata that can be used to manage the fleet.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, signal_catalog_arn:, description: nil, tags: nil) ⇒ CfnFleetProps
constructor
A new instance of CfnFleetProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(id:, signal_catalog_arn:, description: nil, tags: nil) ⇒ CfnFleetProps
Returns a new instance of CfnFleetProps.
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 = .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)
A brief description of the fleet.
38 39 40 |
# File 'io_t_fleet_wise/cfn_fleet_props.rb', line 38 def description @description end |
#id ⇒ String (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_arn ⇒ String (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 |
#tags ⇒ Array<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 end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |