Class: AWSCDK::IoTFleetWise::CfnDecoderManifestProps

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

Overview

Properties for defining a CfnDecoderManifest.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(model_manifest_arn:, name:, default_for_unmapped_signals: nil, description: nil, network_interfaces: nil, signal_decoders: nil, status: nil, tags: nil) ⇒ CfnDecoderManifestProps

Returns a new instance of CfnDecoderManifestProps.

Parameters:



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'io_t_fleet_wise/cfn_decoder_manifest_props.rb', line 17

def initialize(model_manifest_arn:, name:, default_for_unmapped_signals: nil, description: nil, network_interfaces: nil, signal_decoders: nil, status: nil, tags: nil)
  @model_manifest_arn = model_manifest_arn
  Jsii::Type.check_type(@model_manifest_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "modelManifestArn")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @default_for_unmapped_signals = default_for_unmapped_signals
  Jsii::Type.check_type(@default_for_unmapped_signals, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "defaultForUnmappedSignals") unless @default_for_unmapped_signals.nil?
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @network_interfaces = network_interfaces
  Jsii::Type.check_type(@network_interfaces, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaW90ZmxlZXR3aXNlLkNmbkRlY29kZXJNYW5pZmVzdC5OZXR3b3JrSW50ZXJmYWNlc0l0ZW1zUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "networkInterfaces") unless @network_interfaces.nil?
  @signal_decoders = signal_decoders
  Jsii::Type.check_type(@signal_decoders, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaW90ZmxlZXR3aXNlLkNmbkRlY29kZXJNYW5pZmVzdC5TaWduYWxEZWNvZGVyc0l0ZW1zUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "signalDecoders") unless @signal_decoders.nil?
  @status = status
  Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status") unless @status.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

#default_for_unmapped_signalsString? (readonly)

Use default decoders for all unmapped signals in the model.

You don't need to provide any detailed decoding information.



52
53
54
# File 'io_t_fleet_wise/cfn_decoder_manifest_props.rb', line 52

def default_for_unmapped_signals
  @default_for_unmapped_signals
end

#descriptionString? (readonly)

A brief description of the decoder manifest.



57
58
59
# File 'io_t_fleet_wise/cfn_decoder_manifest_props.rb', line 57

def description
  @description
end

#model_manifest_arnString (readonly)

The Amazon Resource Name (ARN) of a vehicle model (model manifest) associated with the decoder manifest.



40
41
42
# File 'io_t_fleet_wise/cfn_decoder_manifest_props.rb', line 40

def model_manifest_arn
  @model_manifest_arn
end

#nameString (readonly)

The name of the decoder manifest.



45
46
47
# File 'io_t_fleet_wise/cfn_decoder_manifest_props.rb', line 45

def name
  @name
end

#network_interfacesAWSCDK::IResolvable, ... (readonly)

A list of information about available network interfaces.



62
63
64
# File 'io_t_fleet_wise/cfn_decoder_manifest_props.rb', line 62

def network_interfaces
  @network_interfaces
end

#signal_decodersAWSCDK::IResolvable, ... (readonly)

A list of information about signal decoders.



67
68
69
# File 'io_t_fleet_wise/cfn_decoder_manifest_props.rb', line 67

def signal_decoders
  @signal_decoders
end

#statusString? (readonly)

Note:

Default: - "DRAFT"

The state of the decoder manifest.

If the status is ACTIVE , the decoder manifest can't be edited. If the status is marked DRAFT , you can edit the decoder manifest.



75
76
77
# File 'io_t_fleet_wise/cfn_decoder_manifest_props.rb', line 75

def status
  @status
end

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

Metadata that can be used to manage the decoder manifest.



80
81
82
# File 'io_t_fleet_wise/cfn_decoder_manifest_props.rb', line 80

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



82
83
84
85
86
87
88
89
90
91
92
93
# File 'io_t_fleet_wise/cfn_decoder_manifest_props.rb', line 82

def self.jsii_properties
  {
    :model_manifest_arn => "modelManifestArn",
    :name => "name",
    :default_for_unmapped_signals => "defaultForUnmappedSignals",
    :description => "description",
    :network_interfaces => "networkInterfaces",
    :signal_decoders => "signalDecoders",
    :status => "status",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



95
96
97
98
99
100
101
102
103
104
105
106
107
108
# File 'io_t_fleet_wise/cfn_decoder_manifest_props.rb', line 95

def to_jsii
  result = {}
  result.merge!({
    "modelManifestArn" => @model_manifest_arn,
    "name" => @name,
    "defaultForUnmappedSignals" => @default_for_unmapped_signals,
    "description" => @description,
    "networkInterfaces" => @network_interfaces,
    "signalDecoders" => @signal_decoders,
    "status" => @status,
    "tags" => @tags,
  })
  result.compact
end