Table of Contents

Interface ICfnDeploymentProps

Namespace
Amazon.CDK.AWS.APIGateway
Assembly
Amazon.CDK.AWS.APIGateway.dll

Properties for defining a CfnDeployment.

public interface ICfnDeploymentProps

Examples

// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.APIGateway;

             var cfnDeploymentProps = new CfnDeploymentProps {
                 RestApiId = "restApiId",

                 // the properties below are optional
                 DeploymentCanarySettings = new DeploymentCanarySettingsProperty {
                     PercentTraffic = 123,
                     StageVariableOverrides = new Dictionary<string, string> {
                         { "stageVariableOverridesKey", "stageVariableOverrides" }
                     },
                     UseStageCache = false
                 },
                 Description = "description",
                 StageDescription = new StageDescriptionProperty {
                     AccessLogSetting = new AccessLogSettingProperty {
                         DestinationArn = "destinationArn",
                         Format = "format"
                     },
                     CacheClusterEnabled = false,
                     CacheClusterSize = "cacheClusterSize",
                     CacheDataEncrypted = false,
                     CacheTtlInSeconds = 123,
                     CachingEnabled = false,
                     CanarySetting = new CanarySettingProperty {
                         PercentTraffic = 123,
                         StageVariableOverrides = new Dictionary<string, string> {
                             { "stageVariableOverridesKey", "stageVariableOverrides" }
                         },
                         UseStageCache = false
                     },
                     ClientCertificateId = "clientCertificateId",
                     DataTraceEnabled = false,
                     Description = "description",
                     DocumentationVersion = "documentationVersion",
                     LoggingLevel = "loggingLevel",
                     MethodSettings = new [] { new MethodSettingProperty {
                         CacheDataEncrypted = false,
                         CacheTtlInSeconds = 123,
                         CachingEnabled = false,
                         DataTraceEnabled = false,
                         HttpMethod = "httpMethod",
                         LoggingLevel = "loggingLevel",
                         MetricsEnabled = false,
                         ResourcePath = "resourcePath",
                         ThrottlingBurstLimit = 123,
                         ThrottlingRateLimit = 123
                     } },
                     MetricsEnabled = false,
                     Tags = new [] { new CfnTag {
                         Key = "key",
                         Value = "value"
                     } },
                     ThrottlingBurstLimit = 123,
                     ThrottlingRateLimit = 123,
                     TracingEnabled = false,
                     Variables = new Dictionary<string, string> {
                         { "variablesKey", "variables" }
                     }
                 },
                 StageName = "stageName"
             };

Remarks

Properties

DeploymentCanarySettings

The input configuration for a canary deployment.

object? DeploymentCanarySettings { get; }

Property Value

object

Remarks

Description

The description for the Deployment resource to create.

string? Description { get; }

Property Value

string

Remarks

RestApiId

The string identifier of the associated RestApi.

string RestApiId { get; }

Property Value

string

Remarks

StageDescription

The description of the Stage resource for the Deployment resource to create.

object? StageDescription { get; }

Property Value

object

Remarks

StageName

The name of the Stage resource for the Deployment resource to create.

string? StageName { get; }

Property Value

string

Remarks