A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.aws.amazon.com/cdk/api/v1/python/aws_cdk.aws_lambda/FunctionUrlOptions.html below:

Website Navigation


FunctionUrlOptions — AWS Cloud Development Kit 1.204.0 documentation

FunctionUrlOptions
class aws_cdk.aws_lambda.FunctionUrlOptions(*, auth_type=None, cors=None)

Bases: object

Options to add a url to a Lambda function.

Parameters:
  • auth_type (Optional[FunctionUrlAuthType]) – The type of authentication that your function URL uses. Default: FunctionUrlAuthType.AWS_IAM

  • cors (Union[FunctionUrlCorsOptions, Dict[str, Any], None]) – The cross-origin resource sharing (CORS) settings for your function URL. Default: - No CORS configuration.

ExampleMetadata:

infused

Example:

# Can be a Function or an Alias
# fn: lambda.Function


fn_url = fn.add_function_url(
    auth_type=lambda_.FunctionUrlAuthType.NONE
)

CfnOutput(self, "TheUrl",
    value=fn_url.url
)

Attributes

auth_type

The type of authentication that your function URL uses.

Default:

FunctionUrlAuthType.AWS_IAM

cors

The cross-origin resource sharing (CORS) settings for your function URL.

Default:
  • No CORS configuration.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4