We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi
aws-native.apigateway.getStage
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi
The AWS::ApiGateway::Stage resource creates a stage for a deployment.
Using getStage
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getStage(args: GetStageArgs, opts?: InvokeOptions): Promise<GetStageResult>
function getStageOutput(args: GetStageOutputArgs, opts?: InvokeOptions): Output<GetStageResult>def get_stage(rest_api_id: Optional[str] = None,
              stage_name: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetStageResult
def get_stage_output(rest_api_id: Optional[pulumi.Input[str]] = None,
              stage_name: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetStageResult]func LookupStage(ctx *Context, args *LookupStageArgs, opts ...InvokeOption) (*LookupStageResult, error)
func LookupStageOutput(ctx *Context, args *LookupStageOutputArgs, opts ...InvokeOption) LookupStageResultOutput> Note: This function is named LookupStage in the Go SDK.
public static class GetStage 
{
    public static Task<GetStageResult> InvokeAsync(GetStageArgs args, InvokeOptions? opts = null)
    public static Output<GetStageResult> Invoke(GetStageInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetStageResult> getStage(GetStageArgs args, InvokeOptions options)
public static Output<GetStageResult> getStage(GetStageArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:apigateway:getStage
  arguments:
    # arguments dictionaryThe following arguments are supported:
- RestApi stringId 
- The string identifier of the associated RestApi.
- StageName 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.
- RestApi stringId 
- The string identifier of the associated RestApi.
- StageName 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.
- restApi StringId 
- The string identifier of the associated RestApi.
- stageName 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.
- restApi stringId 
- The string identifier of the associated RestApi.
- stageName 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.
- rest_api_ strid 
- The string identifier of the associated RestApi.
- 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.
- restApi StringId 
- The string identifier of the associated RestApi.
- stageName 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.
getStage Result
The following output properties are available:
- AccessLog Pulumi.Setting Aws Native. Api Gateway. Outputs. Stage Access Log Setting 
- Access log settings, including the access log format and access log destination ARN.
- CacheCluster boolEnabled 
- Specifies whether a cache cluster is enabled for the stage. To activate a method-level cache, set CachingEnabledtotruefor a method.
- CacheCluster stringSize 
- The stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API caching to enhance responsiveness .
- CanarySetting Pulumi.Aws Native. Api Gateway. Outputs. Stage Canary Setting 
- Settings for the canary deployment in this stage.
- ClientCertificate stringId 
- The identifier of a client certificate for an API stage.
- DeploymentId string
- The identifier of the Deployment that the stage points to.
- Description string
- The stage's description.
- DocumentationVersion string
- The version of the associated API documentation.
- MethodSettings List<Pulumi.Aws Native. Api Gateway. Outputs. Stage Method Setting> 
- A map that defines the method settings for a Stage resource. Keys (designated as /{method_setting_keybelow) are method paths defined as{resource_path}/{http_method}for an individual method override, or/\*/\*for overriding all methods in the stage.
- 
List<Pulumi.Aws Native. Outputs. Tag> 
- The collection of tags. Each tag element is associated with a given resource.
- TracingEnabled 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-._~:/?#&=,]+.
- AccessLog StageSetting Access Log Setting 
- Access log settings, including the access log format and access log destination ARN.
- CacheCluster boolEnabled 
- Specifies whether a cache cluster is enabled for the stage. To activate a method-level cache, set CachingEnabledtotruefor a method.
- CacheCluster stringSize 
- The stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API caching to enhance responsiveness .
- CanarySetting StageCanary Setting 
- Settings for the canary deployment in this stage.
- ClientCertificate stringId 
- The identifier of a client certificate for an API stage.
- DeploymentId string
- The identifier of the Deployment that the stage points to.
- Description string
- The stage's description.
- DocumentationVersion string
- The version of the associated API documentation.
- MethodSettings []StageMethod Setting 
- A map that defines the method settings for a Stage resource. Keys (designated as /{method_setting_keybelow) are method paths defined as{resource_path}/{http_method}for an individual method override, or/\*/\*for overriding all methods in the stage.
- Tag
- The collection of tags. Each tag element is associated with a given resource.
- TracingEnabled 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-._~:/?#&=,]+.
- accessLog StageSetting Access Log Setting 
- Access log settings, including the access log format and access log destination ARN.
- cacheCluster BooleanEnabled 
- Specifies whether a cache cluster is enabled for the stage. To activate a method-level cache, set CachingEnabledtotruefor a method.
- cacheCluster StringSize 
- The stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API caching to enhance responsiveness .
- canarySetting StageCanary Setting 
- Settings for the canary deployment in this stage.
- clientCertificate StringId 
- The identifier of a client certificate for an API stage.
- deploymentId String
- The identifier of the Deployment that the stage points to.
- description String
- The stage's description.
- documentationVersion String
- The version of the associated API documentation.
- methodSettings List<StageMethod Setting> 
- A map that defines the method settings for a Stage resource. Keys (designated as /{method_setting_keybelow) are method paths defined as{resource_path}/{http_method}for an individual method override, or/\*/\*for overriding all methods in the stage.
- List<Tag>
- The collection of tags. Each tag element is associated with a given resource.
- tracingEnabled 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-._~:/?#&=,]+.
- accessLog StageSetting Access Log Setting 
- Access log settings, including the access log format and access log destination ARN.
- cacheCluster booleanEnabled 
- Specifies whether a cache cluster is enabled for the stage. To activate a method-level cache, set CachingEnabledtotruefor a method.
- cacheCluster stringSize 
- The stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API caching to enhance responsiveness .
- canarySetting StageCanary Setting 
- Settings for the canary deployment in this stage.
- clientCertificate stringId 
- The identifier of a client certificate for an API stage.
- deploymentId string
- The identifier of the Deployment that the stage points to.
- description string
- The stage's description.
- documentationVersion string
- The version of the associated API documentation.
- methodSettings StageMethod Setting[] 
- A map that defines the method settings for a Stage resource. Keys (designated as /{method_setting_keybelow) are method paths defined as{resource_path}/{http_method}for an individual method override, or/\*/\*for overriding all methods in the stage.
- Tag[]
- The collection of tags. Each tag element is associated with a given resource.
- tracingEnabled 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-._~:/?#&=,]+.
- access_log_ Stagesetting 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 CachingEnabledtotruefor 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 
- 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] 
- A map that defines the method settings for a Stage resource. Keys (designated as /{method_setting_keybelow) are method paths defined as{resource_path}/{http_method}for an individual method override, or/\*/\*for overriding all methods in the stage.
- Sequence[root_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 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-._~:/?#&=,]+.
- accessLog Property MapSetting 
- Access log settings, including the access log format and access log destination ARN.
- cacheCluster BooleanEnabled 
- Specifies whether a cache cluster is enabled for the stage. To activate a method-level cache, set CachingEnabledtotruefor a method.
- cacheCluster StringSize 
- The stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API caching to enhance responsiveness .
- canarySetting Property Map
- Settings for the canary deployment in this stage.
- clientCertificate StringId 
- The identifier of a client certificate for an API stage.
- deploymentId String
- The identifier of the Deployment that the stage points to.
- description String
- The stage's description.
- documentationVersion String
- The version of the associated API documentation.
- methodSettings List<Property Map>
- A map that defines the method settings for a Stage resource. Keys (designated as /{method_setting_keybelow) are method paths defined as{resource_path}/{http_method}for an individual method override, or/\*/\*for overriding all methods in the stage.
- List<Property Map>
- The collection of tags. Each tag element is associated with a given resource.
- tracingEnabled 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-._~:/?#&=,]+.
Supporting Types
StageAccessLogSetting   
- DestinationArn 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.
- DestinationArn 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.
- destinationArn 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.
- destinationArn 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.
- destinationArn 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  
- DeploymentId string
- The ID of the canary deployment.
- PercentTraffic double
- The percent (0-100) of traffic diverted to a canary deployment.
- StageVariable 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.
- UseStage boolCache 
- A Boolean flag to indicate whether the canary deployment uses the stage cache or not.
- DeploymentId string
- The ID of the canary deployment.
- PercentTraffic float64
- The percent (0-100) of traffic diverted to a canary deployment.
- StageVariable 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.
- UseStage boolCache 
- A Boolean flag to indicate whether the canary deployment uses the stage cache or not.
- deploymentId String
- The ID of the canary deployment.
- percentTraffic Double
- The percent (0-100) of traffic diverted to a canary deployment.
- stageVariable 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.
- useStage BooleanCache 
- A Boolean flag to indicate whether the canary deployment uses the stage cache or not.
- deploymentId string
- The ID of the canary deployment.
- percentTraffic number
- The percent (0-100) of traffic diverted to a canary deployment.
- stageVariable {[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.
- useStage 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.
- deploymentId String
- The ID of the canary deployment.
- percentTraffic Number
- The percent (0-100) of traffic diverted to a canary deployment.
- stageVariable 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.
- useStage BooleanCache 
- A Boolean flag to indicate whether the canary deployment uses the stage cache or not.
StageMethodSetting  
- CacheData boolEncrypted 
- Specifies whether the cached responses are encrypted.
- CacheTtl intIn Seconds 
- Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
- CachingEnabled 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.
- DataTrace 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.
- HttpMethod string
- The HTTP method. To apply settings to multiple resources and methods, specify an asterisk (*) for theHttpMethodand/*for theResourcePath. This parameter is required when you specify aMethodSetting.
- LoggingLevel string
- Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. Valid values are OFF,ERROR, andINFO. ChooseERRORto write only error-level entries to CloudWatch Logs, or chooseINFOto include allERRORevents as well as extra informational events.
- MetricsEnabled bool
- Specifies whether Amazon CloudWatch metrics are enabled for this method.
- ResourcePath string
- The resource path for this method. Forward slashes (/) are encoded as~1and the initial slash must include a forward slash. For example, the path value/resource/subresourcemust 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 theHttpMethodand/*for theResourcePath. This parameter is required when you specify aMethodSetting.
- ThrottlingBurst intLimit 
- Specifies the throttling burst limit.
- ThrottlingRate doubleLimit 
- Specifies the throttling rate limit.
- CacheData boolEncrypted 
- Specifies whether the cached responses are encrypted.
- CacheTtl intIn Seconds 
- Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
- CachingEnabled 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.
- DataTrace 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.
- HttpMethod string
- The HTTP method. To apply settings to multiple resources and methods, specify an asterisk (*) for theHttpMethodand/*for theResourcePath. This parameter is required when you specify aMethodSetting.
- LoggingLevel string
- Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. Valid values are OFF,ERROR, andINFO. ChooseERRORto write only error-level entries to CloudWatch Logs, or chooseINFOto include allERRORevents as well as extra informational events.
- MetricsEnabled bool
- Specifies whether Amazon CloudWatch metrics are enabled for this method.
- ResourcePath string
- The resource path for this method. Forward slashes (/) are encoded as~1and the initial slash must include a forward slash. For example, the path value/resource/subresourcemust 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 theHttpMethodand/*for theResourcePath. This parameter is required when you specify aMethodSetting.
- ThrottlingBurst intLimit 
- Specifies the throttling burst limit.
- ThrottlingRate float64Limit 
- Specifies the throttling rate limit.
- cacheData BooleanEncrypted 
- Specifies whether the cached responses are encrypted.
- cacheTtl IntegerIn Seconds 
- Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
- cachingEnabled 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.
- dataTrace 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.
- httpMethod String
- The HTTP method. To apply settings to multiple resources and methods, specify an asterisk (*) for theHttpMethodand/*for theResourcePath. This parameter is required when you specify aMethodSetting.
- loggingLevel String
- Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. Valid values are OFF,ERROR, andINFO. ChooseERRORto write only error-level entries to CloudWatch Logs, or chooseINFOto include allERRORevents as well as extra informational events.
- metricsEnabled Boolean
- Specifies whether Amazon CloudWatch metrics are enabled for this method.
- resourcePath String
- The resource path for this method. Forward slashes (/) are encoded as~1and the initial slash must include a forward slash. For example, the path value/resource/subresourcemust 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 theHttpMethodand/*for theResourcePath. This parameter is required when you specify aMethodSetting.
- throttlingBurst IntegerLimit 
- Specifies the throttling burst limit.
- throttlingRate DoubleLimit 
- Specifies the throttling rate limit.
- cacheData booleanEncrypted 
- Specifies whether the cached responses are encrypted.
- cacheTtl numberIn Seconds 
- Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
- cachingEnabled 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.
- dataTrace 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.
- httpMethod string
- The HTTP method. To apply settings to multiple resources and methods, specify an asterisk (*) for theHttpMethodand/*for theResourcePath. This parameter is required when you specify aMethodSetting.
- loggingLevel string
- Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. Valid values are OFF,ERROR, andINFO. ChooseERRORto write only error-level entries to CloudWatch Logs, or chooseINFOto include allERRORevents as well as extra informational events.
- metricsEnabled boolean
- Specifies whether Amazon CloudWatch metrics are enabled for this method.
- resourcePath string
- The resource path for this method. Forward slashes (/) are encoded as~1and the initial slash must include a forward slash. For example, the path value/resource/subresourcemust 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 theHttpMethodand/*for theResourcePath. This parameter is required when you specify aMethodSetting.
- throttlingBurst numberLimit 
- Specifies the throttling burst limit.
- throttlingRate 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 theHttpMethodand/*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. ChooseERRORto write only error-level entries to CloudWatch Logs, or chooseINFOto include allERRORevents 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~1and the initial slash must include a forward slash. For example, the path value/resource/subresourcemust 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 theHttpMethodand/*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.
- cacheData BooleanEncrypted 
- Specifies whether the cached responses are encrypted.
- cacheTtl NumberIn Seconds 
- Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
- cachingEnabled 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.
- dataTrace 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.
- httpMethod String
- The HTTP method. To apply settings to multiple resources and methods, specify an asterisk (*) for theHttpMethodand/*for theResourcePath. This parameter is required when you specify aMethodSetting.
- loggingLevel String
- Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. Valid values are OFF,ERROR, andINFO. ChooseERRORto write only error-level entries to CloudWatch Logs, or chooseINFOto include allERRORevents as well as extra informational events.
- metricsEnabled Boolean
- Specifies whether Amazon CloudWatch metrics are enabled for this method.
- resourcePath String
- The resource path for this method. Forward slashes (/) are encoded as~1and the initial slash must include a forward slash. For example, the path value/resource/subresourcemust 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 theHttpMethodand/*for theResourcePath. This parameter is required when you specify aMethodSetting.
- throttlingBurst NumberLimit 
- Specifies the throttling burst limit.
- throttlingRate NumberLimit 
- Specifies the throttling rate limit.
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi