describeApplicationSnapshot method

Future<DescribeApplicationSnapshotResponse> describeApplicationSnapshot({
  1. required String applicationName,
  2. required String snapshotName,
})

Returns information about a snapshot of application state data.

May throw ResourceNotFoundException. May throw InvalidArgumentException. May throw UnsupportedOperationException.

Parameter applicationName : The name of an existing application.

Parameter snapshotName : The identifier of an application snapshot. You can retrieve this value using .

Implementation

Future<DescribeApplicationSnapshotResponse> describeApplicationSnapshot({
  required String applicationName,
  required String snapshotName,
}) async {
  ArgumentError.checkNotNull(applicationName, 'applicationName');
  _s.validateStringLength(
    'applicationName',
    applicationName,
    1,
    128,
    isRequired: true,
  );
  ArgumentError.checkNotNull(snapshotName, 'snapshotName');
  _s.validateStringLength(
    'snapshotName',
    snapshotName,
    1,
    256,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'KinesisAnalytics_20180523.DescribeApplicationSnapshot'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ApplicationName': applicationName,
      'SnapshotName': snapshotName,
    },
  );

  return DescribeApplicationSnapshotResponse.fromJson(jsonResponse.body);
}