From fefa764e68f75f4cf6ab2e150635b5d43de7131d Mon Sep 17 00:00:00 2001 From: workeitel Date: Sun, 6 Jan 2019 12:26:24 +0100 Subject: [PATCH] feat(apigateway): add tracingEnabled property to APIGW Stage (#1482) --- packages/@aws-cdk/aws-apigateway/lib/stage.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/@aws-cdk/aws-apigateway/lib/stage.ts b/packages/@aws-cdk/aws-apigateway/lib/stage.ts index 4ed4ab4dab2e4..8878217162c3a 100644 --- a/packages/@aws-cdk/aws-apigateway/lib/stage.ts +++ b/packages/@aws-cdk/aws-apigateway/lib/stage.ts @@ -13,6 +13,12 @@ export interface StageOptions extends MethodDeploymentOptions { */ stageName?: string; + /** + * Specifies whether Amazon X-Ray tracing is enabled for this method. + * @default false + */ + tracingEnabled?: boolean; + /** * Indicates whether cache clustering is enabled for the stage. */ @@ -157,6 +163,7 @@ export class Stage extends cdk.Construct implements cdk.IDependable { description: props.description, documentationVersion: props.documentationVersion, variables: props.variables, + tracingEnabled: props.tracingEnabled, methodSettings, });