amazonka-elb-2.0: Amazon Elastic Load Balancing 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.ELB.AddTags

Description

Adds the specified tags to the specified load balancer. Each load balancer can have a maximum of 10 tags.

Each tag consists of a key and an optional value. If a tag with the same key is already associated with the load balancer, AddTags updates its value.

For more information, see Tag Your Classic Load Balancer in the Classic Load Balancers Guide.

Synopsis

Creating a Request

data AddTags Source #

Contains the parameters for AddTags.

See: newAddTags smart constructor.

Constructors

AddTags' 

Fields

Instances

Instances details
ToHeaders AddTags Source # 
Instance details

Defined in Amazonka.ELB.AddTags

Methods

toHeaders :: AddTags -> [Header] #

ToPath AddTags Source # 
Instance details

Defined in Amazonka.ELB.AddTags

Methods

toPath :: AddTags -> ByteString #

ToQuery AddTags Source # 
Instance details

Defined in Amazonka.ELB.AddTags

AWSRequest AddTags Source # 
Instance details

Defined in Amazonka.ELB.AddTags

Associated Types

type AWSResponse AddTags #

Generic AddTags Source # 
Instance details

Defined in Amazonka.ELB.AddTags

Associated Types

type Rep AddTags :: Type -> Type #

Methods

from :: AddTags -> Rep AddTags x #

to :: Rep AddTags x -> AddTags #

Read AddTags Source # 
Instance details

Defined in Amazonka.ELB.AddTags

Show AddTags Source # 
Instance details

Defined in Amazonka.ELB.AddTags

NFData AddTags Source # 
Instance details

Defined in Amazonka.ELB.AddTags

Methods

rnf :: AddTags -> () #

Eq AddTags Source # 
Instance details

Defined in Amazonka.ELB.AddTags

Methods

(==) :: AddTags -> AddTags -> Bool #

(/=) :: AddTags -> AddTags -> Bool #

Hashable AddTags Source # 
Instance details

Defined in Amazonka.ELB.AddTags

Methods

hashWithSalt :: Int -> AddTags -> Int #

hash :: AddTags -> Int #

type AWSResponse AddTags Source # 
Instance details

Defined in Amazonka.ELB.AddTags

type Rep AddTags Source # 
Instance details

Defined in Amazonka.ELB.AddTags

type Rep AddTags = D1 ('MetaData "AddTags" "Amazonka.ELB.AddTags" "amazonka-elb-2.0-9cSN5cNCwnD5ZanKSOxHTf" 'False) (C1 ('MetaCons "AddTags'" 'PrefixI 'True) (S1 ('MetaSel ('Just "loadBalancerNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Tag))))

newAddTags Source #

Arguments

:: NonEmpty Tag

AddTags

-> AddTags 

Create a value of AddTags 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:loadBalancerNames:AddTags', addTags_loadBalancerNames - The name of the load balancer. You can specify one load balancer only.

AddTags, addTags_tags - The tags.

Request Lenses

addTags_loadBalancerNames :: Lens' AddTags [Text] Source #

The name of the load balancer. You can specify one load balancer only.

Destructuring the Response

data AddTagsResponse Source #

Contains the output of AddTags.

See: newAddTagsResponse smart constructor.

Constructors

AddTagsResponse' 

Fields

Instances

Instances details
Generic AddTagsResponse Source # 
Instance details

Defined in Amazonka.ELB.AddTags

Associated Types

type Rep AddTagsResponse :: Type -> Type #

Read AddTagsResponse Source # 
Instance details

Defined in Amazonka.ELB.AddTags

Show AddTagsResponse Source # 
Instance details

Defined in Amazonka.ELB.AddTags

NFData AddTagsResponse Source # 
Instance details

Defined in Amazonka.ELB.AddTags

Methods

rnf :: AddTagsResponse -> () #

Eq AddTagsResponse Source # 
Instance details

Defined in Amazonka.ELB.AddTags

type Rep AddTagsResponse Source # 
Instance details

Defined in Amazonka.ELB.AddTags

type Rep AddTagsResponse = D1 ('MetaData "AddTagsResponse" "Amazonka.ELB.AddTags" "amazonka-elb-2.0-9cSN5cNCwnD5ZanKSOxHTf" 'False) (C1 ('MetaCons "AddTagsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAddTagsResponse Source #

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

Response Lenses

addTagsResponse_httpStatus :: Lens' AddTagsResponse Int Source #

The response's http status code.