Deletes an Amazon Web Services Migration Hub Refactor Spaces service.
Parameters:
-
environment_identifier
(EnvironmentId)
–
The ID of the environment that the service is in.
-
application_identifier
(ApplicationId)
–
Deletes a Refactor Spaces service.
The RefactorSpacesSecurityGroup security group must be removed from all Amazon Web Services resources in the virtual private cloud (VPC) prior to deleting a service with a URL endpoint in a VPC.
-
service_identifier
(ServiceId)
–
The ID of the service to delete.
Raises:
Source code in docs_src/capo_migration_hub_refactor_spaces/_services/async_migration_hub_refactor_spaces.py
| async def delete_service(
self,
environment_identifier: "capo_migration_hub_refactor_spaces.types.environment_id.EnvironmentId",
application_identifier: "capo_migration_hub_refactor_spaces.types.application_id.ApplicationId",
service_identifier: "capo_migration_hub_refactor_spaces.types.service_id.ServiceId",
*,
config_overrides: Optional[AsyncMigrationHubRefactorSpacesClientConfig] = None,
) -> "capo_migration_hub_refactor_spaces.types.delete_service_response.DeleteServiceResponse":
"""<p>Deletes an Amazon Web Services Migration Hub Refactor Spaces service. </p>
Args:
environment_identifier: <p>The ID of the environment that the service is in.</p>
application_identifier: <p>Deletes a Refactor Spaces service.</p> <note> <p>The <code>RefactorSpacesSecurityGroup</code> security group must be removed from all Amazon Web Services resources in the virtual private cloud (VPC) prior to deleting a service with a URL endpoint in a VPC.</p> </note>
service_identifier: <p>The ID of the service to delete.</p>
Raises:
capo_migration_hub_refactor_spaces.errors.access_denied_exception.AccessDeniedException: <p>The user does not have sufficient access to perform this action. </p>
capo_migration_hub_refactor_spaces.errors.conflict_exception.ConflictException: <p>Updating or deleting a resource can cause an inconsistent state.</p>
capo_migration_hub_refactor_spaces.errors.internal_server_exception.InternalServerException: <p>An unexpected error occurred while processing the request.</p>
capo_migration_hub_refactor_spaces.errors.resource_not_found_exception.ResourceNotFoundException: <p>The request references a resource that does not exist. </p>
capo_migration_hub_refactor_spaces.errors.throttling_exception.ThrottlingException: <p>Request was denied because the request was throttled. </p>
capo_migration_hub_refactor_spaces.errors.validation_exception.ValidationException: <p>The input does not satisfy the constraints specified by an Amazon Web Service. </p>
capo_migration_hub_refactor_spaces.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_migration_hub_refactor_spaces.types.delete_service_request.DeleteServiceRequest]",
) -> AsyncOperationResponse[
"capo_migration_hub_refactor_spaces.types.delete_service_response.DeleteServiceResponse"
]:
import capo_migration_hub_refactor_spaces._operations.refactor_spaces.delete_service
(
output,
http_response,
) = await capo_migration_hub_refactor_spaces._operations.refactor_spaces.delete_service.async_delete_service(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteService")
)
input_: capo_migration_hub_refactor_spaces.types.delete_service_request.DeleteServiceRequest = {
"environment_identifier": environment_identifier,
"application_identifier": application_identifier,
"service_identifier": service_identifier,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|