list_connector_scan_configurations
¶
list_connector_scan_configurations(
*,
config_overrides: Optional[Inspector2ClientConfig] = None,
aws_config_connector_arns: Optional[AwsConfigConnectorArnList] = None,
max_results: Optional[ListConnectorScanConfigurationsMaxResults] = None,
next_token: Optional[ConnectorNextToken] = None,
) -> ListConnectorScanConfigurationsResponse
Lists scan configurations for Amazon Web Services Config connectors. Results are paginated. Use the nextToken parameter to retrieve the next page of results.
Parameters:
-
aws_config_connector_arns(Optional[AwsConfigConnectorArnList], default:None) –The list of Amazon Web Services Config connector ARNs to filter results.
-
max_results(Optional[ListConnectorScanConfigurationsMaxResults], default:None) –The maximum number of results to return in a single call. Valid range is 1 to 50. To retrieve the remaining results, make another request with the
nextTokenvalue returned from this request. -
next_token(Optional[ConnectorNextToken], default:None) –A token to use for paginating results. Set this value to null for the first request. For subsequent calls, use the
nextTokenvalue returned from the previous request.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
For
Enable, you receive this error if you attempt to use a feature in an unsupported Amazon Web Services Region. -
InternalServerException–The request has failed due to an internal failure of the Amazon Inspector service.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The request has failed validation due to missing required fields or having invalid inputs.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
List scan configurations for a specific AWS Config connector
>>> client.list_connector_scan_configurations(aws_config_connector_arns=['arn:aws:config:us-east-1:123456789012:connector/azure/a7bc5463-04ce-4b52-901e-f26f7292a4a7/2fbed4bd-5b95-4947-a751-8defc76ecdae'], max_results=10)
Source code in docs_src/capo_inspector2/_services/inspector2.py
3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 | |