# HttpPostLifecycleHookActionProperty

Sends an HTTP POST to the agent's container.

Any 2xx response ends the hook; anything else fails it. The path and port must not be a route the platform already calls on the container, such as the protocol's invocation path or the default health check.

- 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 httpPostLifecycleHookActionProperty: bedrockagentcore.CfnRuntime.HttpPostLifecycleHookActionProperty = {
  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

http_post_lifecycle_hook_action_property = 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.*;

HttpPostLifecycleHookActionProperty httpPostLifecycleHookActionProperty = HttpPostLifecycleHookActionProperty.builder()
        .path("path")

        // the properties below are optional
        .port(123)
        .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 httpPostLifecycleHookActionProperty = 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"

httpPostLifecycleHookActionProperty := &HttpPostLifecycleHookActionProperty{
	Path: jsii.String("path"),

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

## Properties

- `path`: string (required) — Path the platform sends the POST to.

  Must start with a slash.

- `port`: number — Port in the agent's container the platform sends the POST to.

  Defaults to the runtime's server port.
