Class: AWSCDK::CloudFormation::CfnModuleDefaultVersionProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cloud_formation/cfn_module_default_version_props.rb

Overview

Properties for defining a CfnModuleDefaultVersion.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arn: nil, module_name: nil, version_id: nil) ⇒ CfnModuleDefaultVersionProps

Returns a new instance of CfnModuleDefaultVersionProps.

Parameters:

  • arn (String, AWSCDK::Interfaces::AWSCloudformation::IModuleVersionRef, nil) (defaults to: nil)

    The Amazon Resource Name (ARN) of the module version to set as the default version.

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

    The name of the module.

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

    The ID for the specific version of the module.



12
13
14
15
16
17
18
19
# File 'cloud_formation/cfn_module_default_version_props.rb', line 12

def initialize(arn: nil, module_name: nil, version_id: nil)
  @arn = arn
  Jsii::Type.check_type(@arn, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19jbG91ZGZvcm1hdGlvbi5JTW9kdWxlVmVyc2lvblJlZiJ9XX19")), "arn") unless @arn.nil?
  @module_name = module_name
  Jsii::Type.check_type(@module_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "moduleName") unless @module_name.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

#arnString, ... (readonly)

The Amazon Resource Name (ARN) of the module version to set as the default version.

Conditional: You must specify either Arn , or ModuleName and VersionId .



27
28
29
# File 'cloud_formation/cfn_module_default_version_props.rb', line 27

def arn
  @arn
end

#module_nameString? (readonly)

The name of the module.

Conditional: You must specify either Arn , or ModuleName and VersionId .



34
35
36
# File 'cloud_formation/cfn_module_default_version_props.rb', line 34

def module_name
  @module_name
end

#version_idString? (readonly)

The ID for the specific version of the module.

Conditional: You must specify either Arn , or ModuleName and VersionId .



41
42
43
# File 'cloud_formation/cfn_module_default_version_props.rb', line 41

def version_id
  @version_id
end

Class Method Details

.jsii_propertiesObject



43
44
45
46
47
48
49
# File 'cloud_formation/cfn_module_default_version_props.rb', line 43

def self.jsii_properties
  {
    :arn => "arn",
    :module_name => "moduleName",
    :version_id => "versionId",
  }
end

Instance Method Details

#to_jsiiObject



51
52
53
54
55
56
57
58
59
# File 'cloud_formation/cfn_module_default_version_props.rb', line 51

def to_jsii
  result = {}
  result.merge!({
    "arn" => @arn,
    "moduleName" => @module_name,
    "versionId" => @version_id,
  })
  result.compact
end