deleteFileSystemPolicy method
Deletes the FileSystemPolicy
for the specified file system.
The default FileSystemPolicy
goes into effect once the
existing policy is deleted. For more information about the default file
system policy, see Using
Resource-based Policies with EFS.
This operation requires permissions for the
elasticfilesystem:DeleteFileSystemPolicy
action.
May throw InternalServerError. May throw FileSystemNotFound. May throw IncorrectFileSystemLifeCycleState.
Parameter fileSystemId
:
Specifies the EFS file system for which to delete the
FileSystemPolicy
.
Implementation
Future<void> deleteFileSystemPolicy({
required String fileSystemId,
}) async {
ArgumentError.checkNotNull(fileSystemId, 'fileSystemId');
_s.validateStringLength(
'fileSystemId',
fileSystemId,
0,
128,
isRequired: true,
);
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/2015-02-01/file-systems/${Uri.encodeComponent(fileSystemId)}/policy',
exceptionFnMap: _exceptionFns,
);
}