getTrustedEntitySet method

Future<GetTrustedEntitySetResponse> getTrustedEntitySet({
  1. required String detectorId,
  2. required String trustedEntitySetId,
})

Retrieves the trusted entity set associated with the specified trustedEntitySetId.

May throw BadRequestException. May throw InternalServerErrorException.

Parameter detectorId : The unique ID of the GuardDuty detector associated with this trusted entity set.

Parameter trustedEntitySetId : The unique ID that helps GuardDuty identify the trusted entity set.

Implementation

Future<GetTrustedEntitySetResponse> getTrustedEntitySet({
  required String detectorId,
  required String trustedEntitySetId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/detector/${Uri.encodeComponent(detectorId)}/trustedentityset/${Uri.encodeComponent(trustedEntitySetId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetTrustedEntitySetResponse.fromJson(response);
}