aws-native.lambda.getUrl
Explore with Pulumi AI
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 - 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 - 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 - 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 - 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 - 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 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 "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
- 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
- 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
- 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
- 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
- allow_
credentials bool Specifies whether credentials are included in the CORS request.
- allow_
headers Sequence[str] Represents a collection of allowed headers.
- allow_
methods UrlAllow 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
- 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
UrlInvokeMode
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0