This page documents the language specification for the aws package. If you're looking for help working with the inputs, outputs, or functions of aws resources in a Pulumi program, please see the resource documentation for examples and API reference.
elastictranscoder¶
This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-aws repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-aws repo.
- class
pulumi_aws.elastictranscoder.Pipeline(resource_name, opts=None, aws_kms_key_arn=None, content_config=None, content_config_permissions=None, input_bucket=None, name=None, notifications=None, output_bucket=None, role=None, thumbnail_config=None, thumbnail_config_permissions=None, __props__=None, __name__=None, __opts__=None)¶ Provides an Elastic Transcoder pipeline resource.
import pulumi import pulumi_aws as aws bar = aws.elastictranscoder.Pipeline("bar", content_config={ "bucket": aws_s3_bucket["content_bucket"]["bucket"], "storage_class": "Standard", }, input_bucket=aws_s3_bucket["input_bucket"]["bucket"], role=aws_iam_role["test_role"]["arn"], thumbnail_config={ "bucket": aws_s3_bucket["thumb_bucket"]["bucket"], "storage_class": "Standard", })
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
aws_kms_key_arn (pulumi.Input[str]) – The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline.
content_config (pulumi.Input[dict]) – The ContentConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. (documented below)
content_config_permissions (pulumi.Input[list]) – The permissions for the
content_configobject. (documented below)input_bucket (pulumi.Input[str]) – The Amazon S3 bucket in which you saved the media files that you want to transcode and the graphics that you want to use as watermarks.
name (pulumi.Input[str]) – The name of the pipeline. Maximum 40 characters
notifications (pulumi.Input[dict]) – The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status. (documented below)
output_bucket (pulumi.Input[str]) – The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded files.
role (pulumi.Input[str]) – The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to use to transcode jobs for this pipeline.
thumbnail_config (pulumi.Input[dict]) – The ThumbnailConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files. (documented below)
thumbnail_config_permissions (pulumi.Input[list]) – The permissions for the
thumbnail_configobject. (documented below)
The content_config object supports the following:
bucket(pulumi.Input[str]) - The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists.storage_class(pulumi.Input[str]) - The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the files and playlists that it stores in your Amazon S3 bucket.
The content_config_permissions object supports the following:
accesses(pulumi.Input[list]) - The permission that you want to give to the AWS user that you specified incontent_config_permissions.granteegrantee(pulumi.Input[str]) - The AWS user or group that you want to have access to transcoded files and playlists.granteeType(pulumi.Input[str]) - Specify the type of value that appears in thecontent_config_permissions.granteeobject. Valid values areCanonical,EmailorGroup.
The notifications object supports the following:
completed(pulumi.Input[str]) - The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job in this pipeline.error(pulumi.Input[str]) - The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition while processing a job in this pipeline.progressing(pulumi.Input[str]) - The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process a job in this pipeline.warning(pulumi.Input[str]) - The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition while processing a job in this pipeline.
The thumbnail_config object supports the following:
bucket(pulumi.Input[str]) - The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files.storage_class(pulumi.Input[str]) - The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket.
The thumbnail_config_permissions object supports the following:
accesses(pulumi.Input[list]) - The permission that you want to give to the AWS user that you specified inthumbnail_config_permissions.grantee.grantee(pulumi.Input[str]) - The AWS user or group that you want to have access to thumbnail files.granteeType(pulumi.Input[str]) - Specify the type of value that appears in thethumbnail_config_permissions.granteeobject.
aws_kms_key_arn: pulumi.Output[str] = None¶The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline.
content_config: pulumi.Output[dict] = None¶The ContentConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. (documented below)
bucket(str) - The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists.storage_class(str) - The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the files and playlists that it stores in your Amazon S3 bucket.
content_config_permissions: pulumi.Output[list] = None¶The permissions for the
content_configobject. (documented below)accesses(list) - The permission that you want to give to the AWS user that you specified incontent_config_permissions.granteegrantee(str) - The AWS user or group that you want to have access to transcoded files and playlists.granteeType(str) - Specify the type of value that appears in thecontent_config_permissions.granteeobject. Valid values areCanonical,EmailorGroup.
input_bucket: pulumi.Output[str] = None¶The Amazon S3 bucket in which you saved the media files that you want to transcode and the graphics that you want to use as watermarks.
name: pulumi.Output[str] = None¶The name of the pipeline. Maximum 40 characters
notifications: pulumi.Output[dict] = None¶The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status. (documented below)
completed(str) - The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job in this pipeline.error(str) - The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition while processing a job in this pipeline.progressing(str) - The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process a job in this pipeline.warning(str) - The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition while processing a job in this pipeline.
output_bucket: pulumi.Output[str] = None¶The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded files.
role: pulumi.Output[str] = None¶The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to use to transcode jobs for this pipeline.
thumbnail_config: pulumi.Output[dict] = None¶The ThumbnailConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files. (documented below)
bucket(str) - The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files.storage_class(str) - The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket.
thumbnail_config_permissions: pulumi.Output[list] = None¶The permissions for the
thumbnail_configobject. (documented below)accesses(list) - The permission that you want to give to the AWS user that you specified inthumbnail_config_permissions.grantee.grantee(str) - The AWS user or group that you want to have access to thumbnail files.granteeType(str) - Specify the type of value that appears in thethumbnail_config_permissions.granteeobject.
- static
get(resource_name, id, opts=None, arn=None, aws_kms_key_arn=None, content_config=None, content_config_permissions=None, input_bucket=None, name=None, notifications=None, output_bucket=None, role=None, thumbnail_config=None, thumbnail_config_permissions=None)¶ Get an existing Pipeline resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
aws_kms_key_arn (pulumi.Input[str]) – The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline.
content_config (pulumi.Input[dict]) – The ContentConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. (documented below)
content_config_permissions (pulumi.Input[list]) – The permissions for the
content_configobject. (documented below)input_bucket (pulumi.Input[str]) – The Amazon S3 bucket in which you saved the media files that you want to transcode and the graphics that you want to use as watermarks.
name (pulumi.Input[str]) – The name of the pipeline. Maximum 40 characters
notifications (pulumi.Input[dict]) – The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status. (documented below)
output_bucket (pulumi.Input[str]) – The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded files.
role (pulumi.Input[str]) – The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to use to transcode jobs for this pipeline.
thumbnail_config (pulumi.Input[dict]) – The ThumbnailConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files. (documented below)
thumbnail_config_permissions (pulumi.Input[list]) – The permissions for the
thumbnail_configobject. (documented below)
The content_config object supports the following:
bucket(pulumi.Input[str]) - The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists.storage_class(pulumi.Input[str]) - The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the files and playlists that it stores in your Amazon S3 bucket.
The content_config_permissions object supports the following:
accesses(pulumi.Input[list]) - The permission that you want to give to the AWS user that you specified incontent_config_permissions.granteegrantee(pulumi.Input[str]) - The AWS user or group that you want to have access to transcoded files and playlists.granteeType(pulumi.Input[str]) - Specify the type of value that appears in thecontent_config_permissions.granteeobject. Valid values areCanonical,EmailorGroup.
The notifications object supports the following:
completed(pulumi.Input[str]) - The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job in this pipeline.error(pulumi.Input[str]) - The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition while processing a job in this pipeline.progressing(pulumi.Input[str]) - The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process a job in this pipeline.warning(pulumi.Input[str]) - The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition while processing a job in this pipeline.
The thumbnail_config object supports the following:
bucket(pulumi.Input[str]) - The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files.storage_class(pulumi.Input[str]) - The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket.
The thumbnail_config_permissions object supports the following:
accesses(pulumi.Input[list]) - The permission that you want to give to the AWS user that you specified inthumbnail_config_permissions.grantee.grantee(pulumi.Input[str]) - The AWS user or group that you want to have access to thumbnail files.granteeType(pulumi.Input[str]) - Specify the type of value that appears in thethumbnail_config_permissions.granteeobject.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_aws.elastictranscoder.Preset(resource_name, opts=None, audio=None, audio_codec_options=None, container=None, description=None, name=None, thumbnails=None, type=None, video=None, video_codec_options=None, video_watermarks=None, __props__=None, __name__=None, __opts__=None)¶ Provides an Elastic Transcoder preset resource.
import pulumi import pulumi_aws as aws bar = aws.elastictranscoder.Preset("bar", audio={ "audioPackingMode": "SingleTrack", "bitRate": 96, "channels": 2, "codec": "AAC", "sampleRate": 44100, }, audio_codec_options={ "profile": "AAC-LC", }, container="mp4", description="Sample Preset", thumbnails={ "format": "png", "interval": 120, "maxHeight": "auto", "maxWidth": "auto", "paddingPolicy": "Pad", "sizingPolicy": "Fit", }, video={ "bitRate": "1600", "codec": "H.264", "displayAspectRatio": "16:9", "fixedGop": "false", "frameRate": "auto", "keyframesMaxDist": 240, "maxFrameRate": "60", "maxHeight": "auto", "maxWidth": "auto", "paddingPolicy": "Pad", "sizingPolicy": "Fit", }, video_codec_options={ "ColorSpaceConversionMode": "None", "InterlacedMode": "Progressive", "Level": "2.2", "MaxReferenceFrames": 3, "Profile": "main", }, video_watermarks=[{ "horizontalAlign": "Right", "horizontalOffset": "10px", "id": "Test", "maxHeight": "20%", "maxWidth": "20%", "opacity": "55.5", "sizingPolicy": "ShrinkToFit", "target": "Content", "verticalAlign": "Bottom", "verticalOffset": "10px", }])
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
audio (pulumi.Input[dict]) – Audio parameters object (documented below).
audio_codec_options (pulumi.Input[dict]) – Codec options for the audio parameters (documented below)
container (pulumi.Input[str]) – The container type for the output file. Valid values are
flac,flv,fmp4,gif,mp3,mp4,mpg,mxf,oga,ogg,ts, andwebm.description (pulumi.Input[str]) – A description of the preset (maximum 255 characters)
name (pulumi.Input[str]) – The name of the preset. (maximum 40 characters)
thumbnails (pulumi.Input[dict]) – Thumbnail parameters object (documented below)
video (pulumi.Input[dict]) – Video parameters object (documented below)
video_codec_options (pulumi.Input[dict]) – Codec options for the video parameters
video_watermarks (pulumi.Input[list]) – Watermark parameters for the video parameters (documented below)
The audio object supports the following:
audioPackingMode(pulumi.Input[str]) - The method of organizing audio channels and tracks. Use Audio:Channels to specify the number of channels in your output, and Audio:AudioPackingMode to specify the number of tracks and their relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic Transcoder uses SingleTrack.bitRate(pulumi.Input[str]) - The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.channels(pulumi.Input[str]) - The number of audio channels in the output filecodec(pulumi.Input[str]) - The audio codec for the output file. Valid values areAAC,flac,mp2,mp3,pcm, andvorbis.sampleRate(pulumi.Input[str]) - The sample rate of the audio stream in the output file, in hertz. Valid values are:auto,22050,32000,44100,48000,96000
The audio_codec_options object supports the following:
bitDepth(pulumi.Input[str]) - The bit depth of a sample is how many bits of information are included in the audio samples. Valid values are16and24. (FLAC/PCM Only)bitOrder(pulumi.Input[str]) - The order the bits of a PCM sample are stored in. The supported value is LittleEndian. (PCM Only)profile(pulumi.Input[str]) - If you specified AAC for Audio:Codec, choose the AAC profile for the output file.signed(pulumi.Input[str]) - Whether audio samples are represented with negative and positive numbers (signed) or only positive numbers (unsigned). The supported value is Signed. (PCM Only)
The thumbnails object supports the following:
aspectRatio(pulumi.Input[str]) - The aspect ratio of thumbnails. The following values are valid: auto, 1:1, 4:3, 3:2, 16:9format(pulumi.Input[str]) - The format of thumbnails, if any. Valid formats are jpg and png.interval(pulumi.Input[str]) - The approximate number of seconds between thumbnails. The value must be an integer. The actual interval can vary by several seconds from one thumbnail to the next.maxHeight(pulumi.Input[str]) - The maximum height of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive.maxWidth(pulumi.Input[str]) - The maximum width of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive.paddingPolicy(pulumi.Input[str]) - When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of thumbnails to make the total size of the thumbnails match the values that you specified for thumbnail MaxWidth and MaxHeight settings.resolution(pulumi.Input[str]) - The width and height of thumbnail files in pixels, in the format WidthxHeight, where both values are even integers. The values cannot exceed the width and height that you specified in the Video:Resolution object. (To better control resolution and aspect ratio of thumbnails, we recommend that you use the thumbnail valuesmax_width,max_height,sizing_policy, andpadding_policyinstead ofresolutionandaspect_ratio. The two groups of settings are mutually exclusive. Do not use them together)sizingPolicy(pulumi.Input[str]) - A value that controls scaling of thumbnails. Valid values are:Fit,Fill,Stretch,Keep,ShrinkToFit, andShrinkToFill.
The video object supports the following:
aspectRatio(pulumi.Input[str]) - The display aspect ratio of the video in the output file. Valid values are:auto,1:1,4:3,3:2,16:9. (Note; to better control resolution and aspect ratio of output videos, we recommend that you use the valuesmax_width,max_height,sizing_policy,padding_policy, anddisplay_aspect_ratioinstead ofresolutionandaspect_ratio.)bitRate(pulumi.Input[str]) - The bit rate of the video stream in the output file, in kilobits/second. You can configure variable bit rate or constant bit rate encoding.codec(pulumi.Input[str]) - The video codec for the output file. Valid values aregif,H.264,mpeg2,vp8, andvp9.displayAspectRatio(pulumi.Input[str]) - The value that Elastic Transcoder adds to the metadata in the output file. If you set DisplayAspectRatio to auto, Elastic Transcoder chooses an aspect ratio that ensures square pixels. If you specify another option, Elastic Transcoder sets that value in the output file.fixedGop(pulumi.Input[str]) - Whether to use a fixed value for Video:FixedGOP. Not applicable for containers of type gif. Valid values are true and false. Also known as, Fixed Number of Frames Between Keyframes.frameRate(pulumi.Input[str]) - The frames per second for the video stream in the output file. The following values are valid:auto,10,15,23.97,24,25,29.97,30,50,60.keyframesMaxDist(pulumi.Input[str]) - The maximum number of frames between key frames. Not applicable for containers of type gif.maxFrameRate(pulumi.Input[str]) - If you specify auto for FrameRate, Elastic Transcoder uses the frame rate of the input video for the frame rate of the output video, up to the maximum frame rate. If you do not specify a MaxFrameRate, Elastic Transcoder will use a default of 30.maxHeight(pulumi.Input[str]) - The maximum height of the output video in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 96 and 3072, inclusive.maxWidth(pulumi.Input[str]) - The maximum width of the output video in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 128 and 4096, inclusive.paddingPolicy(pulumi.Input[str]) - When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of the output video to make the total size of the output video match the values that you specified formax_widthandmax_height.resolution(pulumi.Input[str]) - The width and height of the video in the output file, in pixels. Valid values areautoandwidthxheight. (see note foraspect_ratio)sizingPolicy(pulumi.Input[str]) - A value that controls scaling of the output video. Valid values are:Fit,Fill,Stretch,Keep,ShrinkToFit,ShrinkToFill.
The video_watermarks object supports the following:
horizontalAlign(pulumi.Input[str]) - The horizontal position of the watermark unless you specify a nonzero value forhorzontal_offset.horizontalOffset(pulumi.Input[str]) - The amount by which you want the horizontal position of the watermark to be offset from the position specified byhorizontal_align.id(pulumi.Input[str]) - A unique identifier for the settings for one watermark. The value of Id can be up to 40 characters long. You can specify settings for up to four watermarks.maxHeight(pulumi.Input[str]) - The maximum height of the watermark.maxWidth(pulumi.Input[str]) - The maximum width of the watermark.opacity(pulumi.Input[str]) - A percentage that indicates how much you want a watermark to obscure the video in the location where it appears.sizingPolicy(pulumi.Input[str]) - A value that controls scaling of the watermark. Valid values are:Fit,Stretch,ShrinkToFittarget(pulumi.Input[str]) - A value that determines how Elastic Transcoder interprets values that you specified forvideo_watermarks.horizontal_offset,video_watermarks.vertical_offset,video_watermarks.max_width, andvideo_watermarks.max_height. Valid values areContentandFrame.verticalAlign(pulumi.Input[str]) - The vertical position of the watermark unless you specify a nonzero value forvertical_align. Valid values areTop,Bottom,Center.verticalOffset(pulumi.Input[str]) - The amount by which you want the vertical position of the watermark to be offset from the position specified byvertical_align
audio: pulumi.Output[dict] = None¶Audio parameters object (documented below).
audioPackingMode(str) - The method of organizing audio channels and tracks. Use Audio:Channels to specify the number of channels in your output, and Audio:AudioPackingMode to specify the number of tracks and their relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic Transcoder uses SingleTrack.bitRate(str) - The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.channels(str) - The number of audio channels in the output filecodec(str) - The audio codec for the output file. Valid values areAAC,flac,mp2,mp3,pcm, andvorbis.sampleRate(str) - The sample rate of the audio stream in the output file, in hertz. Valid values are:auto,22050,32000,44100,48000,96000
audio_codec_options: pulumi.Output[dict] = None¶Codec options for the audio parameters (documented below)
bitDepth(str) - The bit depth of a sample is how many bits of information are included in the audio samples. Valid values are16and24. (FLAC/PCM Only)bitOrder(str) - The order the bits of a PCM sample are stored in. The supported value is LittleEndian. (PCM Only)profile(str) - If you specified AAC for Audio:Codec, choose the AAC profile for the output file.signed(str) - Whether audio samples are represented with negative and positive numbers (signed) or only positive numbers (unsigned). The supported value is Signed. (PCM Only)
container: pulumi.Output[str] = None¶The container type for the output file. Valid values are
flac,flv,fmp4,gif,mp3,mp4,mpg,mxf,oga,ogg,ts, andwebm.
description: pulumi.Output[str] = None¶A description of the preset (maximum 255 characters)
name: pulumi.Output[str] = None¶The name of the preset. (maximum 40 characters)
thumbnails: pulumi.Output[dict] = None¶Thumbnail parameters object (documented below)
aspectRatio(str) - The aspect ratio of thumbnails. The following values are valid: auto, 1:1, 4:3, 3:2, 16:9format(str) - The format of thumbnails, if any. Valid formats are jpg and png.interval(str) - The approximate number of seconds between thumbnails. The value must be an integer. The actual interval can vary by several seconds from one thumbnail to the next.maxHeight(str) - The maximum height of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive.maxWidth(str) - The maximum width of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive.paddingPolicy(str) - When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of thumbnails to make the total size of the thumbnails match the values that you specified for thumbnail MaxWidth and MaxHeight settings.resolution(str) - The width and height of thumbnail files in pixels, in the format WidthxHeight, where both values are even integers. The values cannot exceed the width and height that you specified in the Video:Resolution object. (To better control resolution and aspect ratio of thumbnails, we recommend that you use the thumbnail valuesmax_width,max_height,sizing_policy, andpadding_policyinstead ofresolutionandaspect_ratio. The two groups of settings are mutually exclusive. Do not use them together)sizingPolicy(str) - A value that controls scaling of thumbnails. Valid values are:Fit,Fill,Stretch,Keep,ShrinkToFit, andShrinkToFill.
video: pulumi.Output[dict] = None¶Video parameters object (documented below)
aspectRatio(str) - The display aspect ratio of the video in the output file. Valid values are:auto,1:1,4:3,3:2,16:9. (Note; to better control resolution and aspect ratio of output videos, we recommend that you use the valuesmax_width,max_height,sizing_policy,padding_policy, anddisplay_aspect_ratioinstead ofresolutionandaspect_ratio.)bitRate(str) - The bit rate of the video stream in the output file, in kilobits/second. You can configure variable bit rate or constant bit rate encoding.codec(str) - The video codec for the output file. Valid values aregif,H.264,mpeg2,vp8, andvp9.displayAspectRatio(str) - The value that Elastic Transcoder adds to the metadata in the output file. If you set DisplayAspectRatio to auto, Elastic Transcoder chooses an aspect ratio that ensures square pixels. If you specify another option, Elastic Transcoder sets that value in the output file.fixedGop(str) - Whether to use a fixed value for Video:FixedGOP. Not applicable for containers of type gif. Valid values are true and false. Also known as, Fixed Number of Frames Between Keyframes.frameRate(str) - The frames per second for the video stream in the output file. The following values are valid:auto,10,15,23.97,24,25,29.97,30,50,60.keyframesMaxDist(str) - The maximum number of frames between key frames. Not applicable for containers of type gif.maxFrameRate(str) - If you specify auto for FrameRate, Elastic Transcoder uses the frame rate of the input video for the frame rate of the output video, up to the maximum frame rate. If you do not specify a MaxFrameRate, Elastic Transcoder will use a default of 30.maxHeight(str) - The maximum height of the output video in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 96 and 3072, inclusive.maxWidth(str) - The maximum width of the output video in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 128 and 4096, inclusive.paddingPolicy(str) - When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of the output video to make the total size of the output video match the values that you specified formax_widthandmax_height.resolution(str) - The width and height of the video in the output file, in pixels. Valid values areautoandwidthxheight. (see note foraspect_ratio)sizingPolicy(str) - A value that controls scaling of the output video. Valid values are:Fit,Fill,Stretch,Keep,ShrinkToFit,ShrinkToFill.
video_codec_options: pulumi.Output[dict] = None¶Codec options for the video parameters
video_watermarks: pulumi.Output[list] = None¶Watermark parameters for the video parameters (documented below)
horizontalAlign(str) - The horizontal position of the watermark unless you specify a nonzero value forhorzontal_offset.horizontalOffset(str) - The amount by which you want the horizontal position of the watermark to be offset from the position specified byhorizontal_align.id(str) - A unique identifier for the settings for one watermark. The value of Id can be up to 40 characters long. You can specify settings for up to four watermarks.maxHeight(str) - The maximum height of the watermark.maxWidth(str) - The maximum width of the watermark.opacity(str) - A percentage that indicates how much you want a watermark to obscure the video in the location where it appears.sizingPolicy(str) - A value that controls scaling of the watermark. Valid values are:Fit,Stretch,ShrinkToFittarget(str) - A value that determines how Elastic Transcoder interprets values that you specified forvideo_watermarks.horizontal_offset,video_watermarks.vertical_offset,video_watermarks.max_width, andvideo_watermarks.max_height. Valid values areContentandFrame.verticalAlign(str) - The vertical position of the watermark unless you specify a nonzero value forvertical_align. Valid values areTop,Bottom,Center.verticalOffset(str) - The amount by which you want the vertical position of the watermark to be offset from the position specified byvertical_align
- static
get(resource_name, id, opts=None, arn=None, audio=None, audio_codec_options=None, container=None, description=None, name=None, thumbnails=None, type=None, video=None, video_codec_options=None, video_watermarks=None)¶ Get an existing Preset resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
audio (pulumi.Input[dict]) – Audio parameters object (documented below).
audio_codec_options (pulumi.Input[dict]) – Codec options for the audio parameters (documented below)
container (pulumi.Input[str]) – The container type for the output file. Valid values are
flac,flv,fmp4,gif,mp3,mp4,mpg,mxf,oga,ogg,ts, andwebm.description (pulumi.Input[str]) – A description of the preset (maximum 255 characters)
name (pulumi.Input[str]) – The name of the preset. (maximum 40 characters)
thumbnails (pulumi.Input[dict]) – Thumbnail parameters object (documented below)
video (pulumi.Input[dict]) – Video parameters object (documented below)
video_codec_options (pulumi.Input[dict]) – Codec options for the video parameters
video_watermarks (pulumi.Input[list]) – Watermark parameters for the video parameters (documented below)
The audio object supports the following:
audioPackingMode(pulumi.Input[str]) - The method of organizing audio channels and tracks. Use Audio:Channels to specify the number of channels in your output, and Audio:AudioPackingMode to specify the number of tracks and their relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic Transcoder uses SingleTrack.bitRate(pulumi.Input[str]) - The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.channels(pulumi.Input[str]) - The number of audio channels in the output filecodec(pulumi.Input[str]) - The audio codec for the output file. Valid values areAAC,flac,mp2,mp3,pcm, andvorbis.sampleRate(pulumi.Input[str]) - The sample rate of the audio stream in the output file, in hertz. Valid values are:auto,22050,32000,44100,48000,96000
The audio_codec_options object supports the following:
bitDepth(pulumi.Input[str]) - The bit depth of a sample is how many bits of information are included in the audio samples. Valid values are16and24. (FLAC/PCM Only)bitOrder(pulumi.Input[str]) - The order the bits of a PCM sample are stored in. The supported value is LittleEndian. (PCM Only)profile(pulumi.Input[str]) - If you specified AAC for Audio:Codec, choose the AAC profile for the output file.signed(pulumi.Input[str]) - Whether audio samples are represented with negative and positive numbers (signed) or only positive numbers (unsigned). The supported value is Signed. (PCM Only)
The thumbnails object supports the following:
aspectRatio(pulumi.Input[str]) - The aspect ratio of thumbnails. The following values are valid: auto, 1:1, 4:3, 3:2, 16:9format(pulumi.Input[str]) - The format of thumbnails, if any. Valid formats are jpg and png.interval(pulumi.Input[str]) - The approximate number of seconds between thumbnails. The value must be an integer. The actual interval can vary by several seconds from one thumbnail to the next.maxHeight(pulumi.Input[str]) - The maximum height of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive.maxWidth(pulumi.Input[str]) - The maximum width of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive.paddingPolicy(pulumi.Input[str]) - When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of thumbnails to make the total size of the thumbnails match the values that you specified for thumbnail MaxWidth and MaxHeight settings.resolution(pulumi.Input[str]) - The width and height of thumbnail files in pixels, in the format WidthxHeight, where both values are even integers. The values cannot exceed the width and height that you specified in the Video:Resolution object. (To better control resolution and aspect ratio of thumbnails, we recommend that you use the thumbnail valuesmax_width,max_height,sizing_policy, andpadding_policyinstead ofresolutionandaspect_ratio. The two groups of settings are mutually exclusive. Do not use them together)sizingPolicy(pulumi.Input[str]) - A value that controls scaling of thumbnails. Valid values are:Fit,Fill,Stretch,Keep,ShrinkToFit, andShrinkToFill.
The video object supports the following:
aspectRatio(pulumi.Input[str]) - The display aspect ratio of the video in the output file. Valid values are:auto,1:1,4:3,3:2,16:9. (Note; to better control resolution and aspect ratio of output videos, we recommend that you use the valuesmax_width,max_height,sizing_policy,padding_policy, anddisplay_aspect_ratioinstead ofresolutionandaspect_ratio.)bitRate(pulumi.Input[str]) - The bit rate of the video stream in the output file, in kilobits/second. You can configure variable bit rate or constant bit rate encoding.codec(pulumi.Input[str]) - The video codec for the output file. Valid values aregif,H.264,mpeg2,vp8, andvp9.displayAspectRatio(pulumi.Input[str]) - The value that Elastic Transcoder adds to the metadata in the output file. If you set DisplayAspectRatio to auto, Elastic Transcoder chooses an aspect ratio that ensures square pixels. If you specify another option, Elastic Transcoder sets that value in the output file.fixedGop(pulumi.Input[str]) - Whether to use a fixed value for Video:FixedGOP. Not applicable for containers of type gif. Valid values are true and false. Also known as, Fixed Number of Frames Between Keyframes.frameRate(pulumi.Input[str]) - The frames per second for the video stream in the output file. The following values are valid:auto,10,15,23.97,24,25,29.97,30,50,60.keyframesMaxDist(pulumi.Input[str]) - The maximum number of frames between key frames. Not applicable for containers of type gif.maxFrameRate(pulumi.Input[str]) - If you specify auto for FrameRate, Elastic Transcoder uses the frame rate of the input video for the frame rate of the output video, up to the maximum frame rate. If you do not specify a MaxFrameRate, Elastic Transcoder will use a default of 30.maxHeight(pulumi.Input[str]) - The maximum height of the output video in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 96 and 3072, inclusive.maxWidth(pulumi.Input[str]) - The maximum width of the output video in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 128 and 4096, inclusive.paddingPolicy(pulumi.Input[str]) - When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of the output video to make the total size of the output video match the values that you specified formax_widthandmax_height.resolution(pulumi.Input[str]) - The width and height of the video in the output file, in pixels. Valid values areautoandwidthxheight. (see note foraspect_ratio)sizingPolicy(pulumi.Input[str]) - A value that controls scaling of the output video. Valid values are:Fit,Fill,Stretch,Keep,ShrinkToFit,ShrinkToFill.
The video_watermarks object supports the following:
horizontalAlign(pulumi.Input[str]) - The horizontal position of the watermark unless you specify a nonzero value forhorzontal_offset.horizontalOffset(pulumi.Input[str]) - The amount by which you want the horizontal position of the watermark to be offset from the position specified byhorizontal_align.id(pulumi.Input[str]) - A unique identifier for the settings for one watermark. The value of Id can be up to 40 characters long. You can specify settings for up to four watermarks.maxHeight(pulumi.Input[str]) - The maximum height of the watermark.maxWidth(pulumi.Input[str]) - The maximum width of the watermark.opacity(pulumi.Input[str]) - A percentage that indicates how much you want a watermark to obscure the video in the location where it appears.sizingPolicy(pulumi.Input[str]) - A value that controls scaling of the watermark. Valid values are:Fit,Stretch,ShrinkToFittarget(pulumi.Input[str]) - A value that determines how Elastic Transcoder interprets values that you specified forvideo_watermarks.horizontal_offset,video_watermarks.vertical_offset,video_watermarks.max_width, andvideo_watermarks.max_height. Valid values areContentandFrame.verticalAlign(pulumi.Input[str]) - The vertical position of the watermark unless you specify a nonzero value forvertical_align. Valid values areTop,Bottom,Center.verticalOffset(pulumi.Input[str]) - The amount by which you want the vertical position of the watermark to be offset from the position specified byvertical_align
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str