

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# エンドポイントの作成
<a name="async-inference-create-endpoint-create-endpoint"></a>

モデルとエンドポイントの設定が完了したら、[https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateEndpoint.html](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateEndpoint.html) API を使用してエンドポイントを作成します。エンドポイント名は、 AWS アカウントの AWS リージョン内で一意である必要があります。

次が、リクエストで指定されたエンドポイント設定を使用してエンドポイントを作成します。Amazon SageMaker AI は、エンドポイントを使用してリソースをプロビジョンし、モデルをデプロイします。

```
# The name of the endpoint. The name must be unique within an AWS リージョン in your AWS アカウント.
endpoint_name = {{'<endpoint-name>'}} 

# The name of the endpoint configuration associated with this endpoint.
endpoint_config_name={{'<endpoint-config-name>'}}

create_endpoint_response = sagemaker_client.create_endpoint(
                                            EndpointName=endpoint_name, 
                                            EndpointConfigName=endpoint_config_name)
```

`CreateEndpoint` API を呼び出すと、Amazon SageMaker 非同期推論は、Amazon SNS トピックを設定したことをチェックするテスト通知を送信します。Amazon SageMaker 非同期推論は、`UpdateEndpoint` および `UpdateEndpointWeightsAndCapacities` への呼び出し後にテスト通知も送信します。これにより、SageMaker AI は必要な許可があることをチェックします。通知は無視できます。テスト通知は次の形式です。

```
{
    "eventVersion":"1.0",
    "eventSource":"aws:sagemaker",
    "eventName":"TestNotification"
}
```