

지원 종료 공지: 2025년 9월 15 AWS 일에는 Amazon Lex V1에 대한 지원을 중단할 예정입니다. 2025년 9월 15일 이후에는 Amazon Lex V1 콘솔 또는 Amazon Lex V1 리소스에 더 이상 액세스할 수 없습니다. Amazon Lex V2를 사용하는 경우 대신 [Amazon Lex V2 가이드를](https://docs.aws.amazon.com/lexv2/latest/dg/what-is.html) 참조하세요.

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# 2단계: 사용자 지정 슬롯 유형 생성(AWS CLI)
<a name="gs-create-flower-types"></a>

주문 가능한 꽃에 대한 열거 값을 사용해 사용자 지정 슬롯 유형을 생성합니다. `OrderFlowers` 의도를 생성하는 경우 다음 단계에서 이 유형을 사용합니다. *슬롯 유형*은 의도의 슬롯 또는 파라미터에 가능한 값을 정의합니다.

이 연습에서 명령을 실행하려면 명령이 실행될 리전을 알아야 합니다. 리전 목록은 [모델 구축 할당량](gl-limits.md#gl-limits-model-building)을 참조하십시오.

**사용자 지정 슬롯 유형을 생성하려면(AWS CLI)**

1. **FlowerTypes.json**라는 이름의 텍스트 파일을 만듭니다. [FlowerTypes.json](gs-cli-create-flower-types-json.md)의 JSON 코드를 텍스트 파일에 복사합니다.

1. 를 사용하여 [PutSlotType](API_PutSlotType.md) 작업을 호출 AWS CLI 하여 슬롯 유형을 생성합니다. 다음은 Unix, Linux, macOS용 형식으로 지정된 예제입니다. Windows의 경우 각 줄의 끝에 있는 백슬래시(\$1) Unix 연속 문자를 캐럿(^)으로 바꿉니다.

   ```
   aws lex-models put-slot-type \
       --region region \
       --name FlowerTypes \
       --cli-input-json file://FlowerTypes.json
   ```

   서버에서 다음과 같이 응답합니다.

   ```
   {
       "enumerationValues": [
           {
               "value": "tulips"
           }, 
           {
               "value": "lilies"
           }, 
           {
               "value": "roses"
           }
       ], 
       "name": "FlowerTypes", 
       "checksum": "checksum", 
       "version": "$LATEST", 
       "lastUpdatedDate": timestamp, 
       "createdDate": timestamp, 
       "description": "Types of flowers to pick up"
   }
   ```

## 다음 단계
<a name="gs-create-next-3"></a>

[3단계: 의도 생성(AWS CLI)](gs-cli-create-order-flowers.md)

# FlowerTypes.json
<a name="gs-cli-create-flower-types-json"></a>

다음 코드는 `FlowerTypes` 사용자 지정 슬롯 유형을 생성하는 데 필요한 JSON 데이터입니다.

```
{
    "enumerationValues": [
        {
            "value": "tulips"
        },
        {
            "value": "lilies"
        },
        {
            "value": "roses"
        }
    ],
    "name": "FlowerTypes",
    "description": "Types of flowers to pick up"
}
```