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 { aws_cloudformation as cloudformation } from 'aws-cdk-lib';
const cfnModuleVersionProps: cloudformation.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.
from aws_cdk import aws_cloudformation as cloudformation
cfn_module_version_props = cloudformation.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.services.cloudformation.*;
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.AWS.CloudFormation;
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 "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.