Class ApiGatewayHttpMethod

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.bedrockagentcore.ApiGatewayHttpMethod
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.130.0 (build 048a5ee)", date="2026-05-19T19:44:36.891Z") @Stability(Stable) public class ApiGatewayHttpMethod extends software.amazon.jsii.JsiiObject
HTTP methods supported by API Gateway.

Example:

 Gateway gateway = Gateway.Builder.create(this, "MyGateway")
         .gatewayName("my-gateway")
         .build();
 RestApi api = RestApi.Builder.create(this, "MyApi")
         .restApiName("my-api")
         .build();
 // Uses IAM authorization for outbound auth by default
 GatewayTarget apiGatewayTarget = gateway.addApiGatewayTarget("MyApiGatewayTarget", AddApiGatewayTargetOptions.builder()
         .restApi(api)
         .apiGatewayToolConfiguration(ApiGatewayToolConfiguration.builder()
                 .toolFilters(List.of(ApiGatewayToolFilter.builder()
                         .filterPath("/pets/*")
                         .methods(List.of(ApiGatewayHttpMethod.GET))
                         .build()))
                 .build())
         .build());
 
  • Field Details

  • Constructor Details

    • ApiGatewayHttpMethod

      protected ApiGatewayHttpMethod(software.amazon.jsii.JsiiObjectRef objRef)
    • ApiGatewayHttpMethod

      protected ApiGatewayHttpMethod(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • of

      @Stability(Stable) @NotNull public static ApiGatewayHttpMethod of(@NotNull String value)
      Use a custom HTTP method not yet defined in this class.

      Parameters:
      value - The HTTP method string value. This parameter is required.
    • toString

      @Stability(Stable) @NotNull public String toString()
      Returns the string value.
      Overrides:
      toString in class Object
    • getValue

      @Stability(Stable) @NotNull public String getValue()
      The HTTP method string value.