Deletes the specified Route 53 Profile. Before you can delete a profile, you must first disassociate it from all VPCs.
Parameters:
-
profile_id
(ResourceId)
–
The ID of the Profile that you want to delete.
Raises:
Source code in docs_src/capo_route53profiles/_services/async_route53_profiles.py
| async def delete_profile(
self,
profile_id: "capo_route53profiles.types.resource_id.ResourceId",
*,
config_overrides: Optional[AsyncRoute53ProfilesClientConfig] = None,
) -> "capo_route53profiles.types.delete_profile_response.DeleteProfileResponse":
"""<p> Deletes the specified Route 53 Profile. Before you can delete a profile, you must first disassociate it from all VPCs. </p>
Args:
profile_id: <p> The ID of the Profile that you want to delete. </p>
Raises:
capo_route53profiles.errors.access_denied_exception.AccessDeniedException: <p> The current account doesn't have the IAM permissions required to perform the specified operation. </p>
capo_route53profiles.errors.conflict_exception.ConflictException: <p> The request you submitted conflicts with an existing request. </p>
capo_route53profiles.errors.resource_not_found_exception.ResourceNotFoundException: <p> The resource you are associating is not found. </p>
capo_route53profiles.errors.throttling_exception.ThrottlingException: <p> The request was throttled. Try again in a few minutes. </p>
capo_route53profiles.errors.validation_exception.ValidationException: <p> You have provided an invalid command. </p>
capo_route53profiles.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_route53profiles.types.delete_profile_request.DeleteProfileRequest]",
) -> AsyncOperationResponse[
"capo_route53profiles.types.delete_profile_response.DeleteProfileResponse"
]:
import capo_route53profiles._operations.route53_profiles.delete_profile
(
output,
http_response,
) = await capo_route53profiles._operations.route53_profiles.delete_profile.async_delete_profile(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteProfile")
)
input_: capo_route53profiles.types.delete_profile_request.DeleteProfileRequest = {
"profile_id": profile_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|