

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 建立端點
<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>

下列範例會使用[適用於 Python 的AWS SDK (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. 在導覽索引標記中，選擇**推論**。

1. 接下來，選擇**端點**。

1. 選擇**建立端點**。

1. 在**端點名稱**中，輸入您在區域帳戶中的唯一名稱。

1. 在**連接端點組態**中，選取**使用現有的端點組態**。

1. 在**端點組態**中，選取您在上一節中建立的端點組態名稱，然後選擇 **選取端點組態**。

1. (選用) 在**標籤** 中，如果您想要為端點建立中繼資料，請輸入鍵值對。

1. 選擇**建立端點**。  
![在主控台中，建立和設定端點頁面的螢幕擷取畫面。](http://docs.aws.amazon.com/zh_tw/sagemaker/latest/dg/images/serverless-endpoints-create.png)