Lists the Malware Protection plan IDs associated with the protected resources in your Amazon Web Services account.
Parameters:
-
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. The default page size is 100 plans.
Raises:
Source code in docs_src/capo_guardduty/_services/async_guard_duty.py
| async def list_malware_protection_plans(
self,
*,
config_overrides: Optional[AsyncGuardDutyClientConfig] = None,
next_token: Optional["capo_guardduty.types.string.String"] = None,
) -> "capo_guardduty.types.list_malware_protection_plans_response.ListMalwareProtectionPlansResponse":
"""<p>Lists the Malware Protection plan IDs associated with the protected resources in your Amazon Web Services account.</p>
Args:
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 nextToken in the request with the value of <code>NextToken</code> from the previous response to continue listing data. The default page size is 100 plans.</p>
Raises:
capo_guardduty.errors.access_denied_exception.AccessDeniedException: <p>An access denied exception object.</p>
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.list_malware_protection_plans_request.ListMalwareProtectionPlansRequest]",
) -> AsyncOperationResponse[
"capo_guardduty.types.list_malware_protection_plans_response.ListMalwareProtectionPlansResponse"
]:
import capo_guardduty._operations.guard_duty_api_service.list_malware_protection_plans
(
output,
http_response,
) = await capo_guardduty._operations.guard_duty_api_service.list_malware_protection_plans.async_list_malware_protection_plans(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListMalwareProtectionPlans")
)
input_: capo_guardduty.types.list_malware_protection_plans_request.ListMalwareProtectionPlansRequest = {}
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
|