# CfnAdConfigurationProps

Struct · External

Properties for defining a `CfnAdConfiguration`.

Used as props by: [CfnAdConfiguration](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ivs.CfnAdConfiguration.html)

- Source: Generated at build time
- Type last changed: v2.274.0 · 20 Oct 2026

## Example

TypeScript:

```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:

```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:

```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();
```

C#:

```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:

```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

- `mediaTailorPlaybackConfigurations`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAdConfiguration.MediaTailorPlaybackConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ivs.CfnAdConfiguration.MediaTailorPlaybackConfigurationProperty.html)[] (required) — List of integration configurations with MediaTailor resources.

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

- `name`: string — Ad configuration name.

  The value does not need to be unique.

- `postRollConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAdConfiguration.PostRollConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ivs.CfnAdConfiguration.PostRollConfigurationProperty.html) — Configuration for the post-roll ad break to use for this ad configuration.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — Tags attached to the resource.
