# CfnModuleDefaultVersionProps

Properties for defining a `CfnModuleDefaultVersion`.

Extends: CfnModuleDefaultVersionProps
Used as props by: CfnModuleDefaultVersion

- Source: Generated code
- Type last changed: v2.227.0 · 21 Nov 2025

## 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 cfnModuleDefaultVersionProps: cdk.CfnModuleDefaultVersionProps = {
  arn: 'arn',
  moduleName: 'moduleName',
  versionId: 'versionId',
};
```

## Properties

- `arn`: string | [IModuleVersionRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_cloudformation.IModuleVersionRef.html) — 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` .

- `moduleName`: string — The name of the module.

  Conditional: You must specify either `Arn` , or `ModuleName` and `VersionId` .

- `versionId`: string — The ID for the specific version of the module.

  Conditional: You must specify either `Arn` , or `ModuleName` and `VersionId` .
