Skip to content
v2.278.0

CfnAdConfigurationProps ​

Struct External

Properties for defining a CfnAdConfiguration.

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 cfnAdConfigurationProps: ivs.CfnAdConfigurationProps = {
  mediaTailorPlaybackConfigurations: [{
    playbackConfigurationArn: 'playbackConfigurationArn',
  }],

  // the properties below are optional
  name: 'name',
  postRollConfiguration: {
    durationSeconds: 123,
    enabled: false,
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# 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

cfn_ad_configuration_props = ivs.CfnAdConfigurationProps(
    media_tailor_playback_configurations=[ivs.CfnAdConfiguration.MediaTailorPlaybackConfigurationProperty(
        playback_configuration_arn="playbackConfigurationArn"
    )],

    # the properties below are optional
    name="name",
    post_roll_configuration=ivs.CfnAdConfiguration.PostRollConfigurationProperty(
        duration_seconds=123,
        enabled=False
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
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.*;

CfnAdConfigurationProps cfnAdConfigurationProps = CfnAdConfigurationProps.builder()
        .mediaTailorPlaybackConfigurations(List.of(MediaTailorPlaybackConfigurationProperty.builder()
                .playbackConfigurationArn("playbackConfigurationArn")
                .build()))

        // the properties below are optional
        .name("name")
        .postRollConfiguration(PostRollConfigurationProperty.builder()
                .durationSeconds(123)
                .enabled(false)
                .build())
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .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 cfnAdConfigurationProps = new CfnAdConfigurationProps {
    MediaTailorPlaybackConfigurations = new [] { new MediaTailorPlaybackConfigurationProperty {
        PlaybackConfigurationArn = "playbackConfigurationArn"
    } },

    // the properties below are optional
    Name = "name",
    PostRollConfiguration = new PostRollConfigurationProperty {
        DurationSeconds = 123,
        Enabled = false
    },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
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"

cfnAdConfigurationProps := &CfnAdConfigurationProps{
	MediaTailorPlaybackConfigurations: []interface{}{
		&MediaTailorPlaybackConfigurationProperty{
			PlaybackConfigurationArn: jsii.String("playbackConfigurationArn"),
		},
	},

	// the properties below are optional
	Name: jsii.String("name"),
	PostRollConfiguration: &PostRollConfigurationProperty{
		DurationSeconds: jsii.Number(123),
		Enabled: jsii.Boolean(false),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

mediaTailorPlaybackConfigurationsIResolvable | IResolvable | CfnAdConfiguration.MediaTailorPlaybackConfigurationProperty[]media_tailor_playback_configurationstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, MediaTailorPlaybackConfigurationProperty]]]mediaTailorPlaybackConfigurationsIResolvableMediaTailorPlaybackConfigurationsIResolvableMediaTailorPlaybackConfigurationsinterface{} required #
List of integration configurations with MediaTailor resources.

The first item in the list is the default playback configuration used for the ad configuration.

nameoptionalstringnameoptionalstrnameoptionalStringNameoptionalstringNameoptional*string #
Ad configuration name.

The value does not need to be unique.

postRollConfigurationoptionalIResolvable | CfnAdConfiguration.PostRollConfigurationPropertypost_roll_configurationoptionaltyping.Union[IResolvable, PostRollConfigurationProperty]postRollConfigurationoptionalIResolvablePostRollConfigurationoptionalIResolvablePostRollConfigurationoptionalinterface{} #
Configuration for the post-roll ad break to use for this ad configuration.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
Tags attached to the resource.