public static final class FunctionUrl.Builder
extends java.lang.Object
FunctionUrl
.Modifier and Type | Method and Description |
---|---|
FunctionUrl.Builder |
authType(FunctionUrlAuthType authType)
The type of authentication that your function URL uses.
|
FunctionUrl |
build() |
FunctionUrl.Builder |
cors(FunctionUrlCorsOptions cors)
The cross-origin resource sharing (CORS) settings for your function URL.
|
static FunctionUrl.Builder |
create(software.constructs.Construct scope,
java.lang.String id) |
FunctionUrl.Builder |
function(IFunction function)
The function to which this url refers.
|
public static FunctionUrl.Builder create(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.FunctionUrl.Builder
.public FunctionUrl.Builder authType(FunctionUrlAuthType authType)
Default: FunctionUrlAuthType.AWS_IAM
authType
- The type of authentication that your function URL uses. This parameter is required.this
public FunctionUrl.Builder cors(FunctionUrlCorsOptions cors)
Default: - No CORS configuration.
cors
- The cross-origin resource sharing (CORS) settings for your function URL. This parameter is required.this
public FunctionUrl.Builder function(IFunction function)
It can also be an Alias
but not a Version
.
function
- The function to which this url refers. This parameter is required.this
public FunctionUrl build()