Class: AWSCDK::Greengrassv2::CfnComponentVersion::ComponentPlatformProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Greengrassv2::CfnComponentVersion::ComponentPlatformProperty
- Defined in:
- greengrassv2/cfn_component_version.rb
Overview
Contains information about a platform that a component supports.
Instance Attribute Summary collapse
-
#attributes ⇒ AWSCDK::IResolvable, ...
readonly
A dictionary of attributes for the platform.
-
#name ⇒ String?
readonly
The friendly name of the platform.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes: nil, name: nil) ⇒ ComponentPlatformProperty
constructor
A new instance of ComponentPlatformProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(attributes: nil, name: nil) ⇒ ComponentPlatformProperty
Returns a new instance of ComponentPlatformProperty.
628 629 630 631 632 633 |
# File 'greengrassv2/cfn_component_version.rb', line 628 def initialize(attributes: nil, name: nil) @attributes = attributes Jsii::Type.check_type(@attributes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "attributes") unless @attributes.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? end |
Instance Attribute Details
#attributes ⇒ AWSCDK::IResolvable, ... (readonly)
A dictionary of attributes for the platform.
The AWS IoT Greengrass Core software defines the os and platform by default. You can specify additional platform attributes for a core device when you deploy the AWS IoT Greengrass nucleus component. For more information, see the AWS IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer Guide .
641 642 643 |
# File 'greengrassv2/cfn_component_version.rb', line 641 def attributes @attributes end |
#name ⇒ String? (readonly)
The friendly name of the platform. This name helps you identify the platform.
If you omit this parameter, AWS IoT Greengrass creates a friendly name from the os and architecture of the platform.
648 649 650 |
# File 'greengrassv2/cfn_component_version.rb', line 648 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
650 651 652 653 654 655 |
# File 'greengrassv2/cfn_component_version.rb', line 650 def self.jsii_properties { :attributes => "attributes", :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
657 658 659 660 661 662 663 664 |
# File 'greengrassv2/cfn_component_version.rb', line 657 def to_jsii result = {} result.merge!({ "attributes" => @attributes, "name" => @name, }) result.compact end |