Skip to content

get_dnssec async

get_dnssec(
    hosted_zone_id: ResourceId,
    *,
    config_overrides: Optional[AsyncRoute53ClientConfig] = None,
) -> GetDNSSECResponse

Returns information about DNSSEC for a specific hosted zone, including the key-signing keys (KSKs) in the hosted zone.

Parameters:

  • hosted_zone_id (ResourceId) –

    A unique string used to identify a hosted zone.

Raises:

Source code in docs_src/capo_route_53/_services/async_route53.py
async def get_dnssec(
    self,
    hosted_zone_id: "capo_route_53.types.resource_id.ResourceId",
    *,
    config_overrides: Optional[AsyncRoute53ClientConfig] = None,
) -> "capo_route_53.types.get_dnssec_response.GetDNSSECResponse":
    """<p>Returns information about DNSSEC for a specific hosted zone, including the key-signing keys (KSKs) in the hosted zone.</p>

    Args:
        hosted_zone_id: <p>A unique string used to identify a hosted zone.</p>

    Raises:
        capo_route_53.errors.invalid_argument.InvalidArgument: <p>Parameter name is not valid.</p>
        capo_route_53.errors.invalid_input.InvalidInput: <p>The input is not valid.</p>
        capo_route_53.errors.no_such_hosted_zone.NoSuchHostedZone: <p>No hosted zone exists with the ID that you specified.</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_dnssec_request.GetDNSSECRequest]",
    ) -> AsyncOperationResponse[
        "capo_route_53.types.get_dnssec_response.GetDNSSECResponse"
    ]:
        import capo_route_53._operations.aws_dns_v20130401.get_dnssec

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetDNSSEC")
    )
    input_: capo_route_53.types.get_dnssec_request.GetDNSSECRequest = {
        "hosted_zone_id": hosted_zone_id
    }

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