Interface HttpOriginProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,OriginOptions
,OriginProps
- All Known Subinterfaces:
LoadBalancerV2OriginProps
,S3StaticWebsiteOriginProps
- All Known Implementing Classes:
HttpOriginProps.Jsii$Proxy
,LoadBalancerV2OriginProps.Jsii$Proxy
,S3StaticWebsiteOriginProps.Jsii$Proxy
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.*; import software.amazon.awscdk.services.cloudfront.*; import software.amazon.awscdk.services.cloudfront.origins.*; HttpOriginProps httpOriginProps = HttpOriginProps.builder() .connectionAttempts(123) .connectionTimeout(Duration.minutes(30)) .customHeaders(Map.of( "customHeadersKey", "customHeaders")) .httpPort(123) .httpsPort(123) .keepaliveTimeout(Duration.minutes(30)) .originAccessControlId("originAccessControlId") .originId("originId") .originPath("originPath") .originShieldEnabled(false) .originShieldRegion("originShieldRegion") .originSslProtocols(List.of(OriginSslPolicy.SSL_V3)) .protocolPolicy(OriginProtocolPolicy.HTTP_ONLY) .readTimeout(Duration.minutes(30)) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forHttpOriginProps
static final class
An implementation forHttpOriginProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic HttpOriginProps.Builder
builder()
default Number
The HTTP port that CloudFront uses to connect to the origin.default Number
The HTTPS port that CloudFront uses to connect to the origin.default Duration
Specifies how long, in seconds, CloudFront persists its connection to the origin.default List<OriginSslPolicy>
The SSL versions to use when interacting with the origin.default OriginProtocolPolicy
Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin.default Duration
Specifies how long, in seconds, CloudFront waits for a response from the origin, also known as the origin response timeout.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods inherited from interface software.amazon.awscdk.services.cloudfront.OriginOptions
getConnectionAttempts, getConnectionTimeout, getCustomHeaders, getOriginAccessControlId, getOriginId, getOriginShieldEnabled, getOriginShieldRegion
Methods inherited from interface software.amazon.awscdk.services.cloudfront.OriginProps
getOriginPath
-
Method Details
-
getHttpPort
The HTTP port that CloudFront uses to connect to the origin.Default: 80
-
getHttpsPort
The HTTPS port that CloudFront uses to connect to the origin.Default: 443
-
getKeepaliveTimeout
Specifies how long, in seconds, CloudFront persists its connection to the origin.The valid range is from 1 to 180 seconds, inclusive.
Note that values over 60 seconds are possible only after a limit increase request for the origin response timeout quota has been approved in the target account; otherwise, values over 60 seconds will produce an error at deploy time.
Default: Duration.seconds(5)
-
getOriginSslProtocols
The SSL versions to use when interacting with the origin.Default: OriginSslPolicy.TLS_V1_2
-
getProtocolPolicy
Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin.Default: OriginProtocolPolicy.HTTPS_ONLY
-
getReadTimeout
Specifies how long, in seconds, CloudFront waits for a response from the origin, also known as the origin response timeout.The valid range is from 1 to 180 seconds, inclusive.
Note that values over 60 seconds are possible only after a limit increase request for the origin response timeout quota has been approved in the target account; otherwise, values over 60 seconds will produce an error at deploy time.
Default: Duration.seconds(30)
-
builder
- Returns:
- a
HttpOriginProps.Builder
ofHttpOriginProps
-