# HookTargetProperty

Hook targets are the destination where hooks will be invoked against.

- Source: Generated at build time
- Type last changed: v2.182.0 · 5 Mar 2025

## Example

TypeScript:

```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 hookTargetProperty: cloudformation.CfnLambdaHook.HookTargetProperty = {
  action: 'action',
  invocationPoint: 'invocationPoint',
  targetName: 'targetName',
};
```

Python:

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

hook_target_property = cloudformation.CfnLambdaHook.HookTargetProperty(
    action="action",
    invocation_point="invocationPoint",
    target_name="targetName"
)
```

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.services.cloudformation.*;

HookTargetProperty hookTargetProperty = HookTargetProperty.builder()
        .action("action")
        .invocationPoint("invocationPoint")
        .targetName("targetName")
        .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.AWS.CloudFormation;

var hookTargetProperty = new HookTargetProperty {
    Action = "action",
    InvocationPoint = "invocationPoint",
    TargetName = "targetName"
};
```

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 "github.com/aws/aws-cdk-go/awscdk"

hookTargetProperty := &HookTargetProperty{
	Action: jsii.String("action"),
	InvocationPoint: jsii.String("invocationPoint"),
	TargetName: jsii.String("targetName"),
}
```

## Properties

- `action`: string (required) — Target actions are the type of operation hooks will be executed at.

- `invocationPoint`: string (required) — Invocation points are the point in provisioning workflow where hooks will be executed.

- `targetName`: string (required) — Type name of hook target.

  Hook targets are the destination where hooks will be invoked against.
