@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:50.299Z") @Stability(value=Experimental) public interface SourceConfiguration extends software.amazon.jsii.JsiiSerializable
An origin is what CloudFront will "be in front of" - that is, CloudFront will pull it's assets from an origin.
If you're using s3 as a source - pass the s3Origin property, otherwise, pass the customOriginSource property.
One or the other must be passed, and it is invalid to pass both in the same SourceConfiguration.
| Modifier and Type | Interface and Description |
|---|---|
static class |
SourceConfiguration.Builder
A builder for
SourceConfiguration |
static class |
SourceConfiguration.Jsii$Proxy
An implementation for
SourceConfiguration |
| Modifier and Type | Method and Description |
|---|---|
static SourceConfiguration.Builder |
builder() |
List<Behavior> |
getBehaviors()
(experimental) The behaviors associated with this source.
|
default Number |
getConnectionAttempts()
(experimental) The number of times that CloudFront attempts to connect to the origin.
|
default Duration |
getConnectionTimeout()
(experimental) The number of seconds that CloudFront waits when trying to establish a connection to the origin.
|
default CustomOriginConfig |
getCustomOriginSource()
(experimental) A custom origin source - for all non-s3 sources.
|
default List<FailoverStatusCode> |
getFailoverCriteriaStatusCodes()
(experimental) HTTP status code to failover to second origin.
|
default CustomOriginConfig |
getFailoverCustomOriginSource()
(experimental) A custom origin source for failover in case the s3OriginSource returns invalid status code.
|
default S3OriginConfig |
getFailoverS3OriginSource()
(experimental) An s3 origin source for failover in case the s3OriginSource returns invalid status code.
|
default S3OriginConfig |
getS3OriginSource()
(experimental) An s3 origin source - if you're using s3 for your assets.
|
@Stability(value=Experimental) @NotNull List<Behavior> getBehaviors()
At least one (default) behavior must be included.
@Stability(value=Experimental) @Nullable default Number getConnectionAttempts()
You can specify 1, 2, or 3 as the number of attempts.
Default: 3
@Stability(value=Experimental) @Nullable default Duration getConnectionTimeout()
You can specify a number of seconds between 1 and 10 (inclusive).
Default: cdk.Duration.seconds(10)
@Stability(value=Experimental) @Nullable default CustomOriginConfig getCustomOriginSource()
@Stability(value=Experimental) @Nullable default List<FailoverStatusCode> getFailoverCriteriaStatusCodes()
Default: [500, 502, 503, 504]
@Stability(value=Experimental) @Nullable default CustomOriginConfig getFailoverCustomOriginSource()
Default: - no failover configuration
@Stability(value=Experimental) @Nullable default S3OriginConfig getFailoverS3OriginSource()
Default: - no failover configuration
@Stability(value=Experimental) @Nullable default S3OriginConfig getS3OriginSource()
@Stability(value=Experimental) static SourceConfiguration.Builder builder()
SourceConfiguration.Builder of SourceConfigurationCopyright © 2021. All rights reserved.