# CfnResourceDefaultVersionProps

Properties for defining a `CfnResourceDefaultVersion`.

Used as props by: [CfnResourceDefaultVersion](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnResourceDefaultVersion.html)

- Source: Generated at build time
- Type last changed: v2.227.0 · 21 Nov 2025

## Example

TypeScript:

```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 cfnResourceDefaultVersionProps: cdk.CfnResourceDefaultVersionProps = {
  typeName: 'typeName',
  typeVersionArn: 'typeVersionArn',
  versionId: 'versionId',
};
```

Python:

```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_resource_default_version_props = cdk.CfnResourceDefaultVersionProps(
    type_name="typeName",
    type_version_arn="typeVersionArn",
    version_id="versionId"
)
```

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.*;

CfnResourceDefaultVersionProps cfnResourceDefaultVersionProps = CfnResourceDefaultVersionProps.builder()
        .typeName("typeName")
        .typeVersionArn("typeVersionArn")
        .versionId("versionId")
        .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;

var cfnResourceDefaultVersionProps = new CfnResourceDefaultVersionProps {
    TypeName = "typeName",
    TypeVersionArn = "typeVersionArn",
    VersionId = "versionId"
};
```

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 cdk "github.com/aws/aws-cdk-go/awscdk"

cfnResourceDefaultVersionProps := &CfnResourceDefaultVersionProps{
	TypeName: jsii.String("typeName"),
	TypeVersionArn: jsii.String("typeVersionArn"),
	VersionId: jsii.String("versionId"),
}
```

## Properties

- `typeName`: string — The name of the resource.

  Conditional: You must specify either `TypeVersionArn` , or `TypeName` and `VersionId` .

- `typeVersionArn`: string | [IResourceVersionRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_cloudformation.IResourceVersionRef.html) — The Amazon Resource Name (ARN) of the resource version.

  Conditional: You must specify either `TypeVersionArn` , or `TypeName` and `VersionId` .

- `versionId`: string — The ID of a specific version of the resource.

  The version ID is the value at the end of the Amazon Resource Name (ARN) assigned to the resource version when it's registered.

  Conditional: You must specify either `TypeVersionArn` , or `TypeName` and `VersionId` .
