Class: AWSCDK::CfnModuleDefaultVersionProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CfnModuleDefaultVersionProps
- Defined in:
- cfn_module_default_version_props.rb
Overview
Properties for defining a CfnModuleDefaultVersion.
Instance Attribute Summary collapse
-
#arn ⇒ String, ...
readonly
The Amazon Resource Name (ARN) of the module version to set as the default version.
-
#module_name ⇒ String?
readonly
The name of the module.
-
#version_id ⇒ String?
readonly
The ID for the specific version of the module.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(arn: nil, module_name: nil, version_id: nil) ⇒ CfnModuleDefaultVersionProps
constructor
A new instance of CfnModuleDefaultVersionProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(arn: nil, module_name: nil, version_id: nil) ⇒ CfnModuleDefaultVersionProps
Returns a new instance of CfnModuleDefaultVersionProps.
12 13 14 15 16 17 18 19 |
# File '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
#arn ⇒ String, ... (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 'cfn_module_default_version_props.rb', line 27 def arn @arn end |
#module_name ⇒ String? (readonly)
The name of the module.
Conditional: You must specify either Arn , or ModuleName and VersionId .
34 35 36 |
# File 'cfn_module_default_version_props.rb', line 34 def module_name @module_name end |
#version_id ⇒ String? (readonly)
The ID for the specific version of the module.
Conditional: You must specify either Arn , or ModuleName and VersionId .
41 42 43 |
# File 'cfn_module_default_version_props.rb', line 41 def version_id @version_id end |
Class Method Details
.jsii_properties ⇒ Object
43 44 45 46 47 48 49 |
# File '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_jsii ⇒ Object
51 52 53 54 55 56 57 58 59 |
# File '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 |