getAppInstanceRetentionSettings method

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

Gets the retention settings for an app instance.

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

Parameter appInstanceArn : The ARN of the app instance.

Implementation

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