getDefaultRetentionPolicy method
Future<GetDefaultRetentionPolicyResponse>
getDefaultRetentionPolicy({
- required String organizationId,
Gets the default retention policy details for the specified organization.
May throw EntityNotFoundException.
May throw InvalidParameterException.
May throw OrganizationNotFoundException.
May throw OrganizationStateException.
Parameter organizationId :
The organization ID.
Implementation
Future<GetDefaultRetentionPolicyResponse> getDefaultRetentionPolicy({
required String organizationId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'WorkMailService.GetDefaultRetentionPolicy'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'OrganizationId': organizationId,
},
);
return GetDefaultRetentionPolicyResponse.fromJson(jsonResponse.body);
}