getSecurityConfigurations method

Future<GetSecurityConfigurationsResponse> getSecurityConfigurations({
  1. int? maxResults,
  2. String? nextToken,
})

Retrieves a list of all security configurations.

May throw EntityNotFoundException. May throw InvalidInputException. May throw InternalServiceException. May throw OperationTimeoutException.

Parameter maxResults : The maximum number of results to return.

Parameter nextToken : A continuation token, if this is a continuation call.

Implementation

Future<GetSecurityConfigurationsResponse> getSecurityConfigurations({
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    1000,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSGlue.GetSecurityConfigurations'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (maxResults != null) 'MaxResults': maxResults,
      if (nextToken != null) 'NextToken': nextToken,
    },
  );

  return GetSecurityConfigurationsResponse.fromJson(jsonResponse.body);
}