Interface TrafficRoutingConfig.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TrafficRoutingConfig.Builder,TrafficRoutingConfig>,SdkBuilder<TrafficRoutingConfig.Builder,TrafficRoutingConfig>,SdkPojo
- Enclosing class:
- TrafficRoutingConfig
public static interface TrafficRoutingConfig.Builder extends SdkPojo, CopyableBuilder<TrafficRoutingConfig.Builder,TrafficRoutingConfig>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TrafficRoutingConfig.BuildertimeBasedCanary(Consumer<TimeBasedCanary.Builder> timeBasedCanary)A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments.TrafficRoutingConfig.BuildertimeBasedCanary(TimeBasedCanary timeBasedCanary)A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments.default TrafficRoutingConfig.BuildertimeBasedLinear(Consumer<TimeBasedLinear.Builder> 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.TrafficRoutingConfig.BuildertimeBasedLinear(TimeBasedLinear 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.TrafficRoutingConfig.Buildertype(String type)The type of traffic shifting (TimeBasedCanaryorTimeBasedLinear) used by a deployment configuration.TrafficRoutingConfig.Buildertype(TrafficRoutingType type)The type of traffic shifting (TimeBasedCanaryorTimeBasedLinear) used by a deployment configuration.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
type
TrafficRoutingConfig.Builder type(String type)
The type of traffic shifting (
TimeBasedCanaryorTimeBasedLinear) used by a deployment configuration.- Parameters:
type- The type of traffic shifting (TimeBasedCanaryorTimeBasedLinear) used by a deployment configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TrafficRoutingType,TrafficRoutingType
-
type
TrafficRoutingConfig.Builder type(TrafficRoutingType type)
The type of traffic shifting (
TimeBasedCanaryorTimeBasedLinear) used by a deployment configuration.- Parameters:
type- The type of traffic shifting (TimeBasedCanaryorTimeBasedLinear) used by a deployment configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TrafficRoutingType,TrafficRoutingType
-
timeBasedCanary
TrafficRoutingConfig.Builder timeBasedCanary(TimeBasedCanary timeBasedCanary)
A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments. The original and target Lambda function versions or ECS task sets are specified in the deployment's AppSpec file.
- Parameters:
timeBasedCanary- A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments. The original and target Lambda function versions or ECS task sets are specified in the deployment's AppSpec file.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeBasedCanary
default TrafficRoutingConfig.Builder timeBasedCanary(Consumer<TimeBasedCanary.Builder> timeBasedCanary)
A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments. The original and target Lambda function versions or ECS task sets are specified in the deployment's AppSpec file.
This is a convenience method that creates an instance of theTimeBasedCanary.Builderavoiding the need to create one manually viaTimeBasedCanary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totimeBasedCanary(TimeBasedCanary).- Parameters:
timeBasedCanary- a consumer that will call methods onTimeBasedCanary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
timeBasedCanary(TimeBasedCanary)
-
timeBasedLinear
TrafficRoutingConfig.Builder timeBasedLinear(TimeBasedLinear 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. The original and target Lambda function versions or Amazon ECS task sets are specified in the deployment's AppSpec file.
- Parameters:
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. The original and target Lambda function versions or Amazon ECS task sets are specified in the deployment's AppSpec file.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeBasedLinear
default TrafficRoutingConfig.Builder timeBasedLinear(Consumer<TimeBasedLinear.Builder> 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. The original and target Lambda function versions or Amazon ECS task sets are specified in the deployment's AppSpec file.
This is a convenience method that creates an instance of theTimeBasedLinear.Builderavoiding the need to create one manually viaTimeBasedLinear.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totimeBasedLinear(TimeBasedLinear).- Parameters:
timeBasedLinear- a consumer that will call methods onTimeBasedLinear.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
timeBasedLinear(TimeBasedLinear)
-
-