aws-cdk-lib.aws_apigateway.CfnDeployment.StageDescriptionProperty

interface StageDescriptionProperty

LanguageType name
.NETAmazon.CDK.AWS.APIGateway.CfnDeployment.StageDescriptionProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsapigateway#CfnDeployment_StageDescriptionProperty
Javasoftware.amazon.awscdk.services.apigateway.CfnDeployment.StageDescriptionProperty
Pythonaws_cdk.aws_apigateway.CfnDeployment.StageDescriptionProperty
TypeScript aws-cdk-lib » aws_apigateway » CfnDeployment » StageDescriptionProperty

StageDescription is a property of the AWS::ApiGateway::Deployment resource that configures a deployment stage.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigateway as apigateway } from 'aws-cdk-lib';
const stageDescriptionProperty: apigateway.CfnDeployment.StageDescriptionProperty = {
  accessLogSetting: {
    destinationArn: 'destinationArn',
    format: 'format',
  },
  cacheClusterEnabled: false,
  cacheClusterSize: 'cacheClusterSize',
  cacheDataEncrypted: false,
  cacheTtlInSeconds: 123,
  cachingEnabled: false,
  canarySetting: {
    percentTraffic: 123,
    stageVariableOverrides: {
      stageVariableOverridesKey: 'stageVariableOverrides',
    },
    useStageCache: false,
  },
  clientCertificateId: 'clientCertificateId',
  dataTraceEnabled: false,
  description: 'description',
  documentationVersion: 'documentationVersion',
  loggingLevel: 'loggingLevel',
  methodSettings: [{
    cacheDataEncrypted: false,
    cacheTtlInSeconds: 123,
    cachingEnabled: false,
    dataTraceEnabled: false,
    httpMethod: 'httpMethod',
    loggingLevel: 'loggingLevel',
    metricsEnabled: false,
    resourcePath: 'resourcePath',
    throttlingBurstLimit: 123,
    throttlingRateLimit: 123,
  }],
  metricsEnabled: false,
  tags: [{
    key: 'key',
    value: 'value',
  }],
  throttlingBurstLimit: 123,
  throttlingRateLimit: 123,
  tracingEnabled: false,
  variables: {
    variablesKey: 'variables',
  },
};

Properties

NameTypeDescription
accessLogSetting?IResolvable | AccessLogSettingPropertySpecifies settings for logging access in this stage.
cacheClusterEnabled?boolean | IResolvableSpecifies whether a cache cluster is enabled for the stage.
cacheClusterSize?stringThe size of the stage's cache cluster.
cacheDataEncrypted?boolean | IResolvableIndicates whether the cached responses are encrypted.
cacheTtlInSeconds?numberThe time-to-live (TTL) period, in seconds, that specifies how long API Gateway caches responses.
cachingEnabled?boolean | IResolvableIndicates whether responses are cached and returned for requests.
canarySetting?IResolvable | CanarySettingPropertySpecifies settings for the canary deployment in this stage.
clientCertificateId?stringThe identifier of the client certificate that API Gateway uses to call your integration endpoints in the stage.
dataTraceEnabled?boolean | IResolvableIndicates whether data trace logging is enabled for methods in the stage.
description?stringA description of the purpose of the stage.
documentationVersion?stringThe version identifier of the API documentation snapshot.
loggingLevel?stringThe logging level for this method.
methodSettings?IResolvable | IResolvable | MethodSettingProperty[]Configures settings for all of the stage's methods.
metricsEnabled?boolean | IResolvableIndicates whether Amazon CloudWatch metrics are enabled for methods in the stage.
tags?CfnTag[]An array of arbitrary tags (key-value pairs) to associate with the stage.
throttlingBurstLimit?numberThe target request burst rate limit.
throttlingRateLimit?numberThe target request steady-state rate limit.
tracingEnabled?boolean | IResolvableSpecifies whether active tracing with X-ray is enabled for this stage.
variables?IResolvable | { [string]: string }A map that defines the stage variables.

accessLogSetting?

Type: IResolvable | AccessLogSettingProperty (optional)

Specifies settings for logging access in this stage.


cacheClusterEnabled?

Type: boolean | IResolvable (optional)

Specifies whether a cache cluster is enabled for the stage.


cacheClusterSize?

Type: string (optional)

The size of the stage's cache cluster.

For more information, see cacheClusterSize in the API Gateway API Reference .


cacheDataEncrypted?

Type: boolean | IResolvable (optional)

Indicates whether the cached responses are encrypted.


cacheTtlInSeconds?

Type: number (optional)

The time-to-live (TTL) period, in seconds, that specifies how long API Gateway caches responses.


cachingEnabled?

Type: boolean | IResolvable (optional)

Indicates whether responses are cached and returned for requests.

You must enable a cache cluster on the stage to cache responses. For more information, see Enable API Gateway Caching in a Stage to Enhance API Performance in the API Gateway Developer Guide .


canarySetting?

Type: IResolvable | CanarySettingProperty (optional)

Specifies settings for the canary deployment in this stage.


clientCertificateId?

Type: string (optional)

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


dataTraceEnabled?

Type: boolean | IResolvable (optional)

Indicates whether data trace logging is enabled for methods in the stage.

API Gateway pushes these logs to Amazon CloudWatch Logs.


description?

Type: string (optional)

A description of the purpose of the stage.


documentationVersion?

Type: string (optional)

The version identifier of the API documentation snapshot.


loggingLevel?

Type: string (optional)

The logging level for this method.

For valid values, see the loggingLevel property of the MethodSetting resource in the Amazon API Gateway API Reference .


methodSettings?

Type: IResolvable | IResolvable | MethodSettingProperty[] (optional)

Configures settings for all of the stage's methods.


metricsEnabled?

Type: boolean | IResolvable (optional)

Indicates whether Amazon CloudWatch metrics are enabled for methods in the stage.


tags?

Type: CfnTag[] (optional)

An array of arbitrary tags (key-value pairs) to associate with the stage.


throttlingBurstLimit?

Type: number (optional)

The target request burst rate limit.

This allows more requests through for a period of time than the target rate limit. For more information, see Manage API Request Throttling in the API Gateway Developer Guide .


throttlingRateLimit?

Type: number (optional)

The target request steady-state rate limit.

For more information, see Manage API Request Throttling in the API Gateway Developer Guide .


tracingEnabled?

Type: boolean | IResolvable (optional)

Specifies whether active tracing with X-ray is enabled for this stage.

For more information, see Trace API Gateway API Execution with AWS X-Ray in the API Gateway Developer Guide .


variables?

Type: IResolvable | { [string]: string } (optional)

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-._~:/?#&=,]+ .