Menu
Elastic Load Balancing
API Reference (API Version 2015-12-01)

ModifyTargetGroupAttributes

Modifies the specified attributes of the specified target group.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

Attributes.member.N

The attributes.

Type: Array of TargetGroupAttribute objects

Required: Yes

TargetGroupArn

The Amazon Resource Name (ARN) of the target group.

Type: String

Required: Yes

Response Elements

The following element is returned by the service.

Attributes.member.N

Information about the attributes.

Type: Array of TargetGroupAttribute objects

Errors

For information about the errors that are common to all actions, see Common Errors.

InvalidConfigurationRequest

The requested configuration is not valid.

HTTP Status Code: 400

TargetGroupNotFound

The specified target group does not exist.

HTTP Status Code: 400

Example

Modify the deregistration delay timeout

This example sets the deregistration delay timeout for the specified target group to the specified value.

Sample Request

https://elasticloadbalancing.amazonaws.com/?Action=ModifyTargetGroupAttributes &TargetGroupArn=arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067 &Attributes.member.1.Key=deregistration_delay.timeout_seconds &Attributes.member.1.Value=600 &Version=2015-12-01 &AUTHPARAMS

Sample Response

<ModifyTargetGroupAttributesResponse xmlns="http://elasticloadbalancing.amazonaws.com/doc/2015-12-01/"> <ModifyTargetGroupAttributesResult> <Attributes> <member> <Value>600</Value> <Key>deregistration_delay.timeout_seconds</Key> </member> </Attributes> </ModifyTargetGroupAttributesResult> <ResponseMetadata> <RequestId>bb8c272b-f455-11e5-a53c-67205c0d10fd</RequestId> </ResponseMetadata> </ModifyTargetGroupAttributesResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: