Class: AWSCDK::Greengrass::CfnCoreDefinitionVersionProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Greengrass::CfnCoreDefinitionVersionProps
- Defined in:
- greengrass/cfn_core_definition_version_props.rb
Overview
Properties for defining a CfnCoreDefinitionVersion.
Instance Attribute Summary collapse
-
#core_definition_id ⇒ String
readonly
The ID of the core definition associated with this version.
-
#cores ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Greengrass::CfnCoreDefinitionVersion::CoreProperty>
readonly
The Greengrass core in this version.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(core_definition_id:, cores:) ⇒ CfnCoreDefinitionVersionProps
constructor
A new instance of CfnCoreDefinitionVersionProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(core_definition_id:, cores:) ⇒ CfnCoreDefinitionVersionProps
Returns a new instance of CfnCoreDefinitionVersionProps.
11 12 13 14 15 16 |
# File 'greengrass/cfn_core_definition_version_props.rb', line 11 def initialize(core_definition_id:, cores:) @core_definition_id = core_definition_id Jsii::Type.check_type(@core_definition_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "coreDefinitionId") @cores = cores Jsii::Type.check_type(@cores, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZ3JlZW5ncmFzcy5DZm5Db3JlRGVmaW5pdGlvblZlcnNpb24uQ29yZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "cores") end |
Instance Attribute Details
#core_definition_id ⇒ String (readonly)
The ID of the core definition associated with this version.
This value is a GUID.
24 25 26 |
# File 'greengrass/cfn_core_definition_version_props.rb', line 24 def core_definition_id @core_definition_id end |
#cores ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Greengrass::CfnCoreDefinitionVersion::CoreProperty> (readonly)
The Greengrass core in this version.
Currently, the Cores property for a core definition version can contain only one core.
31 32 33 |
# File 'greengrass/cfn_core_definition_version_props.rb', line 31 def cores @cores end |
Class Method Details
.jsii_properties ⇒ Object
33 34 35 36 37 38 |
# File 'greengrass/cfn_core_definition_version_props.rb', line 33 def self.jsii_properties { :core_definition_id => "coreDefinitionId", :cores => "cores", } end |
Instance Method Details
#to_jsii ⇒ Object
40 41 42 43 44 45 46 47 |
# File 'greengrass/cfn_core_definition_version_props.rb', line 40 def to_jsii result = {} result.merge!({ "coreDefinitionId" => @core_definition_id, "cores" => @cores, }) result.compact end |