Class: AWSCDK::Greengrass::CfnResourceDefinition::ResourceDefinitionVersionProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resources:) ⇒ ResourceDefinitionVersionProperty

Returns a new instance of ResourceDefinitionVersionProperty.

Parameters:



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

Class Method Details

.jsii_propertiesObject



854
855
856
857
858
# File 'greengrass/cfn_resource_definition.rb', line 854

def self.jsii_properties
  {
    :resources => "resources",
  }
end

Instance Method Details

#to_jsiiObject



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