Make a request to Bedrock via API Gateway using Java and CDK
package com.example;
import software.amazon.awscdk.App;
public final class InfrastructureApp {
public static void main(final String[] args) {
App app = new App();
new InfrastructureStack(app, "ApiGatewayLambdaBedrockStack");
app.synth();
}
}
git clone https://github.com/aws-samples/serverless-patterns
cd serverless-patterns/apigw-lambda-bedrock-cdk-java