Updates and persists a DataIntegrationAssociation resource.
Updating a DataIntegrationAssociation with ExecutionConfiguration will rerun the on-demand job.
Parameters:
-
data_integration_identifier
(Identifier)
–
A unique identifier for the DataIntegration.
-
data_integration_association_identifier
(Identifier)
–
A unique identifier. of the DataIntegrationAssociation resource
-
execution_configuration
(ExecutionConfiguration)
–
The configuration for how the files should be pulled from the source.
Raises:
Source code in docs_src/capo_appintegrations/_services/async_app_integrations.py
| async def update_data_integration_association(
self,
data_integration_identifier: "capo_appintegrations.types.identifier.Identifier",
data_integration_association_identifier: "capo_appintegrations.types.identifier.Identifier",
execution_configuration: "capo_appintegrations.types.execution_configuration.ExecutionConfiguration",
*,
config_overrides: Optional[AsyncAppIntegrationsClientConfig] = None,
) -> "capo_appintegrations.types.update_data_integration_association_response.UpdateDataIntegrationAssociationResponse":
"""<p>Updates and persists a DataIntegrationAssociation resource.</p> <note> <p> Updating a DataIntegrationAssociation with ExecutionConfiguration will rerun the on-demand job. </p> </note>
Args:
data_integration_identifier: <p>A unique identifier for the DataIntegration.</p>
data_integration_association_identifier: <p>A unique identifier. of the DataIntegrationAssociation resource</p>
execution_configuration: <p>The configuration for how the files should be pulled from the source.</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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_appintegrations.types.update_data_integration_association_request.UpdateDataIntegrationAssociationRequest]",
) -> AsyncOperationResponse[
"capo_appintegrations.types.update_data_integration_association_response.UpdateDataIntegrationAssociationResponse"
]:
import capo_appintegrations._operations.amazon_app_integration_service.update_data_integration_association
(
output,
http_response,
) = await capo_appintegrations._operations.amazon_app_integration_service.update_data_integration_association.async_update_data_integration_association(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateDataIntegrationAssociation")
)
input_: capo_appintegrations.types.update_data_integration_association_request.UpdateDataIntegrationAssociationRequest = {
"data_integration_identifier": data_integration_identifier,
"data_integration_association_identifier": data_integration_association_identifier,
"execution_configuration": execution_configuration,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|