getSecurityConfig method

Future<GetSecurityConfigResponse> getSecurityConfig({
  1. required String id,
})

Returns information about an OpenSearch Serverless security configuration. For more information, see SAML authentication for Amazon OpenSearch Serverless.

May throw InternalServerException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter id : The unique identifier of the security configuration.

Implementation

Future<GetSecurityConfigResponse> getSecurityConfig({
  required String id,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'OpenSearchServerless.GetSecurityConfig'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'id': id,
    },
  );

  return GetSecurityConfigResponse.fromJson(jsonResponse.body);
}