Skip to content

get_on_cluster_app_ui_presigned_url async

get_on_cluster_app_ui_presigned_url(
    *,
    config_overrides: Optional[AsyncEMRClientConfig] = None,
    cluster_id: Optional[XmlStringMaxLen256] = None,
    on_cluster_app_ui_type: Optional[OnClusterAppUIType] = None,
    application_id: Optional[XmlStringMaxLen256] = None,
    dry_run: Optional[BooleanObject] = None,
    execution_role_arn: Optional[ArnType] = None,
) -> GetOnClusterAppUIPresignedURLOutput

The presigned URL properties for the cluster's application user interface.

Parameters:

  • cluster_id (Optional[XmlStringMaxLen256], default: None ) –

    The cluster ID associated with the cluster's application user interface presigned URL.

  • on_cluster_app_ui_type (Optional[OnClusterAppUIType], default: None ) –

    The application UI type associated with the cluster's application user interface presigned URL.

  • application_id (Optional[XmlStringMaxLen256], default: None ) –

    The application ID associated with the cluster's application user interface presigned URL.

  • dry_run (Optional[BooleanObject], default: None ) –

    Determines if the user interface presigned URL is for a dry run.

  • execution_role_arn (Optional[ArnType], default: None ) –

    The execution role ARN associated with the cluster's application user interface presigned URL.

Raises:

  • InternalServerError –

    Indicates that an error occurred while processing the request and that the request was not completed.

  • InvalidRequestException –

    This exception occurs when there is something wrong with user input.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_emr/_services/async_emr.py
async def get_on_cluster_app_ui_presigned_url(
    self,
    *,
    config_overrides: Optional[AsyncEMRClientConfig] = None,
    cluster_id: Optional[
        "capo_emr.types.xml_string_max_len256.XmlStringMaxLen256"
    ] = None,
    on_cluster_app_ui_type: Optional[
        "capo_emr.types.on_cluster_app_ui_type.OnClusterAppUIType"
    ] = None,
    application_id: Optional[
        "capo_emr.types.xml_string_max_len256.XmlStringMaxLen256"
    ] = None,
    dry_run: Optional["capo_emr.types.boolean_object.BooleanObject"] = None,
    execution_role_arn: Optional["capo_emr.types.arn_type.ArnType"] = None,
) -> "capo_emr.types.get_on_cluster_app_ui_presigned_url_output.GetOnClusterAppUIPresignedURLOutput":
    """<p>The presigned URL properties for the cluster's application user interface.</p>

    Args:
        cluster_id: <p>The cluster ID associated with the cluster's application user interface presigned URL.</p>
        on_cluster_app_ui_type: <p>The application UI type associated with the cluster's application user interface presigned URL.</p>
        application_id: <p>The application ID associated with the cluster's application user interface presigned URL.</p>
        dry_run: <p>Determines if the user interface presigned URL is for a dry run.</p>
        execution_role_arn: <p>The execution role ARN associated with the cluster's application user interface presigned URL.</p>

    Raises:
        capo_emr.errors.internal_server_error.InternalServerError: <p>Indicates that an error occurred while processing the request and that the request was not completed.</p>
        capo_emr.errors.invalid_request_exception.InvalidRequestException: <p>This exception occurs when there is something wrong with user input.</p>
        capo_emr.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_emr.types.get_on_cluster_app_ui_presigned_url_input.GetOnClusterAppUIPresignedURLInput]",
    ) -> AsyncOperationResponse[
        "capo_emr.types.get_on_cluster_app_ui_presigned_url_output.GetOnClusterAppUIPresignedURLOutput"
    ]:
        import capo_emr._operations.elastic_map_reduce.get_on_cluster_app_ui_presigned_url

        (
            output,
            http_response,
        ) = await capo_emr._operations.elastic_map_reduce.get_on_cluster_app_ui_presigned_url.async_get_on_cluster_app_ui_presigned_url(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetOnClusterAppUIPresignedURL")
    )
    input_: capo_emr.types.get_on_cluster_app_ui_presigned_url_input.GetOnClusterAppUIPresignedURLInput = {}
    if cluster_id is not None:
        input_["cluster_id"] = cluster_id
    if on_cluster_app_ui_type is not None:
        input_["on_cluster_app_ui_type"] = on_cluster_app_ui_type
    if application_id is not None:
        input_["application_id"] = application_id
    if dry_run is not None:
        input_["dry_run"] = dry_run
    if execution_role_arn is not None:
        input_["execution_role_arn"] = execution_role_arn

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