public static final class CfnUrlProps.Builder
extends java.lang.Object
CfnUrlProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnUrlProps.Builder |
authType(java.lang.String authType)
Sets the value of
CfnUrlProps.getAuthType() |
CfnUrlProps |
build()
Builds the configured instance.
|
CfnUrlProps.Builder |
cors(CfnUrl.CorsProperty cors)
Sets the value of
CfnUrlProps.getCors() |
CfnUrlProps.Builder |
cors(IResolvable cors)
Sets the value of
CfnUrlProps.getCors() |
CfnUrlProps.Builder |
invokeMode(java.lang.String invokeMode)
Sets the value of
CfnUrlProps.getInvokeMode() |
CfnUrlProps.Builder |
qualifier(java.lang.String qualifier)
Sets the value of
CfnUrlProps.getQualifier() |
CfnUrlProps.Builder |
targetFunctionArn(java.lang.String targetFunctionArn)
Sets the value of
CfnUrlProps.getTargetFunctionArn() |
public CfnUrlProps.Builder authType(java.lang.String authType)
CfnUrlProps.getAuthType()
authType
- The type of authentication that your function URL uses. This parameter is required.
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 .this
public CfnUrlProps.Builder targetFunctionArn(java.lang.String targetFunctionArn)
CfnUrlProps.getTargetFunctionArn()
targetFunctionArn
- The name of the Lambda function. This parameter is required.
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.
this
public CfnUrlProps.Builder cors(IResolvable cors)
CfnUrlProps.getCors()
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
public CfnUrlProps.Builder cors(CfnUrl.CorsProperty cors)
CfnUrlProps.getCors()
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
public CfnUrlProps.Builder invokeMode(java.lang.String invokeMode)
CfnUrlProps.getInvokeMode()
invokeMode
- `AWS::Lambda::Url.InvokeMode`.this
public CfnUrlProps.Builder qualifier(java.lang.String qualifier)
CfnUrlProps.getQualifier()
qualifier
- The alias name.this
public CfnUrlProps build()
CfnUrlProps
java.lang.NullPointerException
- if any required attribute was not provided