We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi
aws-native.lambda.getUrl
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi
Resource Type definition for AWS::Lambda::Url
Using getUrl
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getUrl(args: GetUrlArgs, opts?: InvokeOptions): Promise<GetUrlResult>
function getUrlOutput(args: GetUrlOutputArgs, opts?: InvokeOptions): Output<GetUrlResult>
def get_url(function_arn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUrlResult
def get_url_output(function_arn: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUrlResult]
func LookupUrl(ctx *Context, args *LookupUrlArgs, opts ...InvokeOption) (*LookupUrlResult, error)
func LookupUrlOutput(ctx *Context, args *LookupUrlOutputArgs, opts ...InvokeOption) LookupUrlResultOutput
> Note: This function is named LookupUrl
in the Go SDK.
public static class GetUrl
{
public static Task<GetUrlResult> InvokeAsync(GetUrlArgs args, InvokeOptions? opts = null)
public static Output<GetUrlResult> Invoke(GetUrlInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUrlResult> getUrl(GetUrlArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:lambda:getUrl
arguments:
# arguments dictionary
The following arguments are supported:
- Function
Arn string - The full Amazon Resource Name (ARN) of the function associated with the Function URL.
- Function
Arn string - The full Amazon Resource Name (ARN) of the function associated with the Function URL.
- function
Arn String - The full Amazon Resource Name (ARN) of the function associated with the Function URL.
- function
Arn string - The full Amazon Resource Name (ARN) of the function associated with the Function URL.
- function_
arn str - The full Amazon Resource Name (ARN) of the function associated with the Function URL.
- function
Arn String - The full Amazon Resource Name (ARN) of the function associated with the Function URL.
getUrl Result
The following output properties are available:
- Auth
Type Pulumi.Aws Native. Lambda. Url Auth Type - Can be either AWS_IAM if the requests are authorized via IAM, or NONE if no authorization is configured on the Function URL.
- Cors
Pulumi.
Aws Native. Lambda. Outputs. Url Cors - The Cross-Origin Resource Sharing (CORS) settings for your function URL.
- Function
Arn string - The full Amazon Resource Name (ARN) of the function associated with the Function URL.
- Function
Url string - The generated url for this resource.
- Invoke
Mode Pulumi.Aws Native. Lambda. Url Invoke Mode - The invocation mode for the function's URL. Set to BUFFERED if you want to buffer responses before returning them to the client. Set to RESPONSE_STREAM if you want to stream responses, allowing faster time to first byte and larger response payload sizes. If not set, defaults to BUFFERED.
- Auth
Type UrlAuth Type - Can be either AWS_IAM if the requests are authorized via IAM, or NONE if no authorization is configured on the Function URL.
- Cors
Url
Cors - The Cross-Origin Resource Sharing (CORS) settings for your function URL.
- Function
Arn string - The full Amazon Resource Name (ARN) of the function associated with the Function URL.
- Function
Url string - The generated url for this resource.
- Invoke
Mode UrlInvoke Mode - The invocation mode for the function's URL. Set to BUFFERED if you want to buffer responses before returning them to the client. Set to RESPONSE_STREAM if you want to stream responses, allowing faster time to first byte and larger response payload sizes. If not set, defaults to BUFFERED.
- auth
Type UrlAuth Type - Can be either AWS_IAM if the requests are authorized via IAM, or NONE if no authorization is configured on the Function URL.
- cors
Url
Cors - The Cross-Origin Resource Sharing (CORS) settings for your function URL.
- function
Arn String - The full Amazon Resource Name (ARN) of the function associated with the Function URL.
- function
Url String - The generated url for this resource.
- invoke
Mode UrlInvoke Mode - The invocation mode for the function's URL. Set to BUFFERED if you want to buffer responses before returning them to the client. Set to RESPONSE_STREAM if you want to stream responses, allowing faster time to first byte and larger response payload sizes. If not set, defaults to BUFFERED.
- auth
Type UrlAuth Type - Can be either AWS_IAM if the requests are authorized via IAM, or NONE if no authorization is configured on the Function URL.
- cors
Url
Cors - The Cross-Origin Resource Sharing (CORS) settings for your function URL.
- function
Arn string - The full Amazon Resource Name (ARN) of the function associated with the Function URL.
- function
Url string - The generated url for this resource.
- invoke
Mode UrlInvoke Mode - The invocation mode for the function's URL. Set to BUFFERED if you want to buffer responses before returning them to the client. Set to RESPONSE_STREAM if you want to stream responses, allowing faster time to first byte and larger response payload sizes. If not set, defaults to BUFFERED.
- auth_
type lambda_.Url Auth Type - Can be either AWS_IAM if the requests are authorized via IAM, or NONE if no authorization is configured on the Function URL.
- cors
lambda_.
Url Cors - The Cross-Origin Resource Sharing (CORS) settings for your function URL.
- function_
arn str - The full Amazon Resource Name (ARN) of the function associated with the Function URL.
- function_
url str - The generated url for this resource.
- invoke_
mode lambda_.Url Invoke Mode - The invocation mode for the function's URL. Set to BUFFERED if you want to buffer responses before returning them to the client. Set to RESPONSE_STREAM if you want to stream responses, allowing faster time to first byte and larger response payload sizes. If not set, defaults to BUFFERED.
- auth
Type "AWS_IAM" | "NONE" - Can be either AWS_IAM if the requests are authorized via IAM, or NONE if no authorization is configured on the Function URL.
- cors Property Map
- The Cross-Origin Resource Sharing (CORS) settings for your function URL.
- function
Arn String - The full Amazon Resource Name (ARN) of the function associated with the Function URL.
- function
Url String - The generated url for this resource.
- invoke
Mode "BUFFERED" | "RESPONSE_STREAM" - The invocation mode for the function's URL. Set to BUFFERED if you want to buffer responses before returning them to the client. Set to RESPONSE_STREAM if you want to stream responses, allowing faster time to first byte and larger response payload sizes. If not set, defaults to BUFFERED.
Supporting Types
UrlAllowMethodsItem
UrlAuthType
UrlCors
- Allow
Credentials bool - Specifies whether credentials are included in the CORS request.
- Allow
Headers List<string> - Represents a collection of allowed headers.
- Allow
Methods List<Pulumi.Aws Native. Lambda. Url Allow Methods Item> - Represents a collection of allowed HTTP methods.
- Allow
Origins List<string> - Represents a collection of allowed origins.
- Expose
Headers List<string> - Represents a collection of exposed headers.
- Max
Age int - The maximum amount of time, in seconds, that browsers can cache results of a preflight request. By default, this is set to
0
, which means the browser will not cache results.
- Allow
Credentials bool - Specifies whether credentials are included in the CORS request.
- Allow
Headers []string - Represents a collection of allowed headers.
- Allow
Methods []UrlAllow Methods Item - Represents a collection of allowed HTTP methods.
- Allow
Origins []string - Represents a collection of allowed origins.
- Expose
Headers []string - Represents a collection of exposed headers.
- Max
Age int - The maximum amount of time, in seconds, that browsers can cache results of a preflight request. By default, this is set to
0
, which means the browser will not cache results.
- allow
Credentials Boolean - Specifies whether credentials are included in the CORS request.
- allow
Headers List<String> - Represents a collection of allowed headers.
- allow
Methods List<UrlAllow Methods Item> - Represents a collection of allowed HTTP methods.
- allow
Origins List<String> - Represents a collection of allowed origins.
- expose
Headers List<String> - Represents a collection of exposed headers.
- max
Age Integer - The maximum amount of time, in seconds, that browsers can cache results of a preflight request. By default, this is set to
0
, which means the browser will not cache results.
- allow
Credentials boolean - Specifies whether credentials are included in the CORS request.
- allow
Headers string[] - Represents a collection of allowed headers.
- allow
Methods UrlAllow Methods Item[] - Represents a collection of allowed HTTP methods.
- allow
Origins string[] - Represents a collection of allowed origins.
- expose
Headers string[] - Represents a collection of exposed headers.
- max
Age number - The maximum amount of time, in seconds, that browsers can cache results of a preflight request. By default, this is set to
0
, which means the browser will not cache results.
- allow_
credentials bool - Specifies whether credentials are included in the CORS request.
- allow_
headers Sequence[str] - Represents a collection of allowed headers.
- allow_
methods Sequence[lambda_.Url Allow Methods Item] - Represents a collection of allowed HTTP methods.
- allow_
origins Sequence[str] - Represents a collection of allowed origins.
- expose_
headers Sequence[str] - Represents a collection of exposed headers.
- max_
age int - The maximum amount of time, in seconds, that browsers can cache results of a preflight request. By default, this is set to
0
, which means the browser will not cache results.
- allow
Credentials Boolean - Specifies whether credentials are included in the CORS request.
- allow
Headers List<String> - Represents a collection of allowed headers.
- allow
Methods List<"GET" | "PUT" | "HEAD" | "POST" | "PATCH" | "DELETE" | "*"> - Represents a collection of allowed HTTP methods.
- allow
Origins List<String> - Represents a collection of allowed origins.
- expose
Headers List<String> - Represents a collection of exposed headers.
- max
Age Number - The maximum amount of time, in seconds, that browsers can cache results of a preflight request. By default, this is set to
0
, which means the browser will not cache results.
UrlInvokeMode
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi