Retrieves a signed URL you can use to configure DNS for a custom domain through a supported registrar.
Parameters:
Raises:
Source code in docs_src/capo_amplifygen3/_services/async_amplify_gen3.py
| async def get_domain_connect_url(
self,
app_name: "capo_amplifygen3.types.app_name.AppName",
domain_name: "capo_amplifygen3.types.custom_domain_name.CustomDomainName",
*,
config_overrides: Optional[AsyncAmplifyGen3ClientConfig] = None,
callback_url: Optional[
"capo_amplifygen3.types.domain_connect_callback_url.DomainConnectCallbackUrl"
] = None,
) -> "capo_amplifygen3.types.get_domain_connect_url_response.GetDomainConnectUrlResponse":
"""<p>Retrieves a signed URL you can use to configure DNS for a custom domain through a supported registrar.</p>
Args:
app_name: <p>The name of the app.</p>
domain_name: <p>The domain name.</p>
callback_url: <p>The URL to return to after the registrar setup completes.</p>
Raises:
capo_amplifygen3.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient permissions to perform this action.</p>
capo_amplifygen3.errors.internal_server_exception.InternalServerException: <p>An internal error occurred. Retry the request.</p>
capo_amplifygen3.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource was not found.</p>
capo_amplifygen3.errors.throttling_exception.ThrottlingException: <p>The request was denied because the request rate exceeds the allowed limit.</p>
capo_amplifygen3.errors.validation_exception.ValidationException: <p>The request contains invalid parameters or is otherwise malformed.</p>
capo_amplifygen3.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_amplifygen3.types.get_domain_connect_url_request.GetDomainConnectUrlRequest]",
) -> AsyncOperationResponse[
"capo_amplifygen3.types.get_domain_connect_url_response.GetDomainConnectUrlResponse"
]:
import capo_amplifygen3._operations.omega.get_domain_connect_url
(
output,
http_response,
) = await capo_amplifygen3._operations.omega.get_domain_connect_url.async_get_domain_connect_url(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetDomainConnectUrl")
)
input_: capo_amplifygen3.types.get_domain_connect_url_request.GetDomainConnectUrlRequest = {
"app_name": app_name,
"domain_name": domain_name,
}
if callback_url is not None:
input_["callback_url"] = callback_url
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|