update_integration
async
¶
update_integration(
identifier: IntegrationIdentifier,
*,
config_overrides: Optional[AsyncCloudWatchOmniClientConfig] = 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.
>>> await client.update_integration(identifier={'integrationId': 'a1b2c3d4-5e6f-4a3b-8c9d-0e1f2a3b4c5d'}, integration_attributes={'notificationChannel': 'ops-oncall'})
Source code in docs_src/capo_cloudwatchomni/_services/async_cloud_watch_omni.py
4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 | |