Skip to content

describe_domain_change_progress async

describe_domain_change_progress(
    domain_name: DomainName,
    *,
    config_overrides: Optional[AsyncElasticsearchServiceClientConfig] = None,
    change_id: Optional[GUID] = None,
) -> DescribeDomainChangeProgressResponse

Returns information about the current blue/green deployment happening on a domain, including a change ID, status, and progress stages.

Parameters:

  • domain_name (DomainName) –

    The domain you want to get the progress information about.

  • change_id (Optional[GUID], default: None ) –

    The specific change ID for which you want to get progress information. This is an optional parameter. If omitted, the service returns information about the most recent configuration change.

Raises:

  • BaseException –

    An error occurred while processing the request.

  • InternalException –

    The request processing has failed because of an unknown error, exception or failure (the failure is internal to the service) . Gives http status code of 500.

  • ResourceNotFoundException –

    An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.

  • ValidationException –

    An exception for missing / invalid input fields. Gives http status code of 400.

  • UnknownServiceError –

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

Source code in docs_src/capo_elasticsearch_service/_services/async_elasticsearch_service.py
async def describe_domain_change_progress(
    self,
    domain_name: "capo_elasticsearch_service.types.domain_name.DomainName",
    *,
    config_overrides: Optional[AsyncElasticsearchServiceClientConfig] = None,
    change_id: Optional["capo_elasticsearch_service.types.guid.GUID"] = None,
) -> "capo_elasticsearch_service.types.describe_domain_change_progress_response.DescribeDomainChangeProgressResponse":
    """<p>Returns information about the current blue/green deployment happening on a domain, including a change ID, status, and progress stages.</p>

    Args:
        domain_name: <p>The domain you want to get the progress information about.</p>
        change_id: <p>The specific change ID for which you want to get progress information. This is an optional parameter. If omitted, the service returns information about the most recent configuration change. </p>

    Raises:
        capo_elasticsearch_service.errors.base_exception.BaseException: <p>An error occurred while processing the request.</p>
        capo_elasticsearch_service.errors.internal_exception.InternalException: <p>The request processing has failed because of an unknown error, exception or failure (the failure is internal to the service) . Gives http status code of 500.</p>
        capo_elasticsearch_service.errors.resource_not_found_exception.ResourceNotFoundException: <p>An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.</p>
        capo_elasticsearch_service.errors.validation_exception.ValidationException: <p>An exception for missing / invalid input fields. Gives http status code of 400.</p>
        capo_elasticsearch_service.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_elasticsearch_service.types.describe_domain_change_progress_request.DescribeDomainChangeProgressRequest]",
    ) -> AsyncOperationResponse[
        "capo_elasticsearch_service.types.describe_domain_change_progress_response.DescribeDomainChangeProgressResponse"
    ]:
        import capo_elasticsearch_service._operations.amazon_elasticsearch_service2015.describe_domain_change_progress

        (
            output,
            http_response,
        ) = await capo_elasticsearch_service._operations.amazon_elasticsearch_service2015.describe_domain_change_progress.async_describe_domain_change_progress(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeDomainChangeProgress")
    )
    input_: capo_elasticsearch_service.types.describe_domain_change_progress_request.DescribeDomainChangeProgressRequest = {
        "domain_name": domain_name
    }
    if change_id is not None:
        input_["change_id"] = change_id

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