updateAccessSource method
Updates the configuration of an access source.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ServiceQuotaExceededException.
May throw ThrottlingException.
May throw ValidationException.
Parameter accessSourceId :
The unique identifier of the access source to update.
Parameter cidr :
The CIDR block for the access source.
Parameter ipAddressType :
The IP address type for the access source.
Parameter name :
The name of the access source.
Parameter protocol :
The protocol for the access source.
Implementation
Future<UpdateAccessSourceOutput> updateAccessSource({
required String accessSourceId,
String? cidr,
IpAddressType? ipAddressType,
String? name,
DnsProtocol? protocol,
}) async {
final $payload = <String, dynamic>{
if (cidr != null) 'cidr': cidr,
if (ipAddressType != null) 'ipAddressType': ipAddressType.value,
if (name != null) 'name': name,
if (protocol != null) 'protocol': protocol.value,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri: '/access-sources/${Uri.encodeComponent(accessSourceId)}',
exceptionFnMap: _exceptionFns,
);
return UpdateAccessSourceOutput.fromJson(response);
}