# AWS::CloudFormation::HookDefaultVersion Set a version as default version for a hook in CloudFormation Registry. ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{ "Type" : "AWS::CloudFormation::HookDefaultVersion", "Properties" : { "TypeVersionArn" : String, "TypeName" : String, "VersionId" : String } }### YAML
Type: AWS::CloudFormation::HookDefaultVersion Properties: TypeVersionArn: String TypeName: String VersionId: String## Properties #### TypeVersionArn The Amazon Resource Name (ARN) of the type version. _Required_: No _Type_: String _Pattern_:
^arn:aws[A-Za-z0-9-]{0,64}:cloudformation:[A-Za-z0-9-]{1,64}:([0-9]{12})?:type/hook/.+$
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### TypeName
The name of the type being registered.
We recommend that type names adhere to the following pattern: company_or_organization::service::type.
_Required_: No
_Type_: String
_Pattern_: ^[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}$
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### VersionId
The ID of an existing version of the hook to set as the default.
_Required_: No
_Type_: String
_Pattern_: ^[A-Za-z0-9-]{1,128}$
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
## Return Values
### Ref
When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the Arn.
### Fn::GetAtt
The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.
For more information about using the `Fn::GetAtt` intrinsic function, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html).
#### Arn
The Amazon Resource Name (ARN) of the type. This is used to uniquely identify a HookDefaultVersion