Interface FunctionUrlOriginProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,OriginOptions,OriginProps
- All Known Subinterfaces:
FunctionUrlOriginWithOACProps
- All Known Implementing Classes:
FunctionUrlOriginProps.Jsii$Proxy,FunctionUrlOriginWithOACProps.Jsii$Proxy
Example:
import software.amazon.awscdk.services.lambda.*;
Function fn;
FunctionUrl fnUrl = fn.addFunctionUrl(FunctionUrlOptions.builder().authType(FunctionUrlAuthType.NONE).build());
Distribution.Builder.create(this, "Distribution")
.defaultBehavior(BehaviorOptions.builder()
.origin(FunctionUrlOrigin.Builder.create(fnUrl)
.readTimeout(Duration.seconds(30))
.responseCompletionTimeout(Duration.seconds(90))
.keepaliveTimeout(Duration.seconds(45))
.build())
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forFunctionUrlOriginPropsstatic final classAn implementation forFunctionUrlOriginProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()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 DurationSpecifies how long, in seconds, CloudFront waits for a response from the origin.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
-
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: OriginIpAddressType.IPV4
-
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)
-
getReadTimeout
Specifies how long, in seconds, CloudFront waits for a response from 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(30)
-
builder
- Returns:
- a
FunctionUrlOriginProps.BuilderofFunctionUrlOriginProps
-