Skip to content

get_landing_zone_operation

get_landing_zone_operation(
    operation_identifier: OperationIdentifier,
    *,
    config_overrides: Optional[ControlTowerClientConfig] = None,
) -> GetLandingZoneOperationOutput

Returns the status of the specified landing zone operation. Details for an operation are available for 90 days.

Parameters:

  • operation_identifier (OperationIdentifier) –

    A unique identifier assigned to a landing zone operation.

Raises:

Source code in docs_src/capo_controltower/_services/control_tower.py
def get_landing_zone_operation(
    self,
    operation_identifier: "capo_controltower.types.operation_identifier.OperationIdentifier",
    *,
    config_overrides: Optional[ControlTowerClientConfig] = None,
) -> "capo_controltower.types.get_landing_zone_operation_output.GetLandingZoneOperationOutput":
    """<p>Returns the status of the specified landing zone operation. Details for an operation are available for 90 days.</p>

    Args:
        operation_identifier: <p>A unique identifier assigned to a landing zone operation.</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.resource_not_found_exception.ResourceNotFoundException: <p>The request references a resource that does not exist.</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.
    """

    def _handler(
        req: "OperationRequest[capo_controltower.types.get_landing_zone_operation_input.GetLandingZoneOperationInput]",
    ) -> OperationResponse[
        "capo_controltower.types.get_landing_zone_operation_output.GetLandingZoneOperationOutput"
    ]:
        import capo_controltower._operations.aws_control_tower_apis.get_landing_zone_operation

        output, http_response = (
            capo_controltower._operations.aws_control_tower_apis.get_landing_zone_operation.get_landing_zone_operation(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetLandingZoneOperation")
    )
    input_: capo_controltower.types.get_landing_zone_operation_input.GetLandingZoneOperationInput = {
        "operation_identifier": operation_identifier
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output