# CfnHookProps

Construction properties of `CfnHook`.

Used as props by: [CfnHook](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnHook.html)

- Source: [`core/lib/cfn-hook.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/core/lib/cfn-hook.ts#L8)

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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 }
    }
};
```

Golang:

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

- `properties`: { [key: string]: any } — The properties of the hook.

  **Default:** no properties

- `type`: string (required) — The type of the hook (for example, "AWS::CodeDeploy::BlueGreen").
