# LifecycleHookProperty

A lifecycle hook and the action it runs.

- Source: Generated at build time
- Type last changed: v2.277.0 · 13 Nov 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const lifecycleHookProperty: bedrockagentcore.CfnRuntime.LifecycleHookProperty = {
  action: {
    httpPost: {
      path: 'path',

      // the properties below are optional
      port: 123,
    },
  },
};
```

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_bedrockagentcore as bedrockagentcore

lifecycle_hook_property = bedrockagentcore.CfnRuntime.LifecycleHookProperty(
    action=bedrockagentcore.CfnRuntime.LifecycleHookActionProperty(
        http_post=bedrockagentcore.CfnRuntime.HttpPostLifecycleHookActionProperty(
            path="path",

            # the properties below are optional
            port=123
        )
    )
)
```

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.bedrockagentcore.*;

LifecycleHookProperty lifecycleHookProperty = LifecycleHookProperty.builder()
        .action(LifecycleHookActionProperty.builder()
                .httpPost(HttpPostLifecycleHookActionProperty.builder()
                        .path("path")

                        // the properties below are optional
                        .port(123)
                        .build())
                .build())
        .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.BedrockAgentCore;

var lifecycleHookProperty = new LifecycleHookProperty {
    Action = new LifecycleHookActionProperty {
        HttpPost = new HttpPostLifecycleHookActionProperty {
            Path = "path",

            // the properties below are optional
            Port = 123
        }
    }
};
```

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"

lifecycleHookProperty := &LifecycleHookProperty{
	Action: &LifecycleHookActionProperty{
		HttpPost: &HttpPostLifecycleHookActionProperty{
			Path: jsii.String("path"),

			// the properties below are optional
			Port: jsii.Number(123),
		},
	},
}
```

## Properties

- `action`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnRuntime.LifecycleHookActionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnRuntime.LifecycleHookActionProperty.html) (required) — The action a lifecycle hook runs.

  HttpPost is the only action.
