create_telemetry_rule
¶
create_telemetry_rule(
rule_name: RuleName,
rule: TelemetryRule,
*,
config_overrides: Optional[ObservabilityAdminClientConfig] = None,
tags: Optional[TagMapInput] = None,
) -> CreateTelemetryRuleOutput
Creates a telemetry rule that defines how telemetry should be configured for Amazon Web Services resources in your account. The rule specifies which resources should have telemetry enabled and how that telemetry data should be collected based on resource type, telemetry type, and selection criteria.
Parameters:
-
rule_name(RuleName) –A unique name for the telemetry rule being created.
-
rule(TelemetryRule) –The configuration details for the telemetry rule, including the resource type, telemetry type, destination configuration, and selection criteria for which resources the rule applies to.
-
tags(Optional[TagMapInput], default:None) –The key-value pairs to associate with the telemetry rule resource for categorization and management purposes.
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.
-
ServiceQuotaExceededException–The requested operation would exceed the allowed quota for the specified resource type.
-
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.