amazonka-appmesh-2.0: Amazon App Mesh SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.AppMesh.Types.WeightedTarget

Description

 
Synopsis

Documentation

data WeightedTarget Source #

An object that represents a target and its relative weight. Traffic is distributed across targets according to their relative weight. For example, a weighted target with a relative weight of 50 receives five times as much traffic as one with a relative weight of 10. The total weight for all targets combined must be less than or equal to 100.

See: newWeightedTarget smart constructor.

Constructors

WeightedTarget' 

Fields

Instances

Instances details
FromJSON WeightedTarget Source # 
Instance details

Defined in Amazonka.AppMesh.Types.WeightedTarget

ToJSON WeightedTarget Source # 
Instance details

Defined in Amazonka.AppMesh.Types.WeightedTarget

Generic WeightedTarget Source # 
Instance details

Defined in Amazonka.AppMesh.Types.WeightedTarget

Associated Types

type Rep WeightedTarget :: Type -> Type #

Read WeightedTarget Source # 
Instance details

Defined in Amazonka.AppMesh.Types.WeightedTarget

Show WeightedTarget Source # 
Instance details

Defined in Amazonka.AppMesh.Types.WeightedTarget

NFData WeightedTarget Source # 
Instance details

Defined in Amazonka.AppMesh.Types.WeightedTarget

Methods

rnf :: WeightedTarget -> () #

Eq WeightedTarget Source # 
Instance details

Defined in Amazonka.AppMesh.Types.WeightedTarget

Hashable WeightedTarget Source # 
Instance details

Defined in Amazonka.AppMesh.Types.WeightedTarget

type Rep WeightedTarget Source # 
Instance details

Defined in Amazonka.AppMesh.Types.WeightedTarget

type Rep WeightedTarget = D1 ('MetaData "WeightedTarget" "Amazonka.AppMesh.Types.WeightedTarget" "amazonka-appmesh-2.0-GBIHUgXnP8s1LEJyvNe1ca" 'False) (C1 ('MetaCons "WeightedTarget'" 'PrefixI 'True) (S1 ('MetaSel ('Just "port") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "virtualNode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "weight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural))))

newWeightedTarget Source #

Create a value of WeightedTarget with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:port:WeightedTarget', weightedTarget_port - The targeted port of the weighted object.

$sel:virtualNode:WeightedTarget', weightedTarget_virtualNode - The virtual node to associate with the weighted target.

$sel:weight:WeightedTarget', weightedTarget_weight - The relative weight of the weighted target.

weightedTarget_port :: Lens' WeightedTarget (Maybe Natural) Source #

The targeted port of the weighted object.

weightedTarget_virtualNode :: Lens' WeightedTarget Text Source #

The virtual node to associate with the weighted target.

weightedTarget_weight :: Lens' WeightedTarget Natural Source #

The relative weight of the weighted target.