Lists import file enrichment jobs with optional filtering by job IDs.
Parameters:
Raises:
Examples:
Sample ListImportFileEnrichments call
>>> client.list_import_file_enrichments(filters={'jobIDs': ['01234567-abcd-abcd-efab-0123456789ab']}, max_results=10)
Source code in docs_src/capo_mgn/_services/mgn.py
| def list_import_file_enrichments(
self,
*,
config_overrides: Optional[mgnClientConfig] = None,
filters: Optional[
"capo_mgn.types.list_import_file_enrichments_filters.ListImportFileEnrichmentsFilters"
] = None,
max_results: Optional["capo_mgn.types.max_results_type.MaxResultsType"] = None,
next_token: Optional["capo_mgn.types.pagination_token.PaginationToken"] = None,
) -> "capo_mgn.types.list_import_file_enrichments_response.ListImportFileEnrichmentsResponse":
"""<p>Lists import file enrichment jobs with optional filtering by job IDs.</p>
Args:
filters: <p>Filters to apply when listing import file enrichment jobs.</p>
max_results: <p>The maximum number of results to return in a single call.</p>
next_token: <p>The token for the next page of results.</p>
Raises:
capo_mgn.errors.validation_exception.ValidationException: <p>Validate exception.</p>
capo_mgn.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
Sample ListImportFileEnrichments call
>>> client.list_import_file_enrichments(filters={'jobIDs': ['01234567-abcd-abcd-efab-0123456789ab']}, max_results=10)
"""
def _handler(
req: "OperationRequest[capo_mgn.types.list_import_file_enrichments_request.ListImportFileEnrichmentsRequest]",
) -> OperationResponse[
"capo_mgn.types.list_import_file_enrichments_response.ListImportFileEnrichmentsResponse"
]:
import capo_mgn._operations.application_migration_service.list_import_file_enrichments
output, http_response = (
capo_mgn._operations.application_migration_service.list_import_file_enrichments.list_import_file_enrichments(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListImportFileEnrichments")
)
input_: capo_mgn.types.list_import_file_enrichments_request.ListImportFileEnrichmentsRequest = {}
if filters is not None:
input_["filters"] = filters
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|