Interface IFunctionUrlOriginProps
Properties for a Lambda Function URL Origin.
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFront.Origins
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IFunctionUrlOriginProps : IOriginProps, IOriginOptions
Syntax (vb)
Public Interface IFunctionUrlOriginProps
Inherits IOriginProps, IOriginOptions
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
using Amazon.CDK.AWS.CloudFront.Origins;
var functionUrlOriginProps = new FunctionUrlOriginProps {
ConnectionAttempts = 123,
ConnectionTimeout = Duration.Minutes(30),
CustomHeaders = new Dictionary<string, string> {
{ "customHeadersKey", "customHeaders" }
},
KeepaliveTimeout = Duration.Minutes(30),
OriginAccessControlId = "originAccessControlId",
OriginId = "originId",
OriginPath = "originPath",
OriginShieldEnabled = false,
OriginShieldRegion = "originShieldRegion",
ReadTimeout = Duration.Minutes(30)
};
Synopsis
Properties
Keepalive |
Specifies how long, in seconds, CloudFront persists its connection to the origin. |
Read |
Specifies how long, in seconds, CloudFront waits for a response from the origin. |
Properties
KeepaliveTimeout
Specifies how long, in seconds, CloudFront persists its connection to the origin.
virtual Duration KeepaliveTimeout { get; }
Property Value
Remarks
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)
ReadTimeout
Specifies how long, in seconds, CloudFront waits for a response from the origin.
virtual Duration ReadTimeout { get; }
Property Value
Remarks
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)