Skip to content

verify_dns_configuration async

verify_dns_configuration(
    identifier: string,
    *,
    config_overrides: Optional[AsyncCloudFrontClientConfig] = None,
    domain: Optional[string] = None,
) -> VerifyDnsConfigurationResult

Verify the DNS configuration for your domain names. This API operation checks whether your domain name points to the correct routing endpoint of the connection group, such as d111111abcdef8.cloudfront.net. You can use this API operation to troubleshoot and resolve DNS configuration issues.

Parameters:

  • domain (Optional[string], default: None ) –

    The domain name that you're verifying.

  • identifier (string) –

    The identifier of the distribution tenant. You can specify the ARN, ID, or name of the distribution tenant.

Raises:

Source code in docs_src/capo_cloudfront/_services/async_cloud_front.py
async def verify_dns_configuration(
    self,
    identifier: "capo_cloudfront.types.string.string",
    *,
    config_overrides: Optional[AsyncCloudFrontClientConfig] = None,
    domain: Optional["capo_cloudfront.types.string.string"] = None,
) -> "capo_cloudfront.types.verify_dns_configuration_result.VerifyDnsConfigurationResult":
    """<p>Verify the DNS configuration for your domain names. This API operation checks whether your domain name points to the correct routing endpoint of the connection group, such as d111111abcdef8.cloudfront.net. You can use this API operation to troubleshoot and resolve DNS configuration issues.</p>

    Args:
        domain: <p>The domain name that you're verifying.</p>
        identifier: <p>The identifier of the distribution tenant. You can specify the ARN, ID, or name of the distribution tenant.</p>

    Raises:
        capo_cloudfront.errors.access_denied.AccessDenied: <p>Access denied.</p>
        capo_cloudfront.errors.entity_not_found.EntityNotFound: <p>The entity was not found.</p>
        capo_cloudfront.errors.invalid_argument.InvalidArgument: <p>An argument is invalid.</p>
        capo_cloudfront.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_cloudfront.types.verify_dns_configuration_request.VerifyDnsConfigurationRequest]",
    ) -> AsyncOperationResponse[
        "capo_cloudfront.types.verify_dns_configuration_result.VerifyDnsConfigurationResult"
    ]:
        import capo_cloudfront._operations.cloudfront2020_05_31.verify_dns_configuration

        (
            output,
            http_response,
        ) = await capo_cloudfront._operations.cloudfront2020_05_31.verify_dns_configuration.async_verify_dns_configuration(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("VerifyDnsConfiguration")
    )
    input_: capo_cloudfront.types.verify_dns_configuration_request.VerifyDnsConfigurationRequest = {
        "identifier": identifier
    }
    if domain is not None:
        input_["domain"] = domain

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