Skip to content
v2.278.0

OutlierDetectionProperty Struct ​

An object that represents the outlier detection for a virtual node's listener.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appmesh as appmesh } from 'aws-cdk-lib';
const outlierDetectionProperty: appmesh.CfnVirtualNode.OutlierDetectionProperty = {
  baseEjectionDuration: {
    unit: 'unit',
    value: 123,
  },
  interval: {
    unit: 'unit',
    value: 123,
  },
  maxEjectionPercent: 123,
  maxServerErrors: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appmesh as appmesh

outlier_detection_property = appmesh.CfnVirtualNode.OutlierDetectionProperty(
    base_ejection_duration=appmesh.CfnVirtualNode.DurationProperty(
        unit="unit",
        value=123
    ),
    interval=appmesh.CfnVirtualNode.DurationProperty(
        unit="unit",
        value=123
    ),
    max_ejection_percent=123,
    max_server_errors=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appmesh.*;

OutlierDetectionProperty outlierDetectionProperty = OutlierDetectionProperty.builder()
        .baseEjectionDuration(DurationProperty.builder()
                .unit("unit")
                .value(123)
                .build())
        .interval(DurationProperty.builder()
                .unit("unit")
                .value(123)
                .build())
        .maxEjectionPercent(123)
        .maxServerErrors(123)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppMesh;

var outlierDetectionProperty = new OutlierDetectionProperty {
    BaseEjectionDuration = new DurationProperty {
        Unit = "unit",
        Value = 123
    },
    Interval = new DurationProperty {
        Unit = "unit",
        Value = 123
    },
    MaxEjectionPercent = 123,
    MaxServerErrors = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

outlierDetectionProperty := &OutlierDetectionProperty{
	BaseEjectionDuration: &DurationProperty{
		Unit: jsii.String("unit"),
		Value: jsii.Number(123),
	},
	Interval: &DurationProperty{
		Unit: jsii.String("unit"),
		Value: jsii.Number(123),
	},
	MaxEjectionPercent: jsii.Number(123),
	MaxServerErrors: jsii.Number(123),
}

Properties ​

baseEjectionDurationIResolvable | CfnVirtualNode.DurationPropertybase_ejection_durationtyping.Union[IResolvable, DurationProperty]baseEjectionDurationIResolvableBaseEjectionDurationIResolvableBaseEjectionDurationinterface{} required #
The base amount of time for which a host is ejected.
intervalIResolvable | CfnVirtualNode.DurationPropertyintervaltyping.Union[IResolvable, DurationProperty]intervalIResolvableIntervalIResolvableIntervalinterface{} required #
The time interval between ejection sweep analysis.
maxEjectionPercentnumbermax_ejection_percentint | floatmaxEjectionPercentNumberMaxEjectionPercentdoubleMaxEjectionPercent*float64 required #
Maximum percentage of hosts in load balancing pool for upstream service that can be ejected.

Will eject at least one host regardless of the value.

maxServerErrorsnumbermax_server_errorsint | floatmaxServerErrorsNumberMaxServerErrorsdoubleMaxServerErrors*float64 required #
Number of consecutive `5xx` errors required for ejection.