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/cloud_front.py
| def verify_dns_configuration(
self,
identifier: "capo_cloudfront.types.string.string",
*,
config_overrides: Optional[CloudFrontClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_cloudfront.types.verify_dns_configuration_request.VerifyDnsConfigurationRequest]",
) -> OperationResponse[
"capo_cloudfront.types.verify_dns_configuration_result.VerifyDnsConfigurationResult"
]:
import capo_cloudfront._operations.cloudfront2020_05_31.verify_dns_configuration
output, http_response = (
capo_cloudfront._operations.cloudfront2020_05_31.verify_dns_configuration.verify_dns_configuration(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|