Class: AWSCDK::Greengrass::CfnResourceDefinitionVersionProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
greengrass/cfn_resource_definition_version_props.rb

Overview

Properties for defining a CfnResourceDefinitionVersion.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource_definition_id:, resources:) ⇒ CfnResourceDefinitionVersionProps

Returns a new instance of CfnResourceDefinitionVersionProps.

Parameters:



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_idString (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

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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