Retrieves the trusted entity set associated with the specified trustedEntitySetId.
Parameters:
-
detector_id
(DetectorId)
–
The unique ID of the GuardDuty detector associated with this trusted entity set.
-
trusted_entity_set_id
(String)
–
The unique ID that helps GuardDuty identify the trusted entity set.
Raises:
Source code in docs_src/capo_guardduty/_services/async_guard_duty.py
| async def get_trusted_entity_set(
self,
detector_id: "capo_guardduty.types.detector_id.DetectorId",
trusted_entity_set_id: "capo_guardduty.types.string.String",
*,
config_overrides: Optional[AsyncGuardDutyClientConfig] = None,
) -> "capo_guardduty.types.get_trusted_entity_set_response.GetTrustedEntitySetResponse":
"""<p>Retrieves the trusted entity set associated with the specified <code>trustedEntitySetId</code>.</p>
Args:
detector_id: <p>The unique ID of the GuardDuty detector associated with this trusted entity set.</p>
trusted_entity_set_id: <p>The unique ID that helps GuardDuty identify the trusted entity set.</p>
Raises:
capo_guardduty.errors.bad_request_exception.BadRequestException: <p>A bad request exception object.</p>
capo_guardduty.errors.internal_server_error_exception.InternalServerErrorException: <p>An internal server error exception object.</p>
capo_guardduty.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_guardduty.types.get_trusted_entity_set_request.GetTrustedEntitySetRequest]",
) -> AsyncOperationResponse[
"capo_guardduty.types.get_trusted_entity_set_response.GetTrustedEntitySetResponse"
]:
import capo_guardduty._operations.guard_duty_api_service.get_trusted_entity_set
(
output,
http_response,
) = await capo_guardduty._operations.guard_duty_api_service.get_trusted_entity_set.async_get_trusted_entity_set(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetTrustedEntitySet")
)
input_: capo_guardduty.types.get_trusted_entity_set_request.GetTrustedEntitySetRequest = {
"detector_id": detector_id,
"trusted_entity_set_id": trusted_entity_set_id,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|