updateAnycastIpList method
Updates an Anycast static IP list.
May throw AccessDenied.
May throw EntityNotFound.
May throw InvalidArgument.
May throw InvalidIfMatchVersion.
May throw PreconditionFailed.
May throw UnsupportedOperation.
Parameter id :
The ID of the Anycast static IP list.
Parameter ifMatch :
The current version (ETag value) of the Anycast static IP list that you
are updating.
Parameter ipAddressType :
The IP address type for the Anycast static IP list. You can specify one of
the following options:
-
ipv4only -
ipv6only -
dualstack- Allocate a list of both IPv4 and IPv6 addresses
Parameter ipamCidrConfigs :
A list of IPAM CIDR configurations that specify the IP address ranges and
IPAM pool settings for updating the Anycast static IP list.
Implementation
Future<UpdateAnycastIpListResult> updateAnycastIpList({
required String id,
required String ifMatch,
IpAddressType? ipAddressType,
List<IpamCidrConfig>? ipamCidrConfigs,
}) async {
final headers = <String, String>{
'If-Match': ifMatch.toString(),
};
final $result = await _protocol.sendRaw(
method: 'PUT',
requestUri: '/2020-05-31/anycast-ip-list/${Uri.encodeComponent(id)}',
headers: headers,
payload: UpdateAnycastIpListRequest(
id: id,
ifMatch: ifMatch,
ipAddressType: ipAddressType,
ipamCidrConfigs: ipamCidrConfigs)
.toXml('UpdateAnycastIpListRequest'),
exceptionFnMap: _exceptionFns,
);
final $elem = await _s.xmlFromResponse($result);
return UpdateAnycastIpListResult(
anycastIpList: AnycastIpList.fromXml($elem),
eTag: _s.extractHeaderStringValue($result.headers, 'ETag'),
);
}