Class: AWSCDK::Greengrass::CfnResourceDefinition::ResourceDefinitionVersionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Greengrass::CfnResourceDefinition::ResourceDefinitionVersionProperty
- Defined in:
- greengrass/cfn_resource_definition.rb
Overview
A resource definition version contains a list of resources. (In CloudFormation , resources are named resource instances .).
After you create a resource definition version that contains the resources you want to deploy, you must add it to your group version. For more information, see
AWS::Greengrass::Group.
In an CloudFormation template, ResourceDefinitionVersion is the property type of the InitialVersion property in the AWS::Greengrass::ResourceDefinition resource.
Instance Attribute Summary collapse
-
#resources ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Greengrass::CfnResourceDefinition::ResourceInstanceProperty>
readonly
The resources in this version.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(resources:) ⇒ ResourceDefinitionVersionProperty
constructor
A new instance of ResourceDefinitionVersionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(resources:) ⇒ ResourceDefinitionVersionProperty
Returns a new instance of ResourceDefinitionVersionProperty.
843 844 845 846 |
# File 'greengrass/cfn_resource_definition.rb', line 843 def initialize(resources:) @resources = resources Jsii::Type.check_type(@resources, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZ3JlZW5ncmFzcy5DZm5SZXNvdXJjZURlZmluaXRpb24uUmVzb3VyY2VJbnN0YW5jZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "resources") end |
Instance Attribute Details
#resources ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Greengrass::CfnResourceDefinition::ResourceInstanceProperty> (readonly)
The resources in this version.
852 853 854 |
# File 'greengrass/cfn_resource_definition.rb', line 852 def resources @resources end |
Class Method Details
.jsii_properties ⇒ Object
854 855 856 857 858 |
# File 'greengrass/cfn_resource_definition.rb', line 854 def self.jsii_properties { :resources => "resources", } end |
Instance Method Details
#to_jsii ⇒ Object
860 861 862 863 864 865 866 |
# File 'greengrass/cfn_resource_definition.rb', line 860 def to_jsii result = {} result.merge!({ "resources" => @resources, }) result.compact end |