Interface RuntimeProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RuntimeProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.129.0 (build eaca441)",
date="2026-05-19T08:18:44.502Z")
@Stability(Stable)
public interface RuntimeProps
extends software.amazon.jsii.JsiiSerializable
Properties for creating a Bedrock Agent Core Runtime resource.
Example:
// S3 bucket containing the agent core
Bucket codeBucket = Bucket.Builder.create(this, "AgentCode")
.bucketName("my-code-bucket")
.removalPolicy(RemovalPolicy.DESTROY)
.build();
// the bucket above needs to contain the agent code
AgentRuntimeArtifact agentRuntimeArtifact = AgentRuntimeArtifact.fromS3(Location.builder()
.bucketName(codeBucket.getBucketName())
.objectKey("deployment_package.zip")
.build(), AgentCoreRuntime.PYTHON_3_12, List.of("opentelemetry-instrument", "main.py"));
Runtime runtimeInstance = Runtime.Builder.create(this, "MyAgentRuntime")
.runtimeName("myAgent")
.agentRuntimeArtifact(agentRuntimeArtifact)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forRuntimePropsstatic final classAn implementation forRuntimeProps -
Method Summary
Modifier and TypeMethodDescriptionstatic RuntimeProps.Builderbuilder()The artifact configuration for the agent runtime Contains the container configuration with ECR URI.default RuntimeAuthorizerConfigurationAuthorizer configuration for the agent runtime Use RuntimeAuthorizerConfiguration static methods to create the configuration.default StringOptional description for the agent runtime.Environment variables for the agent runtime - Maximum 50 environment variables - Key: Must be 1-100 characters, start with letter or underscore, contain only letters, numbers, and underscores - Value: Must be 0-2048 characters (per CloudFormation specification).default IRoleThe IAM role that provides permissions for the agent runtime If not provided, a role will be created automatically.default LifecycleConfigurationThe life cycle configuration for the AgentCore Runtime.default List<LoggingConfig> Logging configuration for the runtime.default RuntimeNetworkConfigurationNetwork configuration for the agent runtime.default ProtocolTypeProtocol configuration for the agent runtime.default RequestHeaderConfigurationConfiguration for HTTP request headers that will be passed through to the runtime.default StringThe name of the agent runtime Valid characters are a-z, A-Z, 0-9, _ (underscore) Must start with a letter and can be up to 48 characters long Pattern: ^[a-zA-Z][a-zA-Z0-9_]{0,47}$.getTags()Tags for the agent runtime A list of key:value pairs of tags to apply to this Runtime resource.default BooleanWhether to enable X-Ray tracing for this runtime.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAgentRuntimeArtifact
The artifact configuration for the agent runtime Contains the container configuration with ECR URI. -
getAuthorizerConfiguration
Authorizer configuration for the agent runtime Use RuntimeAuthorizerConfiguration static methods to create the configuration.Default: - RuntimeAuthorizerConfiguration.iam() (IAM authentication)
-
getDescription
Optional description for the agent runtime.Default: - No description Length Minimum: 1 , Maximum: 1200
-
getEnvironmentVariables
Environment variables for the agent runtime - Maximum 50 environment variables - Key: Must be 1-100 characters, start with letter or underscore, contain only letters, numbers, and underscores - Value: Must be 0-2048 characters (per CloudFormation specification).Default: - No environment variables
-
getExecutionRole
The IAM role that provides permissions for the agent runtime If not provided, a role will be created automatically.Default: - A new role will be created
-
getLifecycleConfiguration
The life cycle configuration for the AgentCore Runtime.Default: - No lifecycle configuration
-
getLoggingConfigs
Logging configuration for the runtime.Allows sending APPLICATION_LOGS and USAGE_LOGS to CloudWatch Logs, S3, or Kinesis Data Firehose.
Default: - No logging configured
- See Also:
-
getNetworkConfiguration
Network configuration for the agent runtime.Default: - RuntimeNetworkConfiguration.usingPublicNetwork()
-
getProtocolConfiguration
Protocol configuration for the agent runtime.Default: - ProtocolType.HTTP
-
getRequestHeaderConfiguration
Configuration for HTTP request headers that will be passed through to the runtime.Default: - No request headers configured
-
getRuntimeName
The name of the agent runtime Valid characters are a-z, A-Z, 0-9, _ (underscore) Must start with a letter and can be up to 48 characters long Pattern: ^[a-zA-Z][a-zA-Z0-9_]{0,47}$.Default: - auto generate
-
getTags
Tags for the agent runtime A list of key:value pairs of tags to apply to this Runtime resource.Default: {} - no tags
-
getTracingEnabled
Whether to enable X-Ray tracing for this runtime.When enabled, traces will be delivered to AWS X-Ray.
Default: false
- See Also:
-
builder
- Returns:
- a
RuntimeProps.BuilderofRuntimeProps
-