Show / Hide Table of Contents

Class TrafficRoutingConfig

Represents the structure to pass into the underlying CfnDeploymentConfig class.

Inheritance
object
TrafficRoutingConfig
Implements
ITrafficRoutingConfig
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TrafficRoutingConfig : ITrafficRoutingConfig
Syntax (vb)
Public Class TrafficRoutingConfig Implements ITrafficRoutingConfig
Remarks

ExampleMetadata: fixture=_generated

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

            var trafficRoutingConfig = new TrafficRoutingConfig {
                Type = "type",

                // the properties below are optional
                TimeBasedCanary = new CanaryTrafficRoutingConfig {
                    CanaryInterval = 123,
                    CanaryPercentage = 123
                },
                TimeBasedLinear = new LinearTrafficRoutingConfig {
                    LinearInterval = 123,
                    LinearPercentage = 123
                }
            };

Synopsis

Constructors

TrafficRoutingConfig()

Represents the structure to pass into the underlying CfnDeploymentConfig class.

Properties

TimeBasedCanary

A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments.

TimeBasedLinear

A configuration that shifts traffic from one version of a Lambda function or Amazon ECS task set to another in equal increments, with an equal number of minutes between each increment.

Type

The type of traffic shifting ( TimeBasedCanary or TimeBasedLinear ) used by a deployment configuration.

Constructors

TrafficRoutingConfig()

Represents the structure to pass into the underlying CfnDeploymentConfig class.

public TrafficRoutingConfig()
Remarks

ExampleMetadata: fixture=_generated

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

            var trafficRoutingConfig = new TrafficRoutingConfig {
                Type = "type",

                // the properties below are optional
                TimeBasedCanary = new CanaryTrafficRoutingConfig {
                    CanaryInterval = 123,
                    CanaryPercentage = 123
                },
                TimeBasedLinear = new LinearTrafficRoutingConfig {
                    LinearInterval = 123,
                    LinearPercentage = 123
                }
            };

Properties

TimeBasedCanary

A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments.

public ICanaryTrafficRoutingConfig? TimeBasedCanary { get; set; }
Property Value

ICanaryTrafficRoutingConfig

Remarks

Default: none

TimeBasedLinear

A configuration that shifts traffic from one version of a Lambda function or Amazon ECS task set to another in equal increments, with an equal number of minutes between each increment.

public ILinearTrafficRoutingConfig? TimeBasedLinear { get; set; }
Property Value

ILinearTrafficRoutingConfig

Remarks

Default: none

Type

The type of traffic shifting ( TimeBasedCanary or TimeBasedLinear ) used by a deployment configuration.

public string Type { get; set; }
Property Value

string

Remarks

ExampleMetadata: fixture=_generated

Implements

ITrafficRoutingConfig
Back to top Generated by DocFX