Skip to content
v2.277.0

RuntimeHooksConfigurationProperty Struct Added in v2.277.0 ​

Lifecycle hooks that the platform runs at fixed points in the runtime's lifecycle.

Example ​

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 runtimeHooksConfigurationProperty: bedrockagentcore.CfnRuntime.RuntimeHooksConfigurationProperty = {
  buildProperty: {
    warmup: {
      action: {
        httpPost: {
          path: 'path',

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

runtime_hooks_configuration_property = bedrockagentcore.CfnRuntime.RuntimeHooksConfigurationProperty(
    build_property=bedrockagentcore.CfnRuntime.BuildLifecycleHooksProperty(
        warmup=bedrockagentcore.CfnRuntime.LifecycleHookProperty(
            action=bedrockagentcore.CfnRuntime.LifecycleHookActionProperty(
                http_post=bedrockagentcore.CfnRuntime.HttpPostLifecycleHookActionProperty(
                    path="path",

                    # the properties below are optional
                    port=123
                )
            )
        )
    )
)
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.*;

RuntimeHooksConfigurationProperty runtimeHooksConfigurationProperty = RuntimeHooksConfigurationProperty.builder()
        .buildProperty(BuildLifecycleHooksProperty.builder()
                .warmup(LifecycleHookProperty.builder()
                        .action(LifecycleHookActionProperty.builder()
                                .httpPost(HttpPostLifecycleHookActionProperty.builder()
                                        .path("path")

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

var runtimeHooksConfigurationProperty = new RuntimeHooksConfigurationProperty {
    BuildProperty = new BuildLifecycleHooksProperty {
        Warmup = new LifecycleHookProperty {
            Action = new LifecycleHookActionProperty {
                HttpPost = new HttpPostLifecycleHookActionProperty {
                    Path = "path",

                    // the properties below are optional
                    Port = 123
                }
            }
        }
    }
};
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"

runtimeHooksConfigurationProperty := &RuntimeHooksConfigurationProperty{
	BuildProperty: &BuildLifecycleHooksProperty{
		Warmup: &LifecycleHookProperty{
			Action: &LifecycleHookActionProperty{
				HttpPost: &HttpPostLifecycleHookActionProperty{
					Path: jsii.String("path"),

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

Properties ​

buildPropertyoptionalIResolvable | CfnRuntime.BuildLifecycleHooksPropertybuild_propertyoptionaltyping.Union[IResolvable, BuildLifecycleHooksProperty]buildPropertyoptionalIResolvableBuildPropertyoptionalIResolvableBuildPropertyoptionalinterface{} #
Hooks that run while the platform builds a runtime version, before any session exists.