# CfnModuleVersionProps

Properties for defining a `CfnModuleVersion`.

Used as props by: [CfnModuleVersion](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudformation.CfnModuleVersion.html)

- Source: Generated at build time

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `moduleName`: string (required) — The name of the module being registered.

- `modulePackage`: 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.

  For more information, see [Module structure and requirements](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/modules-structure.html) in the *CloudFormation Command Line Interface (CLI) User Guide* .

  > To register the module version, you must have `s3:GetObject` permissions to access the S3 objects.
