Returns information about the account selected as the delegated administrator for GuardDuty.
There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.
Parameters:
-
detector_id
(DetectorId)
–
The detector ID of the delegated administrator for which you need to retrieve the information.
To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.
-
max_results
(Optional[MaxResults], default:
None
)
–
You can use this parameter to indicate the maximum number of items that you want in the response.
-
next_token
(Optional[String], default:
None
)
–
You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the list action. For subsequent calls to the action, fill nextToken in the request with the value of NextToken from the previous response to continue listing data.
Raises:
Source code in docs_src/capo_guardduty/_services/async_guard_duty.py
| async def describe_organization_configuration(
self,
detector_id: "capo_guardduty.types.detector_id.DetectorId",
*,
config_overrides: Optional[AsyncGuardDutyClientConfig] = None,
max_results: Optional["capo_guardduty.types.max_results.MaxResults"] = None,
next_token: Optional["capo_guardduty.types.string.String"] = None,
) -> "capo_guardduty.types.describe_organization_configuration_response.DescribeOrganizationConfigurationResponse":
"""<p>Returns information about the account selected as the delegated administrator for GuardDuty.</p> <p>There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see <a href="https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html">Regions and endpoints</a>.</p>
Args:
detector_id: <p>The detector ID of the delegated administrator for which you need to retrieve the information.</p> <p>To find the <code>detectorId</code> in the current Region, see the Settings page in the GuardDuty console, or run the <a href="https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html">ListDetectors</a> API.</p>
max_results: <p>You can use this parameter to indicate the maximum number of items that you want in the response.</p>
next_token: <p>You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the list action. For subsequent calls to the action, fill <code>nextToken</code> in the request with the value of <code>NextToken</code> from the previous response to continue listing data.</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.describe_organization_configuration_request.DescribeOrganizationConfigurationRequest]",
) -> AsyncOperationResponse[
"capo_guardduty.types.describe_organization_configuration_response.DescribeOrganizationConfigurationResponse"
]:
import capo_guardduty._operations.guard_duty_api_service.describe_organization_configuration
(
output,
http_response,
) = await capo_guardduty._operations.guard_duty_api_service.describe_organization_configuration.async_describe_organization_configuration(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeOrganizationConfiguration")
)
input_: capo_guardduty.types.describe_organization_configuration_request.DescribeOrganizationConfigurationRequest = {
"detector_id": detector_id
}
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|