Skip to content

get_change async

get_change(
    id: ChangeId, *, config_overrides: Optional[AsyncRoute53ClientConfig] = None
) -> GetChangeResponse

Returns the current status of a change batch request. The status is one of the following values:

  • PENDING indicates that the changes in this request have not propagated to all Amazon Route 53 DNS servers managing the hosted zone. This is the initial status of all change batch requests.

  • INSYNC indicates that the changes have propagated to all Route 53 DNS servers managing the hosted zone.

Parameters:

  • id (ChangeId) –

    The ID of the change batch request. The value that you specify here is the value that ChangeResourceRecordSets returned in the Id element when you submitted the request.

Raises:

Source code in docs_src/capo_route_53/_services/async_route53.py
async def get_change(
    self,
    id: "capo_route_53.types.change_id.ChangeId",
    *,
    config_overrides: Optional[AsyncRoute53ClientConfig] = None,
) -> "capo_route_53.types.get_change_response.GetChangeResponse":
    """<p>Returns the current status of a change batch request. The status is one of the following values:</p> <ul> <li> <p> <code>PENDING</code> indicates that the changes in this request have not propagated to all Amazon Route 53 DNS servers managing the hosted zone. This is the initial status of all change batch requests.</p> </li> <li> <p> <code>INSYNC</code> indicates that the changes have propagated to all Route 53 DNS servers managing the hosted zone. </p> </li> </ul>

    Args:
        id: <p>The ID of the change batch request. The value that you specify here is the value that <code>ChangeResourceRecordSets</code> returned in the <code>Id</code> element when you submitted the request.</p>

    Raises:
        capo_route_53.errors.invalid_input.InvalidInput: <p>The input is not valid.</p>
        capo_route_53.errors.no_such_change.NoSuchChange: <p>A change with the specified change ID does not exist.</p>
        capo_route_53.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_route_53.types.get_change_request.GetChangeRequest]",
    ) -> AsyncOperationResponse[
        "capo_route_53.types.get_change_response.GetChangeResponse"
    ]:
        import capo_route_53._operations.aws_dns_v20130401.get_change

        (
            output,
            http_response,
        ) = await capo_route_53._operations.aws_dns_v20130401.get_change.async_get_change(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetChange")
    )
    input_: capo_route_53.types.get_change_request.GetChangeRequest = {"id": id}

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