Skip to content
v2.276.0

CfnHookProps Struct ​

Construction properties of CfnHook.

Example ​

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';

declare const properties: any;
const cfnHookProps: cdk.CfnHookProps = {
  type: 'type',

  // the properties below are optional
  properties: {
    propertiesKey: properties,
  },
};
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

# properties: Any

cfn_hook_props = cdk.CfnHookProps(
    type="type",

    # the properties below are optional
    properties={
        "properties_key": properties
    }
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;

Object properties;

CfnHookProps cfnHookProps = CfnHookProps.builder()
        .type("type")

        // the properties below are optional
        .properties(Map.of(
                "propertiesKey", properties))
        .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;

var properties;

var cfnHookProps = new CfnHookProps {
    Type = "type",

    // the properties below are optional
    Properties = new Dictionary<string, object> {
        { "propertiesKey", properties }
    }
};
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"

var properties interface{}

cfnHookProps := &CfnHookProps{
	Type: jsii.String("type"),

	// the properties below are optional
	Properties: map[string]interface{}{
		"propertiesKey": properties,
	},
}

Properties ​

propertiesoptional{ [key: string]: any }propertiesoptionaltyping.Mapping[str, Any]propertiesoptionalMap<String, Object>PropertiesoptionalIDictionary<string, object>Propertiesoptional*map[string]interface{}#
The properties of the hook.

Default: no properties

typestringtypestrtypeStringTypestringType*stringrequired#
The type of the hook (for example, "AWS::CodeDeploy::BlueGreen").