Skip to content

update_member_detectors async

update_member_detectors(
    detector_id: DetectorId,
    *,
    config_overrides: Optional[AsyncGuardDutyClientConfig] = None,
    account_ids: Optional[AccountIds] = None,
    data_sources: Optional[DataSourceConfigurations] = None,
    features: Optional[MemberFeaturesConfigurations] = None,
) -> UpdateMemberDetectorsResponse

Contains information on member accounts to be updated.

Specifying both EKS Runtime Monitoring (EKS_RUNTIME_MONITORING) and Runtime Monitoring (RUNTIME_MONITORING) will cause an error. You can add only one of these two features because Runtime Monitoring already includes the threat detection for Amazon EKS resources. For more information, see Runtime Monitoring.

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 administrator account.

    To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

  • account_ids (Optional[AccountIds], default: None ) –

    A list of member account IDs to be updated.

  • data_sources (Optional[DataSourceConfigurations], default: None ) –

    Describes which data sources will be updated.

  • features (Optional[MemberFeaturesConfigurations], default: None ) –

    A list of features that will be updated for the specified member accounts.

Raises:

Source code in docs_src/capo_guardduty/_services/async_guard_duty.py
async def update_member_detectors(
    self,
    detector_id: "capo_guardduty.types.detector_id.DetectorId",
    *,
    config_overrides: Optional[AsyncGuardDutyClientConfig] = None,
    account_ids: Optional["capo_guardduty.types.account_ids.AccountIds"] = None,
    data_sources: Optional[
        "capo_guardduty.types.data_source_configurations.DataSourceConfigurations"
    ] = None,
    features: Optional[
        "capo_guardduty.types.member_features_configurations.MemberFeaturesConfigurations"
    ] = None,
) -> "capo_guardduty.types.update_member_detectors_response.UpdateMemberDetectorsResponse":
    """<p>Contains information on member accounts to be updated.</p> <p>Specifying both EKS Runtime Monitoring (<code>EKS_RUNTIME_MONITORING</code>) and Runtime Monitoring (<code>RUNTIME_MONITORING</code>) will cause an error. You can add only one of these two features because Runtime Monitoring already includes the threat detection for Amazon EKS resources. For more information, see <a href="https://docs.aws.amazon.com/guardduty/latest/ug/runtime-monitoring.html">Runtime Monitoring</a>.</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 administrator account.</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>
        account_ids: <p>A list of member account IDs to be updated.</p>
        data_sources: <p>Describes which data sources will be updated.</p>
        features: <p>A list of features that will be updated for the specified member accounts.</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.update_member_detectors_request.UpdateMemberDetectorsRequest]",
    ) -> AsyncOperationResponse[
        "capo_guardduty.types.update_member_detectors_response.UpdateMemberDetectorsResponse"
    ]:
        import capo_guardduty._operations.guard_duty_api_service.update_member_detectors

        (
            output,
            http_response,
        ) = await capo_guardduty._operations.guard_duty_api_service.update_member_detectors.async_update_member_detectors(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateMemberDetectors")
    )
    input_: capo_guardduty.types.update_member_detectors_request.UpdateMemberDetectorsRequest = {
        "detector_id": detector_id
    }
    if account_ids is not None:
        input_["account_ids"] = account_ids
    if data_sources is not None:
        input_["data_sources"] = data_sources
    if features is not None:
        input_["features"] = features

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output