modifyTargetGroupAttributes method

Future<ModifyTargetGroupAttributesOutput> modifyTargetGroupAttributes({
  1. required List<TargetGroupAttribute> attributes,
  2. required String targetGroupArn,
})

Modifies the specified attributes of the specified target group.

May throw TargetGroupNotFoundException. May throw InvalidConfigurationRequestException.

Parameter attributes : The attributes.

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

Implementation

Future<ModifyTargetGroupAttributesOutput> modifyTargetGroupAttributes({
  required List<TargetGroupAttribute> attributes,
  required String targetGroupArn,
}) async {
  ArgumentError.checkNotNull(attributes, 'attributes');
  ArgumentError.checkNotNull(targetGroupArn, 'targetGroupArn');
  final $request = <String, dynamic>{};
  $request['Attributes'] = attributes;
  $request['TargetGroupArn'] = targetGroupArn;
  final $result = await _protocol.send(
    $request,
    action: 'ModifyTargetGroupAttributes',
    version: '2015-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['ModifyTargetGroupAttributesInput'],
    shapes: shapes,
    resultWrapper: 'ModifyTargetGroupAttributesResult',
  );
  return ModifyTargetGroupAttributesOutput.fromXml($result);
}