CdnConfigurationProperty
The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment management.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mediatailor as mediatailor } from 'aws-cdk-lib';
const cdnConfigurationProperty: mediatailor.CfnPlaybackConfiguration.CdnConfigurationProperty = {
adSegmentUrlPrefix: 'adSegmentUrlPrefix',
contentSegmentUrlPrefix: 'contentSegmentUrlPrefix',
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_mediatailor as mediatailor
cdn_configuration_property = mediatailor.CfnPlaybackConfiguration.CdnConfigurationProperty(
ad_segment_url_prefix="adSegmentUrlPrefix",
content_segment_url_prefix="contentSegmentUrlPrefix"
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.mediatailor.*;
CdnConfigurationProperty cdnConfigurationProperty = CdnConfigurationProperty.builder()
.adSegmentUrlPrefix("adSegmentUrlPrefix")
.contentSegmentUrlPrefix("contentSegmentUrlPrefix")
.build();
// 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.MediaTailor;
var cdnConfigurationProperty = new CdnConfigurationProperty {
AdSegmentUrlPrefix = "adSegmentUrlPrefix",
ContentSegmentUrlPrefix = "contentSegmentUrlPrefix"
};
// 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"
cdnConfigurationProperty := &CdnConfigurationProperty{
AdSegmentUrlPrefix: jsii.String("adSegmentUrlPrefix"),
ContentSegmentUrlPrefix: jsii.String("contentSegmentUrlPrefix"),
}
Properties
adSegmentUrlPrefixoptionalstringad_segment_url_prefixoptionalstradSegmentUrlPrefixoptionalStringAdSegmentUrlPrefixoptionalstringAdSegmentUrlPrefixoptional*string #notes
By default, AWS Elemental MediaTailor uses Amazon CloudFront with default cache settings as its CDN for ad segments. To set up an alternate CDN, create a rule in your CDN for the origin ads.mediatailor. <region> .amazonaws.com. Then specify the rule's name in this AdSegmentUrlPrefix . When AWS Elemental MediaTailor serves a manifest, it reports your CDN as the source for ad segments.
contentSegmentUrlPrefixoptionalstringcontent_segment_url_prefixoptionalstrcontentSegmentUrlPrefixoptionalStringContentSegmentUrlPrefixoptionalstringContentSegmentUrlPrefixoptional*string #notes
First, create a rule in your CDN for the content segment origin server. Then specify the rule's name in this ContentSegmentUrlPrefix . When AWS Elemental MediaTailor serves a manifest, it reports your CDN as the source for content segments.