Gets a list of the Amazon Web Services services from which Audit Manager can collect evidence.
Audit Manager defines which Amazon Web Services services are in scope for an assessment. Audit Manager infers this scope by examining the assessment’s controls and their data sources, and then mapping this information to one or more of the corresponding Amazon Web Services services that are in this list.
For information about why it's no longer possible to specify services in scope manually, see I can't edit the services in scope for my assessment in the Troubleshooting section of the Audit Manager user guide.
Raises:
-
AccessDeniedException
–
Your account isn't registered with Audit Manager. Check the delegated administrator setup on the Audit Manager settings page, and try again.
-
InternalServerException
–
An internal service error occurred during the processing of your request. Try again later.
-
ValidationException
–
The request has invalid or missing parameters.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_auditmanager/_services/audit_manager.py
| def get_services_in_scope(
self, *, config_overrides: Optional[AuditManagerClientConfig] = None
) -> "capo_auditmanager.types.get_services_in_scope_response.GetServicesInScopeResponse":
"""<p>Gets a list of the Amazon Web Services services from which Audit Manager can collect evidence. </p> <p>Audit Manager defines which Amazon Web Services services are in scope for an assessment. Audit Manager infers this scope by examining the assessment’s controls and their data sources, and then mapping this information to one or more of the corresponding Amazon Web Services services that are in this list.</p> <note> <p>For information about why it's no longer possible to specify services in scope manually, see <a href="https://docs.aws.amazon.com/audit-manager/latest/userguide/evidence-collection-issues.html#unable-to-edit-services">I can't edit the services in scope for my assessment</a> in the <i>Troubleshooting</i> section of the Audit Manager user guide.</p> </note>
Raises:
capo_auditmanager.errors.access_denied_exception.AccessDeniedException: <p> Your account isn't registered with Audit Manager. Check the delegated administrator setup on the Audit Manager settings page, and try again. </p>
capo_auditmanager.errors.internal_server_exception.InternalServerException: <p> An internal service error occurred during the processing of your request. Try again later. </p>
capo_auditmanager.errors.validation_exception.ValidationException: <p> The request has invalid or missing parameters. </p>
capo_auditmanager.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_auditmanager.types.get_services_in_scope_request.GetServicesInScopeRequest]",
) -> OperationResponse[
"capo_auditmanager.types.get_services_in_scope_response.GetServicesInScopeResponse"
]:
import capo_auditmanager._operations.bedrock_assessment_manager_lambda.get_services_in_scope
output, http_response = (
capo_auditmanager._operations.bedrock_assessment_manager_lambda.get_services_in_scope.get_services_in_scope(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetServicesInScope")
)
input_: capo_auditmanager.types.get_services_in_scope_request.GetServicesInScopeRequest = {}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|