Disassociate a custom domain name from an App Runner service.
Certificates tracking domain validity are associated with a custom domain and are stored in AWS Certificate Manager (ACM). These certificates aren't deleted as part of this action. App Runner delays certificate deletion for 30 days after a domain is disassociated from your service.
Parameters:
-
service_arn
(AppRunnerResourceArn)
–
The Amazon Resource Name (ARN) of the App Runner service that you want to disassociate a custom domain name from.
-
domain_name
(DomainName)
–
The domain name that you want to disassociate from the App Runner service.
Raises:
Source code in docs_src/capo_apprunner/_services/app_runner.py
| def disassociate_custom_domain(
self,
service_arn: "capo_apprunner.types.app_runner_resource_arn.AppRunnerResourceArn",
domain_name: "capo_apprunner.types.domain_name.DomainName",
*,
config_overrides: Optional[AppRunnerClientConfig] = None,
) -> "capo_apprunner.types.disassociate_custom_domain_response.DisassociateCustomDomainResponse":
"""<p>Disassociate a custom domain name from an App Runner service.</p> <p>Certificates tracking domain validity are associated with a custom domain and are stored in <a href="https://docs.aws.amazon.com/acm/latest/userguide">AWS Certificate Manager (ACM)</a>. These certificates aren't deleted as part of this action. App Runner delays certificate deletion for 30 days after a domain is disassociated from your service.</p>
Args:
service_arn: <p>The Amazon Resource Name (ARN) of the App Runner service that you want to disassociate a custom domain name from.</p>
domain_name: <p>The domain name that you want to disassociate from the App Runner service.</p>
Raises:
capo_apprunner.errors.internal_service_error_exception.InternalServiceErrorException: <p>An unexpected service exception occurred.</p>
capo_apprunner.errors.invalid_request_exception.InvalidRequestException: <p>One or more input parameters aren't valid. Refer to the API action's document page, correct the input parameters, and try the action again.</p>
capo_apprunner.errors.invalid_state_exception.InvalidStateException: <p>You can't perform this action when the resource is in its current state.</p>
capo_apprunner.errors.resource_not_found_exception.ResourceNotFoundException: <p>A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon Web Services account.</p>
capo_apprunner.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_apprunner.types.disassociate_custom_domain_request.DisassociateCustomDomainRequest]",
) -> OperationResponse[
"capo_apprunner.types.disassociate_custom_domain_response.DisassociateCustomDomainResponse"
]:
import capo_apprunner._operations.app_runner.disassociate_custom_domain
output, http_response = (
capo_apprunner._operations.app_runner.disassociate_custom_domain.disassociate_custom_domain(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DisassociateCustomDomain")
)
input_: capo_apprunner.types.disassociate_custom_domain_request.DisassociateCustomDomainRequest = {
"service_arn": service_arn,
"domain_name": domain_name,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|