Skip to content
v2.278.0

CfnHookDefaultVersionProps Struct ​

Properties for defining a CfnHookDefaultVersion.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudformation as cloudformation } from 'aws-cdk-lib';
const cfnHookDefaultVersionProps: cloudformation.CfnHookDefaultVersionProps = {
  typeName: 'typeName',
  typeVersionArn: 'typeVersionArn',
  versionId: 'versionId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudformation as cloudformation

cfn_hook_default_version_props = cloudformation.CfnHookDefaultVersionProps(
    type_name="typeName",
    type_version_arn="typeVersionArn",
    version_id="versionId"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudformation.*;

CfnHookDefaultVersionProps cfnHookDefaultVersionProps = CfnHookDefaultVersionProps.builder()
        .typeName("typeName")
        .typeVersionArn("typeVersionArn")
        .versionId("versionId")
        .build();
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.AWS.CloudFormation;

var cfnHookDefaultVersionProps = new CfnHookDefaultVersionProps {
    TypeName = "typeName",
    TypeVersionArn = "typeVersionArn",
    VersionId = "versionId"
};
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 "github.com/aws/aws-cdk-go/awscdk"

cfnHookDefaultVersionProps := &CfnHookDefaultVersionProps{
	TypeName: jsii.String("typeName"),
	TypeVersionArn: jsii.String("typeVersionArn"),
	VersionId: jsii.String("versionId"),
}

Properties ​

typeNameoptionalstringtype_nameoptionalstrtypeNameoptionalStringTypeNameoptionalstringTypeNameoptional*string #
The name of the Hook.

You must specify either TypeVersionArn , or TypeName and VersionId .

typeVersionArnoptionalstringtype_version_arnoptionalstrtypeVersionArnoptionalStringTypeVersionArnoptionalstringTypeVersionArnoptional*string #
The version ID of the type configuration.

You must specify either TypeVersionArn , or TypeName and VersionId .

versionIdoptionalstringversion_idoptionalstrversionIdoptionalStringVersionIdoptionalstringVersionIdoptional*string #
The version ID of the type specified.

You must specify either TypeVersionArn , or TypeName and VersionId .