put_connector_telemetry_manifest
async
¶
put_connector_telemetry_manifest(
connector_identifier: ConnectorIdentifier,
manifest: TelemetryManifest,
*,
config_overrides: Optional[AsyncObservabilityAdminClientConfig] = 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/async_observability_admin.py
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 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 | |