amazonka-autoscaling-2.0: Amazon Auto Scaling 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.AutoScaling.AttachTrafficSources

Description

__Reserved for use with Amazon VPC Lattice, which is in preview and subject to change. Do not use this API for production workloads. This API is also subject to change.__

Attaches one or more traffic sources to the specified Auto Scaling group.

To describe the traffic sources for an Auto Scaling group, call the DescribeTrafficSources API. To detach a traffic source from the Auto Scaling group, call the DetachTrafficSources API.

This operation is additive and does not detach existing traffic sources from the Auto Scaling group.

Synopsis

Creating a Request

data AttachTrafficSources Source #

See: newAttachTrafficSources smart constructor.

Constructors

AttachTrafficSources' 

Fields

  • autoScalingGroupName :: Text

    The name of the Auto Scaling group.

  • trafficSources :: [TrafficSourceIdentifier]

    The unique identifiers of one or more traffic sources. You can specify up to 10 traffic sources.

    Currently, you must specify an Amazon Resource Name (ARN) for an existing VPC Lattice target group. Amazon EC2 Auto Scaling registers the running instances with the attached target groups. The target groups receive incoming traffic and route requests to one or more registered targets.

Instances

Instances details
ToHeaders AttachTrafficSources Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachTrafficSources

ToPath AttachTrafficSources Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachTrafficSources

ToQuery AttachTrafficSources Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachTrafficSources

AWSRequest AttachTrafficSources Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachTrafficSources

Associated Types

type AWSResponse AttachTrafficSources #

Generic AttachTrafficSources Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachTrafficSources

Associated Types

type Rep AttachTrafficSources :: Type -> Type #

Read AttachTrafficSources Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachTrafficSources

Show AttachTrafficSources Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachTrafficSources

NFData AttachTrafficSources Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachTrafficSources

Methods

rnf :: AttachTrafficSources -> () #

Eq AttachTrafficSources Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachTrafficSources

Hashable AttachTrafficSources Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachTrafficSources

type AWSResponse AttachTrafficSources Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachTrafficSources

type Rep AttachTrafficSources Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachTrafficSources

type Rep AttachTrafficSources = D1 ('MetaData "AttachTrafficSources" "Amazonka.AutoScaling.AttachTrafficSources" "amazonka-autoscaling-2.0-IerpHfP4BA3Ir4ZL2IR1De" 'False) (C1 ('MetaCons "AttachTrafficSources'" 'PrefixI 'True) (S1 ('MetaSel ('Just "autoScalingGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "trafficSources") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [TrafficSourceIdentifier])))

newAttachTrafficSources Source #

Create a value of AttachTrafficSources 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:

AttachTrafficSources, attachTrafficSources_autoScalingGroupName - The name of the Auto Scaling group.

AttachTrafficSources, attachTrafficSources_trafficSources - The unique identifiers of one or more traffic sources. You can specify up to 10 traffic sources.

Currently, you must specify an Amazon Resource Name (ARN) for an existing VPC Lattice target group. Amazon EC2 Auto Scaling registers the running instances with the attached target groups. The target groups receive incoming traffic and route requests to one or more registered targets.

Request Lenses

attachTrafficSources_trafficSources :: Lens' AttachTrafficSources [TrafficSourceIdentifier] Source #

The unique identifiers of one or more traffic sources. You can specify up to 10 traffic sources.

Currently, you must specify an Amazon Resource Name (ARN) for an existing VPC Lattice target group. Amazon EC2 Auto Scaling registers the running instances with the attached target groups. The target groups receive incoming traffic and route requests to one or more registered targets.

Destructuring the Response

data AttachTrafficSourcesResponse Source #

See: newAttachTrafficSourcesResponse smart constructor.

Constructors

AttachTrafficSourcesResponse' 

Fields

Instances

Instances details
Generic AttachTrafficSourcesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachTrafficSources

Associated Types

type Rep AttachTrafficSourcesResponse :: Type -> Type #

Read AttachTrafficSourcesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachTrafficSources

Show AttachTrafficSourcesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachTrafficSources

NFData AttachTrafficSourcesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachTrafficSources

Eq AttachTrafficSourcesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachTrafficSources

type Rep AttachTrafficSourcesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.AttachTrafficSources

type Rep AttachTrafficSourcesResponse = D1 ('MetaData "AttachTrafficSourcesResponse" "Amazonka.AutoScaling.AttachTrafficSources" "amazonka-autoscaling-2.0-IerpHfP4BA3Ir4ZL2IR1De" 'False) (C1 ('MetaCons "AttachTrafficSourcesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAttachTrafficSourcesResponse Source #

Create a value of AttachTrafficSourcesResponse 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:httpStatus:AttachTrafficSourcesResponse', attachTrafficSourcesResponse_httpStatus - The response's http status code.

Response Lenses