Deletes the DataIntegration. Only DataIntegrations that don't have any DataIntegrationAssociations can be deleted. Deleting a DataIntegration also deletes the underlying Amazon AppFlow flow and service linked role.
You cannot create a DataIntegration association for a DataIntegration that has been previously associated. Use a different DataIntegration, or recreate the DataIntegration using the CreateDataIntegration API.
Parameters:
-
data_integration_identifier
(Identifier)
–
A unique identifier for the DataIntegration.
Raises:
Source code in docs_src/capo_appintegrations/_services/app_integrations.py
| def delete_data_integration(
self,
data_integration_identifier: "capo_appintegrations.types.identifier.Identifier",
*,
config_overrides: Optional[AppIntegrationsClientConfig] = None,
) -> "capo_appintegrations.types.delete_data_integration_response.DeleteDataIntegrationResponse":
"""<p>Deletes the DataIntegration. Only DataIntegrations that don't have any DataIntegrationAssociations can be deleted. Deleting a DataIntegration also deletes the underlying Amazon AppFlow flow and service linked role. </p> <note> <p>You cannot create a DataIntegration association for a DataIntegration that has been previously associated. Use a different DataIntegration, or recreate the DataIntegration using the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a> API.</p> </note>
Args:
data_integration_identifier: <p>A unique identifier for the DataIntegration.</p>
Raises:
capo_appintegrations.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
capo_appintegrations.errors.internal_service_error.InternalServiceError: <p>Request processing failed due to an error or failure with the service.</p>
capo_appintegrations.errors.invalid_request_exception.InvalidRequestException: <p>The request is not valid. </p>
capo_appintegrations.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
capo_appintegrations.errors.throttling_exception.ThrottlingException: <p>The throttling limit has been exceeded.</p>
capo_appintegrations.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_appintegrations.types.delete_data_integration_request.DeleteDataIntegrationRequest]",
) -> OperationResponse[
"capo_appintegrations.types.delete_data_integration_response.DeleteDataIntegrationResponse"
]:
import capo_appintegrations._operations.amazon_app_integration_service.delete_data_integration
output, http_response = (
capo_appintegrations._operations.amazon_app_integration_service.delete_data_integration.delete_data_integration(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteDataIntegration")
)
input_: capo_appintegrations.types.delete_data_integration_request.DeleteDataIntegrationRequest = {
"data_integration_identifier": data_integration_identifier
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|