updateServiceNetwork method
Future<UpdateServiceNetworkResponse>
updateServiceNetwork({
- required AuthType authType,
- required String serviceNetworkIdentifier,
Updates the specified service network.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter authType :
The type of IAM policy.
-
NONE: The resource does not use an IAM policy. This is the default. -
AWS_IAM: The resource uses an IAM policy. When this type is used, auth is enabled and an auth policy is required.
Parameter serviceNetworkIdentifier :
The ID or ARN of the service network.
Implementation
Future<UpdateServiceNetworkResponse> updateServiceNetwork({
required AuthType authType,
required String serviceNetworkIdentifier,
}) async {
final $payload = <String, dynamic>{
'authType': authType.value,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri:
'/servicenetworks/${Uri.encodeComponent(serviceNetworkIdentifier)}',
exceptionFnMap: _exceptionFns,
);
return UpdateServiceNetworkResponse.fromJson(response);
}