AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::CloudFormation::ResourceDefaultVersion

CfnResourceDefaultVersion

The `AWS::CloudFormation::ResourceDefaultVersion` resource specifies the default version of a resource. The default version of a resource will be used in CloudFormation operations. For information about the CloudFormation registry, see [Managing extensions with the CloudFormation registry](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry.html) in the *CloudFormation User Guide* .

Import

import { CfnResourceDefaultVersion } from 'aws-cdk-lib/aws-cloudformation';

Or use the module namespace:

import * as cloudformation from 'aws-cdk-lib/aws-cloudformation';
// cloudformation.CfnResourceDefaultVersion

Properties

Configuration passed to the constructor as CfnResourceDefaultVersionProps.

typeNameOptional
string

The name of the resource. Conditional: You must specify either `TypeVersionArn` , or `TypeName` and `VersionId` .

typeVersionArnOptional
string | IResourceVersionRef

The Amazon Resource Name (ARN) of the resource version. Conditional: You must specify either `TypeVersionArn` , or `TypeName` and `VersionId` .

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

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter