Когда я устанавливаю сервис как SageMakerRuntime
или SageMaker
, он выдает ошибку AWS Service of type SagemakerRuntime not supported (Service: AmazonApiGateway; Status Code: 400; Error Code: BadRequestException;
Я не смог найти документацию о том, что такое поддерживаемый сервис. Однако при настройке шлюза API из консоли я вижу опцию SageMaker Runtime
, а остальная конфигурация работает нормально.
const integration = new AwsIntegration({
service: "SageMakerRuntime",
path: "endpoints/{endpointName}/invocations",
integrationHttpMethod: "POST",
options: {
credentialsRole: Role.fromRoleArn(
this,
"Execution role",
"<arn>"
)
}
});
const postMethod = api.root
.addResource(this.node.tryGetContext("serviceVersion"))
.addResource("endpoints")
.addResource("{endpointName}")
.addResource("inferences")
.addMethod("POST", integration);