

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

# EventSource
<a name="sam-property-function-eventsource"></a>

함수를 트리거하는 이벤트의 소스를 설명하는 객체입니다. 각 이벤트는 유형과 해당 유형에 따라 달라지는 속성 집합으로 구성됩니다. 각 이벤트 소스의 속성에 대한 자세한 내용은 해당 유형에 적용되는 주제를 참조하세요.

## 구문
<a name="sam-property-function-eventsource-syntax"></a>

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

### YAML
<a name="sam-property-function-eventsource-syntax.yaml"></a>

```
  [Properties](#sam-function-eventsource-properties): {{AlexaSkill | Api | CloudWatchEvent | CloudWatchLogs | Cognito | DocumentDB | DynamoDB | EventBridgeRule | HttpApi | IoTRule | Kinesis | MQ | MSK | S3 | Schedule | ScheduleV2 | SelfManagedKafka | SNS | SQS}}
  [Type](#sam-function-eventsource-type): {{String}}
```

## 속성
<a name="sam-property-function-eventsource-properties"></a>

 `Properties`   <a name="sam-function-eventsource-properties"></a>
이 이벤트 매핑의 속성을 설명하는 객체입니다. 속성 세트는 정의된 유형을 준수해야 합니다.  
*유형*: [AlexaSkill](sam-property-function-alexaskill.md) \| [Api](sam-property-function-api.md) \| [CloudWatchEvent](sam-property-function-cloudwatchevent.md) \| [CloudWatchLogs](sam-property-function-cloudwatchlogs.md) \| [Cognito](sam-property-function-cognito.md) \| [DocumentDB](sam-property-function-documentdb.md) \| [DynamoDB](sam-property-function-dynamodb.md) \| [EventBridgeRule](sam-property-function-eventbridgerule.md) \| [HttpApi](sam-property-function-httpapi.md) \| [IoTRule](sam-property-function-iotrule.md) \| [Kinesis](sam-property-function-kinesis.md) \| [MQ](sam-property-function-mq.md) \| [MSK](sam-property-function-msk.md) \| [S3](sam-property-function-s3.md) \| [Schedule](sam-property-function-schedule.md) \| [ScheduleV2](sam-property-function-schedulev2.md) \| [SelfManagedKafka](sam-property-function-selfmanagedkafka.md) \| [SNS](sam-property-function-sns.md) \| [SQS](sam-property-function-sqs.md)  
*필수 항목 여부*: 예  
*CloudFormation 호환성*:이 속성은에 고유 AWS SAM 하며 CloudFormation 동등한 속성이 없습니다.

 `Type`   <a name="sam-function-eventsource-type"></a>
이벤트 유형.  
*유효한 값*: `AlexaSkill`, `Api`, `CloudWatchEvent`, `CloudWatchLogs`, `Cognito`, `DocumentDB`, `DynamoDB`, `EventBridgeRule`, `HttpApi`, `IoTRule`, `Kinesis`, `MQ`, `MSK`, `S3`, `Schedule`, `ScheduleV2`, `SelfManagedKafka`, `SNS`, `SQS`   
*유형*: 문자열  
*필수 항목 여부:* 예  
*CloudFormation 호환성*:이 속성은에 고유 AWS SAM 하며 CloudFormation 동등한 속성이 없습니다.

## 예제
<a name="sam-property-function-eventsource--examples"></a>

### APIEvent
<a name="sam-property-function-eventsource--examples--apievent"></a>

API 이벤트 사용 예제

#### YAML
<a name="sam-property-function-eventsource--examples--apievent--yaml"></a>

```
ApiEvent:
  Type: Api
  Properties:
    Method: get
    Path: /group/{user}
    RestApiId: 
      Ref: MyApi
```