@Stability(value=Stable)
public static interface CfnStage.CanarySettingProperty
extends software.amazon.jsii.JsiiSerializable
CanarySetting is a property of the AWS::ApiGateway::Stage resource.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apigateway.*;
CanarySettingProperty canarySettingProperty = CanarySettingProperty.builder()
.deploymentId("deploymentId")
.percentTraffic(123)
.stageVariableOverrides(Map.of(
"stageVariableOverridesKey", "stageVariableOverrides"))
.useStageCache(false)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnStage.CanarySettingProperty.Builder
A builder for
CfnStage.CanarySettingProperty |
static class |
CfnStage.CanarySettingProperty.Jsii$Proxy
An implementation for
CfnStage.CanarySettingProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnStage.CanarySettingProperty.Builder |
builder() |
default String |
getDeploymentId()
The identifier of the deployment that the stage points to.
|
default Number |
getPercentTraffic()
The percentage (0-100) of traffic diverted to a canary deployment.
|
default Object |
getStageVariableOverrides()
Stage variables overridden for a canary release deployment, including new stage variables introduced in the canary.
|
default Object |
getUseStageCache()
Whether the canary deployment uses the stage cache or not.
|
@Stability(value=Stable) @Nullable default String getDeploymentId()
@Stability(value=Stable) @Nullable default Number getPercentTraffic()
@Stability(value=Stable) @Nullable default Object getStageVariableOverrides()
These stage variables are represented as a string-to-string map between stage variable names and their values.
Duplicates are not allowed.
@Stability(value=Stable) @Nullable default Object getUseStageCache()
@Stability(value=Stable) static CfnStage.CanarySettingProperty.Builder builder()
Copyright © 2022. All rights reserved.