Module Values.TelemetryRuleSource

Defines how telemetry should be configured for specific Amazon Web Services resources.

Sourcetype nonrec t = {
  1. resourceType : ResourceType.t option;
    (*

    The type of Amazon Web Services resource to configure telemetry for (e.g., "AWS::EC2::VPC", "AWS::EKS::Cluster", "AWS::WAFv2::WebACL").

    *)
  2. telemetryType : TelemetryType.t;
    (*

    The type of telemetry to collect (Logs, Metrics, or Traces).

    *)
  3. telemetrySourceTypes : TelemetrySourceTypes.t option;
    (*

    The specific telemetry source types to configure for the resource, such as VPC_FLOW_LOGS or EKS_AUDIT_LOGS. TelemetrySourceTypes must be correlated with the specific resource type.

    *)
  4. destinationConfiguration : TelemetryDestinationConfiguration.t option;
    (*

    Configuration specifying where and how the telemetry data should be delivered.

    *)
  5. scope : String_.t option;
    (*

    The organizational scope to which the rule applies, specified using accounts or organizational units.

    *)
  6. selectionCriteria : String_.t option;
    (*

    Criteria for selecting which resources the rule applies to, such as resource tags.

    *)
  7. allowFieldUpdates : Boolean.t option;
    (*

    If set to true, Amazon CloudWatch Observability Admin detects and remediates configuration drift in telemetry resources that it manages. For example, if a VPC flow log's format, traffic type, or aggregation interval no longer matches the rule's destination configuration, the flow log is replaced with one that matches. Only Observability Admin-managed resources are updated; customer-created resources are never modified. Currently supported for AWS::EC2::VPC resources (VPC flow logs).

    *)
  8. regions : Regions.t option;
    (*

    An optional list of Amazon Web Services Regions where this telemetry rule should be replicated. When specified, the rule is created in the home region and automatically replicated to all listed regions. Mutually exclusive with AllRegions.

    *)
  9. allRegions : AllRegions.t option;
    (*

    If set to true, the telemetry rule is replicated to all Amazon Web Services Regions where Amazon CloudWatch Observability Admin is available in the current partition. When new regions become available, the rule automatically replicates to them. Mutually exclusive with Regions.

    *)
}
Sourceval context_ : string
Sourceval make : ?resourceType:??? -> ?telemetrySourceTypes:??? -> ?destinationConfiguration:??? -> ?scope:??? -> ?selectionCriteria:??? -> ?allowFieldUpdates:??? -> ?regions:??? -> ?allRegions:??? -> telemetryType:TelemetryType.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of Boolean.t | `Enum of string | `List of [> `Enum of string | `String of Region.t ] list | `String of String_.t | `Structure of (string * [> `Enum of string | `Integer of RetentionPeriodInDays.t | `String of String_.t | `Structure of (string * [> `Enum of string | `Integer of Integer.t | `List of [> `Enum of string | `Structure of (string * [> `List of [> `Structure of (string * [> `List of [> `String of String_.t ] list | `String of String_.t ]) list ] list | `String of String_.t | `Structure of (string * [> `String of SingleHeaderNameString.t ]) list ]) list ] list | `String of String_.t | `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `Structure of (string * [> `Enum of string | `String of LabelNameConditionLabelNameString.t ]) list ]) list ] list ]) list ] list ]) list ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t