@Generated(value="software.amazon.awssdk:codegen") public final class TrafficRoutingConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TrafficRoutingConfig.Builder,TrafficRoutingConfig>
The configuration that specifies how traffic is shifted from one version of a Lambda function to another version during an AWS Lambda deployment.
Modifier and Type | Class and Description |
---|---|
static interface |
TrafficRoutingConfig.Builder |
Modifier and Type | Method and Description |
---|---|
static TrafficRoutingConfig.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends TrafficRoutingConfig.Builder> |
serializableBuilderClass() |
TimeBasedCanary |
timeBasedCanary()
A configuration that shifts traffic from one version of a Lambda function to another in two increments.
|
TimeBasedLinear |
timeBasedLinear()
A configuration that shifts traffic from one version of a Lambda function to another in equal increments, with an
equal number of minutes between each increment.
|
TrafficRoutingConfig.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
TrafficRoutingType |
type()
The type of traffic shifting (
TimeBasedCanary or TimeBasedLinear ) used by a deployment
configuration . |
String |
typeAsString()
The type of traffic shifting (
TimeBasedCanary or TimeBasedLinear ) used by a deployment
configuration . |
copy
public TrafficRoutingType type()
The type of traffic shifting (TimeBasedCanary
or TimeBasedLinear
) used by a deployment
configuration .
If the service returns an enum value that is not available in the current SDK version, type
will return
TrafficRoutingType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
TimeBasedCanary
or TimeBasedLinear
) used by a
deployment configuration .TrafficRoutingType
public String typeAsString()
The type of traffic shifting (TimeBasedCanary
or TimeBasedLinear
) used by a deployment
configuration .
If the service returns an enum value that is not available in the current SDK version, type
will return
TrafficRoutingType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
TimeBasedCanary
or TimeBasedLinear
) used by a
deployment configuration .TrafficRoutingType
public TimeBasedCanary timeBasedCanary()
A configuration that shifts traffic from one version of a Lambda function to another in two increments. The original and target Lambda function versions are specified in the deployment's AppSpec file.
public TimeBasedLinear timeBasedLinear()
A configuration that shifts traffic from one version of a Lambda function to another in equal increments, with an equal number of minutes between each increment. The original and target Lambda function versions are specified in the deployment's AppSpec file.
public TrafficRoutingConfig.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<TrafficRoutingConfig.Builder,TrafficRoutingConfig>
public static TrafficRoutingConfig.Builder builder()
public static Class<? extends TrafficRoutingConfig.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.