public static final class CfnDistribution.LoggingProperty.Builder
extends java.lang.Object
CfnDistribution.LoggingProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnDistribution.LoggingProperty.Builder |
bucket(java.lang.String bucket)
Sets the value of
CfnDistribution.LoggingProperty.getBucket() |
CfnDistribution.LoggingProperty |
build()
Builds the configured instance.
|
CfnDistribution.LoggingProperty.Builder |
includeCookies(java.lang.Boolean includeCookies)
Sets the value of
CfnDistribution.LoggingProperty.getIncludeCookies() |
CfnDistribution.LoggingProperty.Builder |
includeCookies(IResolvable includeCookies)
Sets the value of
CfnDistribution.LoggingProperty.getIncludeCookies() |
CfnDistribution.LoggingProperty.Builder |
prefix(java.lang.String prefix)
Sets the value of
CfnDistribution.LoggingProperty.getPrefix() |
public CfnDistribution.LoggingProperty.Builder bucket(java.lang.String bucket)
CfnDistribution.LoggingProperty.getBucket()
bucket
- The Amazon S3 bucket to store the access logs in, for example, `myawslogbucket.s3.amazonaws.com` . This parameter is required.this
public CfnDistribution.LoggingProperty.Builder includeCookies(java.lang.Boolean includeCookies)
CfnDistribution.LoggingProperty.getIncludeCookies()
includeCookies
- Specifies whether you want CloudFront to include cookies in access logs, specify `true` for `IncludeCookies` .
If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you don't want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specify false
for IncludeCookies
.this
public CfnDistribution.LoggingProperty.Builder includeCookies(IResolvable includeCookies)
CfnDistribution.LoggingProperty.getIncludeCookies()
includeCookies
- Specifies whether you want CloudFront to include cookies in access logs, specify `true` for `IncludeCookies` .
If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you don't want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specify false
for IncludeCookies
.this
public CfnDistribution.LoggingProperty.Builder prefix(java.lang.String prefix)
CfnDistribution.LoggingProperty.getPrefix()
prefix
- An optional string that you want CloudFront to prefix to the access log `filenames` for this distribution, for example, `myprefix/` .
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
public CfnDistribution.LoggingProperty build()
CfnDistribution.LoggingProperty
java.lang.NullPointerException
- if any required attribute was not provided