StageOptions

class aws_cdk.aws_apigateway.StageOptions(*, cache_data_encrypted=None, cache_ttl=None, caching_enabled=None, data_trace_enabled=None, logging_level=None, metrics_enabled=None, throttling_burst_limit=None, throttling_rate_limit=None, cache_cluster_enabled=None, cache_cluster_size=None, client_certificate_id=None, description=None, documentation_version=None, method_options=None, stage_name=None, tracing_enabled=None, variables=None)

Bases: aws_cdk.aws_apigateway.MethodDeploymentOptions

__init__(*, cache_data_encrypted=None, cache_ttl=None, caching_enabled=None, data_trace_enabled=None, logging_level=None, metrics_enabled=None, throttling_burst_limit=None, throttling_rate_limit=None, cache_cluster_enabled=None, cache_cluster_size=None, client_certificate_id=None, description=None, documentation_version=None, method_options=None, stage_name=None, tracing_enabled=None, variables=None)
Parameters
  • cache_data_encrypted (Optional[bool]) – Indicates whether the cached responses are encrypted. Default: false

  • cache_ttl (Optional[Duration]) – Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached. Default: Duration.minutes(5)

  • caching_enabled (Optional[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. Default: - Caching is Disabled.

  • data_trace_enabled (Optional[bool]) – Specifies whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs. Default: false

  • logging_level (Optional[MethodLoggingLevel]) – Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs. Default: - Off

  • metrics_enabled (Optional[bool]) – Specifies whether Amazon CloudWatch metrics are enabled for this method. Default: false

  • throttling_burst_limit (Union[int, float, None]) – Specifies the throttling burst limit. The total rate of all requests in your AWS account is limited to 5,000 requests. Default: - No additional restriction.

  • throttling_rate_limit (Union[int, float, None]) – Specifies the throttling rate limit. The total rate of all requests in your AWS account is limited to 10,000 requests per second (rps). Default: - No additional restriction.

  • cache_cluster_enabled (Optional[bool]) – Indicates whether cache clustering is enabled for the stage. Default: - Disabled for the stage.

  • cache_cluster_size (Optional[str]) – The stage’s cache cluster size. Default: 0.5

  • client_certificate_id (Optional[str]) – The identifier of the client certificate that API Gateway uses to call your integration endpoints in the stage. Default: - None.

  • description (Optional[str]) – A description of the purpose of the stage. Default: - No description.

  • documentation_version (Optional[str]) – The version identifier of the API documentation snapshot. Default: - No documentation version.

  • method_options (Optional[Mapping[str, MethodDeploymentOptions]]) – Method deployment options for specific resources/methods. These will override common options defined in StageOptions#methodOptions. Default: - Common options will be used.

  • stage_name (Optional[str]) – The name of the stage, which API Gateway uses as the first path segment in the invoked Uniform Resource Identifier (URI). Default: - “prod”

  • tracing_enabled (Optional[bool]) – Specifies whether Amazon X-Ray tracing is enabled for this method. Default: false

  • variables (Optional[Mapping[str, str]]) – A map that defines the stage variables. Variable names must consist of alphanumeric characters, and the values must match the following regular expression: [A-Za-z0-9-._~:/?#&=,]+. Default: - No stage variables.

Attributes

cache_cluster_enabled

Indicates whether cache clustering is enabled for the stage.

default :default: - Disabled for the stage.

Return type

Optional[bool]

cache_cluster_size

The stage’s cache cluster size.

default :default: 0.5

Return type

Optional[str]

cache_data_encrypted

Indicates whether the cached responses are encrypted.

default :default: false

Return type

Optional[bool]

cache_ttl

Specifies the time to live (TTL), in seconds, for cached responses.

The higher the TTL, the longer the response will be cached.

default :default: Duration.minutes(5)

see :see: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-caching.html

Return type

Optional[Duration]

caching_enabled

Specifies whether responses should be cached and returned for requests.

A cache cluster must be enabled on the stage for responses to be cached.

default :default: - Caching is Disabled.

Return type

Optional[bool]

client_certificate_id

The identifier of the client certificate that API Gateway uses to call your integration endpoints in the stage.

default :default: - None.

Return type

Optional[str]

data_trace_enabled

Specifies whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs.

default :default: false

Return type

Optional[bool]

description

A description of the purpose of the stage.

default :default: - No description.

Return type

Optional[str]

documentation_version

The version identifier of the API documentation snapshot.

default :default: - No documentation version.

Return type

Optional[str]

logging_level

Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs.

default :default: - Off

Return type

Optional[MethodLoggingLevel]

method_options

Method deployment options for specific resources/methods.

These will override common options defined in StageOptions#methodOptions.

default :default: - Common options will be used.

Return type

Optional[Mapping[str, MethodDeploymentOptions]]

metrics_enabled

Specifies whether Amazon CloudWatch metrics are enabled for this method.

default :default: false

Return type

Optional[bool]

stage_name

The name of the stage, which API Gateway uses as the first path segment in the invoked Uniform Resource Identifier (URI).

default :default: - “prod”

Return type

Optional[str]

throttling_burst_limit

Specifies the throttling burst limit. The total rate of all requests in your AWS account is limited to 5,000 requests.

default :default: - No additional restriction.

see :see: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-request-throttling.html

Return type

Union[int, float, None]

throttling_rate_limit

Specifies the throttling rate limit. The total rate of all requests in your AWS account is limited to 10,000 requests per second (rps).

default :default: - No additional restriction.

see :see: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-request-throttling.html

Return type

Union[int, float, None]

tracing_enabled

Specifies whether Amazon X-Ray tracing is enabled for this method.

default :default: false

Return type

Optional[bool]

variables

A map that defines the stage variables.

Variable names must consist of alphanumeric characters, and the values must match the following regular expression: [A-Za-z0-9-._~:/?#&=,]+.

default :default: - No stage variables.

Return type

Optional[Mapping[str, str]]