SagemakerIntegration Class
Integrates an AWS Sagemaker Endpoint to an API Gateway method.
Example
ts
declare const resource: apigateway.Resource;
declare const endpoint: sagemaker.IEndpoint;
resource.addMethod('POST', new apigateway.SagemakerIntegration(endpoint));
python
# resource: apigateway.Resource
# endpoint: sagemaker.IEndpoint
resource.add_method("POST", apigateway.SagemakerIntegration(endpoint))
java
Resource resource;
IEndpoint endpoint;
resource.addMethod("POST", new SagemakerIntegration(endpoint));
csharp
// Install: dotnet add package Amazon.CDK.Lib
Resource resource;
IEndpoint endpoint;
resource.AddMethod("POST", new SagemakerIntegration(endpoint));
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var resource Resource
var endpoint IEndpoint
resource.AddMethod(jsii.String("POST"), apigateway.NewSagemakerIntegration(endpoint))
Initializer
ts
new SagemakerIntegration(endpoint: IEndpoint, options?: SagemakerIntegrationOptions)
python
SagemakerIntegration(endpoint: IEndpoint, options: typing.Optional[SagemakerIntegrationOptions] = None)
java
new SagemakerIntegration(IEndpoint endpoint, SagemakerIntegrationOptions options)
csharp
new SagemakerIntegration(IEndpoint endpoint, SagemakerIntegrationOptions? options = null)
go
NewSagemakerIntegration(Endpoint IEndpoint, Options SagemakerIntegrationOptions)
Methods
bind(method: Method): IntegrationConfigdef bind(self, method: Method) -> IntegrationConfigpublic IntegrationConfig bind(Method method)public IntegrationConfig Bind(Method method)func Bind(Method Method) IntegrationConfig#Can be overridden by subclasses to allow the integration to interact with the method being integrated, access the REST API object, method ARNs, etc.