Class Runtime.Builder

java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.Runtime.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<Runtime>
Enclosing class:
Runtime

@Stability(Stable) public static final class Runtime.Builder extends Object implements software.amazon.jsii.Builder<Runtime>
A fluent builder for Runtime.
  • Method Details

    • create

      @Stability(Stable) public static Runtime.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of Runtime.Builder.
    • agentRuntimeArtifact

      @Stability(Stable) public Runtime.Builder agentRuntimeArtifact(AgentRuntimeArtifact agentRuntimeArtifact)
      The artifact configuration for the agent runtime Contains the container configuration with ECR URI.

      Parameters:
      agentRuntimeArtifact - The artifact configuration for the agent runtime Contains the container configuration with ECR URI. This parameter is required.
      Returns:
      this
    • authorizerConfiguration

      @Stability(Stable) public Runtime.Builder authorizerConfiguration(RuntimeAuthorizerConfiguration authorizerConfiguration)
      Authorizer configuration for the agent runtime Use RuntimeAuthorizerConfiguration static methods to create the configuration.

      Default: - RuntimeAuthorizerConfiguration.iam() (IAM authentication)

      Parameters:
      authorizerConfiguration - Authorizer configuration for the agent runtime Use RuntimeAuthorizerConfiguration static methods to create the configuration. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public Runtime.Builder description(String description)
      Optional description for the agent runtime.

      Default: - No description Length Minimum: 1 , Maximum: 1200

      Parameters:
      description - Optional description for the agent runtime. This parameter is required.
      Returns:
      this
    • environmentVariables

      @Stability(Stable) public Runtime.Builder environmentVariables(Map<String,String> environmentVariables)
      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

      Parameters:
      environmentVariables - 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). This parameter is required.
      Returns:
      this
    • executionRole

      @Stability(Stable) public Runtime.Builder executionRole(IRole executionRole)
      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

      Parameters:
      executionRole - The IAM role that provides permissions for the agent runtime If not provided, a role will be created automatically. This parameter is required.
      Returns:
      this
    • lifecycleConfiguration

      @Stability(Stable) public Runtime.Builder lifecycleConfiguration(LifecycleConfiguration lifecycleConfiguration)
      The life cycle configuration for the AgentCore Runtime.

      Default: - No lifecycle configuration

      Parameters:
      lifecycleConfiguration - The life cycle configuration for the AgentCore Runtime. This parameter is required.
      Returns:
      this
    • loggingConfigs

      @Stability(Stable) public Runtime.Builder loggingConfigs(List<? extends LoggingConfig> loggingConfigs)
      Logging configuration for the runtime.

      Allows sending APPLICATION_LOGS and USAGE_LOGS to CloudWatch Logs, S3, or Kinesis Data Firehose.

      Default: - No logging configured

      Parameters:
      loggingConfigs - Logging configuration for the runtime. This parameter is required.
      Returns:
      this
      See Also:
    • networkConfiguration

      @Stability(Stable) public Runtime.Builder networkConfiguration(RuntimeNetworkConfiguration networkConfiguration)
      Network configuration for the agent runtime.

      Default: - RuntimeNetworkConfiguration.usingPublicNetwork()

      Parameters:
      networkConfiguration - Network configuration for the agent runtime. This parameter is required.
      Returns:
      this
    • protocolConfiguration

      @Stability(Stable) public Runtime.Builder protocolConfiguration(ProtocolType protocolConfiguration)
      Protocol configuration for the agent runtime.

      Default: - ProtocolType.HTTP

      Parameters:
      protocolConfiguration - Protocol configuration for the agent runtime. This parameter is required.
      Returns:
      this
    • requestHeaderConfiguration

      @Stability(Stable) public Runtime.Builder requestHeaderConfiguration(RequestHeaderConfiguration requestHeaderConfiguration)
      Configuration for HTTP request headers that will be passed through to the runtime.

      Default: - No request headers configured

      Parameters:
      requestHeaderConfiguration - Configuration for HTTP request headers that will be passed through to the runtime. This parameter is required.
      Returns:
      this
    • runtimeName

      @Stability(Stable) public Runtime.Builder runtimeName(String runtimeName)
      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

      Parameters:
      runtimeName - 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}$. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public Runtime.Builder tags(Map<String,String> tags)
      Tags for the agent runtime A list of key:value pairs of tags to apply to this Runtime resource.

      Default: {} - no tags

      Parameters:
      tags - Tags for the agent runtime A list of key:value pairs of tags to apply to this Runtime resource. This parameter is required.
      Returns:
      this
    • tracingEnabled

      @Stability(Stable) public Runtime.Builder tracingEnabled(Boolean tracingEnabled)
      Whether to enable X-Ray tracing for this runtime.

      When enabled, traces will be delivered to AWS X-Ray.

      Default: false

      Parameters:
      tracingEnabled - Whether to enable X-Ray tracing for this runtime. This parameter is required.
      Returns:
      this
      See Also:
    • build

      @Stability(Stable) public Runtime build()
      Specified by:
      build in interface software.amazon.jsii.Builder<Runtime>
      Returns:
      a newly built instance of Runtime.