aws.apigatewayv2.Stage
Explore with Pulumi AI
Manages an Amazon API Gateway Version 2 stage. More information can be found in the Amazon API Gateway Developer Guide.
Example Usage
Basic
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.apigatewayv2.Stage("example", {
    apiId: exampleAwsApigatewayv2Api.id,
    name: "example-stage",
});
import pulumi
import pulumi_aws as aws
example = aws.apigatewayv2.Stage("example",
    api_id=example_aws_apigatewayv2_api["id"],
    name="example-stage")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/apigatewayv2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := apigatewayv2.NewStage(ctx, "example", &apigatewayv2.StageArgs{
			ApiId: pulumi.Any(exampleAwsApigatewayv2Api.Id),
			Name:  pulumi.String("example-stage"),
		})
		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.ApiGatewayV2.Stage("example", new()
    {
        ApiId = exampleAwsApigatewayv2Api.Id,
        Name = "example-stage",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.apigatewayv2.Stage;
import com.pulumi.aws.apigatewayv2.StageArgs;
import java.util.List;
import java.util.ArrayList;
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 Stage("example", StageArgs.builder()
            .apiId(exampleAwsApigatewayv2Api.id())
            .name("example-stage")
            .build());
    }
}
resources:
  example:
    type: aws:apigatewayv2:Stage
    properties:
      apiId: ${exampleAwsApigatewayv2Api.id}
      name: example-stage
Create Stage Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Stage(name: string, args: StageArgs, opts?: CustomResourceOptions);@overload
def Stage(resource_name: str,
          args: StageArgs,
          opts: Optional[ResourceOptions] = None)
