1 Answer
- Newest
- Most votes
- Most comments
1
I should use another client:
try (val apiGateway = ApiGatewayManagementApiClient.builder() .region(Region.US_EAST_1) .endpointOverride(new URI("https://xxxx.execute-api.us-xxxx.amazonaws.com/xxxx")) .credentialsProvider(StaticCredentialsProvider.create( AwsBasicCredentials.create("xxx", "xxxxx") )).build()) { return apiGateway.getConnection(GetConnectionRequest.builder().connectionId(connId).build()).toString(); } catch (URISyntaxException e) { throw new RuntimeException(e); }
it's located in:
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>apigatewaymanagementapi</artifactId>
</dependency>
answered 2 years ago
Relevant content
- Accepted Answerasked 3 years ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago