Class: AWSCDK::CfnResourceDefaultVersionProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cfn_resource_default_version_props.rb

Overview

Properties for defining a CfnResourceDefaultVersion.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type_name: nil, type_version_arn: nil, version_id: nil) ⇒ CfnResourceDefaultVersionProps

Returns a new instance of CfnResourceDefaultVersionProps.

Parameters:

  • type_name (String, nil) (defaults to: nil)

    The name of the resource.

  • type_version_arn (String, AWSCDK::Interfaces::AWSCloudformation::IResourceVersionRef, nil) (defaults to: nil)

    The Amazon Resource Name (ARN) of the resource version.

  • version_id (String, nil) (defaults to: nil)

    The ID of a specific version of the resource.



12
13
14
15
16
17
18
19
# File 'cfn_resource_default_version_props.rb', line 12

def initialize(type_name: nil, type_version_arn: nil, version_id: nil)
  @type_name = type_name
  Jsii::Type.check_type(@type_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "typeName") unless @type_name.nil?
  @type_version_arn = type_version_arn
  Jsii::Type.check_type(@type_version_arn, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19jbG91ZGZvcm1hdGlvbi5JUmVzb3VyY2VWZXJzaW9uUmVmIn1dfX0=")), "typeVersionArn") unless @type_version_arn.nil?
  @version_id = version_id
  Jsii::Type.check_type(@version_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "versionId") unless @version_id.nil?
end

Instance Attribute Details

#type_nameString? (readonly)

The name of the resource.

Conditional: You must specify either TypeVersionArn , or TypeName and VersionId .



27
28
29
# File 'cfn_resource_default_version_props.rb', line 27

def type_name
  @type_name
end

#type_version_arnString, ... (readonly)

The Amazon Resource Name (ARN) of the resource version.

Conditional: You must specify either TypeVersionArn , or TypeName and VersionId .



34
35
36
# File 'cfn_resource_default_version_props.rb', line 34

def type_version_arn
  @type_version_arn
end

#version_idString? (readonly)

The ID of a specific version of the resource.

The version ID is the value at the end of the Amazon Resource Name (ARN) assigned to the resource version when it's registered.

Conditional: You must specify either TypeVersionArn , or TypeName and VersionId .



43
44
45
# File 'cfn_resource_default_version_props.rb', line 43

def version_id
  @version_id
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
# File 'cfn_resource_default_version_props.rb', line 45

def self.jsii_properties
  {
    :type_name => "typeName",
    :type_version_arn => "typeVersionArn",
    :version_id => "versionId",
  }
end

Instance Method Details

#to_jsiiObject



53
54
55
56
57
58
59
60
61
# File 'cfn_resource_default_version_props.rb', line 53

def to_jsii
  result = {}
  result.merge!({
    "typeName" => @type_name,
    "typeVersionArn" => @type_version_arn,
    "versionId" => @version_id,
  })
  result.compact
end