Skip to content
v2.277.0

CfnStreamingDistributionProps Struct ​

Properties for defining a CfnStreamingDistribution.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const cfnStreamingDistributionProps: cloudfront.CfnStreamingDistributionProps = {
  streamingDistributionConfig: {
    comment: 'comment',
    enabled: false,
    s3Origin: {
      domainName: 'domainName',
      originAccessIdentity: 'originAccessIdentity',
    },
    trustedSigners: {
      enabled: false,

      // the properties below are optional
      awsAccountNumbers: ['awsAccountNumbers'],
    },

    // the properties below are optional
    aliases: ['aliases'],
    logging: {
      bucket: 'bucket',
      enabled: false,
      prefix: 'prefix',
    },
    priceClass: 'priceClass',
  },

  // the properties below are optional
  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_cloudfront as cloudfront

cfn_streaming_distribution_props = cloudfront.CfnStreamingDistributionProps(
    streaming_distribution_config=cloudfront.CfnStreamingDistribution.StreamingDistributionConfigProperty(
        comment="comment",
        enabled=False,
        s3_origin=cloudfront.CfnStreamingDistribution.S3OriginProperty(
            domain_name="domainName",
            origin_access_identity="originAccessIdentity"
        ),
        trusted_signers=cloudfront.CfnStreamingDistribution.TrustedSignersProperty(
            enabled=False,

            # the properties below are optional
            aws_account_numbers=["awsAccountNumbers"]
        ),

        # the properties below are optional
        aliases=["aliases"],
        logging=cloudfront.CfnStreamingDistribution.LoggingProperty(
            bucket="bucket",
            enabled=False,
            prefix="prefix"
        ),
        price_class="priceClass"
    ),

    # the properties below are optional
    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.cloudfront.*;

CfnStreamingDistributionProps cfnStreamingDistributionProps = CfnStreamingDistributionProps.builder()
        .streamingDistributionConfig(StreamingDistributionConfigProperty.builder()
                .comment("comment")
                .enabled(false)
                .s3Origin(S3OriginProperty.builder()
                        .domainName("domainName")
                        .originAccessIdentity("originAccessIdentity")
                        .build())
                .trustedSigners(TrustedSignersProperty.builder()
                        .enabled(false)

                        // the properties below are optional
                        .awsAccountNumbers(List.of("awsAccountNumbers"))
                        .build())

                // the properties below are optional
                .aliases(List.of("aliases"))
                .logging(LoggingProperty.builder()
                        .bucket("bucket")
                        .enabled(false)
                        .prefix("prefix")
                        .build())
                .priceClass("priceClass")
                .build())

        // the properties below are optional
        .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.CloudFront;

var cfnStreamingDistributionProps = new CfnStreamingDistributionProps {
    StreamingDistributionConfig = new StreamingDistributionConfigProperty {
        Comment = "comment",
        Enabled = false,
        S3Origin = new S3OriginProperty {
            DomainName = "domainName",
            OriginAccessIdentity = "originAccessIdentity"
        },
        TrustedSigners = new TrustedSignersProperty {
            Enabled = false,

            // the properties below are optional
            AwsAccountNumbers = new [] { "awsAccountNumbers" }
        },

        // the properties below are optional
        Aliases = new [] { "aliases" },
        Logging = new LoggingProperty {
            Bucket = "bucket",
            Enabled = false,
            Prefix = "prefix"
        },
        PriceClass = "priceClass"
    },

    // the properties below are optional
    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"

cfnStreamingDistributionProps := &CfnStreamingDistributionProps{
	StreamingDistributionConfig: &StreamingDistributionConfigProperty{
		Comment: jsii.String("comment"),
		Enabled: jsii.Boolean(false),
		S3Origin: &S3OriginProperty{
			DomainName: jsii.String("domainName"),
			OriginAccessIdentity: jsii.String("originAccessIdentity"),
		},
		TrustedSigners: &TrustedSignersProperty{
			Enabled: jsii.Boolean(false),

			// the properties below are optional
			AwsAccountNumbers: []*string{
				jsii.String("awsAccountNumbers"),
			},
		},

		// the properties below are optional
		Aliases: []*string{
			jsii.String("aliases"),
		},
		Logging: &LoggingProperty{
			Bucket: jsii.String("bucket"),
			Enabled: jsii.Boolean(false),
			Prefix: jsii.String("prefix"),
		},
		PriceClass: jsii.String("priceClass"),
	},

	// the properties below are optional
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

streamingDistributionConfigIResolvable | CfnStreamingDistribution.StreamingDistributionConfigPropertystreaming_distribution_configtyping.Union[IResolvable, StreamingDistributionConfigProperty]streamingDistributionConfigIResolvableStreamingDistributionConfigIResolvableStreamingDistributionConfiginterface{} required #
The current configuration information for the RTMP distribution.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
A complex type that contains zero or more `Tag` elements.