AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::CloudFormation::HookDefaultVersion

CfnHookDefaultVersion

The `AWS::CloudFormation::HookDefaultVersion` resource specifies the default version of a Hook. The default version of the Hook is used in CloudFormation operations for this AWS account and AWS Region . 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* . This resource type is not compatible with Guard and Lambda Hooks.

Import

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

Or use the module namespace:

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

Properties

Configuration passed to the constructor as CfnHookDefaultVersionProps.

typeNameOptional
string

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

typeVersionArnOptional
string

The version ID of the type configuration. You must specify either `TypeVersionArn` , or `TypeName` and `VersionId` .

versionIdOptional
string

The version ID of the type specified. 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