awsLambdaFunctionUrl
Provides information about a Lambda function URL.
Example Usage
import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
/*Terraform Variables are not always the best fit for getting inputs in the context of Terraform CDK.
You can read more about this at https://cdk.tf/variables*/
const functionName = new cdktf.TerraformVariable(this, "function_name", {});
new aws.dataAwsLambdaFunctionUrl.DataAwsLambdaFunctionUrl(this, "existing", {
functionName: functionName.value,
});
Argument Reference
The following arguments are supported:
functionName
- (Required) he name (or ARN) of the Lambda function.qualifier
- (Optional) Alias name or"$latest"
.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
authorizationType
- Type of authentication that the function URL uses.cors
- The cross-origin resource sharing (CORS) settings for the function URL. See theawsLambdaFunctionUrl
resource documentation for more details.creationTime
- When the function URL was created, in ISO-8601 format.functionArn
- ARN of the function.functionUrl
- HTTP URL endpoint for the function in the formathttps://<urlId>LambdaUrl.<region>OnAws
.lastModifiedTime
- When the function URL configuration was last updated, in ISO-8601 format.urlId
- Generated ID for the endpoint.