CfnModuleVersionProps Struct
Properties for defining a CfnModuleVersion.
| Source |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const cfnModuleVersionProps: cdk.CfnModuleVersionProps = {
moduleName: 'moduleName',
modulePackage: 'modulePackage',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
cfn_module_version_props = cdk.CfnModuleVersionProps(
module_name="moduleName",
module_package="modulePackage"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
CfnModuleVersionProps cfnModuleVersionProps = CfnModuleVersionProps.builder()
.moduleName("moduleName")
.modulePackage("modulePackage")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
var cfnModuleVersionProps = new CfnModuleVersionProps {
ModuleName = "moduleName",
ModulePackage = "modulePackage"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import cdk "github.com/aws/aws-cdk-go/awscdk"
cfnModuleVersionProps := &CfnModuleVersionProps{
ModuleName: jsii.String("moduleName"),
ModulePackage: jsii.String("modulePackage"),
}
Properties
The name of the module being registered.
modulePackagestringmodule_packagestrmodulePackageStringModulePackagestringModulePackage*string required #A URL to the S3 bucket for the package that contains the template fragment and schema files for the module version to register.
notes
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.