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:
- Api
Id string - API identifier.
- Access
Log StageSettings Access Log Settings - Settings for logging access in this stage.
Use the
aws.apigateway.Account
resource 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 stringId - Identifier of a client certificate for the stage. Use the
aws.apigateway.ClientCertificate
resource to configure a client certificate. Supported only for WebSocket APIs. - Default
Route StageSettings Default Route Settings - Default route settings for the stage.
- Deployment
Id string - Deployment identifier of the stage. Use the
aws.apigatewayv2.Deployment
resource 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:
- Route
Settings List<StageRoute Setting> - Route settings for the stage.
- Stage
Variables 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_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Api
Id string - API identifier.
- Access
Log StageSettings Access Log Settings Args - Settings for logging access in this stage.
Use the
aws.apigateway.Account
resource 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 stringId - Identifier of a client certificate for the stage. Use the
aws.apigateway.ClientCertificate
resource 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 string - Deployment identifier of the stage. Use the
aws.apigatewayv2.Deployment
resource 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:
- Route
Settings []StageRoute Setting Args - Route settings for the stage.
- Stage
Variables 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_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- api
Id String - API identifier.
- access
Log StageSettings Access Log Settings - Settings for logging access in this stage.
Use the
aws.apigateway.Account
resource to configure permissions for CloudWatch Logging. - auto
Deploy Boolean - Whether updates to an API automatically trigger a new deployment. Defaults to
false
. Applicable for HTTP APIs. - client
Certificate StringId - Identifier of a client certificate for the stage. Use the
aws.apigateway.ClientCertificate
resource to configure a client certificate. Supported only for WebSocket APIs. - default
Route StageSettings Default Route Settings - Default route settings for the stage.
- deployment
Id String - Deployment identifier of the stage. Use the
aws.apigatewayv2.Deployment
resource 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:
- route
Settings List<StageRoute Setting> - Route settings for the stage.
- stage
Variables 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_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- api
Id string - API identifier.
- access
Log StageSettings Access Log Settings - Settings for logging access in this stage.
Use the
aws.apigateway.Account
resource to configure permissions for CloudWatch Logging. - auto
Deploy boolean - Whether updates to an API automatically trigger a new deployment. Defaults to
false
. Applicable for HTTP APIs. - client
Certificate stringId - Identifier of a client certificate for the stage. Use the
aws.apigateway.ClientCertificate
resource to configure a client certificate. Supported only for WebSocket APIs. - default
Route StageSettings Default Route Settings - Default route settings for the stage.
- deployment
Id string - Deployment identifier of the stage. Use the
aws.apigatewayv2.Deployment
resource 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:
- route
Settings StageRoute Setting[] - Route settings for the stage.
- stage
Variables {[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_tags
configuration 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.Account
resource 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.ClientCertificate
resource 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.Deployment
resource 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_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- api
Id String - API identifier.
- access
Log Property MapSettings - Settings for logging access in this stage.
Use the
aws.apigateway.Account
resource to configure permissions for CloudWatch Logging. - auto
Deploy Boolean - Whether updates to an API automatically trigger a new deployment. Defaults to
false
. Applicable for HTTP APIs. - client
Certificate StringId - Identifier of a client certificate for the stage. Use the
aws.apigateway.ClientCertificate
resource to configure a client certificate. Supported only for WebSocket APIs. - default
Route Property MapSettings - Default route settings for the stage.
- deployment
Id String - Deployment identifier of the stage. Use the
aws.apigatewayv2.Deployment
resource 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:
- route
Settings List<Property Map> - Route settings for the stage.
- stage
Variables 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_tags
configuration 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.
- Execution
Arn string - ARN prefix to be used in an
aws.lambda.Permission
'ssource_arn
attribute. For WebSocket APIs this attribute can additionally be used in anaws.iam.Policy
to authorize access to the@connections
API. See the Amazon API Gateway Developer Guide for details. - Id string
- The provider-assigned unique ID for this managed resource.
- Invoke
Url 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_tags
configuration block.
- Arn string
- ARN of the stage.
- Execution
Arn string - ARN prefix to be used in an
aws.lambda.Permission
'ssource_arn
attribute. For WebSocket APIs this attribute can additionally be used in anaws.iam.Policy
to authorize access to the@connections
API. See the Amazon API Gateway Developer Guide for details. - Id string
- The provider-assigned unique ID for this managed resource.
- Invoke
Url 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_tags
configuration block.
- arn String
- ARN of the stage.
- execution
Arn String - ARN prefix to be used in an
aws.lambda.Permission
'ssource_arn
attribute. For WebSocket APIs this attribute can additionally be used in anaws.iam.Policy
to authorize access to the@connections
API. See the Amazon API Gateway Developer Guide for details. - id String
- The provider-assigned unique ID for this managed resource.
- invoke
Url 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_tags
configuration block.
- arn string
- ARN of the stage.
- execution
Arn string - ARN prefix to be used in an
aws.lambda.Permission
'ssource_arn
attribute. For WebSocket APIs this attribute can additionally be used in anaws.iam.Policy
to authorize access to the@connections
API. See the Amazon API Gateway Developer Guide for details. - id string
- The provider-assigned unique ID for this managed resource.
- invoke
Url 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_tags
configuration block.
- arn str
- ARN of the stage.
- execution_
arn str - ARN prefix to be used in an
aws.lambda.Permission
'ssource_arn
attribute. For WebSocket APIs this attribute can additionally be used in anaws.iam.Policy
to authorize access to the@connections
API. 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_tags
configuration block.
- arn String
- ARN of the stage.
- execution
Arn String - ARN prefix to be used in an
aws.lambda.Permission
'ssource_arn
attribute. For WebSocket APIs this attribute can additionally be used in anaws.iam.Policy
to authorize access to the@connections
API. See the Amazon API Gateway Developer Guide for details. - id String
- The provider-assigned unique ID for this managed resource.
- invoke
Url 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_tags
configuration 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) -> Stage
func 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)
Resource lookup is not supported in YAML
- 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.
- Access
Log StageSettings Access Log Settings - Settings for logging access in this stage.
Use the
aws.apigateway.Account
resource to configure permissions for CloudWatch Logging. - Api
Id string - API identifier.
- Arn string
- 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 stringId - Identifier of a client certificate for the stage. Use the
aws.apigateway.ClientCertificate
resource to configure a client certificate. Supported only for WebSocket APIs. - Default
Route StageSettings Default Route Settings - Default route settings for the stage.
- Deployment
Id string - Deployment identifier of the stage. Use the
aws.apigatewayv2.Deployment
resource to configure a deployment. - Description string
- Description for the stage. Must be less than or equal to 1024 characters in length.
- Execution
Arn string - ARN prefix to be used in an
aws.lambda.Permission
'ssource_arn
attribute. For WebSocket APIs this attribute can additionally be used in anaws.iam.Policy
to authorize access to the@connections
API. See the Amazon API Gateway Developer Guide for details. - Invoke
Url 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:
- Route
Settings List<StageRoute Setting> - Route settings for the stage.
- Stage
Variables 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_tags
configuration 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_tags
configuration block.
- Access
Log StageSettings Access Log Settings Args - Settings for logging access in this stage.
Use the
aws.apigateway.Account
resource to configure permissions for CloudWatch Logging. - Api
Id string - API identifier.
- Arn string
- 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 stringId - Identifier of a client certificate for the stage. Use the
aws.apigateway.ClientCertificate
resource 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 string - Deployment identifier of the stage. Use the
aws.apigatewayv2.Deployment
resource to configure a deployment. - Description string
- Description for the stage. Must be less than or equal to 1024 characters in length.
- Execution
Arn string - ARN prefix to be used in an
aws.lambda.Permission
'ssource_arn
attribute. For WebSocket APIs this attribute can additionally be used in anaws.iam.Policy
to authorize access to the@connections
API. See the Amazon API Gateway Developer Guide for details. - Invoke
Url 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:
- Route
Settings []StageRoute Setting Args - Route settings for the stage.
- Stage
Variables 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_tags
configuration 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_tags
configuration block.
- access
Log StageSettings Access Log Settings - Settings for logging access in this stage.
Use the
aws.apigateway.Account
resource to configure permissions for CloudWatch Logging. - api
Id String - API identifier.
- arn String
- ARN of the stage.
- auto
Deploy Boolean - Whether updates to an API automatically trigger a new deployment. Defaults to
false
. Applicable for HTTP APIs. - client
Certificate StringId - Identifier of a client certificate for the stage. Use the
aws.apigateway.ClientCertificate
resource to configure a client certificate. Supported only for WebSocket APIs. - default
Route StageSettings Default Route Settings - Default route settings for the stage.
- deployment
Id String - Deployment identifier of the stage. Use the
aws.apigatewayv2.Deployment
resource to configure a deployment. - description String
- Description for the stage. Must be less than or equal to 1024 characters in length.
- execution
Arn String - ARN prefix to be used in an
aws.lambda.Permission
'ssource_arn
attribute. For WebSocket APIs this attribute can additionally be used in anaws.iam.Policy
to authorize access to the@connections
API. See the Amazon API Gateway Developer Guide for details. - invoke
Url 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:
- route
Settings List<StageRoute Setting> - Route settings for the stage.
- stage
Variables 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_tags
configuration 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_tags
configuration block.
- access
Log StageSettings Access Log Settings - Settings for logging access in this stage.
Use the
aws.apigateway.Account
resource to configure permissions for CloudWatch Logging. - api
Id string - API identifier.
- arn string
- ARN of the stage.
- auto
Deploy boolean - Whether updates to an API automatically trigger a new deployment. Defaults to
false
. Applicable for HTTP APIs. - client
Certificate stringId - Identifier of a client certificate for the stage. Use the
aws.apigateway.ClientCertificate
resource to configure a client certificate. Supported only for WebSocket APIs. - default
Route StageSettings Default Route Settings - Default route settings for the stage.
- deployment
Id string - Deployment identifier of the stage. Use the
aws.apigatewayv2.Deployment
resource to configure a deployment. - description string
- Description for the stage. Must be less than or equal to 1024 characters in length.
- execution
Arn string - ARN prefix to be used in an
aws.lambda.Permission
'ssource_arn
attribute. For WebSocket APIs this attribute can additionally be used in anaws.iam.Policy
to authorize access to the@connections
API. See the Amazon API Gateway Developer Guide for details. - invoke
Url 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:
- route
Settings StageRoute Setting[] - Route settings for the stage.
- stage
Variables {[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_tags
configuration 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_tags
configuration block.
- access_
log_ Stagesettings Access Log Settings Args - Settings for logging access in this stage.
Use the
aws.apigateway.Account
resource 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.ClientCertificate
resource 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.Deployment
resource 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_arn
attribute. For WebSocket APIs this attribute can additionally be used in anaws.iam.Policy
to authorize access to the@connections
API. 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_tags
configuration 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_tags
configuration block.
- access
Log Property MapSettings - Settings for logging access in this stage.
Use the
aws.apigateway.Account
resource to configure permissions for CloudWatch Logging. - api
Id String - API identifier.
- arn String
- ARN of the stage.
- auto
Deploy Boolean - Whether updates to an API automatically trigger a new deployment. Defaults to
false
. Applicable for HTTP APIs. - client
Certificate StringId - Identifier of a client certificate for the stage. Use the
aws.apigateway.ClientCertificate
resource to configure a client certificate. Supported only for WebSocket APIs. - default
Route Property MapSettings - Default route settings for the stage.
- deployment
Id String - Deployment identifier of the stage. Use the
aws.apigatewayv2.Deployment
resource to configure a deployment. - description String
- Description for the stage. Must be less than or equal to 1024 characters in length.
- execution
Arn String - ARN prefix to be used in an
aws.lambda.Permission
'ssource_arn
attribute. For WebSocket APIs this attribute can additionally be used in anaws.iam.Policy
to authorize access to the@connections
API. See the Amazon API Gateway Developer Guide for details. - invoke
Url 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:
- route
Settings List<Property Map> - Route settings for the stage.
- stage
Variables 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_tags
configuration 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_tags
configuration block.
Supporting Types
StageAccessLogSettings, StageAccessLogSettingsArgs
- Destination
Arn 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 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 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 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.
- destination
Arn 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
- 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 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. - Throttling
Burst intLimit - Throttling burst limit for the default route.
- Throttling
Rate doubleLimit - 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 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. - Throttling
Burst intLimit - Throttling burst limit for the default route.
- Throttling
Rate float64Limit - Throttling rate limit for the default route.
- data
Trace 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. - detailed
Metrics BooleanEnabled - Whether detailed metrics are enabled for the default route. Defaults to
false
. - logging
Level 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. - throttling
Burst IntegerLimit - Throttling burst limit for the default route.
- throttling
Rate DoubleLimit - Throttling rate limit for the default route.
- data
Trace 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. - detailed
Metrics booleanEnabled - Whether detailed metrics are enabled for the default route. Defaults to
false
. - logging
Level 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. - throttling
Burst numberLimit - Throttling burst limit for the default route.
- throttling
Rate 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.
- data
Trace 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. - detailed
Metrics BooleanEnabled - Whether detailed metrics are enabled for the default route. Defaults to
false
. - logging
Level 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. - throttling
Burst NumberLimit - Throttling burst limit for the default route.
- throttling
Rate NumberLimit - Throttling rate limit for the default route.
StageRouteSetting, StageRouteSettingArgs
- Route
Key string - 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 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. - Throttling
Burst intLimit - Throttling burst limit for the route.
- Throttling
Rate doubleLimit - Throttling rate limit for the route.
- Route
Key string - 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 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. - Throttling
Burst intLimit - Throttling burst limit for the route.
- Throttling
Rate float64Limit - Throttling rate limit for the route.
- route
Key String - Route key.
- data
Trace 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. - detailed
Metrics BooleanEnabled - Whether detailed metrics are enabled for the route. Defaults to
false
. - logging
Level 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. - throttling
Burst IntegerLimit - Throttling burst limit for the route.
- throttling
Rate DoubleLimit - Throttling rate limit for the route.
- route
Key string - Route key.
- data
Trace 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. - detailed
Metrics booleanEnabled - Whether detailed metrics are enabled for the route. Defaults to
false
. - logging
Level 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. - throttling
Burst numberLimit - Throttling burst limit for the route.
- throttling
Rate 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.
- route
Key String - Route key.
- data
Trace 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. - detailed
Metrics BooleanEnabled - Whether detailed metrics are enabled for the route. Defaults to
false
. - logging
Level 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. - throttling
Burst NumberLimit - Throttling burst limit for the route.
- throttling
Rate 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
aws
Terraform Provider.