Lists the operations performed by AWS Systems Manager for SAP.
Parameters:
-
application_id
(ApplicationId)
–
The ID of the application.
-
max_results
(Optional[MaxResults], default:
None
)
–
The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. If you do not specify a value for MaxResults, the request returns 50 items per page by default.
-
next_token
(Optional[NextToken], default:
None
)
–
The token for the next page of results.
-
filters
(Optional[FilterList], default:
None
)
–
The filters of an operation.
Raises:
Source code in docs_src/capo_ssm_sap/_services/ssm_sap.py
| def list_operations(
self,
application_id: "capo_ssm_sap.types.application_id.ApplicationId",
*,
config_overrides: Optional[SsmSapClientConfig] = None,
max_results: Optional["capo_ssm_sap.types.max_results.MaxResults"] = None,
next_token: Optional["capo_ssm_sap.types.next_token.NextToken"] = None,
filters: Optional["capo_ssm_sap.types.filter_list.FilterList"] = None,
) -> "capo_ssm_sap.types.list_operations_output.ListOperationsOutput":
"""<p>Lists the operations performed by AWS Systems Manager for SAP.</p>
Args:
application_id: <p>The ID of the application.</p>
max_results: <p>The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value. If you do not specify a value for MaxResults, the request returns 50 items per page by default.</p>
next_token: <p>The token for the next page of results. </p>
filters: <p>The filters of an operation.</p>
Raises:
capo_ssm_sap.errors.internal_server_exception.InternalServerException: <p>An internal error has occurred.</p>
capo_ssm_sap.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an AWS service. </p>
capo_ssm_sap.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_ssm_sap.types.list_operations_input.ListOperationsInput]",
) -> OperationResponse[
"capo_ssm_sap.types.list_operations_output.ListOperationsOutput"
]:
import capo_ssm_sap._operations.ssm_sap.list_operations
output, http_response = (
capo_ssm_sap._operations.ssm_sap.list_operations.list_operations(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListOperations")
)
input_: capo_ssm_sap.types.list_operations_input.ListOperationsInput = {
"application_id": application_id
}
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
if filters is not None:
input_["filters"] = filters
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|