modifySelfservicePermissions method
Future<void>
modifySelfservicePermissions({
- required String resourceId,
- required SelfservicePermissions selfservicePermissions,
Modifies the self-service WorkSpace management capabilities for your users. For more information, see Enable Self-Service WorkSpace Management Capabilities for Your Users.
May throw AccessDeniedException. May throw InvalidParameterValuesException. May throw ResourceNotFoundException.
Parameter resourceId
:
The identifier of the directory.
Parameter selfservicePermissions
:
The permissions to enable or disable self-service capabilities.
Implementation
Future<void> modifySelfservicePermissions({
required String resourceId,
required SelfservicePermissions selfservicePermissions,
}) async {
ArgumentError.checkNotNull(resourceId, 'resourceId');
_s.validateStringLength(
'resourceId',
resourceId,
10,
65,
isRequired: true,
);
ArgumentError.checkNotNull(
selfservicePermissions, 'selfservicePermissions');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'WorkspacesService.ModifySelfservicePermissions'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ResourceId': resourceId,
'SelfservicePermissions': selfservicePermissions,
},
);
}