@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TrafficRoutingConfig extends Object implements Serializable, Cloneable, StructuredPojo
The configuration specifying how traffic is shifted from one version of a Lambda function to another version during an AWS Lambda deployment.
Constructor and Description |
---|
TrafficRoutingConfig() |
Modifier and Type | Method and Description |
---|---|
TrafficRoutingConfig |
clone() |
boolean |
equals(Object obj) |
TimeBasedCanary |
getTimeBasedCanary()
A configuration that shifts traffic from one version of a Lambda function to another in two increments.
|
TimeBasedLinear |
getTimeBasedLinear()
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.
|
String |
getType()
The type of traffic shifting a deployment configuration uses (
TimeBasedCanary or
TimeBasedLinear ). |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setTimeBasedCanary(TimeBasedCanary timeBasedCanary)
A configuration that shifts traffic from one version of a Lambda function to another in two increments.
|
void |
setTimeBasedLinear(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.
|
void |
setType(String type)
The type of traffic shifting a deployment configuration uses (
TimeBasedCanary or
TimeBasedLinear ). |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
TrafficRoutingConfig |
withTimeBasedCanary(TimeBasedCanary timeBasedCanary)
A configuration that shifts traffic from one version of a Lambda function to another in two increments.
|
TrafficRoutingConfig |
withTimeBasedLinear(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 |
withType(String type)
The type of traffic shifting a deployment configuration uses (
TimeBasedCanary or
TimeBasedLinear ). |
TrafficRoutingConfig |
withType(TrafficRoutingType type)
The type of traffic shifting a deployment configuration uses (
TimeBasedCanary or
TimeBasedLinear ). |
public void setType(String type)
The type of traffic shifting a deployment configuration uses (TimeBasedCanary
or
TimeBasedLinear
).
type
- The type of traffic shifting a deployment configuration uses (TimeBasedCanary
or
TimeBasedLinear
).TrafficRoutingType
public String getType()
The type of traffic shifting a deployment configuration uses (TimeBasedCanary
or
TimeBasedLinear
).
TimeBasedCanary
or
TimeBasedLinear
).TrafficRoutingType
public TrafficRoutingConfig withType(String type)
The type of traffic shifting a deployment configuration uses (TimeBasedCanary
or
TimeBasedLinear
).
type
- The type of traffic shifting a deployment configuration uses (TimeBasedCanary
or
TimeBasedLinear
).TrafficRoutingType
public TrafficRoutingConfig withType(TrafficRoutingType type)
The type of traffic shifting a deployment configuration uses (TimeBasedCanary
or
TimeBasedLinear
).
type
- The type of traffic shifting a deployment configuration uses (TimeBasedCanary
or
TimeBasedLinear
).TrafficRoutingType
public void setTimeBasedCanary(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.
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 TimeBasedCanary getTimeBasedCanary()
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 TrafficRoutingConfig withTimeBasedCanary(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.
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 void setTimeBasedLinear(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.
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 TimeBasedLinear getTimeBasedLinear()
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 withTimeBasedLinear(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.
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 String toString()
toString
in class Object
Object.toString()
public TrafficRoutingConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2017. All rights reserved.