Skip to content
v2.278.0

CdnConfigurationProperty ​

Struct External

The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment management.

Example ​

ts
// 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',
};
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_mediatailor as mediatailor

cdn_configuration_property = mediatailor.CfnPlaybackConfiguration.CdnConfigurationProperty(
    ad_segment_url_prefix="adSegmentUrlPrefix",
    content_segment_url_prefix="contentSegmentUrlPrefix"
)
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.mediatailor.*;

CdnConfigurationProperty cdnConfigurationProperty = CdnConfigurationProperty.builder()
        .adSegmentUrlPrefix("adSegmentUrlPrefix")
        .contentSegmentUrlPrefix("contentSegmentUrlPrefix")
        .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.MediaTailor;

var cdnConfigurationProperty = new CdnConfigurationProperty {
    AdSegmentUrlPrefix = "adSegmentUrlPrefix",
    ContentSegmentUrlPrefix = "contentSegmentUrlPrefix"
};
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"

cdnConfigurationProperty := &CdnConfigurationProperty{
	AdSegmentUrlPrefix: jsii.String("adSegmentUrlPrefix"),
	ContentSegmentUrlPrefix: jsii.String("contentSegmentUrlPrefix"),
}

Properties ​

adSegmentUrlPrefixoptionalstringad_segment_url_prefixoptionalstradSegmentUrlPrefixoptionalStringAdSegmentUrlPrefixoptionalstringAdSegmentUrlPrefixoptional*string #
A non-default content delivery network (CDN) to serve ad segments.
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 #
A content delivery network (CDN) to cache content segments, so that content requests don’t always have to go to the origin server.
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.