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:
HttpOrigin origin = HttpOrigin.Builder.create("www.example.com")
.ipAddressType(OriginIpAddressType.IPV6)
.build();
Distribution.Builder.create(this, "Distribution")
.defaultBehavior(BehaviorOptions.builder().origin(origin).build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forHttpOriginPropsstatic final classAn implementation forHttpOriginProps -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpOriginProps.Builderbuilder()default NumberThe HTTP port that CloudFront uses to connect to the origin.default NumberThe HTTPS port that CloudFront uses to connect to the origin.default OriginIpAddressTypeSpecifies which IP protocol CloudFront uses when connecting to your origin.default DurationSpecifies 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 OriginProtocolPolicySpecifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin.default DurationSpecifies 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$toJsonMethods inherited from interface software.amazon.awscdk.services.cloudfront.OriginOptions
getConnectionAttempts, getConnectionTimeout, getCustomHeaders, getOriginAccessControlId, getOriginId, getOriginShieldEnabled, getOriginShieldRegion, getResponseCompletionTimeoutMethods 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
-
getIpAddressType
Specifies which IP protocol CloudFront uses when connecting to your origin.If your origin uses both IPv4 and IPv6 protocols, you can choose dualstack to help optimize reliability.
Default: undefined - AWS Cloudfront default is IPv4
-
getKeepaliveTimeout
Specifies how long, in seconds, CloudFront persists its connection to the origin.The minimum is 1 second. The maximum is governed by the keep-alive timeout per origin quota, which is adjustable, so the effective maximum depends on the target account.
The default quota allows up to 300 seconds; higher values require an approved limit increase in the target account, and otherwise 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 minimum is 1 second. The maximum is governed by the origin response timeout quota, which is adjustable, so the effective maximum depends on the target account.
The default quota allows up to 120 seconds; higher values require an approved limit increase in the target account, and otherwise produce an error at deploy time.
Default: Duration.seconds(30)
-
builder
- Returns:
- a
HttpOriginProps.BuilderofHttpOriginProps
-