UNPKG

lambdaws

Version:

AWS lambda functions made easy

938 lines 19.7 kB
{ "metadata": { "apiVersion": "2012-09-25", "endpointPrefix": "elastictranscoder", "serviceFullName": "Amazon Elastic Transcoder", "signatureVersion": "v4", "protocol": "rest-json" }, "operations": { "CancelJob": { "http": { "method": "DELETE", "requestUri": "/2012-09-25/jobs/{Id}", "responseCode": 202 }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "members": {} } }, "CreateJob": { "http": { "requestUri": "/2012-09-25/jobs", "responseCode": 201 }, "input": { "type": "structure", "required": [ "PipelineId", "Input" ], "members": { "PipelineId": {}, "Input": { "shape": "S5" }, "Output": { "shape": "Sg" }, "Outputs": { "type": "list", "member": { "shape": "Sg" } }, "OutputKeyPrefix": {}, "Playlists": { "type": "list", "member": { "type": "structure", "members": { "Name": {}, "Format": {}, "OutputKeys": { "shape": "S1f" }, "HlsContentProtection": { "shape": "S1g" } } } }, "UserMetadata": { "shape": "S1k" } } }, "output": { "type": "structure", "members": { "Job": { "shape": "S1n" } } } }, "CreatePipeline": { "http": { "requestUri": "/2012-09-25/pipelines", "responseCode": 201 }, "input": { "type": "structure", "required": [ "Name", "InputBucket", "Role" ], "members": { "Name": {}, "InputBucket": {}, "OutputBucket": {}, "Role": {}, "AwsKmsKeyArn": {}, "Notifications": { "shape": "S20" }, "ContentConfig": { "shape": "S22" }, "ThumbnailConfig": { "shape": "S22" } } }, "output": { "type": "structure", "members": { "Pipeline": { "shape": "S2b" } } } }, "CreatePreset": { "http": { "requestUri": "/2012-09-25/presets", "responseCode": 201 }, "input": { "type": "structure", "required": [ "Name", "Container" ], "members": { "Name": {}, "Description": {}, "Container": {}, "Video": { "shape": "S2f" }, "Audio": { "shape": "S2v" }, "Thumbnails": { "shape": "S32" } } }, "output": { "type": "structure", "members": { "Preset": { "shape": "S36" }, "Warning": {} } } }, "DeletePipeline": { "http": { "method": "DELETE", "requestUri": "/2012-09-25/pipelines/{Id}", "responseCode": 202 }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "members": {} } }, "DeletePreset": { "http": { "method": "DELETE", "requestUri": "/2012-09-25/presets/{Id}", "responseCode": 202 }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "members": {} } }, "ListJobsByPipeline": { "http": { "method": "GET", "requestUri": "/2012-09-25/jobsByPipeline/{PipelineId}" }, "input": { "type": "structure", "required": [ "PipelineId" ], "members": { "PipelineId": { "location": "uri", "locationName": "PipelineId" }, "Ascending": { "location": "querystring", "locationName": "Ascending" }, "PageToken": { "location": "querystring", "locationName": "PageToken" } } }, "output": { "type": "structure", "members": { "Jobs": { "shape": "S3f" }, "NextPageToken": {} } } }, "ListJobsByStatus": { "http": { "method": "GET", "requestUri": "/2012-09-25/jobsByStatus/{Status}" }, "input": { "type": "structure", "required": [ "Status" ], "members": { "Status": { "location": "uri", "locationName": "Status" }, "Ascending": { "location": "querystring", "locationName": "Ascending" }, "PageToken": { "location": "querystring", "locationName": "PageToken" } } }, "output": { "type": "structure", "members": { "Jobs": { "shape": "S3f" }, "NextPageToken": {} } } }, "ListPipelines": { "http": { "method": "GET", "requestUri": "/2012-09-25/pipelines" }, "input": { "type": "structure", "members": { "Ascending": { "location": "querystring", "locationName": "Ascending" }, "PageToken": { "location": "querystring", "locationName": "PageToken" } } }, "output": { "type": "structure", "members": { "Pipelines": { "type": "list", "member": { "shape": "S2b" } }, "NextPageToken": {} } } }, "ListPresets": { "http": { "method": "GET", "requestUri": "/2012-09-25/presets" }, "input": { "type": "structure", "members": { "Ascending": { "location": "querystring", "locationName": "Ascending" }, "PageToken": { "location": "querystring", "locationName": "PageToken" } } }, "output": { "type": "structure", "members": { "Presets": { "type": "list", "member": { "shape": "S36" } }, "NextPageToken": {} } } }, "ReadJob": { "http": { "method": "GET", "requestUri": "/2012-09-25/jobs/{Id}" }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "members": { "Job": { "shape": "S1n" } } } }, "ReadPipeline": { "http": { "method": "GET", "requestUri": "/2012-09-25/pipelines/{Id}" }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "members": { "Pipeline": { "shape": "S2b" } } } }, "ReadPreset": { "http": { "method": "GET", "requestUri": "/2012-09-25/presets/{Id}" }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "members": { "Preset": { "shape": "S36" } } } }, "TestRole": { "http": { "requestUri": "/2012-09-25/roleTests", "responseCode": 200 }, "input": { "type": "structure", "required": [ "Role", "InputBucket", "OutputBucket", "Topics" ], "members": { "Role": {}, "InputBucket": {}, "OutputBucket": {}, "Topics": { "type": "list", "member": {} } } }, "output": { "type": "structure", "members": { "Success": {}, "Messages": { "type": "list", "member": {} } } } }, "UpdatePipeline": { "http": { "method": "PUT", "requestUri": "/2012-09-25/pipelines/{Id}", "responseCode": 200 }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" }, "Name": {}, "InputBucket": {}, "Role": {}, "AwsKmsKeyArn": {}, "Notifications": { "shape": "S20" }, "ContentConfig": { "shape": "S22" }, "ThumbnailConfig": { "shape": "S22" } } }, "output": { "type": "structure", "members": { "Pipeline": { "shape": "S2b" } } } }, "UpdatePipelineNotifications": { "http": { "requestUri": "/2012-09-25/pipelines/{Id}/notifications" }, "input": { "type": "structure", "required": [ "Id", "Notifications" ], "members": { "Id": { "location": "uri", "locationName": "Id" }, "Notifications": { "shape": "S20" } } }, "output": { "type": "structure", "members": { "Pipeline": { "shape": "S2b" } } } }, "UpdatePipelineStatus": { "http": { "requestUri": "/2012-09-25/pipelines/{Id}/status" }, "input": { "type": "structure", "required": [ "Id", "Status" ], "members": { "Id": { "location": "uri", "locationName": "Id" }, "Status": {} } }, "output": { "type": "structure", "members": { "Pipeline": { "shape": "S2b" } } } } }, "shapes": { "S5": { "type": "structure", "members": { "Key": {}, "FrameRate": {}, "Resolution": {}, "AspectRatio": {}, "Interlaced": {}, "Container": {}, "Encryption": { "shape": "Sc" } } }, "Sc": { "type": "structure", "members": { "Mode": {}, "Key": {}, "KeyMd5": {}, "InitializationVector": {} } }, "Sg": { "type": "structure", "members": { "Key": {}, "ThumbnailPattern": {}, "ThumbnailEncryption": { "shape": "Sc" }, "Rotate": {}, "PresetId": {}, "SegmentDuration": {}, "Watermarks": { "shape": "Sk" }, "AlbumArt": { "shape": "So" }, "Composition": { "shape": "Sw" }, "Captions": { "shape": "S10" }, "Encryption": { "shape": "Sc" } } }, "Sk": { "type": "list", "member": { "type": "structure", "members": { "PresetWatermarkId": {}, "InputKey": {}, "Encryption": { "shape": "Sc" } } } }, "So": { "type": "structure", "members": { "MergePolicy": {}, "Artwork": { "type": "list", "member": { "type": "structure", "members": { "InputKey": {}, "MaxWidth": {}, "MaxHeight": {}, "SizingPolicy": {}, "PaddingPolicy": {}, "AlbumArtFormat": {}, "Encryption": { "shape": "Sc" } } } } } }, "Sw": { "type": "list", "member": { "type": "structure", "members": { "TimeSpan": { "type": "structure", "members": { "StartTime": {}, "Duration": {} } } } } }, "S10": { "type": "structure", "members": { "MergePolicy": {}, "CaptionSources": { "type": "list", "member": { "type": "structure", "members": { "Key": {}, "Language": {}, "TimeOffset": {}, "Label": {}, "Encryption": { "shape": "Sc" } } } }, "CaptionFormats": { "type": "list", "member": { "type": "structure", "members": { "Format": {}, "Pattern": {}, "Encryption": { "shape": "Sc" } } } } } }, "S1f": { "type": "list", "member": {} }, "S1g": { "type": "structure", "members": { "Method": {}, "Key": {}, "KeyMd5": {}, "InitializationVector": {}, "LicenseAcquisitionUrl": {}, "KeyStoragePolicy": {} } }, "S1k": { "type": "map", "key": {}, "value": {} }, "S1n": { "type": "structure", "members": { "Id": {}, "Arn": {}, "PipelineId": {}, "Input": { "shape": "S5" }, "Output": { "shape": "S1o" }, "Outputs": { "type": "list", "member": { "shape": "S1o" } }, "OutputKeyPrefix": {}, "Playlists": { "type": "list", "member": { "type": "structure", "members": { "Name": {}, "Format": {}, "OutputKeys": { "shape": "S1f" }, "HlsContentProtection": { "shape": "S1g" }, "Status": {}, "StatusDetail": {} } } }, "Status": {}, "UserMetadata": { "shape": "S1k" } } }, "S1o": { "type": "structure", "members": { "Id": {}, "Key": {}, "ThumbnailPattern": {}, "ThumbnailEncryption": { "shape": "Sc" }, "Rotate": {}, "PresetId": {}, "SegmentDuration": {}, "Status": {}, "StatusDetail": {}, "Duration": { "type": "long" }, "Width": { "type": "integer" }, "Height": { "type": "integer" }, "Watermarks": { "shape": "Sk" }, "AlbumArt": { "shape": "So" }, "Composition": { "shape": "Sw" }, "Captions": { "shape": "S10" }, "Encryption": { "shape": "Sc" } } }, "S20": { "type": "structure", "members": { "Progressing": {}, "Completed": {}, "Warning": {}, "Error": {} } }, "S22": { "type": "structure", "members": { "Bucket": {}, "StorageClass": {}, "Permissions": { "type": "list", "member": { "type": "structure", "members": { "GranteeType": {}, "Grantee": {}, "Access": { "type": "list", "member": {} } } } } } }, "S2b": { "type": "structure", "members": { "Id": {}, "Arn": {}, "Name": {}, "Status": {}, "InputBucket": {}, "OutputBucket": {}, "Role": {}, "AwsKmsKeyArn": {}, "Notifications": { "shape": "S20" }, "ContentConfig": { "shape": "S22" }, "ThumbnailConfig": { "shape": "S22" } } }, "S2f": { "type": "structure", "members": { "Codec": {}, "CodecOptions": { "type": "map", "key": {}, "value": {} }, "KeyframesMaxDist": {}, "FixedGOP": {}, "BitRate": {}, "FrameRate": {}, "MaxFrameRate": {}, "Resolution": {}, "AspectRatio": {}, "MaxWidth": {}, "MaxHeight": {}, "DisplayAspectRatio": {}, "SizingPolicy": {}, "PaddingPolicy": {}, "Watermarks": { "type": "list", "member": { "type": "structure", "members": { "Id": {}, "MaxWidth": {}, "MaxHeight": {}, "SizingPolicy": {}, "HorizontalAlign": {}, "HorizontalOffset": {}, "VerticalAlign": {}, "VerticalOffset": {}, "Opacity": {}, "Target": {} } } } } }, "S2v": { "type": "structure", "members": { "Codec": {}, "SampleRate": {}, "BitRate": {}, "Channels": {}, "CodecOptions": { "type": "structure", "members": { "Profile": {} } } } }, "S32": { "type": "structure", "members": { "Format": {}, "Interval": {}, "Resolution": {}, "AspectRatio": {}, "MaxWidth": {}, "MaxHeight": {}, "SizingPolicy": {}, "PaddingPolicy": {} } }, "S36": { "type": "structure", "members": { "Id": {}, "Arn": {}, "Name": {}, "Description": {}, "Container": {}, "Audio": { "shape": "S2v" }, "Video": { "shape": "S2f" }, "Thumbnails": { "shape": "S32" }, "Type": {} } }, "S3f": { "type": "list", "member": { "shape": "S1n" } } } }