All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.mediatailor.kotlin.outputs.PlaybackConfigurationCdnConfiguration.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.mediatailor.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 * The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment management.
 * @property adSegmentUrlPrefix A non-default content delivery network (CDN) to serve ad segments. 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.
 * @property contentSegmentUrlPrefix A content delivery network (CDN) to cache content segments, so that content requests don't always have to go to the origin server. 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.
 */
public data class PlaybackConfigurationCdnConfiguration(
    public val adSegmentUrlPrefix: String? = null,
    public val contentSegmentUrlPrefix: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.mediatailor.outputs.PlaybackConfigurationCdnConfiguration): PlaybackConfigurationCdnConfiguration = PlaybackConfigurationCdnConfiguration(
            adSegmentUrlPrefix = javaType.adSegmentUrlPrefix().map({ args0 -> args0 }).orElse(null),
            contentSegmentUrlPrefix = javaType.contentSegmentUrlPrefix().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy