@Stability(value=Stable) public static final class CfnStreamingDistribution.LoggingProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnStreamingDistribution.LoggingProperty>
CfnStreamingDistribution.LoggingProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnStreamingDistribution.LoggingProperty.Builder |
bucket(String bucket)
Sets the value of
CfnStreamingDistribution.LoggingProperty.getBucket() |
CfnStreamingDistribution.LoggingProperty |
build()
Builds the configured instance.
|
CfnStreamingDistribution.LoggingProperty.Builder |
enabled(Boolean enabled)
Sets the value of
CfnStreamingDistribution.LoggingProperty.getEnabled() |
CfnStreamingDistribution.LoggingProperty.Builder |
enabled(IResolvable enabled)
Sets the value of
CfnStreamingDistribution.LoggingProperty.getEnabled() |
CfnStreamingDistribution.LoggingProperty.Builder |
prefix(String prefix)
Sets the value of
CfnStreamingDistribution.LoggingProperty.getPrefix() |
@Stability(value=Stable) public CfnStreamingDistribution.LoggingProperty.Builder bucket(String bucket)
CfnStreamingDistribution.LoggingProperty.getBucket()bucket - The Amazon S3 bucket to store the access logs in, for example, `myawslogbucket.s3.amazonaws.com` . This parameter is required.this@Stability(value=Stable) public CfnStreamingDistribution.LoggingProperty.Builder enabled(Boolean enabled)
CfnStreamingDistribution.LoggingProperty.getEnabled()enabled - Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. This parameter is required.
If you don't want to enable logging when you create a streaming distribution or if you want to disable logging for an existing streaming distribution, specify false for Enabled , and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket and Prefix , the values are automatically deleted.this@Stability(value=Stable) public CfnStreamingDistribution.LoggingProperty.Builder enabled(IResolvable enabled)
CfnStreamingDistribution.LoggingProperty.getEnabled()enabled - Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. This parameter is required.
If you don't want to enable logging when you create a streaming distribution or if you want to disable logging for an existing streaming distribution, specify false for Enabled , and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket and Prefix , the values are automatically deleted.this@Stability(value=Stable) public CfnStreamingDistribution.LoggingProperty.Builder prefix(String prefix)
CfnStreamingDistribution.LoggingProperty.getPrefix()prefix - An optional string that you want CloudFront to prefix to the access log filenames for this streaming distribution, for example, `myprefix/` . This parameter is required.
If you want to enable logging, but you don't want to specify a prefix, you still must include an empty Prefix element in the Logging element.this@Stability(value=Stable) public CfnStreamingDistribution.LoggingProperty build()
build in interface software.amazon.jsii.Builder<CfnStreamingDistribution.LoggingProperty>CfnStreamingDistribution.LoggingPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.