Class: AWSCDK::Greengrass::CfnCoreDefinition::CoreDefinitionVersionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Greengrass::CfnCoreDefinition::CoreDefinitionVersionProperty
- Defined in:
- greengrass/cfn_core_definition.rb
Overview
A core definition version contains a Greengrass core .
After you create a core definition version that contains the core you want to deploy, you must add it to your group version. For more information, see
AWS::Greengrass::Group.
In an CloudFormation template, CoreDefinitionVersion is the property type of the InitialVersion property in the AWS::Greengrass::CoreDefinition resource.
Instance Attribute Summary collapse
-
#cores ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Greengrass::CfnCoreDefinition::CoreProperty>
readonly
The Greengrass core in this version.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cores:) ⇒ CoreDefinitionVersionProperty
constructor
A new instance of CoreDefinitionVersionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cores:) ⇒ CoreDefinitionVersionProperty
Returns a new instance of CoreDefinitionVersionProperty.
605 606 607 608 |
# File 'greengrass/cfn_core_definition.rb', line 605 def initialize(cores:) @cores = cores Jsii::Type.check_type(@cores, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZ3JlZW5ncmFzcy5DZm5Db3JlRGVmaW5pdGlvbi5Db3JlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "cores") end |
Instance Attribute Details
#cores ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Greengrass::CfnCoreDefinition::CoreProperty> (readonly)
The Greengrass core in this version.
Currently, the Cores property for a core definition version can contain only one core.
616 617 618 |
# File 'greengrass/cfn_core_definition.rb', line 616 def cores @cores end |
Class Method Details
.jsii_properties ⇒ Object
618 619 620 621 622 |
# File 'greengrass/cfn_core_definition.rb', line 618 def self.jsii_properties { :cores => "cores", } end |
Instance Method Details
#to_jsii ⇒ Object
624 625 626 627 628 629 630 |
# File 'greengrass/cfn_core_definition.rb', line 624 def to_jsii result = {} result.merge!({ "cores" => @cores, }) result.compact end |