Skip to content

disable_hosted_zone_dnssec

disable_hosted_zone_dnssec(
    hosted_zone_id: ResourceId,
    *,
    config_overrides: Optional[Route53ClientConfig] = None,
) -> DisableHostedZoneDNSSECResponse

Disables DNSSEC signing in a specific hosted zone. This action does not deactivate any key-signing keys (KSKs) that are active 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/route53.py
def disable_hosted_zone_dnssec(
    self,
    hosted_zone_id: "capo_route_53.types.resource_id.ResourceId",
    *,
    config_overrides: Optional[Route53ClientConfig] = None,
) -> "capo_route_53.types.disable_hosted_zone_dnssec_response.DisableHostedZoneDNSSECResponse":
    """<p>Disables DNSSEC signing in a specific hosted zone. This action does not deactivate any key-signing keys (KSKs) that are active 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.concurrent_modification.ConcurrentModification: <p>Another user submitted a request to create, update, or delete the object at the same time that you did. Retry the request. </p>
        capo_route_53.errors.dnssec_not_found.DNSSECNotFound: <p>The hosted zone doesn't have any DNSSEC resources.</p>
        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.invalid_key_signing_key_status.InvalidKeySigningKeyStatus: <p>The key-signing key (KSK) status isn't valid or another KSK has the status <code>INTERNAL_FAILURE</code>.</p>
        capo_route_53.errors.invalid_kms_arn.InvalidKMSArn: <p>The KeyManagementServiceArn that you specified isn't valid to use with DNSSEC signing.</p>
        capo_route_53.errors.key_signing_key_in_parent_ds_record.KeySigningKeyInParentDSRecord: <p>The key-signing key (KSK) is specified in a parent DS record.</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.
    """

    def _handler(
        req: "OperationRequest[capo_route_53.types.disable_hosted_zone_dnssec_request.DisableHostedZoneDNSSECRequest]",
    ) -> OperationResponse[
        "capo_route_53.types.disable_hosted_zone_dnssec_response.DisableHostedZoneDNSSECResponse"
    ]:
        import capo_route_53._operations.aws_dns_v20130401.disable_hosted_zone_dnssec

        output, http_response = (
            capo_route_53._operations.aws_dns_v20130401.disable_hosted_zone_dnssec.disable_hosted_zone_dnssec(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DisableHostedZoneDNSSEC")
    )
    input_: capo_route_53.types.disable_hosted_zone_dnssec_request.DisableHostedZoneDNSSECRequest = {
        "hosted_zone_id": hosted_zone_id
    }

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