StreamingDistributionConfigProperty Struct
The RTMP distribution's configuration information.
| Source | |
|---|---|
| Type last changed |
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 streamingDistributionConfigProperty: cloudfront.CfnStreamingDistribution.StreamingDistributionConfigProperty = {
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',
};
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_cloudfront as cloudfront
streaming_distribution_config_property = 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"
)
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.*;
StreamingDistributionConfigProperty streamingDistributionConfigProperty = 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();
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 streamingDistributionConfigProperty = 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"
};
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"
streamingDistributionConfigProperty := &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"),
}
Properties
aliasesoptionalstring[]aliasesoptionaltyping.List[str]aliasesoptionalList<String>Aliasesoptionalstring[]Aliasesoptional*[]*string #A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.
Any comments you want to include about the streaming distribution.
enabledboolean | IResolvableenabledtyping.Union[bool, IResolvable]enabledBooleanEnabledboolEnabledinterface{} required #Whether the streaming distribution is enabled to accept user requests for content.
loggingoptionalIResolvable | CfnStreamingDistribution.loggingoptionaltyping.Union[IResolvable, LoggingProperty]loggingoptionalIResolvableLoggingoptionalIResolvableLoggingoptionalinterface{} #A complex type that controls whether access logs are written for the streaming distribution.
priceClassoptionalstringprice_classoptionalstrpriceClassoptionalStringPriceClassoptionalstringPriceClassoptional*string #A complex type that contains information about price class for this streaming distribution.
s3OriginIResolvable | CfnStreamingDistribution.s3_origintyping.Union[IResolvable, S3OriginProperty]s3OriginIResolvableS3OriginIResolvableS3Origininterface{} required #A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.
trustedSignersIResolvable | CfnStreamingDistribution.trusted_signerstyping.Union[IResolvable, TrustedSignersProperty]trustedSignersIResolvableTrustedSignersIResolvableTrustedSignersinterface{} required #A complex type that specifies any AWS accounts that you want to permit to create signed URLs for private content.
notes
If you want the distribution to use signed URLs, include this element; if you want the distribution to use public URLs, remove this element. For more information, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide .