getAppInstanceRetentionSettings method

Future<GetAppInstanceRetentionSettingsResponse> getAppInstanceRetentionSettings({
  1. required String appInstanceArn,
})

Gets the retention settings for an AppInstance.

May throw BadRequestException. May throw ForbiddenException. May throw ServiceFailureException. May throw ServiceUnavailableException. May throw ThrottledClientException. May throw UnauthorizedClientException.

Parameter appInstanceArn : The ARN of the AppInstance.

Implementation

Future<GetAppInstanceRetentionSettingsResponse>
    getAppInstanceRetentionSettings({
  required String appInstanceArn,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/app-instances/${Uri.encodeComponent(appInstanceArn)}/retention-settings',
    exceptionFnMap: _exceptionFns,
  );
  return GetAppInstanceRetentionSettingsResponse.fromJson(response);
}