# SagemakerIntegration

Integrates an AWS Sagemaker Endpoint to an API Gateway method.

Extends: Integration › AwsIntegration › SagemakerIntegration

- Source: [`aws-apigateway/lib/integrations/sagemaker.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-apigateway/lib/integrations/sagemaker.ts#L23)
- Type last changed: v2.94.0 · 1 Sep 2023

## Example

```ts
  declare const resource: apigateway.Resource;
  declare const endpoint: sagemaker.IEndpoint;
  resource.addMethod('POST', new apigateway.SagemakerIntegration(endpoint));
```

## Initializer

```ts
new SagemakerIntegration(endpoint: IEndpoint, options?: SagemakerIntegrationOptions)
```

## Methods

- `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.
