published on Friday, Nov 13, 2026 by Pulumi
published on Friday, Nov 13, 2026 by Pulumi
Manages an AWS Lambda Web function endpoint. An endpoint exposes the web function over HTTPS and routes traffic to one or more revisions.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.lambdaweb.FunctionEndpoint("example", {
functionName: exampleAwsLambdawebFunctionRevision.functionName,
endpointName: "canary",
endpointType: "HomeRegion",
authType: "ApplicationManaged",
});
import pulumi
import pulumi_aws as aws
example = aws.lambdaweb.FunctionEndpoint("example",
function_name=example_aws_lambdaweb_function_revision["functionName"],
endpoint_name="canary",
endpoint_type="HomeRegion",
auth_type="ApplicationManaged")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/lambdaweb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := lambdaweb.NewFunctionEndpoint(ctx, "example", &lambdaweb.FunctionEndpointArgs{
FunctionName: pulumi.Any(exampleAwsLambdawebFunctionRevision.FunctionName),
EndpointName: pulumi.String("canary"),
EndpointType: pulumi.String("HomeRegion"),
AuthType: pulumi.String("ApplicationManaged"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.LambdaWeb.FunctionEndpoint("example", new()
{
FunctionName = exampleAwsLambdawebFunctionRevision.FunctionName,
EndpointName = "canary",
EndpointType = "HomeRegion",
AuthType = "ApplicationManaged",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lambdaweb.FunctionEndpoint;
import com.pulumi.aws.lambdaweb.FunctionEndpointArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new FunctionEndpoint("example", FunctionEndpointArgs.builder()
.functionName(exampleAwsLambdawebFunctionRevision.get("functionName"))
.endpointName("canary")
.endpointType("HomeRegion")
.authType("ApplicationManaged")
.build());
}
}
resources:
example:
type: aws:lambdaweb:FunctionEndpoint
properties:
functionName: ${exampleAwsLambdawebFunctionRevision.functionName}
endpointName: canary
endpointType: HomeRegion
authType: ApplicationManaged
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_lambdaweb_function_endpoint" "example" {
lifecycle {
create_before_destroy = true
}
function_name = exampleAwsLambdawebFunctionRevision.functionName
endpoint_name = "canary"
endpoint_type = "HomeRegion"
auth_type = "ApplicationManaged"
}
Weighted (Canary) Routing
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.lambdaweb.FunctionEndpoint("example", {
revisionWeights: [
{
revisionId: exampleAwsLambdawebFunctionRevision[0].revisionId,
weight: 90,
},
{
revisionId: exampleAwsLambdawebFunctionRevision[1].revisionId,
weight: 10,
},
],
functionName: exampleAwsLambdawebFunction.functionName,
endpointName: "prod",
endpointType: "MultiRegion",
regions: [
"us-east-1",
"eu-west-1",
],
authType: "IamAuth",
autoDeploymentMode: "Disabled",
});
import pulumi
import pulumi_aws as aws
example = aws.lambdaweb.FunctionEndpoint("example",
revision_weights=[
{
"revision_id": example_aws_lambdaweb_function_revision[0]["revisionId"],
"weight": 90,
},
{
"revision_id": example_aws_lambdaweb_function_revision[1]["revisionId"],
"weight": 10,
},
],
function_name=example_aws_lambdaweb_function["functionName"],
endpoint_name="prod",
endpoint_type="MultiRegion",
regions=[
"us-east-1",
"eu-west-1",
],
auth_type="IamAuth",
auto_deployment_mode="Disabled")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/lambdaweb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := lambdaweb.NewFunctionEndpoint(ctx, "example", &lambdaweb.FunctionEndpointArgs{
RevisionWeights: lambdaweb.FunctionEndpointRevisionWeightArray{
&lambdaweb.FunctionEndpointRevisionWeightArgs{
RevisionId: pulumi.Any(exampleAwsLambdawebFunctionRevision[0].RevisionId),
Weight: pulumi.Int(90),
},
&lambdaweb.FunctionEndpointRevisionWeightArgs{
RevisionId: pulumi.Any(exampleAwsLambdawebFunctionRevision[1].RevisionId),
Weight: pulumi.Int(10),
},
},
FunctionName: pulumi.Any(exampleAwsLambdawebFunction.FunctionName),
EndpointName: pulumi.String("prod"),
EndpointType: pulumi.String("MultiRegion"),
Regions: pulumi.StringArray{
pulumi.String("us-east-1"),
pulumi.String("eu-west-1"),
},
AuthType: pulumi.String("IamAuth"),
AutoDeploymentMode: pulumi.String("Disabled"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.LambdaWeb.FunctionEndpoint("example", new()
{
RevisionWeights = new[]
{
new Aws.LambdaWeb.Inputs.FunctionEndpointRevisionWeightArgs
{
RevisionId = exampleAwsLambdawebFunctionRevision[0].RevisionId,
Weight = 90,
},
new Aws.LambdaWeb.Inputs.FunctionEndpointRevisionWeightArgs
{
RevisionId = exampleAwsLambdawebFunctionRevision[1].RevisionId,
Weight = 10,
},
},
FunctionName = exampleAwsLambdawebFunction.FunctionName,
EndpointName = "prod",
EndpointType = "MultiRegion",
Regions = new[]
{
"us-east-1",
"eu-west-1",
},
AuthType = "IamAuth",
AutoDeploymentMode = "Disabled",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lambdaweb.FunctionEndpoint;
import com.pulumi.aws.lambdaweb.FunctionEndpointArgs;
import com.pulumi.aws.lambdaweb.inputs.FunctionEndpointRevisionWeightArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new FunctionEndpoint("example", FunctionEndpointArgs.builder()
.revisionWeights(
FunctionEndpointRevisionWeightArgs.builder()
.revisionId(exampleAwsLambdawebFunctionRevision[0].get("revisionId"))
.weight(90)
.build(),
FunctionEndpointRevisionWeightArgs.builder()
.revisionId(exampleAwsLambdawebFunctionRevision[1].get("revisionId"))
.weight(10)
.build())
.functionName(exampleAwsLambdawebFunction.get("functionName"))
.endpointName("prod")
.endpointType("MultiRegion")
.regions(
"us-east-1",
"eu-west-1")
.authType("IamAuth")
.autoDeploymentMode("Disabled")
.build());
}
}
resources:
example:
type: aws:lambdaweb:FunctionEndpoint
properties:
revisionWeights:
- revisionId: ${exampleAwsLambdawebFunctionRevision[0].revisionId}
weight: 90
- revisionId: ${exampleAwsLambdawebFunctionRevision[1].revisionId}
weight: 10
functionName: ${exampleAwsLambdawebFunction.functionName}
endpointName: prod
endpointType: MultiRegion
regions:
- us-east-1
- eu-west-1
authType: IamAuth
autoDeploymentMode: Disabled
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_lambdaweb_function_endpoint" "example" {
lifecycle {
create_before_destroy = true
}
revision_weight {
revision_id = exampleAwsLambdawebFunctionRevision[0].revisionId
weight = 90
}
revision_weight {
revision_id = exampleAwsLambdawebFunctionRevision[1].revisionId
weight = 10
}
function_name = exampleAwsLambdawebFunction.functionName
endpoint_name = "prod"
endpoint_type = "MultiRegion"
regions = ["us-east-1", "eu-west-1"]
auth_type = "IamAuth"
auto_deployment_mode = "Disabled"
}
Behind CloudFront
An endpoint is a plain HTTPS origin, so a distribution can front it to add edge
caching for static paths and terminate TLS closer to the viewer. Use
domainName as the origin: on a MultiRegion endpoint it routes each request
to the nearest deployed Region, and regionalDomainNames is empty because the
service does not publish per-Region domains for that endpoint type.
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const app = new aws.lambdaweb.FunctionEndpoint("app", {
revisionWeights: [{
revisionId: example[0].revisionId,
weight: 100,
}],
functionName: exampleAwsLambdawebFunction.functionName,
endpointName: "public",
endpointType: "MultiRegion",
regions: [
"us-east-1",
"eu-west-1",
],
authType: "ApplicationManaged",
autoDeploymentMode: "Disabled",
});
const disabled = aws.cloudfront.getCachePolicy({
name: "Managed-CachingDisabled",
});
const allViewerExceptHost = aws.cloudfront.getOriginRequestPolicy({
name: "Managed-AllViewerExceptHostHeader",
});
const appDistribution = new aws.cloudfront.Distribution("app", {
defaultCacheBehavior: {
targetOriginId: "lambdaweb",
viewerProtocolPolicy: "redirect-to-https",
allowedMethods: [
"GET",
"HEAD",
"OPTIONS",
"PUT",
"POST",
"PATCH",
"DELETE",
],
cachedMethods: [
"GET",
"HEAD",
],
cachePolicyId: disabled.then(disabled => disabled.id),
originRequestPolicyId: allViewerExceptHost.then(allViewerExceptHost => allViewerExceptHost.id),
},
restrictions: {
geoRestriction: {
restrictionType: "none",
},
},
viewerCertificate: {
cloudfrontDefaultCertificate: true,
},
origins: [{
customOriginConfig: {
originProtocolPolicy: "https-only",
originSslProtocols: ["TLSv1.2"],
httpPort: 80,
httpsPort: 443,
},
originId: "lambdaweb",
domainName: app.domainName,
}],
enabled: true,
});
import pulumi
import pulumi_aws as aws
app = aws.lambdaweb.FunctionEndpoint("app",
revision_weights=[{
"revision_id": example[0]["revisionId"],
"weight": 100,
}],
function_name=example_aws_lambdaweb_function["functionName"],
endpoint_name="public",
endpoint_type="MultiRegion",
regions=[
"us-east-1",
"eu-west-1",
],
auth_type="ApplicationManaged",
auto_deployment_mode="Disabled")
disabled = aws.cloudfront.get_cache_policy(name="Managed-CachingDisabled")
all_viewer_except_host = aws.cloudfront.get_origin_request_policy(name="Managed-AllViewerExceptHostHeader")
app_distribution = aws.cloudfront.Distribution("app",
default_cache_behavior={
"target_origin_id": "lambdaweb",
"viewer_protocol_policy": "redirect-to-https",
"allowed_methods": [
"GET",
"HEAD",
"OPTIONS",
"PUT",
"POST",
"PATCH",
"DELETE",
],
"cached_methods": [
"GET",
"HEAD",
],
"cache_policy_id": disabled.id,
"origin_request_policy_id": all_viewer_except_host.id,
},
restrictions={
"geo_restriction": {
"restriction_type": "none",
},
},
viewer_certificate={
"cloudfront_default_certificate": True,
},
origins=[{
"custom_origin_config": {
"origin_protocol_policy": "https-only",
"origin_ssl_protocols": ["TLSv1.2"],
"http_port": 80,
"https_port": 443,
},
"origin_id": "lambdaweb",
"domain_name": app.domain_name,
}],
enabled=True)
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/cloudfront"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/lambdaweb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
app, err := lambdaweb.NewFunctionEndpoint(ctx, "app", &lambdaweb.FunctionEndpointArgs{
RevisionWeights: lambdaweb.FunctionEndpointRevisionWeightArray{
&lambdaweb.FunctionEndpointRevisionWeightArgs{
RevisionId: pulumi.Any(example[0].RevisionId),
Weight: pulumi.Int(100),
},
},
FunctionName: pulumi.Any(exampleAwsLambdawebFunction.FunctionName),
EndpointName: pulumi.String("public"),
EndpointType: pulumi.String("MultiRegion"),
Regions: pulumi.StringArray{
pulumi.String("us-east-1"),
pulumi.String("eu-west-1"),
},
AuthType: pulumi.String("ApplicationManaged"),
AutoDeploymentMode: pulumi.String("Disabled"),
})
if err != nil {
return err
}
disabled, err := cloudfront.LookupCachePolicy(ctx, &cloudfront.LookupCachePolicyArgs{
Name: pulumi.StringRef("Managed-CachingDisabled"),
}, nil)
if err != nil {
return err
}
allViewerExceptHost, err := cloudfront.LookupOriginRequestPolicy(ctx, &cloudfront.LookupOriginRequestPolicyArgs{
Name: pulumi.StringRef("Managed-AllViewerExceptHostHeader"),
}, nil)
if err != nil {
return err
}
_, err = cloudfront.NewDistribution(ctx, "app", &cloudfront.DistributionArgs{
DefaultCacheBehavior: &cloudfront.DistributionDefaultCacheBehaviorArgs{
TargetOriginId: pulumi.String("lambdaweb"),
ViewerProtocolPolicy: pulumi.String("redirect-to-https"),
AllowedMethods: pulumi.StringArray{
pulumi.String("GET"),
pulumi.String("HEAD"),
pulumi.String("OPTIONS"),
pulumi.String("PUT"),
pulumi.String("POST"),
pulumi.String("PATCH"),
pulumi.String("DELETE"),
},
CachedMethods: pulumi.StringArray{
pulumi.String("GET"),
pulumi.String("HEAD"),
},
CachePolicyId: pulumi.String(disabled.Id),
OriginRequestPolicyId: pulumi.String(allViewerExceptHost.Id),
},
Restrictions: &cloudfront.DistributionRestrictionsArgs{
GeoRestriction: &cloudfront.DistributionRestrictionsGeoRestrictionArgs{
RestrictionType: pulumi.String("none"),
},
},
ViewerCertificate: &cloudfront.DistributionViewerCertificateArgs{
CloudfrontDefaultCertificate: pulumi.Bool(true),
},
Origins: cloudfront.DistributionOriginArray{
&cloudfront.DistributionOriginArgs{
CustomOriginConfig: &cloudfront.DistributionOriginCustomOriginConfigArgs{
OriginProtocolPolicy: pulumi.String("https-only"),
OriginSslProtocols: pulumi.StringArray{
pulumi.String("TLSv1.2"),
},
HttpPort: pulumi.Int(80),
HttpsPort: pulumi.Int(443),
},
OriginId: pulumi.String("lambdaweb"),
DomainName: app.DomainName,
},
},
Enabled: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var app = new Aws.LambdaWeb.FunctionEndpoint("app", new()
{
RevisionWeights = new[]
{
new Aws.LambdaWeb.Inputs.FunctionEndpointRevisionWeightArgs
{
RevisionId = example[0].RevisionId,
Weight = 100,
},
},
FunctionName = exampleAwsLambdawebFunction.FunctionName,
EndpointName = "public",
EndpointType = "MultiRegion",
Regions = new[]
{
"us-east-1",
"eu-west-1",
},
AuthType = "ApplicationManaged",
AutoDeploymentMode = "Disabled",
});
var disabled = Aws.CloudFront.GetCachePolicy.Invoke(new()
{
Name = "Managed-CachingDisabled",
});
var allViewerExceptHost = Aws.CloudFront.GetOriginRequestPolicy.Invoke(new()
{
Name = "Managed-AllViewerExceptHostHeader",
});
var appDistribution = new Aws.CloudFront.Distribution("app", new()
{
DefaultCacheBehavior = new Aws.CloudFront.Inputs.DistributionDefaultCacheBehaviorArgs
{
TargetOriginId = "lambdaweb",
ViewerProtocolPolicy = "redirect-to-https",
AllowedMethods = new[]
{
"GET",
"HEAD",
"OPTIONS",
"PUT",
"POST",
"PATCH",
"DELETE",
},
CachedMethods = new[]
{
"GET",
"HEAD",
},
CachePolicyId = disabled.Apply(getCachePolicyResult => getCachePolicyResult.Id),
OriginRequestPolicyId = allViewerExceptHost.Apply(getOriginRequestPolicyResult => getOriginRequestPolicyResult.Id),
},
Restrictions = new Aws.CloudFront.Inputs.DistributionRestrictionsArgs
{
GeoRestriction = new Aws.CloudFront.Inputs.DistributionRestrictionsGeoRestrictionArgs
{
RestrictionType = "none",
},
},
ViewerCertificate = new Aws.CloudFront.Inputs.DistributionViewerCertificateArgs
{
CloudfrontDefaultCertificate = true,
},
Origins = new[]
{
new Aws.CloudFront.Inputs.DistributionOriginArgs
{
CustomOriginConfig = new Aws.CloudFront.Inputs.DistributionOriginCustomOriginConfigArgs
{
OriginProtocolPolicy = "https-only",
OriginSslProtocols = new[]
{
"TLSv1.2",
},
HttpPort = 80,
HttpsPort = 443,
},
OriginId = "lambdaweb",
DomainName = app.DomainName,
},
},
Enabled = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lambdaweb.FunctionEndpoint;
import com.pulumi.aws.lambdaweb.FunctionEndpointArgs;
import com.pulumi.aws.lambdaweb.inputs.FunctionEndpointRevisionWeightArgs;
import com.pulumi.aws.cloudfront.CloudfrontFunctions;
import com.pulumi.aws.cloudfront.inputs.GetCachePolicyArgs;
import com.pulumi.aws.cloudfront.inputs.GetOriginRequestPolicyArgs;
import com.pulumi.aws.cloudfront.Distribution;
import com.pulumi.aws.cloudfront.DistributionArgs;
import com.pulumi.aws.cloudfront.inputs.DistributionDefaultCacheBehaviorArgs;
import com.pulumi.aws.cloudfront.inputs.DistributionRestrictionsArgs;
import com.pulumi.aws.cloudfront.inputs.DistributionRestrictionsGeoRestrictionArgs;
import com.pulumi.aws.cloudfront.inputs.DistributionViewerCertificateArgs;
import com.pulumi.aws.cloudfront.inputs.DistributionOriginArgs;
import com.pulumi.aws.cloudfront.inputs.DistributionOriginCustomOriginConfigArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var app = new FunctionEndpoint("app", FunctionEndpointArgs.builder()
.revisionWeights(FunctionEndpointRevisionWeightArgs.builder()
.revisionId(example[0].get("revisionId"))
.weight(100)
.build())
.functionName(exampleAwsLambdawebFunction.get("functionName"))
.endpointName("public")
.endpointType("MultiRegion")
.regions(
"us-east-1",
"eu-west-1")
.authType("ApplicationManaged")
.autoDeploymentMode("Disabled")
.build());
final var disabled = CloudfrontFunctions.getCachePolicy(GetCachePolicyArgs.builder()
.name("Managed-CachingDisabled")
.build());
final var allViewerExceptHost = CloudfrontFunctions.getOriginRequestPolicy(GetOriginRequestPolicyArgs.builder()
.name("Managed-AllViewerExceptHostHeader")
.build());
var appDistribution = new Distribution("appDistribution", DistributionArgs.builder()
.defaultCacheBehavior(DistributionDefaultCacheBehaviorArgs.builder()
.targetOriginId("lambdaweb")
.viewerProtocolPolicy("redirect-to-https")
.allowedMethods(
"GET",
"HEAD",
"OPTIONS",
"PUT",
"POST",
"PATCH",
"DELETE")
.cachedMethods(
"GET",
"HEAD")
.cachePolicyId(disabled.id())
.originRequestPolicyId(allViewerExceptHost.id())
.build())
.restrictions(DistributionRestrictionsArgs.builder()
.geoRestriction(DistributionRestrictionsGeoRestrictionArgs.builder()
.restrictionType("none")
.build())
.build())
.viewerCertificate(DistributionViewerCertificateArgs.builder()
.cloudfrontDefaultCertificate(true)
.build())
.origins(DistributionOriginArgs.builder()
.customOriginConfig(DistributionOriginCustomOriginConfigArgs.builder()
.originProtocolPolicy("https-only")
.originSslProtocols("TLSv1.2")
.httpPort(80)
.httpsPort(443)
.build())
.originId("lambdaweb")
.domainName(app.domainName())
.build())
.enabled(true)
.build());
}
}
resources:
app:
type: aws:lambdaweb:FunctionEndpoint
properties:
revisionWeights:
- revisionId: ${example[0].revisionId}
weight: 100
functionName: ${exampleAwsLambdawebFunction.functionName}
endpointName: public
endpointType: MultiRegion
regions:
- us-east-1
- eu-west-1
authType: ApplicationManaged
autoDeploymentMode: Disabled
appDistribution:
type: aws:cloudfront:Distribution
name: app
properties:
defaultCacheBehavior:
targetOriginId: lambdaweb
viewerProtocolPolicy: redirect-to-https
allowedMethods:
- GET
- HEAD
- OPTIONS
- PUT
- POST
- PATCH
- DELETE
cachedMethods:
- GET
- HEAD
cachePolicyId: ${disabled.id}
originRequestPolicyId: ${allViewerExceptHost.id}
restrictions:
geoRestriction:
restrictionType: none
viewerCertificate:
cloudfrontDefaultCertificate: true
origins:
- customOriginConfig:
originProtocolPolicy: https-only
originSslProtocols:
- TLSv1.2
httpPort: 80
httpsPort: 443
originId: lambdaweb
domainName: ${app.domainName}
enabled: true
variables:
disabled:
fn::invoke:
function: aws:cloudfront:getCachePolicy
arguments:
name: Managed-CachingDisabled
allViewerExceptHost:
fn::invoke:
function: aws:cloudfront:getOriginRequestPolicy
arguments:
name: Managed-AllViewerExceptHostHeader
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
data "aws_cloudfront_cache_policy" "disabled" {
name = "Managed-CachingDisabled"
}
data "aws_cloudfront_origin_request_policy" "allViewerExceptHost" {
name = "Managed-AllViewerExceptHostHeader"
}
resource "aws_lambdaweb_function_endpoint" "app" {
lifecycle {
create_before_destroy = true
}
revision_weight {
revision_id = example[0].revisionId
weight = 100
}
function_name = exampleAwsLambdawebFunction.functionName
endpoint_name = "public"
endpoint_type = "MultiRegion"
regions = ["us-east-1", "eu-west-1"]
auth_type = "ApplicationManaged"
auto_deployment_mode = "Disabled"
}
resource "aws_cloudfront_distribution" "app" {
lifecycle {
create_before_destroy = true
}
default_cache_behavior {
target_origin_id = "lambdaweb"
viewer_protocol_policy = "redirect-to-https"
allowed_methods = ["GET", "HEAD", "OPTIONS", "PUT", "POST", "PATCH", "DELETE"]
cached_methods = ["GET", "HEAD"]
cache_policy_id = data.aws_cloudfront_cache_policy.disabled.id
origin_request_policy_id = data.aws_cloudfront_origin_request_policy.allViewerExceptHost.id
}
# The endpoint routes on its own domain, so the viewer Host header must not
# be forwarded, and dynamic responses must not be cached.
restrictions {
geo_restriction {
restriction_type = "none"
}
}
viewer_certificate {
cloudfront_default_certificate = true
}
origin {
custom_origin_config {
origin_protocol_policy = "https-only"
origin_ssl_protocols = ["TLSv1.2"]
http_port = 80
https_port = 443
}
origin_id = "lambdaweb"
domain_name = aws_lambdaweb_function_endpoint.app.domain_name
}
enabled = true
}
Note: Do not set
defaultRootObjecton a distribution that fronts a web function. CloudFront rewrites/to that object after viewer-request functions run, which frameworks that own their routing answer with a 404.
Streaming survives the extra hop: a Server-Sent Events response is relayed
without buffering. Origin groups, on the other hand, reject behaviors that allow
write methods, so a failover group can only serve the read paths and writes need
a behavior pointing at a single origin. A PerRegion endpoint is the one that
publishes regionalDomainNames, which is what an origin group needs for its
primary and failover members.
Create FunctionEndpoint Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FunctionEndpoint(name: string, args: FunctionEndpointArgs, opts?: CustomResourceOptions);@overload
def FunctionEndpoint(resource_name: str,
args: FunctionEndpointArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FunctionEndpoint(resource_name: str,
opts: Optional[ResourceOptions] = None,
auth_type: Optional[str] = None,
endpoint_name: Optional[str] = None,
endpoint_type: Optional[str] = None,
function_name: Optional[str] = None,
auto_deployment_mode: Optional[str] = None,
description: Optional[str] = None,
region: Optional[str] = None,
regions: Optional[Sequence[str]] = None,
revision_weights: Optional[Sequence[FunctionEndpointRevisionWeightArgs]] = None,
scaling_config: Optional[FunctionEndpointScalingConfigArgs] = None,
throttle_config: Optional[FunctionEndpointThrottleConfigArgs] = None,
timeouts: Optional[FunctionEndpointTimeoutsArgs] = None)func NewFunctionEndpoint(ctx *Context, name string, args FunctionEndpointArgs, opts ...ResourceOption) (*FunctionEndpoint, error)public FunctionEndpoint(string name, FunctionEndpointArgs args, CustomResourceOptions? opts = null)
public FunctionEndpoint(String name, FunctionEndpointArgs args)
public FunctionEndpoint(String name, FunctionEndpointArgs args, CustomResourceOptions options)
type: aws:lambdaweb:FunctionEndpoint
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws_lambdaweb_function_endpoint" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args FunctionEndpointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FunctionEndpointArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FunctionEndpointArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FunctionEndpointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FunctionEndpointArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var functionEndpointResource = new Aws.LambdaWeb.FunctionEndpoint("functionEndpointResource", new()
{
AuthType = "string",
EndpointName = "string",
EndpointType = "string",
FunctionName = "string",
AutoDeploymentMode = "string",
Description = "string",
Region = "string",
Regions = new[]
{
"string",
},
RevisionWeights = new[]
{
new Aws.LambdaWeb.Inputs.FunctionEndpointRevisionWeightArgs
{
RevisionId = "string",
Weight = 0,
},
},
ScalingConfig = new Aws.LambdaWeb.Inputs.FunctionEndpointScalingConfigArgs
{
MaxEnvironments = 0,
},
ThrottleConfig = new Aws.LambdaWeb.Inputs.FunctionEndpointThrottleConfigArgs
{
RateLimit = 0,
},
Timeouts = new Aws.LambdaWeb.Inputs.FunctionEndpointTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := lambdaweb.NewFunctionEndpoint(ctx, "functionEndpointResource", &lambdaweb.FunctionEndpointArgs{
AuthType: pulumi.String("string"),
EndpointName: pulumi.String("string"),
EndpointType: pulumi.String("string"),
FunctionName: pulumi.String("string"),
AutoDeploymentMode: pulumi.String("string"),
Description: pulumi.String("string"),
Region: pulumi.String("string"),
Regions: pulumi.StringArray{
pulumi.String("string"),
},
RevisionWeights: lambdaweb.FunctionEndpointRevisionWeightArray{
&lambdaweb.FunctionEndpointRevisionWeightArgs{
RevisionId: pulumi.String("string"),
Weight: pulumi.Int(0),
},
},
ScalingConfig: &lambdaweb.FunctionEndpointScalingConfigArgs{
MaxEnvironments: pulumi.Int(0),
},
ThrottleConfig: &lambdaweb.FunctionEndpointThrottleConfigArgs{
RateLimit: pulumi.Int(0),
},
Timeouts: &lambdaweb.FunctionEndpointTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
resource "aws_lambdaweb_function_endpoint" "functionEndpointResource" {
lifecycle {
create_before_destroy = true
}
auth_type = "string"
endpoint_name = "string"
endpoint_type = "string"
function_name = "string"
auto_deployment_mode = "string"
description = "string"
region = "string"
regions = ["string"]
revision_weights {
revision_id = "string"
weight = 0
}
scaling_config = {
max_environments = 0
}
throttle_config = {
rate_limit = 0
}
_ {
timeouts = {
create = "string"
delete = "string"
update = "string"
}
}
}
var functionEndpointResource = new FunctionEndpoint("functionEndpointResource", FunctionEndpointArgs.builder()
.authType("string")
.endpointName("string")
.endpointType("string")
.functionName("string")
.autoDeploymentMode("string")
.description("string")
.region("string")
.regions("string")
.revisionWeights(FunctionEndpointRevisionWeightArgs.builder()
.revisionId("string")
.weight(0)
.build())
.scalingConfig(FunctionEndpointScalingConfigArgs.builder()
.maxEnvironments(0)
.build())
.throttleConfig(FunctionEndpointThrottleConfigArgs.builder()
.rateLimit(0)
.build())
.timeouts(FunctionEndpointTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
function_endpoint_resource = aws.lambdaweb.FunctionEndpoint("functionEndpointResource",
auth_type="string",
endpoint_name="string",
endpoint_type="string",
function_name="string",
auto_deployment_mode="string",
description="string",
region="string",
regions=["string"],
revision_weights=[{
"revision_id": "string",
"weight": 0,
}],
scaling_config={
"max_environments": 0,
},
throttle_config={
"rate_limit": 0,
},
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const functionEndpointResource = new aws.lambdaweb.FunctionEndpoint("functionEndpointResource", {
authType: "string",
endpointName: "string",
endpointType: "string",
functionName: "string",
autoDeploymentMode: "string",
description: "string",
region: "string",
regions: ["string"],
revisionWeights: [{
revisionId: "string",
weight: 0,
}],
scalingConfig: {
maxEnvironments: 0,
},
throttleConfig: {
rateLimit: 0,
},
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: aws:lambdaweb:FunctionEndpoint
properties:
authType: string
autoDeploymentMode: string
description: string
endpointName: string
endpointType: string
functionName: string
region: string
regions:
- string
revisionWeights:
- revisionId: string
weight: 0
scalingConfig:
maxEnvironments: 0
throttleConfig:
rateLimit: 0
timeouts:
create: string
delete: string
update: string
FunctionEndpoint Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The FunctionEndpoint resource accepts the following input properties:
- Auth
Type string - Authentication mode. Valid values are
ApplicationManagedandIamAuth. Can be changed in place; the endpoint keeps its domain name. - Endpoint
Name string - Name of the endpoint, up to 64 characters. Changing this forces a new resource.
- Endpoint
Type string - Endpoint type. Valid values are
HomeRegion,MultiRegion, andPerRegion. Changing this forces a new resource. - Function
Name string Name of the function this endpoint belongs to, up to 64 characters. Changing this forces a new resource.
The following arguments are optional:
- Auto
Deployment stringMode - Deployment mode.
LatestRevisionmakes the endpoint follow the latest revision automatically;Disabledrequires explicitrevisionWeights.MultiRegionandPerRegionendpoints requireDisabled. Defaults toLatestRevision. - Description string
- Description of the endpoint.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Regions List<string>
- Regions the endpoint spans. The maximum number of Regions per endpoint is a service quota, enforced by the API. Required for
MultiRegionandPerRegionendpoints: specify at least one Region other than the home Region, which is added automatically. ForHomeRegionendpoints, omit this argument or specify only the home Region. Changing this forces a new resource. - Revision
Weights List<FunctionEndpoint Revision Weight> - Traffic routing. Required when
autoDeploymentModeisDisabledand must be omitted whenLatestRevision. One or two entries; weights must sum to 100. See below. When a new revision is rolled on the function, update these weights to shift traffic to it — withautoDeploymentMode = "Disabled"traffic never moves automatically. - Scaling
Config FunctionEndpoint Scaling Config - Scaling limits for the endpoint. When unset, the endpoint has no
maxEnvironmentslimit; removing the block clears a previously set limit. See below. - Throttle
Config FunctionEndpoint Throttle Config - Request throttling for the endpoint. When unset, the endpoint has no
rateLimit; removing the block clears a previously set limit. See below. - Timeouts
Function
Endpoint Timeouts
- Auth
Type string - Authentication mode. Valid values are
ApplicationManagedandIamAuth. Can be changed in place; the endpoint keeps its domain name. - Endpoint
Name string - Name of the endpoint, up to 64 characters. Changing this forces a new resource.
- Endpoint
Type string - Endpoint type. Valid values are
HomeRegion,MultiRegion, andPerRegion. Changing this forces a new resource. - Function
Name string Name of the function this endpoint belongs to, up to 64 characters. Changing this forces a new resource.
The following arguments are optional:
- Auto
Deployment stringMode - Deployment mode.
LatestRevisionmakes the endpoint follow the latest revision automatically;Disabledrequires explicitrevisionWeights.MultiRegionandPerRegionendpoints requireDisabled. Defaults toLatestRevision. - Description string
- Description of the endpoint.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Regions []string
- Regions the endpoint spans. The maximum number of Regions per endpoint is a service quota, enforced by the API. Required for
MultiRegionandPerRegionendpoints: specify at least one Region other than the home Region, which is added automatically. ForHomeRegionendpoints, omit this argument or specify only the home Region. Changing this forces a new resource. - Revision
Weights []FunctionEndpoint Revision Weight Args - Traffic routing. Required when
autoDeploymentModeisDisabledand must be omitted whenLatestRevision. One or two entries; weights must sum to 100. See below. When a new revision is rolled on the function, update these weights to shift traffic to it — withautoDeploymentMode = "Disabled"traffic never moves automatically. - Scaling
Config FunctionEndpoint Scaling Config Args - Scaling limits for the endpoint. When unset, the endpoint has no
maxEnvironmentslimit; removing the block clears a previously set limit. See below. - Throttle
Config FunctionEndpoint Throttle Config Args - Request throttling for the endpoint. When unset, the endpoint has no
rateLimit; removing the block clears a previously set limit. See below. - Timeouts
Function
Endpoint Timeouts Args
- auth_
type string - Authentication mode. Valid values are
ApplicationManagedandIamAuth. Can be changed in place; the endpoint keeps its domain name. - endpoint_
name string - Name of the endpoint, up to 64 characters. Changing this forces a new resource.
- endpoint_
type string - Endpoint type. Valid values are
HomeRegion,MultiRegion, andPerRegion. Changing this forces a new resource. - function_
name string Name of the function this endpoint belongs to, up to 64 characters. Changing this forces a new resource.
The following arguments are optional:
- auto_
deployment_ stringmode - Deployment mode.
LatestRevisionmakes the endpoint follow the latest revision automatically;Disabledrequires explicitrevisionWeights.MultiRegionandPerRegionendpoints requireDisabled. Defaults toLatestRevision. - description string
- Description of the endpoint.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- regions list(string)
- Regions the endpoint spans. The maximum number of Regions per endpoint is a service quota, enforced by the API. Required for
MultiRegionandPerRegionendpoints: specify at least one Region other than the home Region, which is added automatically. ForHomeRegionendpoints, omit this argument or specify only the home Region. Changing this forces a new resource. - revision_
weights list(object) - Traffic routing. Required when
autoDeploymentModeisDisabledand must be omitted whenLatestRevision. One or two entries; weights must sum to 100. See below. When a new revision is rolled on the function, update these weights to shift traffic to it — withautoDeploymentMode = "Disabled"traffic never moves automatically. - scaling_
config object - Scaling limits for the endpoint. When unset, the endpoint has no
maxEnvironmentslimit; removing the block clears a previously set limit. See below. - throttle_
config object - Request throttling for the endpoint. When unset, the endpoint has no
rateLimit; removing the block clears a previously set limit. See below. - timeouts object
- auth
Type String - Authentication mode. Valid values are
ApplicationManagedandIamAuth. Can be changed in place; the endpoint keeps its domain name. - endpoint
Name String - Name of the endpoint, up to 64 characters. Changing this forces a new resource.
- endpoint
Type String - Endpoint type. Valid values are
HomeRegion,MultiRegion, andPerRegion. Changing this forces a new resource. - function
Name String Name of the function this endpoint belongs to, up to 64 characters. Changing this forces a new resource.
The following arguments are optional:
- auto
Deployment StringMode - Deployment mode.
LatestRevisionmakes the endpoint follow the latest revision automatically;Disabledrequires explicitrevisionWeights.MultiRegionandPerRegionendpoints requireDisabled. Defaults toLatestRevision. - description String
- Description of the endpoint.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- regions List<String>
- Regions the endpoint spans. The maximum number of Regions per endpoint is a service quota, enforced by the API. Required for
MultiRegionandPerRegionendpoints: specify at least one Region other than the home Region, which is added automatically. ForHomeRegionendpoints, omit this argument or specify only the home Region. Changing this forces a new resource. - revision
Weights List<FunctionEndpoint Revision Weight> - Traffic routing. Required when
autoDeploymentModeisDisabledand must be omitted whenLatestRevision. One or two entries; weights must sum to 100. See below. When a new revision is rolled on the function, update these weights to shift traffic to it — withautoDeploymentMode = "Disabled"traffic never moves automatically. - scaling
Config FunctionEndpoint Scaling Config - Scaling limits for the endpoint. When unset, the endpoint has no
maxEnvironmentslimit; removing the block clears a previously set limit. See below. - throttle
Config FunctionEndpoint Throttle Config - Request throttling for the endpoint. When unset, the endpoint has no
rateLimit; removing the block clears a previously set limit. See below. - timeouts
Function
Endpoint Timeouts
- auth
Type string - Authentication mode. Valid values are
ApplicationManagedandIamAuth. Can be changed in place; the endpoint keeps its domain name. - endpoint
Name string - Name of the endpoint, up to 64 characters. Changing this forces a new resource.
- endpoint
Type string - Endpoint type. Valid values are
HomeRegion,MultiRegion, andPerRegion. Changing this forces a new resource. - function
Name string Name of the function this endpoint belongs to, up to 64 characters. Changing this forces a new resource.
The following arguments are optional:
- auto
Deployment stringMode - Deployment mode.
LatestRevisionmakes the endpoint follow the latest revision automatically;Disabledrequires explicitrevisionWeights.MultiRegionandPerRegionendpoints requireDisabled. Defaults toLatestRevision. - description string
- Description of the endpoint.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- regions string[]
- Regions the endpoint spans. The maximum number of Regions per endpoint is a service quota, enforced by the API. Required for
MultiRegionandPerRegionendpoints: specify at least one Region other than the home Region, which is added automatically. ForHomeRegionendpoints, omit this argument or specify only the home Region. Changing this forces a new resource. - revision
Weights FunctionEndpoint Revision Weight[] - Traffic routing. Required when
autoDeploymentModeisDisabledand must be omitted whenLatestRevision. One or two entries; weights must sum to 100. See below. When a new revision is rolled on the function, update these weights to shift traffic to it — withautoDeploymentMode = "Disabled"traffic never moves automatically. - scaling
Config FunctionEndpoint Scaling Config - Scaling limits for the endpoint. When unset, the endpoint has no
maxEnvironmentslimit; removing the block clears a previously set limit. See below. - throttle
Config FunctionEndpoint Throttle Config - Request throttling for the endpoint. When unset, the endpoint has no
rateLimit; removing the block clears a previously set limit. See below. - timeouts
Function
Endpoint Timeouts
- auth_
type str - Authentication mode. Valid values are
ApplicationManagedandIamAuth. Can be changed in place; the endpoint keeps its domain name. - endpoint_
name str - Name of the endpoint, up to 64 characters. Changing this forces a new resource.
- endpoint_
type str - Endpoint type. Valid values are
HomeRegion,MultiRegion, andPerRegion. Changing this forces a new resource. - function_
name str Name of the function this endpoint belongs to, up to 64 characters. Changing this forces a new resource.
The following arguments are optional:
- auto_
deployment_ strmode - Deployment mode.
LatestRevisionmakes the endpoint follow the latest revision automatically;Disabledrequires explicitrevisionWeights.MultiRegionandPerRegionendpoints requireDisabled. Defaults toLatestRevision. - description str
- Description of the endpoint.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- regions Sequence[str]
- Regions the endpoint spans. The maximum number of Regions per endpoint is a service quota, enforced by the API. Required for
MultiRegionandPerRegionendpoints: specify at least one Region other than the home Region, which is added automatically. ForHomeRegionendpoints, omit this argument or specify only the home Region. Changing this forces a new resource. - revision_
weights Sequence[FunctionEndpoint Revision Weight Args] - Traffic routing. Required when
autoDeploymentModeisDisabledand must be omitted whenLatestRevision. One or two entries; weights must sum to 100. See below. When a new revision is rolled on the function, update these weights to shift traffic to it — withautoDeploymentMode = "Disabled"traffic never moves automatically. - scaling_
config FunctionEndpoint Scaling Config Args - Scaling limits for the endpoint. When unset, the endpoint has no
maxEnvironmentslimit; removing the block clears a previously set limit. See below. - throttle_
config FunctionEndpoint Throttle Config Args - Request throttling for the endpoint. When unset, the endpoint has no
rateLimit; removing the block clears a previously set limit. See below. - timeouts
Function
Endpoint Timeouts Args
- auth
Type String - Authentication mode. Valid values are
ApplicationManagedandIamAuth. Can be changed in place; the endpoint keeps its domain name. - endpoint
Name String - Name of the endpoint, up to 64 characters. Changing this forces a new resource.
- endpoint
Type String - Endpoint type. Valid values are
HomeRegion,MultiRegion, andPerRegion. Changing this forces a new resource. - function
Name String Name of the function this endpoint belongs to, up to 64 characters. Changing this forces a new resource.
The following arguments are optional:
- auto
Deployment StringMode - Deployment mode.
LatestRevisionmakes the endpoint follow the latest revision automatically;Disabledrequires explicitrevisionWeights.MultiRegionandPerRegionendpoints requireDisabled. Defaults toLatestRevision. - description String
- Description of the endpoint.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- regions List<String>
- Regions the endpoint spans. The maximum number of Regions per endpoint is a service quota, enforced by the API. Required for
MultiRegionandPerRegionendpoints: specify at least one Region other than the home Region, which is added automatically. ForHomeRegionendpoints, omit this argument or specify only the home Region. Changing this forces a new resource. - revision
Weights List<Property Map> - Traffic routing. Required when
autoDeploymentModeisDisabledand must be omitted whenLatestRevision. One or two entries; weights must sum to 100. See below. When a new revision is rolled on the function, update these weights to shift traffic to it — withautoDeploymentMode = "Disabled"traffic never moves automatically. - scaling
Config Property Map - Scaling limits for the endpoint. When unset, the endpoint has no
maxEnvironmentslimit; removing the block clears a previously set limit. See below. - throttle
Config Property Map - Request throttling for the endpoint. When unset, the endpoint has no
rateLimit; removing the block clears a previously set limit. See below. - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the FunctionEndpoint resource produces the following output properties:
- Arn string
- ARN of the endpoint in the format
arn:aws:lambda:{region}:{account}:web-function/{function_name}/endpoint/{endpoint_name}. - Domain
Name string - HTTPS domain name of the endpoint. Empty for
PerRegionendpoints, which only exposeregionalDomainNames. - Id string
- The provider-assigned unique ID for this managed resource.
- Regional
Domain Dictionary<string, string>Names - Map of Region to that Region's independent domain name.
- Arn string
- ARN of the endpoint in the format
arn:aws:lambda:{region}:{account}:web-function/{function_name}/endpoint/{endpoint_name}. - Domain
Name string - HTTPS domain name of the endpoint. Empty for
PerRegionendpoints, which only exposeregionalDomainNames. - Id string
- The provider-assigned unique ID for this managed resource.
- Regional
Domain map[string]stringNames - Map of Region to that Region's independent domain name.
- arn string
- ARN of the endpoint in the format
arn:aws:lambda:{region}:{account}:web-function/{function_name}/endpoint/{endpoint_name}. - domain_
name string - HTTPS domain name of the endpoint. Empty for
PerRegionendpoints, which only exposeregionalDomainNames. - id string
- The provider-assigned unique ID for this managed resource.
- regional_
domain_ map(string)names - Map of Region to that Region's independent domain name.
- arn String
- ARN of the endpoint in the format
arn:aws:lambda:{region}:{account}:web-function/{function_name}/endpoint/{endpoint_name}. - domain
Name String - HTTPS domain name of the endpoint. Empty for
PerRegionendpoints, which only exposeregionalDomainNames. - id String
- The provider-assigned unique ID for this managed resource.
- regional
Domain Map<String,String>Names - Map of Region to that Region's independent domain name.
- arn string
- ARN of the endpoint in the format
arn:aws:lambda:{region}:{account}:web-function/{function_name}/endpoint/{endpoint_name}. - domain
Name string - HTTPS domain name of the endpoint. Empty for
PerRegionendpoints, which only exposeregionalDomainNames. - id string
- The provider-assigned unique ID for this managed resource.
- regional
Domain {[key: string]: string}Names - Map of Region to that Region's independent domain name.
- arn str
- ARN of the endpoint in the format
arn:aws:lambda:{region}:{account}:web-function/{function_name}/endpoint/{endpoint_name}. - domain_
name str - HTTPS domain name of the endpoint. Empty for
PerRegionendpoints, which only exposeregionalDomainNames. - id str
- The provider-assigned unique ID for this managed resource.
- regional_
domain_ Mapping[str, str]names - Map of Region to that Region's independent domain name.
- arn String
- ARN of the endpoint in the format
arn:aws:lambda:{region}:{account}:web-function/{function_name}/endpoint/{endpoint_name}. - domain
Name String - HTTPS domain name of the endpoint. Empty for
PerRegionendpoints, which only exposeregionalDomainNames. - id String
- The provider-assigned unique ID for this managed resource.
- regional
Domain Map<String>Names - Map of Region to that Region's independent domain name.
Look up Existing FunctionEndpoint Resource
Get an existing FunctionEndpoint resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FunctionEndpointState, opts?: CustomResourceOptions): FunctionEndpoint@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
auth_type: Optional[str] = None,
auto_deployment_mode: Optional[str] = None,
description: Optional[str] = None,
domain_name: Optional[str] = None,
endpoint_name: Optional[str] = None,
endpoint_type: Optional[str] = None,
function_name: Optional[str] = None,
region: Optional[str] = None,
regional_domain_names: Optional[Mapping[str, str]] = None,
regions: Optional[Sequence[str]] = None,
revision_weights: Optional[Sequence[FunctionEndpointRevisionWeightArgs]] = None,
scaling_config: Optional[FunctionEndpointScalingConfigArgs] = None,
throttle_config: Optional[FunctionEndpointThrottleConfigArgs] = None,
timeouts: Optional[FunctionEndpointTimeoutsArgs] = None) -> FunctionEndpointfunc GetFunctionEndpoint(ctx *Context, name string, id IDInput, state *FunctionEndpointState, opts ...ResourceOption) (*FunctionEndpoint, error)public static FunctionEndpoint Get(string name, Input<string> id, FunctionEndpointState? state, CustomResourceOptions? opts = null)public static FunctionEndpoint get(String name, Output<String> id, FunctionEndpointState state, CustomResourceOptions options)resources: existingFunctionEndpoint: type: aws:lambdaweb:FunctionEndpoint get: id: ${id}import {
to = aws_lambdaweb_function_endpoint.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state FunctionEndpointState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state FunctionEndpointState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state FunctionEndpointState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state FunctionEndpointState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Arn string
- ARN of the endpoint in the format
arn:aws:lambda:{region}:{account}:web-function/{function_name}/endpoint/{endpoint_name}. - Auth
Type string - Authentication mode. Valid values are
ApplicationManagedandIamAuth. Can be changed in place; the endpoint keeps its domain name. - Auto
Deployment stringMode - Deployment mode.
LatestRevisionmakes the endpoint follow the latest revision automatically;Disabledrequires explicitrevisionWeights.MultiRegionandPerRegionendpoints requireDisabled. Defaults toLatestRevision. - Description string
- Description of the endpoint.
- Domain
Name string - HTTPS domain name of the endpoint. Empty for
PerRegionendpoints, which only exposeregionalDomainNames. - Endpoint
Name string - Name of the endpoint, up to 64 characters. Changing this forces a new resource.
- Endpoint
Type string - Endpoint type. Valid values are
HomeRegion,MultiRegion, andPerRegion. Changing this forces a new resource. - Function
Name string Name of the function this endpoint belongs to, up to 64 characters. Changing this forces a new resource.
The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Regional
Domain Dictionary<string, string>Names - Map of Region to that Region's independent domain name.
- Regions List<string>
- Regions the endpoint spans. The maximum number of Regions per endpoint is a service quota, enforced by the API. Required for
MultiRegionandPerRegionendpoints: specify at least one Region other than the home Region, which is added automatically. ForHomeRegionendpoints, omit this argument or specify only the home Region. Changing this forces a new resource. - Revision
Weights List<FunctionEndpoint Revision Weight> - Traffic routing. Required when
autoDeploymentModeisDisabledand must be omitted whenLatestRevision. One or two entries; weights must sum to 100. See below. When a new revision is rolled on the function, update these weights to shift traffic to it — withautoDeploymentMode = "Disabled"traffic never moves automatically. - Scaling
Config FunctionEndpoint Scaling Config - Scaling limits for the endpoint. When unset, the endpoint has no
maxEnvironmentslimit; removing the block clears a previously set limit. See below. - Throttle
Config FunctionEndpoint Throttle Config - Request throttling for the endpoint. When unset, the endpoint has no
rateLimit; removing the block clears a previously set limit. See below. - Timeouts
Function
Endpoint Timeouts
- Arn string
- ARN of the endpoint in the format
arn:aws:lambda:{region}:{account}:web-function/{function_name}/endpoint/{endpoint_name}. - Auth
Type string - Authentication mode. Valid values are
ApplicationManagedandIamAuth. Can be changed in place; the endpoint keeps its domain name. - Auto
Deployment stringMode - Deployment mode.
LatestRevisionmakes the endpoint follow the latest revision automatically;Disabledrequires explicitrevisionWeights.MultiRegionandPerRegionendpoints requireDisabled. Defaults toLatestRevision. - Description string
- Description of the endpoint.
- Domain
Name string - HTTPS domain name of the endpoint. Empty for
PerRegionendpoints, which only exposeregionalDomainNames. - Endpoint
Name string - Name of the endpoint, up to 64 characters. Changing this forces a new resource.
- Endpoint
Type string - Endpoint type. Valid values are
HomeRegion,MultiRegion, andPerRegion. Changing this forces a new resource. - Function
Name string Name of the function this endpoint belongs to, up to 64 characters. Changing this forces a new resource.
The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Regional
Domain map[string]stringNames - Map of Region to that Region's independent domain name.
- Regions []string
- Regions the endpoint spans. The maximum number of Regions per endpoint is a service quota, enforced by the API. Required for
MultiRegionandPerRegionendpoints: specify at least one Region other than the home Region, which is added automatically. ForHomeRegionendpoints, omit this argument or specify only the home Region. Changing this forces a new resource. - Revision
Weights []FunctionEndpoint Revision Weight Args - Traffic routing. Required when
autoDeploymentModeisDisabledand must be omitted whenLatestRevision. One or two entries; weights must sum to 100. See below. When a new revision is rolled on the function, update these weights to shift traffic to it — withautoDeploymentMode = "Disabled"traffic never moves automatically. - Scaling
Config FunctionEndpoint Scaling Config Args - Scaling limits for the endpoint. When unset, the endpoint has no
maxEnvironmentslimit; removing the block clears a previously set limit. See below. - Throttle
Config FunctionEndpoint Throttle Config Args - Request throttling for the endpoint. When unset, the endpoint has no
rateLimit; removing the block clears a previously set limit. See below. - Timeouts
Function
Endpoint Timeouts Args
- arn string
- ARN of the endpoint in the format
arn:aws:lambda:{region}:{account}:web-function/{function_name}/endpoint/{endpoint_name}. - auth_
type string - Authentication mode. Valid values are
ApplicationManagedandIamAuth. Can be changed in place; the endpoint keeps its domain name. - auto_
deployment_ stringmode - Deployment mode.
LatestRevisionmakes the endpoint follow the latest revision automatically;Disabledrequires explicitrevisionWeights.MultiRegionandPerRegionendpoints requireDisabled. Defaults toLatestRevision. - description string
- Description of the endpoint.
- domain_
name string - HTTPS domain name of the endpoint. Empty for
PerRegionendpoints, which only exposeregionalDomainNames. - endpoint_
name string - Name of the endpoint, up to 64 characters. Changing this forces a new resource.
- endpoint_
type string - Endpoint type. Valid values are
HomeRegion,MultiRegion, andPerRegion. Changing this forces a new resource. - function_
name string Name of the function this endpoint belongs to, up to 64 characters. Changing this forces a new resource.
The following arguments are optional:
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- regional_
domain_ map(string)names - Map of Region to that Region's independent domain name.
- regions list(string)
- Regions the endpoint spans. The maximum number of Regions per endpoint is a service quota, enforced by the API. Required for
MultiRegionandPerRegionendpoints: specify at least one Region other than the home Region, which is added automatically. ForHomeRegionendpoints, omit this argument or specify only the home Region. Changing this forces a new resource. - revision_
weights list(object) - Traffic routing. Required when
autoDeploymentModeisDisabledand must be omitted whenLatestRevision. One or two entries; weights must sum to 100. See below. When a new revision is rolled on the function, update these weights to shift traffic to it — withautoDeploymentMode = "Disabled"traffic never moves automatically. - scaling_
config object - Scaling limits for the endpoint. When unset, the endpoint has no
maxEnvironmentslimit; removing the block clears a previously set limit. See below. - throttle_
config object - Request throttling for the endpoint. When unset, the endpoint has no
rateLimit; removing the block clears a previously set limit. See below. - timeouts object
- arn String
- ARN of the endpoint in the format
arn:aws:lambda:{region}:{account}:web-function/{function_name}/endpoint/{endpoint_name}. - auth
Type String - Authentication mode. Valid values are
ApplicationManagedandIamAuth. Can be changed in place; the endpoint keeps its domain name. - auto
Deployment StringMode - Deployment mode.
LatestRevisionmakes the endpoint follow the latest revision automatically;Disabledrequires explicitrevisionWeights.MultiRegionandPerRegionendpoints requireDisabled. Defaults toLatestRevision. - description String
- Description of the endpoint.
- domain
Name String - HTTPS domain name of the endpoint. Empty for
PerRegionendpoints, which only exposeregionalDomainNames. - endpoint
Name String - Name of the endpoint, up to 64 characters. Changing this forces a new resource.
- endpoint
Type String - Endpoint type. Valid values are
HomeRegion,MultiRegion, andPerRegion. Changing this forces a new resource. - function
Name String Name of the function this endpoint belongs to, up to 64 characters. Changing this forces a new resource.
The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- regional
Domain Map<String,String>Names - Map of Region to that Region's independent domain name.
- regions List<String>
- Regions the endpoint spans. The maximum number of Regions per endpoint is a service quota, enforced by the API. Required for
MultiRegionandPerRegionendpoints: specify at least one Region other than the home Region, which is added automatically. ForHomeRegionendpoints, omit this argument or specify only the home Region. Changing this forces a new resource. - revision
Weights List<FunctionEndpoint Revision Weight> - Traffic routing. Required when
autoDeploymentModeisDisabledand must be omitted whenLatestRevision. One or two entries; weights must sum to 100. See below. When a new revision is rolled on the function, update these weights to shift traffic to it — withautoDeploymentMode = "Disabled"traffic never moves automatically. - scaling
Config FunctionEndpoint Scaling Config - Scaling limits for the endpoint. When unset, the endpoint has no
maxEnvironmentslimit; removing the block clears a previously set limit. See below. - throttle
Config FunctionEndpoint Throttle Config - Request throttling for the endpoint. When unset, the endpoint has no
rateLimit; removing the block clears a previously set limit. See below. - timeouts
Function
Endpoint Timeouts
- arn string
- ARN of the endpoint in the format
arn:aws:lambda:{region}:{account}:web-function/{function_name}/endpoint/{endpoint_name}. - auth
Type string - Authentication mode. Valid values are
ApplicationManagedandIamAuth. Can be changed in place; the endpoint keeps its domain name. - auto
Deployment stringMode - Deployment mode.
LatestRevisionmakes the endpoint follow the latest revision automatically;Disabledrequires explicitrevisionWeights.MultiRegionandPerRegionendpoints requireDisabled. Defaults toLatestRevision. - description string
- Description of the endpoint.
- domain
Name string - HTTPS domain name of the endpoint. Empty for
PerRegionendpoints, which only exposeregionalDomainNames. - endpoint
Name string - Name of the endpoint, up to 64 characters. Changing this forces a new resource.
- endpoint
Type string - Endpoint type. Valid values are
HomeRegion,MultiRegion, andPerRegion. Changing this forces a new resource. - function
Name string Name of the function this endpoint belongs to, up to 64 characters. Changing this forces a new resource.
The following arguments are optional:
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- regional
Domain {[key: string]: string}Names - Map of Region to that Region's independent domain name.
- regions string[]
- Regions the endpoint spans. The maximum number of Regions per endpoint is a service quota, enforced by the API. Required for
MultiRegionandPerRegionendpoints: specify at least one Region other than the home Region, which is added automatically. ForHomeRegionendpoints, omit this argument or specify only the home Region. Changing this forces a new resource. - revision
Weights FunctionEndpoint Revision Weight[] - Traffic routing. Required when
autoDeploymentModeisDisabledand must be omitted whenLatestRevision. One or two entries; weights must sum to 100. See below. When a new revision is rolled on the function, update these weights to shift traffic to it — withautoDeploymentMode = "Disabled"traffic never moves automatically. - scaling
Config FunctionEndpoint Scaling Config - Scaling limits for the endpoint. When unset, the endpoint has no
maxEnvironmentslimit; removing the block clears a previously set limit. See below. - throttle
Config FunctionEndpoint Throttle Config - Request throttling for the endpoint. When unset, the endpoint has no
rateLimit; removing the block clears a previously set limit. See below. - timeouts
Function
Endpoint Timeouts
- arn str
- ARN of the endpoint in the format
arn:aws:lambda:{region}:{account}:web-function/{function_name}/endpoint/{endpoint_name}. - auth_
type str - Authentication mode. Valid values are
ApplicationManagedandIamAuth. Can be changed in place; the endpoint keeps its domain name. - auto_
deployment_ strmode - Deployment mode.
LatestRevisionmakes the endpoint follow the latest revision automatically;Disabledrequires explicitrevisionWeights.MultiRegionandPerRegionendpoints requireDisabled. Defaults toLatestRevision. - description str
- Description of the endpoint.
- domain_
name str - HTTPS domain name of the endpoint. Empty for
PerRegionendpoints, which only exposeregionalDomainNames. - endpoint_
name str - Name of the endpoint, up to 64 characters. Changing this forces a new resource.
- endpoint_
type str - Endpoint type. Valid values are
HomeRegion,MultiRegion, andPerRegion. Changing this forces a new resource. - function_
name str Name of the function this endpoint belongs to, up to 64 characters. Changing this forces a new resource.
The following arguments are optional:
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- regional_
domain_ Mapping[str, str]names - Map of Region to that Region's independent domain name.
- regions Sequence[str]
- Regions the endpoint spans. The maximum number of Regions per endpoint is a service quota, enforced by the API. Required for
MultiRegionandPerRegionendpoints: specify at least one Region other than the home Region, which is added automatically. ForHomeRegionendpoints, omit this argument or specify only the home Region. Changing this forces a new resource. - revision_
weights Sequence[FunctionEndpoint Revision Weight Args] - Traffic routing. Required when
autoDeploymentModeisDisabledand must be omitted whenLatestRevision. One or two entries; weights must sum to 100. See below. When a new revision is rolled on the function, update these weights to shift traffic to it — withautoDeploymentMode = "Disabled"traffic never moves automatically. - scaling_
config FunctionEndpoint Scaling Config Args - Scaling limits for the endpoint. When unset, the endpoint has no
maxEnvironmentslimit; removing the block clears a previously set limit. See below. - throttle_
config FunctionEndpoint Throttle Config Args - Request throttling for the endpoint. When unset, the endpoint has no
rateLimit; removing the block clears a previously set limit. See below. - timeouts
Function
Endpoint Timeouts Args
- arn String
- ARN of the endpoint in the format
arn:aws:lambda:{region}:{account}:web-function/{function_name}/endpoint/{endpoint_name}. - auth
Type String - Authentication mode. Valid values are
ApplicationManagedandIamAuth. Can be changed in place; the endpoint keeps its domain name. - auto
Deployment StringMode - Deployment mode.
LatestRevisionmakes the endpoint follow the latest revision automatically;Disabledrequires explicitrevisionWeights.MultiRegionandPerRegionendpoints requireDisabled. Defaults toLatestRevision. - description String
- Description of the endpoint.
- domain
Name String - HTTPS domain name of the endpoint. Empty for
PerRegionendpoints, which only exposeregionalDomainNames. - endpoint
Name String - Name of the endpoint, up to 64 characters. Changing this forces a new resource.
- endpoint
Type String - Endpoint type. Valid values are
HomeRegion,MultiRegion, andPerRegion. Changing this forces a new resource. - function
Name String Name of the function this endpoint belongs to, up to 64 characters. Changing this forces a new resource.
The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- regional
Domain Map<String>Names - Map of Region to that Region's independent domain name.
- regions List<String>
- Regions the endpoint spans. The maximum number of Regions per endpoint is a service quota, enforced by the API. Required for
MultiRegionandPerRegionendpoints: specify at least one Region other than the home Region, which is added automatically. ForHomeRegionendpoints, omit this argument or specify only the home Region. Changing this forces a new resource. - revision
Weights List<Property Map> - Traffic routing. Required when
autoDeploymentModeisDisabledand must be omitted whenLatestRevision. One or two entries; weights must sum to 100. See below. When a new revision is rolled on the function, update these weights to shift traffic to it — withautoDeploymentMode = "Disabled"traffic never moves automatically. - scaling
Config Property Map - Scaling limits for the endpoint. When unset, the endpoint has no
maxEnvironmentslimit; removing the block clears a previously set limit. See below. - throttle
Config Property Map - Request throttling for the endpoint. When unset, the endpoint has no
rateLimit; removing the block clears a previously set limit. See below. - timeouts Property Map
Supporting Types
FunctionEndpointRevisionWeight, FunctionEndpointRevisionWeightArgs
- Revision
Id string - ID of the revision to route traffic to.
- Weight int
- Percentage of traffic for this revision (1-100). With one entry the weight must be 100; with two entries the weights must sum to 100.
- Revision
Id string - ID of the revision to route traffic to.
- Weight int
- Percentage of traffic for this revision (1-100). With one entry the weight must be 100; with two entries the weights must sum to 100.
- revision_
id string - ID of the revision to route traffic to.
- weight number
- Percentage of traffic for this revision (1-100). With one entry the weight must be 100; with two entries the weights must sum to 100.
- revision
Id String - ID of the revision to route traffic to.
- weight Integer
- Percentage of traffic for this revision (1-100). With one entry the weight must be 100; with two entries the weights must sum to 100.
- revision
Id string - ID of the revision to route traffic to.
- weight number
- Percentage of traffic for this revision (1-100). With one entry the weight must be 100; with two entries the weights must sum to 100.
- revision_
id str - ID of the revision to route traffic to.
- weight int
- Percentage of traffic for this revision (1-100). With one entry the weight must be 100; with two entries the weights must sum to 100.
- revision
Id String - ID of the revision to route traffic to.
- weight Number
- Percentage of traffic for this revision (1-100). With one entry the weight must be 100; with two entries the weights must sum to 100.
FunctionEndpointScalingConfig, FunctionEndpointScalingConfigArgs
- Max
Environments int - Maximum number of concurrent execution environments the endpoint may scale to, minimum 2.
- Max
Environments int - Maximum number of concurrent execution environments the endpoint may scale to, minimum 2.
- max_
environments number - Maximum number of concurrent execution environments the endpoint may scale to, minimum 2.
- max
Environments Integer - Maximum number of concurrent execution environments the endpoint may scale to, minimum 2.
- max
Environments number - Maximum number of concurrent execution environments the endpoint may scale to, minimum 2.
- max_
environments int - Maximum number of concurrent execution environments the endpoint may scale to, minimum 2.
- max
Environments Number - Maximum number of concurrent execution environments the endpoint may scale to, minimum 2.
FunctionEndpointThrottleConfig, FunctionEndpointThrottleConfigArgs
- Rate
Limit int - Maximum request rate for the endpoint, in requests per second. The service only accepts quantized values:
0,100-1000in steps of 100, and2000-10000in steps of 1000.
- Rate
Limit int - Maximum request rate for the endpoint, in requests per second. The service only accepts quantized values:
0,100-1000in steps of 100, and2000-10000in steps of 1000.
- rate_
limit number - Maximum request rate for the endpoint, in requests per second. The service only accepts quantized values:
0,100-1000in steps of 100, and2000-10000in steps of 1000.
- rate
Limit Integer - Maximum request rate for the endpoint, in requests per second. The service only accepts quantized values:
0,100-1000in steps of 100, and2000-10000in steps of 1000.
- rate
Limit number - Maximum request rate for the endpoint, in requests per second. The service only accepts quantized values:
0,100-1000in steps of 100, and2000-10000in steps of 1000.
- rate_
limit int - Maximum request rate for the endpoint, in requests per second. The service only accepts quantized values:
0,100-1000in steps of 100, and2000-10000in steps of 1000.
- rate
Limit Number - Maximum request rate for the endpoint, in requests per second. The service only accepts quantized values:
0,100-1000in steps of 100, and2000-10000in steps of 1000.
FunctionEndpointTimeouts, FunctionEndpointTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Import
Identity Schema
Required
endpointName(String) Name of the endpoint.functionName(String) Name of the function.
Optional
accountId(String) AWS Account where this resource is managed.region(String) Region where this resource is managed.
Using pulumi import, import a Lambda Web Endpoint using the functionName and endpointName separated by a comma (,). For example:
$ pulumi import aws:lambdaweb/functionEndpoint:FunctionEndpoint example example,canary
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Friday, Nov 13, 2026 by Pulumi