@pulumi/aws-native
Version:
The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)
46 lines (45 loc) • 1.88 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
import * as enums from "../types/enums";
/**
* Resource Type definition for AWS::Lambda::Url
*/
export declare function getUrl(args: GetUrlArgs, opts?: pulumi.InvokeOptions): Promise<GetUrlResult>;
export interface GetUrlArgs {
/**
* The full Amazon Resource Name (ARN) of the function associated with the Function URL.
*/
functionArn: string;
}
export interface GetUrlResult {
/**
* Can be either AWS_IAM if the requests are authorized via IAM, or NONE if no authorization is configured on the Function URL.
*/
readonly authType?: enums.lambda.UrlAuthType;
/**
* 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.
*/
readonly cors?: outputs.lambda.UrlCors;
/**
* The full Amazon Resource Name (ARN) of the function associated with the Function URL.
*/
readonly functionArn?: string;
/**
* The generated url for this resource.
*/
readonly functionUrl?: string;
/**
* 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.
*/
readonly invokeMode?: enums.lambda.UrlInvokeMode;
}
/**
* Resource Type definition for AWS::Lambda::Url
*/
export declare function getUrlOutput(args: GetUrlOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetUrlResult>;
export interface GetUrlOutputArgs {
/**
* The full Amazon Resource Name (ARN) of the function associated with the Function URL.
*/
functionArn: pulumi.Input<string>;
}