Enables or disables integration with a service that can be integrated with DevOps Guru. The one service that can be integrated with DevOps Guru is Amazon Web Services Systems Manager, which can be used to create an OpsItem for each generated insight.
Parameters:
-
service_integration
(UpdateServiceIntegrationConfig)
–
An IntegratedServiceConfig object used to specify the integrated service you want to update, and whether you want to update it to enabled or disabled.
Raises:
-
AccessDeniedException
–
You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access Management in the IAM User Guide.
-
ConflictException
–
An exception that is thrown when a conflict occurs.
-
InternalServerException
–
An internal failure in an Amazon service occurred.
-
ThrottlingException
–
The request was denied due to a request throttling.
-
ValidationException
–
Contains information about data passed in to a field during a request that is not valid.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_devops_guru/_services/dev_ops_guru.py
| def update_service_integration(
self,
service_integration: "capo_devops_guru.types.update_service_integration_config.UpdateServiceIntegrationConfig",
*,
config_overrides: Optional[DevOpsGuruClientConfig] = None,
) -> "capo_devops_guru.types.update_service_integration_response.UpdateServiceIntegrationResponse":
"""<p> Enables or disables integration with a service that can be integrated with DevOps Guru. The one service that can be integrated with DevOps Guru is Amazon Web Services Systems Manager, which can be used to create an OpsItem for each generated insight. </p>
Args:
service_integration: <p> An <code>IntegratedServiceConfig</code> object used to specify the integrated service you want to update, and whether you want to update it to enabled or disabled. </p>
Raises:
capo_devops_guru.errors.access_denied_exception.AccessDeniedException: <p> You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access Management</a> in the <i>IAM User Guide</i>. </p>
capo_devops_guru.errors.conflict_exception.ConflictException: <p> An exception that is thrown when a conflict occurs. </p>
capo_devops_guru.errors.internal_server_exception.InternalServerException: <p>An internal failure in an Amazon service occurred.</p>
capo_devops_guru.errors.throttling_exception.ThrottlingException: <p>The request was denied due to a request throttling.</p>
capo_devops_guru.errors.validation_exception.ValidationException: <p> Contains information about data passed in to a field during a request that is not valid. </p>
capo_devops_guru.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_devops_guru.types.update_service_integration_request.UpdateServiceIntegrationRequest]",
) -> OperationResponse[
"capo_devops_guru.types.update_service_integration_response.UpdateServiceIntegrationResponse"
]:
import capo_devops_guru._operations.capstone_control_plane_service.update_service_integration
output, http_response = (
capo_devops_guru._operations.capstone_control_plane_service.update_service_integration.update_service_integration(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateServiceIntegration")
)
input_: capo_devops_guru.types.update_service_integration_request.UpdateServiceIntegrationRequest = {
"service_integration": service_integration
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|