

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

# Amazon Keyspaces에서 테이블에 대한 클라이언트 측 타임스탬프 구성
<a name="client-side-timestamps-existing-table"></a>

다음 예제에 따라 Amazon Keyspaces AWS Management Console, Cassandra 쿼리 언어(CQL) 또는를 사용하여 기존 테이블에 대한 클라이언트 측 타임스탬프를 켭니다 AWS Command Line Interface.

------
#### [ Console ]

**기존 테이블의 클라이언트 측 타임스탬프 활성화(콘솔)**

1. 에 로그인 AWS Management Console하고 [https://console.aws.amazon.com/keyspaces/home](https://console.aws.amazon.com/keyspaces/home) Amazon Keyspaces 콘솔을 엽니다.

1. 업데이트할 테이블을 선택한 다음 **추가 설정** 탭을 선택합니다.

1. **추가 설정** 탭에서 **클라이언트 측 타임스탬프 수정**으로 이동한 다음 **클라이언트 측 타임스탬프 활성화**를 선택합니다.

1. **변경 내용 저장**을 선택하여 표 설정을 변경합니다.

------
#### [ Cassandra Query Language (CQL) ]

**CQL 문 사용**

1. `ALTER TABLE` CQL 문을 사용하여 기존 테이블에 대한 클라이언트 측 타임스탬프를 설정합니다.

   ```
   ALTER TABLE my_table WITH custom_properties = {'client_side_timestamps': {'status': 'enabled'}};;
   ```

1. 새 테이블의 클라이언트 측 타임스탬프 설정을 확인하려면 다음 예시와 같이 `SELECT` 문을 사용하여 `custom_properties`를 검토합니다.

   ```
   SELECT custom_properties from system_schema_mcs.tables where keyspace_name = 'my_keyspace' and table_name = 'my_table';
   ```

   이 문의 출력에는 클라이언트 측 타임스탬프의 상태가 표시됩니다.

   ```
   'client_side_timestamps': {'status': 'enabled'}
   ```

------
#### [ AWS CLI ]

**사용 AWS CLI**

1. 다음 예제를 사용하여 기존 테이블의 클라이언트 측 타임스탬프를 켤 수 AWS CLI 있습니다.

   ```
   ./aws keyspaces update-table \
   --keyspace-name my_keyspace \
   --table-name my_table \
   --client-side-timestamps 'status=ENABLED'
   ```

1. 테이블에 대해 클라이언트 측 타임스탬프가 활성화되어 있는지 확인하려면 다음 코드를 실행합니다.

   ```
   ./aws keyspaces get-table \
   --keyspace-name my_keyspace \
   --table-name my_table
   ```

   출력은 이 예제와 비슷해야 하며 클라이언트 측 타임스탬프의 상태를 `ENABLED`로 명시해야 합니다.

   ```
   {
       "keyspaceName": "my_keyspace",
       "tableName": "my_table",
       "resourceArn": "arn:aws:cassandra:us-east-1:111122223333:/keyspace/my_keyspace/table/my_table",
       "creationTimestamp": 1662681312.906,
       "status": "ACTIVE",
       "schemaDefinition": {
           "allColumns": [
               {
                   "name": "id",
                   "type": "int"
               },
               {
                   "name": "date",
                   "type": "timestamp"
               },
               {
                   "name": "name",
                   "type": "text"
               }
           ],
           "partitionKeys": [
               {
                   "name": "id"
               }
           ],
           "clusteringKeys": [],
           "staticColumns": []
       },
       "capacitySpecification": {
           "throughputMode": "PAY_PER_REQUEST",
           "lastUpdateToPayPerRequestTimestamp": 1662681312.906
       },
       "encryptionSpecification": {
           "type": "AWS_OWNED_KMS_KEY"
       },
       "pointInTimeRecovery": {
           "status": "DISABLED"
       },
       "clientSideTimestamps": {
           "status": "ENABLED"
       },
       "ttl": {
           "status": "ENABLED"
       },
       "defaultTimeToLive": 0,
       "comment": {
           "message": ""
       }
   }
   ```

------