Class: AWSCDK::CfnModuleVersionProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CfnModuleVersionProps
- Defined in:
- cfn_module_version_props.rb
Overview
Properties for defining a CfnModuleVersion.
Instance Attribute Summary collapse
-
#module_name ⇒ String
readonly
The name of the module being registered.
-
#module_package ⇒ String
readonly
A URL to the S3 bucket for the package that contains the template fragment and schema files for the module version to register.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(module_name:, module_package:) ⇒ CfnModuleVersionProps
constructor
A new instance of CfnModuleVersionProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(module_name:, module_package:) ⇒ CfnModuleVersionProps
Returns a new instance of CfnModuleVersionProps.
11 12 13 14 15 16 |
# File 'cfn_module_version_props.rb', line 11 def initialize(module_name:, module_package:) @module_name = module_name Jsii::Type.check_type(@module_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "moduleName") @module_package = module_package Jsii::Type.check_type(@module_package, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "modulePackage") end |
Instance Attribute Details
#module_name ⇒ String (readonly)
The name of the module being registered.
22 23 24 |
# File 'cfn_module_version_props.rb', line 22 def module_name @module_name end |
#module_package ⇒ String (readonly)
A URL to the S3 bucket for the package that contains the template fragment and schema files for the module version to register.
For more information, see Module structure and requirements in the CloudFormation Command Line Interface (CLI) User Guide .
To register the module version, you must have
s3:GetObjectpermissions to access the S3 objects.
31 32 33 |
# File 'cfn_module_version_props.rb', line 31 def module_package @module_package end |
Class Method Details
.jsii_properties ⇒ Object
33 34 35 36 37 38 |
# File 'cfn_module_version_props.rb', line 33 def self.jsii_properties { :module_name => "moduleName", :module_package => "modulePackage", } end |
Instance Method Details
#to_jsii ⇒ Object
40 41 42 43 44 45 46 47 |
# File 'cfn_module_version_props.rb', line 40 def to_jsii result = {} result.merge!({ "moduleName" => @module_name, "modulePackage" => @module_package, }) result.compact end |