Skip to content

enable_hosted_zone_dnssec

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

Enables DNSSEC signing in a specific 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 enable_hosted_zone_dnssec(
    self,
    hosted_zone_id: "capo_route_53.types.resource_id.ResourceId",
    *,
    config_overrides: Optional[Route53ClientConfig] = None,
) -> "capo_route_53.types.enable_hosted_zone_dnssec_response.EnableHostedZoneDNSSECResponse":
    """<p>Enables DNSSEC signing in a specific 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.hosted_zone_partially_delegated.HostedZonePartiallyDelegated: <p>The hosted zone nameservers don't match the parent nameservers. The hosted zone and parent must have the same nameservers.</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_with_active_status_not_found.KeySigningKeyWithActiveStatusNotFound: <p>A key-signing key (KSK) with <code>ACTIVE</code> status wasn't found.</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.enable_hosted_zone_dnssec_request.EnableHostedZoneDNSSECRequest]",
    ) -> OperationResponse[
        "capo_route_53.types.enable_hosted_zone_dnssec_response.EnableHostedZoneDNSSECResponse"
    ]:
        import capo_route_53._operations.aws_dns_v20130401.enable_hosted_zone_dnssec

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("EnableHostedZoneDNSSEC")
    )
    input_: capo_route_53.types.enable_hosted_zone_dnssec_request.EnableHostedZoneDNSSECRequest = {
        "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