Class S3Origin.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.origins.S3Origin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<S3Origin>
- Enclosing class:
S3Origin
@Stability(Deprecated)
@Deprecated
public static final class S3Origin.Builder
extends Object
implements software.amazon.jsii.Builder<S3Origin>
Deprecated.
(deprecated) A fluent builder for
S3Origin
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Deprecated.connectionAttempts
(Number connectionAttempts) Deprecated.The number of times that CloudFront attempts to connect to the origin;connectionTimeout
(Duration connectionTimeout) Deprecated.The number of seconds that CloudFront waits when trying to establish a connection to the origin.static S3Origin.Builder
Deprecated.customHeaders
(Map<String, String> customHeaders) Deprecated.A list of HTTP header names and values that CloudFront adds to requests it sends to the origin.originAccessControlId
(String originAccessControlId) Deprecated.The unique identifier of an origin access control for this origin.originAccessIdentity
(IOriginAccessIdentity originAccessIdentity) Deprecated.An optional Origin Access Identity of the origin identity cloudfront will use when calling your s3 bucket.Deprecated.A unique identifier for the origin.originPath
(String originPath) Deprecated.An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin.originShieldEnabled
(Boolean originShieldEnabled) Deprecated.Origin Shield is enabled by setting originShieldRegion to a valid region, after this to disable Origin Shield again you must set this flag to false.originShieldRegion
(String originShieldRegion) Deprecated.When you enable Origin Shield in the AWS Region that has the lowest latency to your origin, you can get better network performance.
-
Method Details
-
create
Deprecated.- Parameters:
bucket
- This parameter is required.- Returns:
- a new instance of
S3Origin.Builder
.
-
connectionAttempts
Deprecated.The number of times that CloudFront attempts to connect to the origin;valid values are 1, 2, or 3 attempts.
Default: 3
- Parameters:
connectionAttempts
- The number of times that CloudFront attempts to connect to the origin;. This parameter is required.- Returns:
this
-
connectionTimeout
Deprecated.The number of seconds that CloudFront waits when trying to establish a connection to the origin.Valid values are 1-10 seconds, inclusive.
Default: Duration.seconds(10)
- Parameters:
connectionTimeout
- The number of seconds that CloudFront waits when trying to establish a connection to the origin. This parameter is required.- Returns:
this
-
customHeaders
Deprecated.A list of HTTP header names and values that CloudFront adds to requests it sends to the origin.Default: {}
- Parameters:
customHeaders
- A list of HTTP header names and values that CloudFront adds to requests it sends to the origin. This parameter is required.- Returns:
this
-
originAccessControlId
Deprecated.The unique identifier of an origin access control for this origin.Default: - no origin access control
- Parameters:
originAccessControlId
- The unique identifier of an origin access control for this origin. This parameter is required.- Returns:
this
-
originId
Deprecated.A unique identifier for the origin.This value must be unique within the distribution.
Default: - an originid will be generated for you
- Parameters:
originId
- A unique identifier for the origin. This parameter is required.- Returns:
this
-
originShieldEnabled
Deprecated.Origin Shield is enabled by setting originShieldRegion to a valid region, after this to disable Origin Shield again you must set this flag to false.Default: - true
- Parameters:
originShieldEnabled
- Origin Shield is enabled by setting originShieldRegion to a valid region, after this to disable Origin Shield again you must set this flag to false. This parameter is required.- Returns:
this
-
originShieldRegion
Deprecated.When you enable Origin Shield in the AWS Region that has the lowest latency to your origin, you can get better network performance.Default: - origin shield not enabled
- Parameters:
originShieldRegion
- When you enable Origin Shield in the AWS Region that has the lowest latency to your origin, you can get better network performance. This parameter is required.- Returns:
this
- See Also:
-
originPath
Deprecated.An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin.Must begin, but not end, with '/' (e.g., '/production/images').
Default: '/'
- Parameters:
originPath
- An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin. This parameter is required.- Returns:
this
-
originAccessIdentity
@Stability(Stable) public S3Origin.Builder originAccessIdentity(IOriginAccessIdentity originAccessIdentity) Deprecated.An optional Origin Access Identity of the origin identity cloudfront will use when calling your s3 bucket.Default: - An Origin Access Identity will be created.
- Parameters:
originAccessIdentity
- An optional Origin Access Identity of the origin identity cloudfront will use when calling your s3 bucket. This parameter is required.- Returns:
this
-
build
Deprecated.
-