Skip to content
v2.277.0

CaptionLanguageMappingProperty Struct ​

Maps a captions channel to an ISO 693-2 language code (http://www.loc.gov/standards/iso639-2), with an optional description.

The parent of this entity is HlsGroupSettings.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_medialive as medialive } from 'aws-cdk-lib';
const captionLanguageMappingProperty: medialive.CfnChannel.CaptionLanguageMappingProperty = {
  captionChannel: 123,
  languageCode: 'languageCode',
  languageDescription: 'languageDescription',
};
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_medialive as medialive

caption_language_mapping_property = medialive.CfnChannel.CaptionLanguageMappingProperty(
    caption_channel=123,
    language_code="languageCode",
    language_description="languageDescription"
)
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.medialive.*;

CaptionLanguageMappingProperty captionLanguageMappingProperty = CaptionLanguageMappingProperty.builder()
        .captionChannel(123)
        .languageCode("languageCode")
        .languageDescription("languageDescription")
        .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.MediaLive;

var captionLanguageMappingProperty = new CaptionLanguageMappingProperty {
    CaptionChannel = 123,
    LanguageCode = "languageCode",
    LanguageDescription = "languageDescription"
};
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"

captionLanguageMappingProperty := &CaptionLanguageMappingProperty{
	CaptionChannel: jsii.Number(123),
	LanguageCode: jsii.String("languageCode"),
	LanguageDescription: jsii.String("languageDescription"),
}

Properties ​

captionChanneloptionalnumbercaption_channeloptionalint | floatcaptionChanneloptionalNumberCaptionChanneloptionaldoubleCaptionChanneloptional*float64 #
The closed caption channel being described by this CaptionLanguageMapping.

Each channel mapping must have a unique channel number (maximum of 4).

languageCodeoptionalstringlanguage_codeoptionalstrlanguageCodeoptionalStringLanguageCodeoptionalstringLanguageCodeoptional*string #
A three-character ISO 639-2 language code (see http://www.loc.gov/standards/iso639-2).
languageDescriptionoptionalstringlanguage_descriptionoptionalstrlanguageDescriptionoptionalStringLanguageDescriptionoptionalstringLanguageDescriptionoptional*string #
The textual description of language.