updateConnectClientAddIn method
Updates a Connect Customer client add-in. Use this action to update the name and endpoint URL of a Connect Customer client add-in.
May throw AccessDeniedException.
May throw InvalidParameterValuesException.
May throw ResourceNotFoundException.
Parameter addInId :
The identifier of the client add-in to update.
Parameter resourceId :
The directory identifier for which the client add-in is configured.
Parameter name :
The name of the client add-in.
Parameter url :
The endpoint URL of the Connect Customer client add-in.
Implementation
Future<void> updateConnectClientAddIn({
required String addInId,
required String resourceId,
String? name,
String? url,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'WorkspacesService.UpdateConnectClientAddIn'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'AddInId': addInId,
'ResourceId': resourceId,
if (name != null) 'Name': name,
if (url != null) 'URL': url,
},
);
}