libZSservicesZSamazonka-appmeshZSamazonka-appmesh
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq WeightedTarget Source # 
Instance details

Defined in Amazonka.AppMesh.Types.WeightedTarget

Read WeightedTarget Source # 
Instance details

Defined in Amazonka.AppMesh.Types.WeightedTarget

Show 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 #

NFData WeightedTarget Source # 
Instance details

Defined in Amazonka.AppMesh.Types.WeightedTarget

Methods

rnf :: WeightedTarget -> () #

Hashable WeightedTarget Source # 
Instance details

Defined in Amazonka.AppMesh.Types.WeightedTarget

ToJSON WeightedTarget Source # 
Instance details

Defined in Amazonka.AppMesh.Types.WeightedTarget

FromJSON 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" "libZSservicesZSamazonka-appmeshZSamazonka-appmesh" 'False) (C1 ('MetaCons "WeightedTarget'" 'PrefixI 'True) (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: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_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.