

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

# PrimaryKeyObject
<a name="sam-property-simpletable-primarykeyobject"></a>

프라이머리 키의 속성을 설명하는 객체.

## 구문
<a name="sam-property-simpletable-primarykeyobject-syntax"></a>

 AWS Serverless Application Model (AWS SAM) 템플릿에서이 개체를 선언하려면 다음 구문을 사용합니다.

### YAML
<a name="sam-property-simpletable-primarykeyobject-syntax.yaml"></a>

```
  [Name](#sam-simpletable-primarykeyobject-name): String
  [Type](#sam-simpletable-primarykeyobject-type): String
```

## 속성
<a name="sam-property-simpletable-primarykeyobject-properties"></a>

 `Name`   <a name="sam-simpletable-primarykeyobject-name"></a>
프라이머리 키의 속성 이름.  
*유형*: 문자열  
*필수 항목 여부:* 예  
*CloudFormation 호환성*:이 속성은 `AWS::DynamoDB::Table` `AttributeDefinition` 데이터 유형의 `[AttributeName](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-attributedef.html#cfn-dynamodb-attributedef-attributename)` 속성으로 직접 전달됩니다.  
*추가 참고 사항*: 이 속성은 `AWS::DynamoDB::Table KeySchema` 데이터 유형의 [AttributeName](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-keyschema.html#aws-properties-dynamodb-keyschema-attributename) 속성에도 전달됩니다.

 `Type`   <a name="sam-simpletable-primarykeyobject-type"></a>
프라이머리 키의 데이터 유형.  
*유효한 값*: `String`, `Number`, `Binary`   
*유형*: 문자열  
*필수 항목 여부:* 예  
*CloudFormation 호환성*:이 속성은 `AWS::DynamoDB::Table` `AttributeDefinition` 데이터 유형의 `[AttributeType](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-attributedef.html#cfn-dynamodb-attributedef-attributename-attributetype)` 속성으로 직접 전달됩니다.

## 예제
<a name="sam-property-simpletable-primarykeyobject--examples"></a>

### primaryKeys
<a name="sam-property-simpletable-primarykeyobject--examples--primarykey"></a>

프라이머리 키 예시.

#### YAML
<a name="sam-property-simpletable-primarykeyobject--examples--primarykey--yaml"></a>

```
Properties:
  PrimaryKey:
    Name: MyPrimaryKey
    Type: String
```