Modifier and Type | Method and Description |
---|---|
CfnUrl.Builder |
authType(java.lang.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,
java.lang.String id) |
CfnUrl.Builder |
invokeMode(java.lang.String invokeMode)
`AWS::Lambda::Url.InvokeMode`.
|
CfnUrl.Builder |
qualifier(java.lang.String qualifier)
The alias name.
|
CfnUrl.Builder |
targetFunctionArn(java.lang.String targetFunctionArn)
The name of the Lambda function.
|
public static CfnUrl.Builder create(Construct scope, java.lang.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
.public CfnUrl.Builder authType(java.lang.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
public CfnUrl.Builder targetFunctionArn(java.lang.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
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
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
public CfnUrl.Builder invokeMode(java.lang.String invokeMode)
invokeMode
- `AWS::Lambda::Url.InvokeMode`. This parameter is required.this
public CfnUrl.Builder qualifier(java.lang.String qualifier)
qualifier
- The alias name. This parameter is required.this
public CfnUrl build()