| Modifier and Type | Method and Description |
|---|---|
CfnUrl.Builder |
authType(String authType)
The type of authentication that your function URL uses.
|
CfnUrl |
build() |
CfnUrl.Builder |
cors(CfnUrl.CorsProperty cors)
The [Cross-Origin Resource Sharing (CORS)](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) settings for your function URL.
|
CfnUrl.Builder |
cors(IResolvable cors)
The [Cross-Origin Resource Sharing (CORS)](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) settings for your function URL.
|
static CfnUrl.Builder |
create(Construct scope,
String id) |
CfnUrl.Builder |
invokeMode(String invokeMode)
Use one of the following options:.
|
CfnUrl.Builder |
qualifier(String qualifier)
The alias name.
|
CfnUrl.Builder |
targetFunctionArn(String targetFunctionArn)
The name of the Lambda function.
|
@Stability(value=Stable) public static CfnUrl.Builder create(Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnUrl.CorsProperty.Builder.@Stability(value=Stable) public CfnUrl.Builder authType(String authType)
Set to AWS_IAM if you want to restrict access to authenticated users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs .
authType - The type of authentication that your function URL uses. This parameter is required.this@Stability(value=Stable) public CfnUrl.Builder targetFunctionArn(String targetFunctionArn)
Name formats - Function name - my-function .
arn:aws:lambda:us-west-2:123456789012:function:my-function .123456789012:function:my-function .The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
targetFunctionArn - The name of the Lambda function. This parameter is required.this@Stability(value=Stable) public CfnUrl.Builder cors(IResolvable cors)
cors - The [Cross-Origin Resource Sharing (CORS)](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) settings for your function URL. This parameter is required.this@Stability(value=Stable) public CfnUrl.Builder cors(CfnUrl.CorsProperty cors)
cors - The [Cross-Origin Resource Sharing (CORS)](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) settings for your function URL. This parameter is required.this@Stability(value=Stable) public CfnUrl.Builder invokeMode(String invokeMode)
BUFFERED – This is the default option. Lambda invokes your function using the Invoke API operation. Invocation results are available when the payload is complete. The maximum payload size is 6 MB.RESPONSE_STREAM – Your function streams payload results as they become available. Lambda invokes your function using the InvokeWithResponseStream API operation. The maximum response payload size is 20 MB, however, you can request a quota increase .invokeMode - Use one of the following options:. This parameter is required.this@Stability(value=Stable) public CfnUrl.Builder qualifier(String qualifier)
qualifier - The alias name. This parameter is required.thisCopyright © 2023. All rights reserved.