modifyTargetGroupAttributes method
Modifies the specified attributes of the specified target group.
May throw InvalidConfigurationRequestException.
May throw TargetGroupNotFoundException.
Parameter attributes :
The target group attributes.
Parameter targetGroupArn :
The Amazon Resource Name (ARN) of the target group.
Implementation
Future<ModifyTargetGroupAttributesOutput> modifyTargetGroupAttributes({
required List<TargetGroupAttribute> attributes,
required String targetGroupArn,
}) async {
final $request = <String, String>{
if (attributes.isEmpty)
'Attributes': ''
else
for (var i1 = 0; i1 < attributes.length; i1++)
for (var e3 in attributes[i1].toQueryMap().entries)
'Attributes.member.${i1 + 1}.${e3.key}': e3.value,
'TargetGroupArn': targetGroupArn,
};
final $result = await _protocol.send(
$request,
action: 'ModifyTargetGroupAttributes',
version: '2015-12-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
resultWrapper: 'ModifyTargetGroupAttributesResult',
);
return ModifyTargetGroupAttributesOutput.fromXml($result);
}