Class: AWSCDK::Greengrass::CfnResourceDefinitionVersionProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Greengrass::CfnResourceDefinitionVersionProps
- Defined in:
- greengrass/cfn_resource_definition_version_props.rb
Overview
Properties for defining a CfnResourceDefinitionVersion.
Instance Attribute Summary collapse
-
#resource_definition_id ⇒ String
readonly
The ID of the resource definition associated with this version.
-
#resources ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Greengrass::CfnResourceDefinitionVersion::ResourceInstanceProperty>
readonly
The resources in this version.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(resource_definition_id:, resources:) ⇒ CfnResourceDefinitionVersionProps
constructor
A new instance of CfnResourceDefinitionVersionProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(resource_definition_id:, resources:) ⇒ CfnResourceDefinitionVersionProps
Returns a new instance of CfnResourceDefinitionVersionProps.
11 12 13 14 15 16 |
# File 'greengrass/cfn_resource_definition_version_props.rb', line 11 def initialize(resource_definition_id:, resources:) @resource_definition_id = resource_definition_id Jsii::Type.check_type(@resource_definition_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceDefinitionId") @resources = resources Jsii::Type.check_type(@resources, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZ3JlZW5ncmFzcy5DZm5SZXNvdXJjZURlZmluaXRpb25WZXJzaW9uLlJlc291cmNlSW5zdGFuY2VQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "resources") end |
Instance Attribute Details
#resource_definition_id ⇒ String (readonly)
The ID of the resource definition associated with this version.
This value is a GUID.
24 25 26 |
# File 'greengrass/cfn_resource_definition_version_props.rb', line 24 def resource_definition_id @resource_definition_id end |
#resources ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Greengrass::CfnResourceDefinitionVersion::ResourceInstanceProperty> (readonly)
The resources in this version.
29 30 31 |
# File 'greengrass/cfn_resource_definition_version_props.rb', line 29 def resources @resources end |
Class Method Details
.jsii_properties ⇒ Object
31 32 33 34 35 36 |
# File 'greengrass/cfn_resource_definition_version_props.rb', line 31 def self.jsii_properties { :resource_definition_id => "resourceDefinitionId", :resources => "resources", } end |
Instance Method Details
#to_jsii ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'greengrass/cfn_resource_definition_version_props.rb', line 38 def to_jsii result = {} result.merge!({ "resourceDefinitionId" => @resource_definition_id, "resources" => @resources, }) result.compact end |