update_integration
¶
update_integration(
identifier: IntegrationIdentifier,
*,
config_overrides: Optional[CloudWatchOmniClientConfig] = None,
credential: Optional[IntegrationCredential] = None,
integration_attributes: Optional[StringMap] = None,
role_arn: Optional[str] = None,
) -> UpdateIntegrationOutput
Updates an existing integration, identified by its id, ARN, or name. Only the fields you provide are changed.
Parameters:
-
identifier(IntegrationIdentifier) –Identifies the integration to update — exactly one of integrationId, integrationArn, or integrationName.
-
credential(Optional[IntegrationCredential], default:None) –The replacement credential used to authenticate with the provider.
-
integration_attributes(Optional[StringMap], default:None) –The provider-specific attributes to associate with the integration.
-
role_arn(Optional[str], default:None) –The Amazon Resource Name of the IAM role assumed to access the integration.
Raises:
-
AccessDeniedException–The caller is not authorized to perform this action.
-
InternalServerException–An unexpected error occurred while processing the request.
-
ResourceNotFoundException–The specified resource does not exist.
-
ThrottlingException–The request was throttled due to exceeding the allowed request rate.
-
ValidationException–A parameter is specified incorrectly.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Update an integration's attributes The following example replaces the provider-specific attributes of the integration identified by its id. Payloads are shown as JSON; on the wire they are CBOR-encoded.
>>> client.update_integration(identifier={'integrationId': 'a1b2c3d4-5e6f-4a3b-8c9d-0e1f2a3b4c5d'}, integration_attributes={'notificationChannel': 'ops-oncall'})
Source code in docs_src/capo_cloudwatchomni/_services/cloud_watch_omni.py
5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 | |