We recommend new projects start with resources from the AWS provider.
aws-native.apigateway.Stage
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
The AWS::ApiGateway::Stage
resource creates a stage for a deployment.
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,
rest_api_id: Optional[str] = None,
canary_setting: Optional[StageCanarySettingArgs] = None,
cache_cluster_size: Optional[str] = None,
access_log_setting: Optional[StageAccessLogSettingArgs] = None,
client_certificate_id: Optional[str] = None,
deployment_id: Optional[str] = None,
description: Optional[str] = None,
documentation_version: Optional[str] = None,
method_settings: Optional[Sequence[StageMethodSettingArgs]] = None,
cache_cluster_enabled: Optional[bool] = None,
stage_name: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None,
tracing_enabled: Optional[bool] = None,
variables: 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-native:apigateway: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.
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:
- Rest
Api stringId - The string identifier of the associated RestApi.
- Access
Log Pulumi.Setting Aws Native. Api Gateway. Inputs. Stage Access Log Setting - Access log settings, including the access log format and access log destination ARN.
- Cache
Cluster boolEnabled - Specifies whether a cache cluster is enabled for the stage. To activate a method-level cache, set
CachingEnabled
totrue
for a method. - Cache
Cluster stringSize - The stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API caching to enhance responsiveness .
- Canary
Setting Pulumi.Aws Native. Api Gateway. Inputs. Stage Canary Setting - Settings for the canary deployment in this stage.
- Client
Certificate stringId - The identifier of a client certificate for an API stage.
- Deployment
Id string - The identifier of the Deployment that the stage points to.
- Description string
- The stage's description.
- Documentation
Version string - The version of the associated API documentation.
- Method
Settings List<Pulumi.Aws Native. Api Gateway. Inputs. Stage Method Setting> - A map that defines the method settings for a Stage resource. Keys (designated as
/{method_setting_key
below) are method paths defined as{resource_path}/{http_method}
for an individual method override, or/\*/\*
for overriding all methods in the stage. - Stage
Name string - The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to API Gateway. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.
- List<Pulumi.
Aws Native. Inputs. Tag> - The collection of tags. Each tag element is associated with a given resource.
- Tracing
Enabled bool - Specifies whether active tracing with X-ray is enabled for the Stage.
- Variables Dictionary<string, string>
- A map (string-to-string map) that defines the stage variables, where the variable name is the key and the variable value is the value. Variable names are limited to alphanumeric characters. Values must match the following regular expression:
[A-Za-z0-9-._~:/?#&=,]+
.
- Rest
Api stringId - The string identifier of the associated RestApi.
- Access
Log StageSetting Access Log Setting Args - Access log settings, including the access log format and access log destination ARN.
- Cache
Cluster boolEnabled - Specifies whether a cache cluster is enabled for the stage. To activate a method-level cache, set
CachingEnabled
totrue
for a method. - Cache
Cluster stringSize - The stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API caching to enhance responsiveness .
- Canary
Setting StageCanary Setting Args - Settings for the canary deployment in this stage.
- Client
Certificate stringId - The identifier of a client certificate for an API stage.
- Deployment
Id string - The identifier of the Deployment that the stage points to.
- Description string
- The stage's description.
- Documentation
Version string - The version of the associated API documentation.
- Method
Settings []StageMethod Setting Args - A map that defines the method settings for a Stage resource. Keys (designated as
/{method_setting_key
below) are method paths defined as{resource_path}/{http_method}
for an individual method override, or/\*/\*
for overriding all methods in the stage. - Stage
Name string - The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to API Gateway. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.
- Tag
Args - The collection of tags. Each tag element is associated with a given resource.
- Tracing
Enabled bool - Specifies whether active tracing with X-ray is enabled for the Stage.
- Variables map[string]string
- A map (string-to-string map) that defines the stage variables, where the variable name is the key and the variable value is the value. Variable names are limited to alphanumeric characters. Values must match the following regular expression:
[A-Za-z0-9-._~:/?#&=,]+
.
- rest
Api StringId - The string identifier of the associated RestApi.
- access
Log StageSetting Access Log Setting - Access log settings, including the access log format and access log destination ARN.
- cache
Cluster BooleanEnabled - Specifies whether a cache cluster is enabled for the stage. To activate a method-level cache, set
CachingEnabled
totrue
for a method. - cache
Cluster StringSize - The stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API caching to enhance responsiveness .
- canary
Setting StageCanary Setting - Settings for the canary deployment in this stage.
- client
Certificate StringId - The identifier of a client certificate for an API stage.
- deployment
Id String - The identifier of the Deployment that the stage points to.
- description String
- The stage's description.
- documentation
Version String - The version of the associated API documentation.
- method
Settings List<StageMethod Setting> - A map that defines the method settings for a Stage resource. Keys (designated as
/{method_setting_key
below) are method paths defined as{resource_path}/{http_method}
for an individual method override, or/\*/\*
for overriding all methods in the stage. - stage
Name String - The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to API Gateway. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.
- List<Tag>
- The collection of tags. Each tag element is associated with a given resource.
- tracing
Enabled Boolean - Specifies whether active tracing with X-ray is enabled for the Stage.
- variables Map<String,String>
- A map (string-to-string map) that defines the stage variables, where the variable name is the key and the variable value is the value. Variable names are limited to alphanumeric characters. Values must match the following regular expression:
[A-Za-z0-9-._~:/?#&=,]+
.
- rest
Api stringId - The string identifier of the associated RestApi.
- access
Log StageSetting Access Log Setting - Access log settings, including the access log format and access log destination ARN.
- cache
Cluster booleanEnabled - Specifies whether a cache cluster is enabled for the stage. To activate a method-level cache, set
CachingEnabled
totrue
for a method. - cache
Cluster stringSize - The stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API caching to enhance responsiveness .
- canary
Setting StageCanary Setting - Settings for the canary deployment in this stage.
- client
Certificate stringId - The identifier of a client certificate for an API stage.
- deployment
Id string - The identifier of the Deployment that the stage points to.
- description string
- The stage's description.
- documentation
Version string - The version of the associated API documentation.
- method
Settings StageMethod Setting[] - A map that defines the method settings for a Stage resource. Keys (designated as
/{method_setting_key
below) are method paths defined as{resource_path}/{http_method}
for an individual method override, or/\*/\*
for overriding all methods in the stage. - stage
Name string - The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to API Gateway. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.
- Tag[]
- The collection of tags. Each tag element is associated with a given resource.
- tracing
Enabled boolean - Specifies whether active tracing with X-ray is enabled for the Stage.
- variables {[key: string]: string}
- A map (string-to-string map) that defines the stage variables, where the variable name is the key and the variable value is the value. Variable names are limited to alphanumeric characters. Values must match the following regular expression:
[A-Za-z0-9-._~:/?#&=,]+
.
- rest_
api_ strid - The string identifier of the associated RestApi.
- access_
log_ Stagesetting Access Log Setting Args - Access log settings, including the access log format and access log destination ARN.
- cache_
cluster_ boolenabled - Specifies whether a cache cluster is enabled for the stage. To activate a method-level cache, set
CachingEnabled
totrue
for a method. - cache_
cluster_ strsize - The stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API caching to enhance responsiveness .
- canary_
setting StageCanary Setting Args - Settings for the canary deployment in this stage.
- client_
certificate_ strid - The identifier of a client certificate for an API stage.
- deployment_
id str - The identifier of the Deployment that the stage points to.
- description str
- The stage's description.
- documentation_
version str - The version of the associated API documentation.
- method_
settings Sequence[StageMethod Setting Args] - A map that defines the method settings for a Stage resource. Keys (designated as
/{method_setting_key
below) are method paths defined as{resource_path}/{http_method}
for an individual method override, or/\*/\*
for overriding all methods in the stage. - stage_
name str - The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to API Gateway. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.
- Sequence[Tag
Args] - The collection of tags. Each tag element is associated with a given resource.
- tracing_
enabled bool - Specifies whether active tracing with X-ray is enabled for the Stage.
- variables Mapping[str, str]
- A map (string-to-string map) that defines the stage variables, where the variable name is the key and the variable value is the value. Variable names are limited to alphanumeric characters. Values must match the following regular expression:
[A-Za-z0-9-._~:/?#&=,]+
.
- rest
Api StringId - The string identifier of the associated RestApi.
- access
Log Property MapSetting - Access log settings, including the access log format and access log destination ARN.
- cache
Cluster BooleanEnabled - Specifies whether a cache cluster is enabled for the stage. To activate a method-level cache, set
CachingEnabled
totrue
for a method. - cache
Cluster StringSize - The stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API caching to enhance responsiveness .
- canary
Setting Property Map - Settings for the canary deployment in this stage.
- client
Certificate StringId - The identifier of a client certificate for an API stage.
- deployment
Id String - The identifier of the Deployment that the stage points to.
- description String
- The stage's description.
- documentation
Version String - The version of the associated API documentation.
- method
Settings List<Property Map> - A map that defines the method settings for a Stage resource. Keys (designated as
/{method_setting_key
below) are method paths defined as{resource_path}/{http_method}
for an individual method override, or/\*/\*
for overriding all methods in the stage. - stage
Name String - The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to API Gateway. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.
- List<Property Map>
- The collection of tags. Each tag element is associated with a given resource.
- tracing
Enabled Boolean - Specifies whether active tracing with X-ray is enabled for the Stage.
- variables Map<String>
- A map (string-to-string map) that defines the stage variables, where the variable name is the key and the variable value is the value. Variable names are limited to alphanumeric characters. Values must match the following regular expression:
[A-Za-z0-9-._~:/?#&=,]+
.
Outputs
All input properties are implicitly available as output properties. Additionally, the Stage resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
StageAccessLogSetting, StageAccessLogSettingArgs
- Destination
Arn string - The Amazon Resource Name (ARN) of the CloudWatch Logs log group or Kinesis Data Firehose delivery stream to receive access logs. If you specify a Kinesis Data Firehose delivery stream, the stream name must begin with
amazon-apigateway-
. This parameter is required to enable access logging. - Format string
- A single line format of the access logs of data, as specified by selected $context variables. The format must include at least
$context.requestId
. This parameter is required to enable access logging.
- Destination
Arn string - The Amazon Resource Name (ARN) of the CloudWatch Logs log group or Kinesis Data Firehose delivery stream to receive access logs. If you specify a Kinesis Data Firehose delivery stream, the stream name must begin with
amazon-apigateway-
. This parameter is required to enable access logging. - Format string
- A single line format of the access logs of data, as specified by selected $context variables. The format must include at least
$context.requestId
. This parameter is required to enable access logging.
- destination
Arn String - The Amazon Resource Name (ARN) of the CloudWatch Logs log group or Kinesis Data Firehose delivery stream to receive access logs. If you specify a Kinesis Data Firehose delivery stream, the stream name must begin with
amazon-apigateway-
. This parameter is required to enable access logging. - format String
- A single line format of the access logs of data, as specified by selected $context variables. The format must include at least
$context.requestId
. This parameter is required to enable access logging.
- destination
Arn string - The Amazon Resource Name (ARN) of the CloudWatch Logs log group or Kinesis Data Firehose delivery stream to receive access logs. If you specify a Kinesis Data Firehose delivery stream, the stream name must begin with
amazon-apigateway-
. This parameter is required to enable access logging. - format string
- A single line format of the access logs of data, as specified by selected $context variables. The format must include at least
$context.requestId
. This parameter is required to enable access logging.
- destination_
arn str - The Amazon Resource Name (ARN) of the CloudWatch Logs log group or Kinesis Data Firehose delivery stream to receive access logs. If you specify a Kinesis Data Firehose delivery stream, the stream name must begin with
amazon-apigateway-
. This parameter is required to enable access logging. - format str
- A single line format of the access logs of data, as specified by selected $context variables. The format must include at least
$context.requestId
. This parameter is required to enable access logging.
- destination
Arn String - The Amazon Resource Name (ARN) of the CloudWatch Logs log group or Kinesis Data Firehose delivery stream to receive access logs. If you specify a Kinesis Data Firehose delivery stream, the stream name must begin with
amazon-apigateway-
. This parameter is required to enable access logging. - format String
- A single line format of the access logs of data, as specified by selected $context variables. The format must include at least
$context.requestId
. This parameter is required to enable access logging.
StageCanarySetting, StageCanarySettingArgs
- Deployment
Id string - The ID of the canary deployment.
- Percent
Traffic double - The percent (0-100) of traffic diverted to a canary deployment.
- Stage
Variable Dictionary<string, string>Overrides - Stage variables overridden for a canary release deployment, including new stage variables introduced in the canary. These stage variables are represented as a string-to-string map between stage variable names and their values.
- Use
Stage boolCache - A Boolean flag to indicate whether the canary deployment uses the stage cache or not.
- Deployment
Id string - The ID of the canary deployment.
- Percent
Traffic float64 - The percent (0-100) of traffic diverted to a canary deployment.
- Stage
Variable map[string]stringOverrides - Stage variables overridden for a canary release deployment, including new stage variables introduced in the canary. These stage variables are represented as a string-to-string map between stage variable names and their values.
- Use
Stage boolCache - A Boolean flag to indicate whether the canary deployment uses the stage cache or not.
- deployment
Id String - The ID of the canary deployment.
- percent
Traffic Double - The percent (0-100) of traffic diverted to a canary deployment.
- stage
Variable Map<String,String>Overrides - Stage variables overridden for a canary release deployment, including new stage variables introduced in the canary. These stage variables are represented as a string-to-string map between stage variable names and their values.
- use
Stage BooleanCache - A Boolean flag to indicate whether the canary deployment uses the stage cache or not.
- deployment
Id string - The ID of the canary deployment.
- percent
Traffic number - The percent (0-100) of traffic diverted to a canary deployment.
- stage
Variable {[key: string]: string}Overrides - Stage variables overridden for a canary release deployment, including new stage variables introduced in the canary. These stage variables are represented as a string-to-string map between stage variable names and their values.
- use
Stage booleanCache - A Boolean flag to indicate whether the canary deployment uses the stage cache or not.
- deployment_
id str - The ID of the canary deployment.
- percent_
traffic float - The percent (0-100) of traffic diverted to a canary deployment.
- stage_
variable_ Mapping[str, str]overrides - Stage variables overridden for a canary release deployment, including new stage variables introduced in the canary. These stage variables are represented as a string-to-string map between stage variable names and their values.
- use_
stage_ boolcache - A Boolean flag to indicate whether the canary deployment uses the stage cache or not.
- deployment
Id String - The ID of the canary deployment.
- percent
Traffic Number - The percent (0-100) of traffic diverted to a canary deployment.
- stage
Variable Map<String>Overrides - Stage variables overridden for a canary release deployment, including new stage variables introduced in the canary. These stage variables are represented as a string-to-string map between stage variable names and their values.
- use
Stage BooleanCache - A Boolean flag to indicate whether the canary deployment uses the stage cache or not.
StageMethodSetting, StageMethodSettingArgs
- Cache
Data boolEncrypted - Specifies whether the cached responses are encrypted.
- Cache
Ttl intIn Seconds - Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
- Caching
Enabled bool - Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached.
- Data
Trace boolEnabled - Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs. This can be useful to troubleshoot APIs, but can result in logging sensitive data. We recommend that you don't enable this option for production APIs.
- Http
Method string - The HTTP method. To apply settings to multiple resources and methods, specify an asterisk (
*
) for theHttpMethod
and/*
for theResourcePath
. This parameter is required when you specify aMethodSetting
. - Logging
Level string - Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. Valid values are
OFF
,ERROR
, andINFO
. ChooseERROR
to write only error-level entries to CloudWatch Logs, or chooseINFO
to include allERROR
events as well as extra informational events. - Metrics
Enabled bool - Specifies whether Amazon CloudWatch metrics are enabled for this method.
- Resource
Path string - The resource path for this method. Forward slashes (
/
) are encoded as~1
and the initial slash must include a forward slash. For example, the path value/resource/subresource
must be encoded as/~1resource~1subresource
. To specify the root path, use only a slash (/
). To apply settings to multiple resources and methods, specify an asterisk (*
) for theHttpMethod
and/*
for theResourcePath
. This parameter is required when you specify aMethodSetting
. - Throttling
Burst intLimit - Specifies the throttling burst limit.
- Throttling
Rate doubleLimit - Specifies the throttling rate limit.
- Cache
Data boolEncrypted - Specifies whether the cached responses are encrypted.
- Cache
Ttl intIn Seconds - Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
- Caching
Enabled bool - Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached.
- Data
Trace boolEnabled - Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs. This can be useful to troubleshoot APIs, but can result in logging sensitive data. We recommend that you don't enable this option for production APIs.
- Http
Method string - The HTTP method. To apply settings to multiple resources and methods, specify an asterisk (
*
) for theHttpMethod
and/*
for theResourcePath
. This parameter is required when you specify aMethodSetting
. - Logging
Level string - Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. Valid values are
OFF
,ERROR
, andINFO
. ChooseERROR
to write only error-level entries to CloudWatch Logs, or chooseINFO
to include allERROR
events as well as extra informational events. - Metrics
Enabled bool - Specifies whether Amazon CloudWatch metrics are enabled for this method.
- Resource
Path string - The resource path for this method. Forward slashes (
/
) are encoded as~1
and the initial slash must include a forward slash. For example, the path value/resource/subresource
must be encoded as/~1resource~1subresource
. To specify the root path, use only a slash (/
). To apply settings to multiple resources and methods, specify an asterisk (*
) for theHttpMethod
and/*
for theResourcePath
. This parameter is required when you specify aMethodSetting
. - Throttling
Burst intLimit - Specifies the throttling burst limit.
- Throttling
Rate float64Limit - Specifies the throttling rate limit.
- cache
Data BooleanEncrypted - Specifies whether the cached responses are encrypted.
- cache
Ttl IntegerIn Seconds - Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
- caching
Enabled Boolean - Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached.
- data
Trace BooleanEnabled - Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs. This can be useful to troubleshoot APIs, but can result in logging sensitive data. We recommend that you don't enable this option for production APIs.
- http
Method String - The HTTP method. To apply settings to multiple resources and methods, specify an asterisk (
*
) for theHttpMethod
and/*
for theResourcePath
. This parameter is required when you specify aMethodSetting
. - logging
Level String - Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. Valid values are
OFF
,ERROR
, andINFO
. ChooseERROR
to write only error-level entries to CloudWatch Logs, or chooseINFO
to include allERROR
events as well as extra informational events. - metrics
Enabled Boolean - Specifies whether Amazon CloudWatch metrics are enabled for this method.
- resource
Path String - The resource path for this method. Forward slashes (
/
) are encoded as~1
and the initial slash must include a forward slash. For example, the path value/resource/subresource
must be encoded as/~1resource~1subresource
. To specify the root path, use only a slash (/
). To apply settings to multiple resources and methods, specify an asterisk (*
) for theHttpMethod
and/*
for theResourcePath
. This parameter is required when you specify aMethodSetting
. - throttling
Burst IntegerLimit - Specifies the throttling burst limit.
- throttling
Rate DoubleLimit - Specifies the throttling rate limit.
- cache
Data booleanEncrypted - Specifies whether the cached responses are encrypted.
- cache
Ttl numberIn Seconds - Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
- caching
Enabled boolean - Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached.
- data
Trace booleanEnabled - Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs. This can be useful to troubleshoot APIs, but can result in logging sensitive data. We recommend that you don't enable this option for production APIs.
- http
Method string - The HTTP method. To apply settings to multiple resources and methods, specify an asterisk (
*
) for theHttpMethod
and/*
for theResourcePath
. This parameter is required when you specify aMethodSetting
. - logging
Level string - Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. Valid values are
OFF
,ERROR
, andINFO
. ChooseERROR
to write only error-level entries to CloudWatch Logs, or chooseINFO
to include allERROR
events as well as extra informational events. - metrics
Enabled boolean - Specifies whether Amazon CloudWatch metrics are enabled for this method.
- resource
Path string - The resource path for this method. Forward slashes (
/
) are encoded as~1
and the initial slash must include a forward slash. For example, the path value/resource/subresource
must be encoded as/~1resource~1subresource
. To specify the root path, use only a slash (/
). To apply settings to multiple resources and methods, specify an asterisk (*
) for theHttpMethod
and/*
for theResourcePath
. This parameter is required when you specify aMethodSetting
. - throttling
Burst numberLimit - Specifies the throttling burst limit.
- throttling
Rate numberLimit - Specifies the throttling rate limit.
- cache_
data_ boolencrypted - Specifies whether the cached responses are encrypted.
- cache_
ttl_ intin_ seconds - Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
- caching_
enabled bool - Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached.
- data_
trace_ boolenabled - Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs. This can be useful to troubleshoot APIs, but can result in logging sensitive data. We recommend that you don't enable this option for production APIs.
- http_
method str - The HTTP method. To apply settings to multiple resources and methods, specify an asterisk (
*
) for theHttpMethod
and/*
for theResourcePath
. This parameter is required when you specify aMethodSetting
. - logging_
level str - Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. Valid values are
OFF
,ERROR
, andINFO
. ChooseERROR
to write only error-level entries to CloudWatch Logs, or chooseINFO
to include allERROR
events as well as extra informational events. - metrics_
enabled bool - Specifies whether Amazon CloudWatch metrics are enabled for this method.
- resource_
path str - The resource path for this method. Forward slashes (
/
) are encoded as~1
and the initial slash must include a forward slash. For example, the path value/resource/subresource
must be encoded as/~1resource~1subresource
. To specify the root path, use only a slash (/
). To apply settings to multiple resources and methods, specify an asterisk (*
) for theHttpMethod
and/*
for theResourcePath
. This parameter is required when you specify aMethodSetting
. - throttling_
burst_ intlimit - Specifies the throttling burst limit.
- throttling_
rate_ floatlimit - Specifies the throttling rate limit.
- cache
Data BooleanEncrypted - Specifies whether the cached responses are encrypted.
- cache
Ttl NumberIn Seconds - Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
- caching
Enabled Boolean - Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached.
- data
Trace BooleanEnabled - Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs. This can be useful to troubleshoot APIs, but can result in logging sensitive data. We recommend that you don't enable this option for production APIs.
- http
Method String - The HTTP method. To apply settings to multiple resources and methods, specify an asterisk (
*
) for theHttpMethod
and/*
for theResourcePath
. This parameter is required when you specify aMethodSetting
. - logging
Level String - Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. Valid values are
OFF
,ERROR
, andINFO
. ChooseERROR
to write only error-level entries to CloudWatch Logs, or chooseINFO
to include allERROR
events as well as extra informational events. - metrics
Enabled Boolean - Specifies whether Amazon CloudWatch metrics are enabled for this method.
- resource
Path String - The resource path for this method. Forward slashes (
/
) are encoded as~1
and the initial slash must include a forward slash. For example, the path value/resource/subresource
must be encoded as/~1resource~1subresource
. To specify the root path, use only a slash (/
). To apply settings to multiple resources and methods, specify an asterisk (*
) for theHttpMethod
and/*
for theResourcePath
. This parameter is required when you specify aMethodSetting
. - throttling
Burst NumberLimit - Specifies the throttling burst limit.
- throttling
Rate NumberLimit - Specifies the throttling rate limit.
Tag, TagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.