Skip to content

list_landing_zone_operations async

list_landing_zone_operations(
    *,
    config_overrides: Optional[AsyncControlTowerClientConfig] = None,
    filter: Optional[LandingZoneOperationFilter] = None,
    next_token: Optional[str] = None,
    max_results: Optional[ListLandingZoneOperationsMaxResults] = None,
) -> ListLandingZoneOperationsOutput

Lists all landing zone operations from the past 90 days. Results are sorted by time, with the most recent operation first.

Parameters:

Raises:

Source code in docs_src/capo_controltower/_services/async_control_tower.py
async def list_landing_zone_operations(
    self,
    *,
    config_overrides: Optional[AsyncControlTowerClientConfig] = None,
    filter: Optional[
        "capo_controltower.types.landing_zone_operation_filter.LandingZoneOperationFilter"
    ] = None,
    next_token: Optional[str] = None,
    max_results: Optional[
        "capo_controltower.types.list_landing_zone_operations_max_results.ListLandingZoneOperationsMaxResults"
    ] = None,
) -> "capo_controltower.types.list_landing_zone_operations_output.ListLandingZoneOperationsOutput":
    """<p>Lists all landing zone operations from the past 90 days. Results are sorted by time, with the most recent operation first.</p>

    Args:
        filter: <p>An input filter for the <code>ListLandingZoneOperations</code> API that lets you select the types of landing zone operations to view.</p>
        next_token: <p>The token to continue the list from a previous API call with the same parameters.</p>
        max_results: <p>How many results to return per API call.</p>

    Raises:
        capo_controltower.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_controltower.errors.internal_server_exception.InternalServerException: <p>An unexpected error occurred during processing of a request.</p>
        capo_controltower.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_controltower.errors.validation_exception.ValidationException: <p>The input does not satisfy the constraints specified by an Amazon Web Services service.</p>
        capo_controltower.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_controltower.types.list_landing_zone_operations_input.ListLandingZoneOperationsInput]",
    ) -> AsyncOperationResponse[
        "capo_controltower.types.list_landing_zone_operations_output.ListLandingZoneOperationsOutput"
    ]:
        import capo_controltower._operations.aws_control_tower_apis.list_landing_zone_operations

        (
            output,
            http_response,
        ) = await capo_controltower._operations.aws_control_tower_apis.list_landing_zone_operations.async_list_landing_zone_operations(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListLandingZoneOperations")
    )
    input_: capo_controltower.types.list_landing_zone_operations_input.ListLandingZoneOperationsInput = {}
    if filter is not None:
        input_["filter"] = filter
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output