파이프라인 알림 업데이트 - Amazon Elastic Transcoder

다음을 통해 비용을 절감하고 더 많은 기능을 이용할 수 있습니다. AWS Elemental MediaConvert

MediaConvert 는 포괄적인 고급 트랜스코딩 기능을 제공하는 최신 파일 기반 비디오 트랜스코딩 서비스로, 온디맨드 요금은 분당 0.0075달러부터 시작합니다. 자세한 내용을 읽어보세요.

이미 Amazon Elastic Transcoder를 사용하고 계신가요? MediaConvert마이그레이션하는 방법은 간단합니다. 자세한 내용은 마이그레이션 프로세스에 대한 중요한 정보와 추가 리소스 링크가 포함된 이 개요를 참조하세요.

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

파이프라인 알림 업데이트

설명

파이프라인의 Amazon Simple Notification Service(SNS) 알림만 업데이트하려면 /2012-09-25/pipelines/pipelineId/notifications 리소스에 POST 요청을 보냅니다.

중요

알림을 변경하면 변경 사항이 즉시 적용됩니다. 알림을 변경한 후 제출한 작업 외에도 이미 제출했으나 Elastic Transcoder가 처리를 시작하지 않은 작업도 영향을 받습니다.

요청

조건

POST /2012-09-25/pipelines/pipelineId/notifications HTTP/1.1 Content-Type: application/json; charset=UTF-8 Accept: */* Host: elastictranscoder.Elastic Transcoder endpoint.amazonaws.com:443 x-amz-date: 20130114T174952Z Authorization: AWS4-HMAC-SHA256 Credential=AccessKeyID/request-date/Elastic Transcoder endpoint/elastictranscoder/aws4_request, SignedHeaders=host;x-amz-date;x-amz-target, Signature=calculated-signature Content-Length: number of characters in the JSON string { "Id":"pipelineId", "Notifications":{ "Progressing":"SNS topic to notify when Elastic Transcoder has started to process the job", "Complete":"SNS topic to notify when Elastic Transcoder has finished processing the job", "Warning":"SNS topic to notify when Elastic Transcoder returns a warning", "Error":"SNS topic to notify when Elastic Transcoder returns an error" } }

요청 파라미터

이 작업은 다음 요청 파라미터를 사용합니다.

pipelineId

알림 설정을 변경하려는 파이프라인의 식별자입니다.

요청 헤더

이 작업은 모든 작업에 일반적인 요청 헤더만 사용합니다. 일반적인 요청 헤더에 대한 내용은 HTTP 헤더 콘텐츠 섹션을 참조하세요.

요청 본문

요청 본문의 JSON 문자열에는 다음 객체가 포함되어 있습니다.

id

업데이트할 파이프라인의 ID입니다.

알림: 진행 중

Elastic Transcoder가 이 파이프라인에서 작업을 처리하기 시작하면 알릴 Amazon Simple Notification Service(SNS) 주제의 주제 ARN입니다. 이 값은 주제를 생성할 때 Amazon SNS가 반환한 ARN입니다. 자세한 내용은 Amazon Simple Notification Service 개발자 가이드주제 생성을 참조하세요.

중요

알림을 수신하려면 Amazon SNS 콘솔에서 새 주제를 구독해야 합니다.

Amazon SNS는 Amazon Simple Queue Service 대기열에 Amazon SNS 메시지를 전송하는 기능을 포함하여 다양한 알림 옵션을 제공합니다. 자세한 내용은 Amazon Simple Notification Service Developer Guide를 참조하세요.

Notifications:Complete

Elastic Transcoder가 이 파이프라인에서 작업 처리를 완료하면 알릴 Amazon SNS 주제의 주제 ARN입니다. 이 값은 주제를 생성할 때 Amazon SNS가 반환한 ARN입니다.

Notifications:Warning

Elastic Transcoder가 이 파이프라인에서 작업을 처리하는 동안 경고 상태가 발생하면 알릴 Amazon SNS 주제의 주제 ARN입니다. 이 값은 주제를 생성할 때 Amazon SNS가 반환한 ARN입니다.

Notifications:Error

Elastic Transcoder가 이 파이프라인에서 작업을 처리하는 동안 오류 상태가 발생하면 알릴 Amazon SNS 주제의 주제 ARN입니다. 이 값은 주제를 생성할 때 Amazon SNS가 반환한 ARN입니다.

응답

조건

Status: 202 Accepted x-amzn-RequestId: c321ec43-378e-11e2-8e4c-4d5b971203e9 Content-Type: application/json Content-Length: number of characters in the response Date: Mon, 14 Jan 2013 06:01:47 GMT { "Pipeline":{ "Id":"ID for the new pipeline", "Notifications":{ "Progressing":"SNS topic to notify when Elastic Transcoder has started to process the job", "Complete":"SNS topic to notify when Elastic Transcoder has finished processing the job", "Warning":"SNS topic to notify when Elastic Transcoder returns a warning", "Error":"SNS topic to notify when Elastic Transcoder returns an error" } } }

응답 헤더

이 작업은 대부분의 응답에 일반적인 응답 헤더만 사용합니다. 일반적인 응답 헤더에 대한 내용은 HTTP 응답 섹션을 참조하세요.

응답 본문

파이프라인의 알림을 업데이트하면 Elastic Transcoder는 사용자가 요청에 지정한 값을 반환합니다. 자세한 내용은 요청 본문 섹션을 참조하세요.

오류

Elastic Transcoder 예외 및 오류 메시지에 대한 자세한 내용은 Elastic Transcoder에서의 오류 처리 섹션을 참조하세요.

예시

다음 예제 요청은 파이프라인의 알림을 업데이트합니다.

예제 요청

POST /2012-09-25/pipelines/1111111111111-abcde1/notifications HTTP/1.1 Content-Type: application/json; charset=UTF-8 Accept: */* Host: elastictranscoder.Elastic Transcoder endpoint.amazonaws.com:443 x-amz-date: 20130114T174952Z Authorization: AWS4-HMAC-SHA256 Credential=AccessKeyID/request-date/Elastic Transcoder endpoint/elastictranscoder/aws4_request, SignedHeaders=host;x-amz-date;x-amz-target, Signature=calculated-signature Content-Length: number of characters in the JSON string { "Id":"1111111111111-abcde1", "Notifications":{ "Progressing":"", "Complete":"", "Warning":"", "Error":"arn:aws:sns:us-east-1:111222333444:ETS_Errors" } }

샘플 응답

Status: 202 Accepted x-amzn-RequestId: c321ec43-378e-11e2-8e4c-4d5b971203e9 Content-Type: application/json Content-Length: number of characters in the response Date: Mon, 14 Jan 2013 06:01:47 GMT { "Id":"1111111111111-abcde1", "Notifications":{ "Progressing":"", "Complete":"", "Warning":"", "Error":"arn:aws:sns:us-east-1:111222333444:ETS_Errors" } }