Skip to content
v2.278.0

ThumbnailConfigurationProperty Struct ​

The ThumbnailConfiguration property type describes a configuration of thumbnails for recorded video.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ivs as ivs } from 'aws-cdk-lib';
const thumbnailConfigurationProperty: ivs.CfnRecordingConfiguration.ThumbnailConfigurationProperty = {
  recordingMode: 'recordingMode',
  resolution: 'resolution',
  storage: ['storage'],
  targetIntervalSeconds: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ivs as ivs

thumbnail_configuration_property = ivs.CfnRecordingConfiguration.ThumbnailConfigurationProperty(
    recording_mode="recordingMode",
    resolution="resolution",
    storage=["storage"],
    target_interval_seconds=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ivs.*;

ThumbnailConfigurationProperty thumbnailConfigurationProperty = ThumbnailConfigurationProperty.builder()
        .recordingMode("recordingMode")
        .resolution("resolution")
        .storage(List.of("storage"))
        .targetIntervalSeconds(123)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Ivs;

var thumbnailConfigurationProperty = new ThumbnailConfigurationProperty {
    RecordingMode = "recordingMode",
    Resolution = "resolution",
    Storage = new [] { "storage" },
    TargetIntervalSeconds = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

thumbnailConfigurationProperty := &ThumbnailConfigurationProperty{
	RecordingMode: jsii.String("recordingMode"),
	Resolution: jsii.String("resolution"),
	Storage: []*string{
		jsii.String("storage"),
	},
	TargetIntervalSeconds: jsii.Number(123),
}

Properties ​

recordingModeoptionalstringrecording_modeoptionalstrrecordingModeoptionalStringRecordingModeoptionalstringRecordingModeoptional*string = "INTERVAL" #
Thumbnail recording mode. Valid values:.
notes
  • DISABLED : Use DISABLED to disable the generation of thumbnails for recorded video.
  • INTERVAL : Use INTERVAL to enable the generation of thumbnails for recorded video at a time interval controlled by the TargetIntervalSeconds property.

Default : INTERVAL

resolutionoptionalstringresolutionoptionalstrresolutionoptionalStringResolutionoptionalstringResolutionoptional*string #
The desired resolution of recorded thumbnails for a stream.
notes

Thumbnails are recorded at the selected resolution if the corresponding rendition is available during the stream; otherwise, they are recorded at source resolution. For more information about resolution values and their corresponding height and width dimensions, see Auto-Record to Amazon S3 .

storageoptionalstring[]storageoptionaltyping.List[str]storageoptionalList<String>Storageoptionalstring[]Storageoptional*[]*string #
The format in which thumbnails are recorded for a stream.
notes

SEQUENTIAL records all generated thumbnails in a serial manner, to the media/thumbnails directory. LATEST saves the latest thumbnail in media/thumbnails/latest/thumb.jpg and overwrites it at the interval specified by targetIntervalSeconds . You can enable both SEQUENTIAL and LATEST . Default: SEQUENTIAL .

targetIntervalSecondsoptionalnumbertarget_interval_secondsoptionalint | floattargetIntervalSecondsoptionalNumberTargetIntervalSecondsoptionaldoubleTargetIntervalSecondsoptional*float64 = 60 #
The targeted thumbnail-generation interval in seconds. This is configurable (and required) only if RecordingMode is `INTERVAL` .
notes

Setting a value for TargetIntervalSeconds does not guarantee that thumbnails are generated at the specified interval. For thumbnails to be generated at the TargetIntervalSeconds interval, the IDR/Keyframe value for the input video must be less than the TargetIntervalSeconds value. See Amazon IVS Streaming Configuration for information on setting IDR/Keyframe to the recommended value in video-encoder settings.

Default : 60