

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

# エンドポイントを作成する
<a name="serverless-endpoints-create-endpoint"></a>

サーバーレスエンドポイントを作成するには、[Amazon SageMaker AI コンソール](https://console.aws.amazon.com/sagemaker/home)、[CreateEndpoint](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateEndpoint.html) API、または AWS CLIを使用できます。API とコンソールのアプローチについては、次のセクションで説明します。エンドポイントを作成すると、エンドポイントが使用可能になるまでに数分かかる場合があります。

## エンドポイントを作成するには (API を使用)
<a name="serverless-endpoints-create-endpoint-api"></a>

次の例では、[AWS SDK for Python (Boto3)](https://boto3.amazonaws.com/v1/documentation/api/latest/index.html) を使用して [CreateEndpoint](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateEndpoint.html) API を呼び出します。次の値を指定します。
+ `EndpointName` に、アカウントのリージョン内で一意のエンドポイントの名前を入力します。
+ `EndpointConfigName` には、前のセクションで作成したエンドポイント設定の名前を使用します。

```
response = client.create_endpoint(
    EndpointName="{{<your-endpoint-name>}}",
    EndpointConfigName="{{<your-endpoint-config>}}"
)
```

## エンドポイントを作成するには (コンソールを使用)
<a name="serverless-endpoints-create-endpoint-console"></a>

1. [Amazon SageMaker AI コンソール](https://console.aws.amazon.com/sagemaker/home)にサインインします。

1. [ナビゲーション] タブで、**[Inference]** (推論) を選択します。

1. 次に **[Endpoints]** (エンドポイント) を選択します。

1. **[エンドポイントの作成]** を選択します。

1. **[Endpoint name]** (エンドポイント名) に、アカウントのリージョン内で一意の名前を入力します。

1. **[Attach endpoint configuration]** (エンドポイント設定のアタッチ) で、**[Use an existing endpoint configuration]** (既存のエンドポイント設定の使用) を選択します。

1. **[Endpoint configuration]** (エンドポイント設定) で、前のセクションで作成したエンドポイント設定の名前を選択し、**[Select endpoint configuration]** (エンドポイント設定の選択) を選択します。

1. (オプション) エンドポイントのメタデータを作成する場合は、**[Tags]** (タグ) にキーバリューペアを入力します。

1. **エンドポイントの作成** を選択します。  
![コンソールのエンドポイントの作成と設定ページのスクリーンショット。](http://docs.aws.amazon.com/ja_jp/sagemaker/latest/dg/images/serverless-endpoints-create.png)