put_connector_telemetry_manifest
¶
put_connector_telemetry_manifest(
connector_identifier: ConnectorIdentifier,
manifest: TelemetryManifest,
*,
config_overrides: Optional[ObservabilityAdminClientConfig] = None,
expected_version: Optional[int] = None,
client_token: Optional[ClientToken] = None,
) -> PutConnectorTelemetryManifestOutput
Creates or replaces the telemetry manifest of a connector. The telemetry manifest declares which resources in your cloud provider to collect telemetry from and which telemetry types to collect. To avoid overwriting changes made by another caller, specify ExpectedVersion.
Parameters:
-
connector_identifier(ConnectorIdentifier) –The connector. Specify one of the following:
-
The Amazon Resource Name (ARN) of the connector
-
The ID of the connector
-
-
manifest(TelemetryManifest) –The telemetry manifest.
-
expected_version(Optional[int], default:None) –The version of the telemetry manifest that you expect to replace, as returned by
GetConnectorTelemetryManifest. Omit this value when you create the first telemetry manifest. If the value doesn't match the current version, the request fails with aConflictException. -
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the operation completes no more than one time. If you use an Amazon Web Services SDK, the SDK generates this value and reuses it on retries. If this token matches a previous request with the same telemetry manifest, the service returns the stored version without an error. If you use the same token with a different telemetry manifest, the service returns a
ValidationException. This operation is idempotent when you use the same token and parameters.
Raises:
-
AccessDeniedException–Indicates 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 for Amazon Web Services resources in the IAM user guide.
-
ConflictException–The requested operation conflicts with the current state of the specified resource or with another request.
-
InternalServerException–Indicates the request has failed to process because of an unknown server error, exception, or failure.
-
ResourceNotFoundException–The specified resource (such as a telemetry rule) could not be found.
-
TooManyRequestsException–The request throughput limit was exceeded.
-
ValidationException–Indicates input validation failed. Check your request parameters and retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_observabilityadmin/_services/observability_admin.py
2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 | |