리포지토리 동기화 상태 변경 이벤트 세부 정보 - AWS CloudFormation

리포지토리 동기화 상태 변경 이벤트 세부 정보

다음은 리포지토리 동기화 상태 변경 이벤트의 세부 정보 필드입니다.

sourcedetail-type 필드는 AWS CloudFormation 이벤트에 대한 특정 값을 포함하므로 여기에 포함됩니다.

{ . . ., "detail-type": "Git Sync Repository Sync Status Change", "source": "aws.codeconnections", . . ., "detail": { "connectionArn" : "string", "providerType" : "string", "repositoryName": "string", "providerType": "string", "repositoryName": "string", "repositoryArn": "string", "repositoryLinkId": "string", "ownerId": "string", "commit": "string", "branch": "string", "syncType": "string", "status": "string", "previousSync": "string" } } }
detail-type

이벤트의 유형을 식별합니다.

리포지토리 동기화 상태 이벤트의 경우 이 값은 Git Sync Repository Sync Status Change입니다.

source

이벤트를 생성한 서비스를 식별합니다. Git 동기화 이벤트의 경우 이 값은 aws.codeconnections입니다.

detail

이벤트에 대한 정보를 포함하는 JSON 객체입니다. 이벤트를 생성하는 서비스에 따라 이 필드의 내용이 결정됩니다.

리포지토리 동기화 상태 이벤트의 경우 이 데이터는 다음을 포함합니다.

connectionArn

CodeConnections와 연결된 Amazon 리소스 이름(ARN).

providerType

CloudFormation에 연결된 Git 공급자.

유효한 값: GitHub | GitHub Enterprise | GitLab | BitBucket

repositoryName

Git 리포지토리 이름.

repositoryArn

Git 리포지토리와 연결된 ARN.

리포지토리 링크와 연결된 고유한 ID.

ownerId

리포지토리 소유자와 연결된 고유한 ID.

commit

리포지토리 커밋과 연결된 고유한 ID.

branch

리포지토리 브랜치와 연결된 고유한 ID.

syncType

수행 중인 동기화 유형.

status

현재 리포지토리 동기화 상태.

유효한 값: FAILED | INITIATED | IN_PROGRESS | SUCCEEDED

previousSync

현재 상태 이전의 동기화 상태.

유효한 값: FAILED | INITIATED | IN_PROGRESS | SUCCEEDED

예: 리포지토리 동기화 상태 변경 이벤트

다음은 리포지토리 동기화 상태 변경 이벤트의 예입니다. 이벤트는 CodeConnections가 리포지토리를 성공적으로 동기화했다는 세부 정보를 제공합니다.

{ "version": "0", "id": "1b5d8feb-agbv-4cf7-a9f1-bf3703467718", "detail-type": "GitSync Repository Sync Status Change", "source": "aws.codeconnections", "account": "111122223333", "time": "2023-12-22T18:43:48Z", "region": "us-east-1", "resources": ["arn:aws:aws:codestar-connections:us-east-1:111122223333:repository-link/550e8400-e29b-41d4-a716-446655440000",], "detail": { "connectionArn": "arn:aws:codestar-connections:us-east-1:111122223333:connection/sample-connection-id", "providerType": "GitHub", "repositoryName": "sample-repository-name", "repositoryArn": "arn:aws:aws:codestar-connections:us-east-1:111122223333:repository-link/550e8400-e29b-41d4-a716-446655440000" "repositoryLinkId": "550e8400-e29b-41d4-a716-446655440000" "ownerId": "sample-owner-id", "commit": "sample-commit-id", "branch": "main", "syncType": "CFN_STACK_SYNC", "status": "SUCCEEDED", "previousStatus": "IN_PROGRESS", } }