Class GatewayProps.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • authorizerConfiguration

      @Stability(Stable) public GatewayProps.Builder authorizerConfiguration(IGatewayAuthorizerConfig authorizerConfiguration)
      Parameters:
      authorizerConfiguration - The authorizer configuration for the gateway.
      Returns:
      this
    • description

      @Stability(Stable) public GatewayProps.Builder description(String description)
      Parameters:
      description - Optional description for the gateway Valid characters are a-z, A-Z, 0-9, _ (underscore), - (hyphen) and spaces The description can have up to 200 characters.
      Returns:
      this
    • exceptionLevel

      @Stability(Stable) public GatewayProps.Builder exceptionLevel(GatewayExceptionLevel exceptionLevel)
      Parameters:
      exceptionLevel - The verbosity of exception messages Use DEBUG mode to see granular exception messages from a Gateway.
      Returns:
      this
    • gatewayName

      @Stability(Stable) public GatewayProps.Builder gatewayName(String gatewayName)
      Parameters:
      gatewayName - The name of the gateway Valid characters are a-z, A-Z, 0-9, _ (underscore) and - (hyphen) The name must be unique within your account.
      Returns:
      this
    • interceptorConfigurations

      @Stability(Stable) public GatewayProps.Builder interceptorConfigurations(List<? extends IInterceptor> interceptorConfigurations)
      Parameters:
      interceptorConfigurations - Interceptor configurations for the gateway. Interceptors allow you to run custom code during each gateway invocation:

      • REQUEST interceptors execute before the gateway calls the target
      • RESPONSE interceptors execute after the target responds

      A gateway can have at most one REQUEST interceptor and one RESPONSE interceptor.

      Returns:
      this
    • kmsKey

      @Stability(Stable) public GatewayProps.Builder kmsKey(IKey kmsKey)
      Sets the value of GatewayProps.getKmsKey()
      Parameters:
      kmsKey - The AWS KMS key used to encrypt data associated with the gateway.
      Returns:
      this
    • policyEngineConfiguration

      @Stability(Stable) public GatewayProps.Builder policyEngineConfiguration(GatewayPolicyEngineConfig policyEngineConfiguration)
      Parameters:
      policyEngineConfiguration - The policy engine configuration for this gateway. When provided, the specified policy engine will be associated with this gateway. All agent requests through this gateway will be evaluated against the Cedar policies defined in the policy engine.
      Returns:
      this
    • protocolConfiguration

      @Stability(Stable) public GatewayProps.Builder protocolConfiguration(IGatewayProtocolConfig protocolConfiguration)
      Parameters:
      protocolConfiguration - The protocol configuration for the gateway.
      Returns:
      this
    • role

      @Stability(Stable) public GatewayProps.Builder role(IRole role)
      Sets the value of GatewayProps.getRole()
      Parameters:
      role - The IAM role that provides permissions for the gateway to access AWS services.
      Returns:
      this
    • tags

      @Stability(Stable) public GatewayProps.Builder tags(Map<String,String> tags)
      Sets the value of GatewayProps.getTags()
      Parameters:
      tags - Tags for the gateway A list of key:value pairs of tags to apply to this Gateway resource.
      Returns:
      this
    • build

      @Stability(Stable) public GatewayProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<GatewayProps>
      Returns:
      a new instance of GatewayProps
      Throws:
      NullPointerException - if any required attribute was not provided