@overload
def Stage(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          api_id: Optional[str] = None,
          access_log_settings: Optional[StageAccessLogSettingsArgs] = None,
          auto_deploy: Optional[bool] = None,
          client_certificate_id: Optional[str] = None,
          default_route_settings: Optional[StageDefaultRouteSettingsArgs] = None,
          deployment_id: Optional[str] = None,
          description: Optional[str] = None,
          name: Optional[str] = None,
          route_settings: Optional[Sequence[StageRouteSettingArgs]] = None,
          stage_variables: Optional[Mapping[str, str]] = None,
          tags: Optional[Mapping[str, str]] = None)func NewStage(ctx *Context, name string, args StageArgs, opts ...ResourceOption) (*Stage, error)public Stage(string name, StageArgs args, CustomResourceOptions? opts = null)type: aws:apigatewayv2:Stage
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args StageArgs
- 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 StageArgs
- 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 StageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StageArgs
- 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 awsStageResource = new Aws.ApiGatewayV2.Stage("awsStageResource", new()
{
    ApiId = "string",
    AccessLogSettings = new Aws.ApiGatewayV2.Inputs.StageAccessLogSettingsArgs
    {
        DestinationArn = "string",
        Format = "string",
    },
    AutoDeploy = false,
    ClientCertificateId = "string",
    DefaultRouteSettings = new Aws.ApiGatewayV2.Inputs.StageDefaultRouteSettingsArgs
    {
        DataTraceEnabled = false,
        DetailedMetricsEnabled = false,
        LoggingLevel = "string",
        ThrottlingBurstLimit = 0,
        ThrottlingRateLimit = 0,
    },
    DeploymentId = "string",
    Description = "string",
    Name = "string",
    RouteSettings = new[]
    {
        new Aws.ApiGatewayV2.Inputs.StageRouteSettingArgs
        {
            RouteKey = "string",
            DataTraceEnabled = false,
            DetailedMetricsEnabled = false,
            LoggingLevel = "string",
            ThrottlingBurstLimit = 0,
            ThrottlingRateLimit = 0,
        },
    },
    StageVariables = 
    {
        { "string", "string" },
    },
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := apigatewayv2.NewStage(ctx, "awsStageResource", &apigatewayv2.StageArgs{
	ApiId: pulumi.String("string"),
	AccessLogSettings: &apigatewayv2.StageAccessLogSettingsArgs{
		DestinationArn: pulumi.String("string"),
		Format:         pulumi.String("string"),
	},
	AutoDeploy:          pulumi.Bool(false),
	ClientCertificateId: pulumi.String("string"),
	DefaultRouteSettings: &apigatewayv2.StageDefaultRouteSettingsArgs{
		DataTraceEnabled:       pulumi.Bool(false),
		DetailedMetricsEnabled: pulumi.Bool(false),
		LoggingLevel:           pulumi.String("string"),
		ThrottlingBurstLimit:   pulumi.Int(0),
		ThrottlingRateLimit:    pulumi.Float64(0),
	},
	DeploymentId: pulumi.String("string"),
	Description:  pulumi.String("string"),
	Name:         pulumi.String("string"),
	RouteSettings: apigatewayv2.StageRouteSettingArray{
		&apigatewayv2.StageRouteSettingArgs{
			RouteKey:               pulumi.String("string"),
			DataTraceEnabled:       pulumi.Bool(false),
			DetailedMetricsEnabled: pulumi.Bool(false),
			LoggingLevel:           pulumi.String("string"),
			ThrottlingBurstLimit:   pulumi.Int(0),
			ThrottlingRateLimit:    pulumi.Float64(0),
		},
	},
	StageVariables: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var awsStageResource = new Stage("awsStageResource", StageArgs.builder()
    .apiId("string")
    .accessLogSettings(StageAccessLogSettingsArgs.builder()
        .destinationArn("string")
        .format("string")
        .build())
    .autoDeploy(false)
    .clientCertificateId("string")
    .defaultRouteSettings(StageDefaultRouteSettingsArgs.builder()
        .dataTraceEnabled(false)
        .detailedMetricsEnabled(false)
        .loggingLevel("string")
        .throttlingBurstLimit(0)
        .throttlingRateLimit(0)
        .build())
    .deploymentId("string")
    .description("string")
    .name("string")
    .routeSettings(StageRouteSettingArgs.builder()
        .routeKey("string")
        .dataTraceEnabled(false)
        .detailedMetricsEnabled(false)
        .loggingLevel("string")
        .throttlingBurstLimit(0)
        .throttlingRateLimit(0)
        .build())
    .stageVariables(Map.of("string", "string"))
    .tags(Map.of("string", "string"))
    .build());
aws_stage_resource = aws.apigatewayv2.Stage("awsStageResource",
    api_id="string",
    access_log_settings={
        "destination_arn": "string",
        "format": "string",
    },
    auto_deploy=False,
    client_certificate_id="string",
    default_route_settings={
        "data_trace_enabled": False,
        "detailed_metrics_enabled": False,
        "logging_level": "string",
        "throttling_burst_limit": 0,
        "throttling_rate_limit": 0,
    },
    deployment_id="string",
    description="string",
    name="string",
    route_settings=[{
        "route_key": "string",
        "data_trace_enabled": False,
        "detailed_metrics_enabled": False,
        "logging_level": "string",
        "throttling_burst_limit": 0,
        "throttling_rate_limit": 0,
    }],
    stage_variables={
        "string": "string",
    },
    tags={
        "string": "string",
    })
const awsStageResource = new aws.apigatewayv2.Stage("awsStageResource", {
    apiId: "string",
    accessLogSettings: {
        destinationArn: "string",
        format: "string",
    },
    autoDeploy: false,
    clientCertificateId: "string",
    defaultRouteSettings: {
        dataTraceEnabled: false,
        detailedMetricsEnabled: false,
        loggingLevel: "string",
        throttlingBurstLimit: 0,
        throttlingRateLimit: 0,
    },
    deploymentId: "string",
    description: "string",
    name: "string",
    routeSettings: [{
        routeKey: "string",
        dataTraceEnabled: false,
        detailedMetricsEnabled: false,
        loggingLevel: "string",
        throttlingBurstLimit: 0,
        throttlingRateLimit: 0,
    }],
    stageVariables: {
        string: "string",
    },
    tags: {
        string: "string",
    },
});
type: aws:apigatewayv2:Stage
properties:
    accessLogSettings:
        destinationArn: string
        format: string
    apiId: string
    autoDeploy: false
    clientCertificateId: string
    defaultRouteSettings:
        dataTraceEnabled: false
        detailedMetricsEnabled: false
        loggingLevel: string
        throttlingBurstLimit: 0
        throttlingRateLimit: 0
    deploymentId: string
    description: string
    name: string
    routeSettings:
        - dataTraceEnabled: false
          detailedMetricsEnabled: false
          loggingLevel: string
          routeKey: string
          throttlingBurstLimit: 0
          throttlingRateLimit: 0
    stageVariables:
        string: string
    tags:
        string: string
Stage 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 Stage resource accepts the following input properties:
- ApiId string
- API identifier.
- AccessLog StageSettings Access Log Settings 
- Settings for logging access in this stage.
Use the aws.apigateway.Accountresource to configure permissions for CloudWatch Logging.
- AutoDeploy bool
- Whether updates to an API automatically trigger a new deployment. Defaults to false. Applicable for HTTP APIs.
- ClientCertificate stringId 
- Identifier of a client certificate for the stage. Use the aws.apigateway.ClientCertificateresource to configure a client certificate. Supported only for WebSocket APIs.
- DefaultRoute StageSettings Default Route Settings 
- Default route settings for the stage.
- DeploymentId string
- Deployment identifier of the stage. Use the aws.apigatewayv2.Deploymentresource to configure a deployment.
- Description string
- Description for the stage. Must be less than or equal to 1024 characters in length.
- Name string
- Name of the stage. Must be between 1 and 128 characters in length. - The following arguments are optional: 
- RouteSettings List<StageRoute Setting> 
- Route settings for the stage.
- StageVariables Dictionary<string, string>
- Map that defines the stage variables for the stage.
- Dictionary<string, string>
- Map of tags to assign to the stage. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- ApiId string
- API identifier.
- AccessLog StageSettings Access Log Settings Args 
- Settings for logging access in this stage.
Use the aws.apigateway.Accountresource to configure permissions for CloudWatch Logging.
- AutoDeploy bool
- Whether updates to an API automatically trigger a new deployment. Defaults to false. Applicable for HTTP APIs.
- ClientCertificate stringId 
- Identifier of a client certificate for the stage. Use the aws.apigateway.ClientCertificateresource to configure a client certificate. Supported only for WebSocket APIs.
- DefaultRoute StageSettings Default Route Settings Args 
- Default route settings for the stage.
- DeploymentId string
- Deployment identifier of the stage. Use the aws.apigatewayv2.Deploymentresource to configure a deployment.
- Description string
- Description for the stage. Must be less than or equal to 1024 characters in length.
- Name string
- Name of the stage. Must be between 1 and 128 characters in length. - The following arguments are optional: 
- RouteSettings []StageRoute Setting Args 
- Route settings for the stage.
- StageVariables map[string]string
- Map that defines the stage variables for the stage.
- map[string]string
- Map of tags to assign to the stage. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- apiId String
- API identifier.
- accessLog StageSettings Access Log Settings 
- Settings for logging access in this stage.
Use the aws.apigateway.Accountresource to configure permissions for CloudWatch Logging.
- autoDeploy Boolean
- Whether updates to an API automatically trigger a new deployment. Defaults to false. Applicable for HTTP APIs.
- clientCertificate StringId 
- Identifier of a client certificate for the stage. Use the aws.apigateway.ClientCertificateresource to configure a client certificate. Supported only for WebSocket APIs.
- defaultRoute StageSettings Default Route Settings 
- Default route settings for the stage.
- deploymentId String
- Deployment identifier of the stage. Use the aws.apigatewayv2.Deploymentresource to configure a deployment.
- description String
- Description for the stage. Must be less than or equal to 1024 characters in length.
- name String
- Name of the stage. Must be between 1 and 128 characters in length. - The following arguments are optional: 
- routeSettings List<StageRoute Setting> 
- Route settings for the stage.
- stageVariables Map<String,String>
- Map that defines the stage variables for the stage.
- Map<String,String>
- Map of tags to assign to the stage. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- apiId string
- API identifier.
- accessLog StageSettings Access Log Settings 
- Settings for logging access in this stage.
Use the aws.apigateway.Accountresource to configure permissions for CloudWatch Logging.
- autoDeploy boolean
- Whether updates to an API automatically trigger a new deployment. Defaults to false. Applicable for HTTP APIs.
- clientCertificate stringId 
- Identifier of a client certificate for the stage. Use the aws.apigateway.ClientCertificateresource to configure a client certificate. Supported only for WebSocket APIs.
- defaultRoute StageSettings Default Route Settings 
- Default route settings for the stage.
- deploymentId string
- Deployment identifier of the stage. Use the aws.apigatewayv2.Deploymentresource to configure a deployment.
- description string
- Description for the stage. Must be less than or equal to 1024 characters in length.
- name string
- Name of the stage. Must be between 1 and 128 characters in length. - The following arguments are optional: 
- routeSettings StageRoute Setting[] 
- Route settings for the stage.
- stageVariables {[key: string]: string}
- Map that defines the stage variables for the stage.
- {[key: string]: string}
- Map of tags to assign to the stage. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- api_id str
- API identifier.
- access_log_ Stagesettings Access Log Settings Args 
- Settings for logging access in this stage.
Use the aws.apigateway.Accountresource to configure permissions for CloudWatch Logging.
- auto_deploy bool
- Whether updates to an API automatically trigger a new deployment. Defaults to false. Applicable for HTTP APIs.
- client_certificate_ strid 
- Identifier of a client certificate for the stage. Use the aws.apigateway.ClientCertificateresource to configure a client certificate. Supported only for WebSocket APIs.
- default_route_ Stagesettings Default Route Settings Args 
- Default route settings for the stage.
- deployment_id str
- Deployment identifier of the stage. Use the aws.apigatewayv2.Deploymentresource to configure a deployment.
- description str
- Description for the stage. Must be less than or equal to 1024 characters in length.
- name str
- Name of the stage. Must be between 1 and 128 characters in length. - The following arguments are optional: 
- route_settings Sequence[StageRoute Setting Args] 
- Route settings for the stage.
- stage_variables Mapping[str, str]
- Map that defines the stage variables for the stage.
- Mapping[str, str]
- Map of tags to assign to the stage. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- apiId String
- API identifier.
- accessLog Property MapSettings 
- Settings for logging access in this stage.
Use the aws.apigateway.Accountresource to configure permissions for CloudWatch Logging.
- autoDeploy Boolean
- Whether updates to an API automatically trigger a new deployment. Defaults to false. Applicable for HTTP APIs.
- clientCertificate StringId 
- Identifier of a client certificate for the stage. Use the aws.apigateway.ClientCertificateresource to configure a client certificate. Supported only for WebSocket APIs.
- defaultRoute Property MapSettings 
- Default route settings for the stage.
- deploymentId String
- Deployment identifier of the stage. Use the aws.apigatewayv2.Deploymentresource to configure a deployment.
- description String
- Description for the stage. Must be less than or equal to 1024 characters in length.
- name String
- Name of the stage. Must be between 1 and 128 characters in length. - The following arguments are optional: 
- routeSettings List<Property Map>
- Route settings for the stage.
- stageVariables Map<String>
- Map that defines the stage variables for the stage.
- Map<String>
- Map of tags to assign to the stage. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the Stage resource produces the following output properties:
- Arn string
- ARN of the stage.
- ExecutionArn string
- ARN prefix to be used in an aws.lambda.Permission'ssource_arnattribute. For WebSocket APIs this attribute can additionally be used in anaws.iam.Policyto authorize access to the@connectionsAPI. See the Amazon API Gateway Developer Guide for details.
- Id string
- The provider-assigned unique ID for this managed resource.
- InvokeUrl string
- URL to invoke the API pointing to the stage,
e.g., wss://z4675bid1j.execute-api.eu-west-2.amazonaws.com/example-stage, orhttps://z4675bid1j.execute-api.eu-west-2.amazonaws.com/
- Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- Arn string
- ARN of the stage.
- ExecutionArn string
- ARN prefix to be used in an aws.lambda.Permission'ssource_arnattribute. For WebSocket APIs this attribute can additionally be used in anaws.iam.Policyto authorize access to the@connectionsAPI. See the Amazon API Gateway Developer Guide for details.
- Id string
- The provider-assigned unique ID for this managed resource.
- InvokeUrl string
- URL to invoke the API pointing to the stage,
e.g., wss://z4675bid1j.execute-api.eu-west-2.amazonaws.com/example-stage, orhttps://z4675bid1j.execute-api.eu-west-2.amazonaws.com/
- map[string]string
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn String
- ARN of the stage.
- executionArn String
- ARN prefix to be used in an aws.lambda.Permission'ssource_arnattribute. For WebSocket APIs this attribute can additionally be used in anaws.iam.Policyto authorize access to the@connectionsAPI. See the Amazon API Gateway Developer Guide for details.
- id String
- The provider-assigned unique ID for this managed resource.
- invokeUrl String
- URL to invoke the API pointing to the stage,
e.g., wss://z4675bid1j.execute-api.eu-west-2.amazonaws.com/example-stage, orhttps://z4675bid1j.execute-api.eu-west-2.amazonaws.com/
- Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn string
- ARN of the stage.
- executionArn string
- ARN prefix to be used in an aws.lambda.Permission'ssource_arnattribute. For WebSocket APIs this attribute can additionally be used in anaws.iam.Policyto authorize access to the@connectionsAPI. See the Amazon API Gateway Developer Guide for details.
- id string
- The provider-assigned unique ID for this managed resource.
- invokeUrl string
- URL to invoke the API pointing to the stage,
e.g., wss://z4675bid1j.execute-api.eu-west-2.amazonaws.com/example-stage, orhttps://z4675bid1j.execute-api.eu-west-2.amazonaws.com/
- {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn str
- ARN of the stage.
- execution_arn str
- ARN prefix to be used in an aws.lambda.Permission'ssource_arnattribute. For WebSocket APIs this attribute can additionally be used in anaws.iam.Policyto authorize access to the@connectionsAPI. See the Amazon API Gateway Developer Guide for details.
- id str
- The provider-assigned unique ID for this managed resource.
- invoke_url str
- URL to invoke the API pointing to the stage,
e.g., wss://z4675bid1j.execute-api.eu-west-2.amazonaws.com/example-stage, orhttps://z4675bid1j.execute-api.eu-west-2.amazonaws.com/
- Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn String
- ARN of the stage.
- executionArn String
- ARN prefix to be used in an aws.lambda.Permission'ssource_arnattribute. For WebSocket APIs this attribute can additionally be used in anaws.iam.Policyto authorize access to the@connectionsAPI. See the Amazon API Gateway Developer Guide for details.
- id String
- The provider-assigned unique ID for this managed resource.
- invokeUrl String
- URL to invoke the API pointing to the stage,
e.g., wss://z4675bid1j.execute-api.eu-west-2.amazonaws.com/example-stage, orhttps://z4675bid1j.execute-api.eu-west-2.amazonaws.com/
- Map<String>
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
Look up Existing Stage Resource
Get an existing Stage 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?: StageState, opts?: CustomResourceOptions): Stage@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        access_log_settings: Optional[StageAccessLogSettingsArgs] = None,
        api_id: Optional[str] = None,
        arn: Optional[str] = None,
        auto_deploy: Optional[bool] = None,
        client_certificate_id: Optional[str] = None,
        default_route_settings: Optional[StageDefaultRouteSettingsArgs] = None,
        deployment_id: Optional[str] = None,
        description: Optional[str] = None,
        execution_arn: Optional[str] = None,
        invoke_url: Optional[str] = None,
        name: Optional[str] = None,
        route_settings: Optional[Sequence[StageRouteSettingArgs]] = None,
        stage_variables: Optional[Mapping[str, str]] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None) -> Stagefunc GetStage(ctx *Context, name string, id IDInput, state *StageState, opts ...ResourceOption) (*Stage, error)public static Stage Get(string name, Input<string> id, StageState? state, CustomResourceOptions? opts = null)public static Stage get(String name, Output<String> id, StageState state, CustomResourceOptions options)resources:  _:    type: aws:apigatewayv2:Stage    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- AccessLog StageSettings Access Log Settings 
- Settings for logging access in this stage.
Use the aws.apigateway.Accountresource to configure permissions for CloudWatch Logging.
- ApiId string
- API identifier.
- Arn string
- ARN of the stage.
- AutoDeploy bool
- Whether updates to an API automatically trigger a new deployment. Defaults to false. Applicable for HTTP APIs.
- ClientCertificate stringId 
- Identifier of a client certificate for the stage. Use the aws.apigateway.ClientCertificateresource to configure a client certificate. Supported only for WebSocket APIs.
- DefaultRoute StageSettings Default Route Settings 
- Default route settings for the stage.
- DeploymentId string
- Deployment identifier of the stage. Use the aws.apigatewayv2.Deploymentresource to configure a deployment.
- Description string
- Description for the stage. Must be less than or equal to 1024 characters in length.
- ExecutionArn string
- ARN prefix to be used in an aws.lambda.Permission'ssource_arnattribute. For WebSocket APIs this attribute can additionally be used in anaws.iam.Policyto authorize access to the@connectionsAPI. See the Amazon API Gateway Developer Guide for details.
- InvokeUrl string
- URL to invoke the API pointing to the stage,
e.g., wss://z4675bid1j.execute-api.eu-west-2.amazonaws.com/example-stage, orhttps://z4675bid1j.execute-api.eu-west-2.amazonaws.com/
- Name string
- Name of the stage. Must be between 1 and 128 characters in length. - The following arguments are optional: 
- RouteSettings List<StageRoute Setting> 
- Route settings for the stage.
- StageVariables Dictionary<string, string>
- Map that defines the stage variables for the stage.
- Dictionary<string, string>
- Map of tags to assign to the stage. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- AccessLog StageSettings Access Log Settings Args 
- Settings for logging access in this stage.
Use the aws.apigateway.Accountresource to configure permissions for CloudWatch Logging.
- ApiId string
- API identifier.
- Arn string
- ARN of the stage.
- AutoDeploy bool
- Whether updates to an API automatically trigger a new deployment. Defaults to false. Applicable for HTTP APIs.
- ClientCertificate stringId 
- Identifier of a client certificate for the stage. Use the aws.apigateway.ClientCertificateresource to configure a client certificate. Supported only for WebSocket APIs.
- DefaultRoute StageSettings Default Route Settings Args 
- Default route settings for the stage.
- DeploymentId string
- Deployment identifier of the stage. Use the aws.apigatewayv2.Deploymentresource to configure a deployment.
- Description string
- Description for the stage. Must be less than or equal to 1024 characters in length.
- ExecutionArn string
- ARN prefix to be used in an aws.lambda.Permission'ssource_arnattribute. For WebSocket APIs this attribute can additionally be used in anaws.iam.Policyto authorize access to the@connectionsAPI. See the Amazon API Gateway Developer Guide for details.
- InvokeUrl string
- URL to invoke the API pointing to the stage,
e.g., wss://z4675bid1j.execute-api.eu-west-2.amazonaws.com/example-stage, orhttps://z4675bid1j.execute-api.eu-west-2.amazonaws.com/
- Name string
- Name of the stage. Must be between 1 and 128 characters in length. - The following arguments are optional: 
- RouteSettings []StageRoute Setting Args 
- Route settings for the stage.
- StageVariables map[string]string
- Map that defines the stage variables for the stage.
- map[string]string
- Map of tags to assign to the stage. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- map[string]string
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- accessLog StageSettings Access Log Settings 
- Settings for logging access in this stage.
Use the aws.apigateway.Accountresource to configure permissions for CloudWatch Logging.
- apiId String
- API identifier.
- arn String
- ARN of the stage.
- autoDeploy Boolean
- Whether updates to an API automatically trigger a new deployment. Defaults to false. Applicable for HTTP APIs.
- clientCertificate StringId 
- Identifier of a client certificate for the stage. Use the aws.apigateway.ClientCertificateresource to configure a client certificate. Supported only for WebSocket APIs.
- defaultRoute StageSettings Default Route Settings 
- Default route settings for the stage.
- deploymentId String
- Deployment identifier of the stage. Use the aws.apigatewayv2.Deploymentresource to configure a deployment.
- description String
- Description for the stage. Must be less than or equal to 1024 characters in length.
- executionArn String
- ARN prefix to be used in an aws.lambda.Permission'ssource_arnattribute. For WebSocket APIs this attribute can additionally be used in anaws.iam.Policyto authorize access to the@connectionsAPI. See the Amazon API Gateway Developer Guide for details.
- invokeUrl String
- URL to invoke the API pointing to the stage,
e.g., wss://z4675bid1j.execute-api.eu-west-2.amazonaws.com/example-stage, orhttps://z4675bid1j.execute-api.eu-west-2.amazonaws.com/
- name String
- Name of the stage. Must be between 1 and 128 characters in length. - The following arguments are optional: 
- routeSettings List<StageRoute Setting> 
- Route settings for the stage.
- stageVariables Map<String,String>
- Map that defines the stage variables for the stage.
- Map<String,String>
- Map of tags to assign to the stage. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- accessLog StageSettings Access Log Settings 
- Settings for logging access in this stage.
Use the aws.apigateway.Accountresource to configure permissions for CloudWatch Logging.
- apiId string
- API identifier.
- arn string
- ARN of the stage.
- autoDeploy boolean
- Whether updates to an API automatically trigger a new deployment. Defaults to false. Applicable for HTTP APIs.
- clientCertificate stringId 
- Identifier of a client certificate for the stage. Use the aws.apigateway.ClientCertificateresource to configure a client certificate. Supported only for WebSocket APIs.
- defaultRoute StageSettings Default Route Settings 
- Default route settings for the stage.
- deploymentId string
- Deployment identifier of the stage. Use the aws.apigatewayv2.Deploymentresource to configure a deployment.
- description string
- Description for the stage. Must be less than or equal to 1024 characters in length.
- executionArn string
- ARN prefix to be used in an aws.lambda.Permission'ssource_arnattribute. For WebSocket APIs this attribute can additionally be used in anaws.iam.Policyto authorize access to the@connectionsAPI. See the Amazon API Gateway Developer Guide for details.
- invokeUrl string
- URL to invoke the API pointing to the stage,
e.g., wss://z4675bid1j.execute-api.eu-west-2.amazonaws.com/example-stage, orhttps://z4675bid1j.execute-api.eu-west-2.amazonaws.com/
- name string
- Name of the stage. Must be between 1 and 128 characters in length. - The following arguments are optional: 
- routeSettings StageRoute Setting[] 
- Route settings for the stage.
- stageVariables {[key: string]: string}
- Map that defines the stage variables for the stage.
- {[key: string]: string}
- Map of tags to assign to the stage. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- access_log_ Stagesettings Access Log Settings Args 
- Settings for logging access in this stage.
Use the aws.apigateway.Accountresource to configure permissions for CloudWatch Logging.
- api_id str
- API identifier.
- arn str
- ARN of the stage.
- auto_deploy bool
- Whether updates to an API automatically trigger a new deployment. Defaults to false. Applicable for HTTP APIs.
- client_certificate_ strid 
- Identifier of a client certificate for the stage. Use the aws.apigateway.ClientCertificateresource to configure a client certificate. Supported only for WebSocket APIs.
- default_route_ Stagesettings Default Route Settings Args 
- Default route settings for the stage.
- deployment_id str
- Deployment identifier of the stage. Use the aws.apigatewayv2.Deploymentresource to configure a deployment.
- description str
- Description for the stage. Must be less than or equal to 1024 characters in length.
- execution_arn str
- ARN prefix to be used in an aws.lambda.Permission'ssource_arnattribute. For WebSocket APIs this attribute can additionally be used in anaws.iam.Policyto authorize access to the@connectionsAPI. See the Amazon API Gateway Developer Guide for details.
- invoke_url str
- URL to invoke the API pointing to the stage,
e.g., wss://z4675bid1j.execute-api.eu-west-2.amazonaws.com/example-stage, orhttps://z4675bid1j.execute-api.eu-west-2.amazonaws.com/
- name str
- Name of the stage. Must be between 1 and 128 characters in length. - The following arguments are optional: 
- route_settings Sequence[StageRoute Setting Args] 
- Route settings for the stage.
- stage_variables Mapping[str, str]
- Map that defines the stage variables for the stage.
- Mapping[str, str]
- Map of tags to assign to the stage. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- accessLog Property MapSettings 
- Settings for logging access in this stage.
Use the aws.apigateway.Accountresource to configure permissions for CloudWatch Logging.
- apiId String
- API identifier.
- arn String
- ARN of the stage.
- autoDeploy Boolean
- Whether updates to an API automatically trigger a new deployment. Defaults to false. Applicable for HTTP APIs.
- clientCertificate StringId 
- Identifier of a client certificate for the stage. Use the aws.apigateway.ClientCertificateresource to configure a client certificate. Supported only for WebSocket APIs.
- defaultRoute Property MapSettings 
- Default route settings for the stage.
- deploymentId String
- Deployment identifier of the stage. Use the aws.apigatewayv2.Deploymentresource to configure a deployment.
- description String
- Description for the stage. Must be less than or equal to 1024 characters in length.
- executionArn String
- ARN prefix to be used in an aws.lambda.Permission'ssource_arnattribute. For WebSocket APIs this attribute can additionally be used in anaws.iam.Policyto authorize access to the@connectionsAPI. See the Amazon API Gateway Developer Guide for details.
- invokeUrl String
- URL to invoke the API pointing to the stage,
e.g., wss://z4675bid1j.execute-api.eu-west-2.amazonaws.com/example-stage, orhttps://z4675bid1j.execute-api.eu-west-2.amazonaws.com/
- name String
- Name of the stage. Must be between 1 and 128 characters in length. - The following arguments are optional: 
- routeSettings List<Property Map>
- Route settings for the stage.
- stageVariables Map<String>
- Map that defines the stage variables for the stage.
- Map<String>
- Map of tags to assign to the stage. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Map<String>
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
Supporting Types
StageAccessLogSettings, StageAccessLogSettingsArgs        
- DestinationArn string
- ARN of the CloudWatch Logs log group to receive access logs. Any trailing :*is trimmed from the ARN.
- Format string
- Single line format of the access logs of data. Refer to log settings for HTTP or Websocket.
- DestinationArn string
- ARN of the CloudWatch Logs log group to receive access logs. Any trailing :*is trimmed from the ARN.
- Format string
- Single line format of the access logs of data. Refer to log settings for HTTP or Websocket.
- destinationArn String
- ARN of the CloudWatch Logs log group to receive access logs. Any trailing :*is trimmed from the ARN.
- format String
- Single line format of the access logs of data. Refer to log settings for HTTP or Websocket.
- destinationArn string
- ARN of the CloudWatch Logs log group to receive access logs. Any trailing :*is trimmed from the ARN.
- format string
- Single line format of the access logs of data. Refer to log settings for HTTP or Websocket.
- destination_arn str
- ARN of the CloudWatch Logs log group to receive access logs. Any trailing :*is trimmed from the ARN.
- format str
- Single line format of the access logs of data. Refer to log settings for HTTP or Websocket.
- destinationArn String
- ARN of the CloudWatch Logs log group to receive access logs. Any trailing :*is trimmed from the ARN.
- format String
- Single line format of the access logs of data. Refer to log settings for HTTP or Websocket.
StageDefaultRouteSettings, StageDefaultRouteSettingsArgs        
- DataTrace boolEnabled 
- Whether data trace logging is enabled for the default route. Affects the log entries pushed to Amazon CloudWatch Logs.
Defaults to false. Supported only for WebSocket APIs.
- DetailedMetrics boolEnabled 
- Whether detailed metrics are enabled for the default route. Defaults to false.
- LoggingLevel string
- Logging level for the default route. Affects the log entries pushed to Amazon CloudWatch Logs.
Valid values: ERROR,INFO,OFF. Defaults toOFF. Supported only for WebSocket APIs. This provider will only perform drift detection of its value when present in a configuration.
- ThrottlingBurst intLimit 
- Throttling burst limit for the default route.
- ThrottlingRate doubleLimit 
- Throttling rate limit for the default route.
- DataTrace boolEnabled 
- Whether data trace logging is enabled for the default route. Affects the log entries pushed to Amazon CloudWatch Logs.
Defaults to false. Supported only for WebSocket APIs.
- DetailedMetrics boolEnabled 
- Whether detailed metrics are enabled for the default route. Defaults to false.
- LoggingLevel string
- Logging level for the default route. Affects the log entries pushed to Amazon CloudWatch Logs.
Valid values: ERROR,INFO,OFF. Defaults toOFF. Supported only for WebSocket APIs. This provider will only perform drift detection of its value when present in a configuration.
- ThrottlingBurst intLimit 
- Throttling burst limit for the default route.
- ThrottlingRate float64Limit 
- Throttling rate limit for the default route.
- dataTrace BooleanEnabled 
- Whether data trace logging is enabled for the default route. Affects the log entries pushed to Amazon CloudWatch Logs.
Defaults to false. Supported only for WebSocket APIs.
- detailedMetrics BooleanEnabled 
- Whether detailed metrics are enabled for the default route. Defaults to false.
- loggingLevel String
- Logging level for the default route. Affects the log entries pushed to Amazon CloudWatch Logs.
Valid values: ERROR,INFO,OFF. Defaults toOFF. Supported only for WebSocket APIs. This provider will only perform drift detection of its value when present in a configuration.
- throttlingBurst IntegerLimit 
- Throttling burst limit for the default route.
- throttlingRate DoubleLimit 
- Throttling rate limit for the default route.
- dataTrace booleanEnabled 
- Whether data trace logging is enabled for the default route. Affects the log entries pushed to Amazon CloudWatch Logs.
Defaults to false. Supported only for WebSocket APIs.
- detailedMetrics booleanEnabled 
- Whether detailed metrics are enabled for the default route. Defaults to false.
- loggingLevel string
- Logging level for the default route. Affects the log entries pushed to Amazon CloudWatch Logs.
Valid values: ERROR,INFO,OFF. Defaults toOFF. Supported only for WebSocket APIs. This provider will only perform drift detection of its value when present in a configuration.
- throttlingBurst numberLimit 
- Throttling burst limit for the default route.
- throttlingRate numberLimit 
- Throttling rate limit for the default route.
- data_trace_ boolenabled 
- Whether data trace logging is enabled for the default route. Affects the log entries pushed to Amazon CloudWatch Logs.
Defaults to false. Supported only for WebSocket APIs.
- detailed_metrics_ boolenabled 
- Whether detailed metrics are enabled for the default route. Defaults to false.
- logging_level str
- Logging level for the default route. Affects the log entries pushed to Amazon CloudWatch Logs.
Valid values: ERROR,INFO,OFF. Defaults toOFF. Supported only for WebSocket APIs. This provider will only perform drift detection of its value when present in a configuration.
- throttling_burst_ intlimit 
- Throttling burst limit for the default route.
- throttling_rate_ floatlimit 
- Throttling rate limit for the default route.
- dataTrace BooleanEnabled 
- Whether data trace logging is enabled for the default route. Affects the log entries pushed to Amazon CloudWatch Logs.
Defaults to false. Supported only for WebSocket APIs.
- detailedMetrics BooleanEnabled 
- Whether detailed metrics are enabled for the default route. Defaults to false.
- loggingLevel String
- Logging level for the default route. Affects the log entries pushed to Amazon CloudWatch Logs.
Valid values: ERROR,INFO,OFF. Defaults toOFF. Supported only for WebSocket APIs. This provider will only perform drift detection of its value when present in a configuration.
- throttlingBurst NumberLimit 
- Throttling burst limit for the default route.
- throttlingRate NumberLimit 
- Throttling rate limit for the default route.
StageRouteSetting, StageRouteSettingArgs      
- RouteKey string
- Route key.
- DataTrace boolEnabled 
- Whether data trace logging is enabled for the route. Affects the log entries pushed to Amazon CloudWatch Logs.
Defaults to false. Supported only for WebSocket APIs.
- DetailedMetrics boolEnabled 
- Whether detailed metrics are enabled for the route. Defaults to false.
- LoggingLevel string
- Logging level for the route. Affects the log entries pushed to Amazon CloudWatch Logs.
Valid values: ERROR,INFO,OFF. Defaults toOFF. Supported only for WebSocket APIs. This provider will only perform drift detection of its value when present in a configuration.
- ThrottlingBurst intLimit 
- Throttling burst limit for the route.
- ThrottlingRate doubleLimit 
- Throttling rate limit for the route.
- RouteKey string
- Route key.
- DataTrace boolEnabled 
- Whether data trace logging is enabled for the route. Affects the log entries pushed to Amazon CloudWatch Logs.
Defaults to false. Supported only for WebSocket APIs.
- DetailedMetrics boolEnabled 
- Whether detailed metrics are enabled for the route. Defaults to false.
- LoggingLevel string
- Logging level for the route. Affects the log entries pushed to Amazon CloudWatch Logs.
Valid values: ERROR,INFO,OFF. Defaults toOFF. Supported only for WebSocket APIs. This provider will only perform drift detection of its value when present in a configuration.
- ThrottlingBurst intLimit 
- Throttling burst limit for the route.
- ThrottlingRate float64Limit 
- Throttling rate limit for the route.
- routeKey String
- Route key.
- dataTrace BooleanEnabled 
- Whether data trace logging is enabled for the route. Affects the log entries pushed to Amazon CloudWatch Logs.
Defaults to false. Supported only for WebSocket APIs.
- detailedMetrics BooleanEnabled 
- Whether detailed metrics are enabled for the route. Defaults to false.
- loggingLevel String
- Logging level for the route. Affects the log entries pushed to Amazon CloudWatch Logs.
Valid values: ERROR,INFO,OFF. Defaults toOFF. Supported only for WebSocket APIs. This provider will only perform drift detection of its value when present in a configuration.
- throttlingBurst IntegerLimit 
- Throttling burst limit for the route.
- throttlingRate DoubleLimit 
- Throttling rate limit for the route.
- routeKey string
- Route key.
- dataTrace booleanEnabled 
- Whether data trace logging is enabled for the route. Affects the log entries pushed to Amazon CloudWatch Logs.
Defaults to false. Supported only for WebSocket APIs.
- detailedMetrics booleanEnabled 
- Whether detailed metrics are enabled for the route. Defaults to false.
- loggingLevel string
- Logging level for the route. Affects the log entries pushed to Amazon CloudWatch Logs.
Valid values: ERROR,INFO,OFF. Defaults toOFF. Supported only for WebSocket APIs. This provider will only perform drift detection of its value when present in a configuration.
- throttlingBurst numberLimit 
- Throttling burst limit for the route.
- throttlingRate numberLimit 
- Throttling rate limit for the route.
- route_key str
- Route key.
- data_trace_ boolenabled 
- Whether data trace logging is enabled for the route. Affects the log entries pushed to Amazon CloudWatch Logs.
Defaults to false. Supported only for WebSocket APIs.
- detailed_metrics_ boolenabled 
- Whether detailed metrics are enabled for the route. Defaults to false.
- logging_level str
- Logging level for the route. Affects the log entries pushed to Amazon CloudWatch Logs.
Valid values: ERROR,INFO,OFF. Defaults toOFF. Supported only for WebSocket APIs. This provider will only perform drift detection of its value when present in a configuration.
- throttling_burst_ intlimit 
- Throttling burst limit for the route.
- throttling_rate_ floatlimit 
- Throttling rate limit for the route.
- routeKey String
- Route key.
- dataTrace BooleanEnabled 
- Whether data trace logging is enabled for the route. Affects the log entries pushed to Amazon CloudWatch Logs.
Defaults to false. Supported only for WebSocket APIs.
- detailedMetrics BooleanEnabled 
- Whether detailed metrics are enabled for the route. Defaults to false.
- loggingLevel String
- Logging level for the route. Affects the log entries pushed to Amazon CloudWatch Logs.
Valid values: ERROR,INFO,OFF. Defaults toOFF. Supported only for WebSocket APIs. This provider will only perform drift detection of its value when present in a configuration.
- throttlingBurst NumberLimit 
- Throttling burst limit for the route.
- throttlingRate NumberLimit 
- Throttling rate limit for the route.
Import
Using pulumi import, import aws_apigatewayv2_stage using the API identifier and stage name. For example:
$ pulumi import aws:apigatewayv2/stage:Stage example aabbccddee/example-stage
-> Note: The API Gateway managed stage created as part of quick_create cannot be imported.
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.