Introducing a new way to review your PRs.

Read the announcement

floci-io / floci

Light, fluffy, and always free - The AWS Local Emulator alternative

View on GitHub

38 documents · Updated Nov 23, 2026

docs / svc-cloudwatch

CloudWatch observability

CloudWatch provides the observability plane for the emulator. It accepts metrics and logs, keeps the data in account and Region scope, and exposes AWS-shaped APIs for reading telemetry, storing dashboards, and driving alarm-based actions. Its request path supports Query, JSON, CBOR, and OTLP metrics clients while using the shared IAM checks.

Observability model

CloudWatch joins four related concerns: metrics describe numeric measurements, Logs stores event text, dashboards store views over that data, and alarms turn metric state into actions. Log metric filters can send selected log events into the metric system, so the two data paths can meet before a query or alarm reads them.

The service is available through the AWS-compatible CloudWatch reference. The CloudWatch metric filter verification page covers the special cases for turning log events into metric samples. Request identity and policy behavior are shared with IAM and authentication, while alarm resources can also be managed through CloudFormation and alarm actions can feed Application Auto Scaling.

This diagram shows the main observability relationships.

flowchart LR
    L[Log events] --> F[Metric filters]
    F --> M[CloudWatch metrics]
    P[Metric publishers] --> M
    O[OTLP metric exporters] --> T[OTLP metric batches]
    T --> S[OTLP storage]
    M --> Q[Metric query APIs]
    M --> A[Metric alarms]
    Q --> D[Dashboards]
    A --> X[Alarm actions]

Metrics

CloudWatch metrics represent named measurements in a namespace. A metric identity is defined by its namespace, name, and dimensions; timestamped samples then support statistics, alarms, and dashboard views.

Metric publication

Metric publication accepts the AWS PutMetricData shape over Query and JSON. CBOR uses the same metric handler, so clients can publish scalar values, statistic values, or bounded Values and Counts samples without changing the metric model. The service assigns a current timestamp when a publication omits one and stores each sample in the caller's account and Region scope. Numeric values must be finite and within the supported CloudWatch range, and a datum cannot mix scalar, statistic, and expanded-value forms (src/…/CloudWatchMetricsService.java• L136-201, src/…/CloudWatchMetricsQueryHandler.java• L711-807, src/…/CloudWatchMetricsJsonHandler.java• L927-969, src/…/MetricValues.java• L18-119, src/…/MetricNumberValidation.java• L6-54).

Expanded values are normalized into recoverable statistic samples without expanding a count into repeated records. Each value can carry a non-negative count, and the values and counts lists must stay within the supported size and shape limits (src/…/MetricValues.java• L11-119).

The metric store is separate from OTLP batch storage. This keeps classic CloudWatch metric queries and OTLP retention behavior distinct even though both use the CloudWatch metrics service boundary (src/…/CloudWatchMetricsService.java• L136-201, src/…/OtlpMetricsService.java• L19-46).

References: src/…/CloudWatchMetricsService.java• L136-201 src/…/CloudWatchMetricsQueryHandler.java• L711-807 src/…/CloudWatchMetricsJsonHandler.java• L927-969 src/…/MetricValues.java• L11-119 src/…/MetricNumberValidation.java• L6-54

Metric query surface

Metric reads expose identity discovery, period-based statistics, and metric-data results. ListMetrics finds distinct metric identities. GetMetricStatistics groups samples into periods and returns values such as average, sum, minimum, maximum, and sample count. GetMetricData maps metric-stat queries to the same statistic engine; expression queries are not evaluated (src/…/CloudWatchMetricsService.java• L223-401).

The Query handler renders XML for form requests. The JSON handler renders the JSON 1.0 shape, and the CBOR controller sends CloudWatch metric actions through that same JSON handler. This gives SDKs multiple wire formats with one metric meaning (src/…/CloudWatchMetricsQueryHandler.java• L99-218, src/…/CloudWatchMetricsJsonHandler.java• L249-328, src/…/AwsJsonCborController.java• L41-49).

References: src/…/CloudWatchMetricsService.java• L223-401 src/…/CloudWatchMetricsQueryHandler.java• L99-218 src/…/CloudWatchMetricsJsonHandler.java• L249-328

Metric alarms

Metric alarms connect a threshold over queried metric data to a state and optional action. Composite alarms add boolean rules over alarm states. Alarm definitions preserve either Statistic or ExtendedStatistic, but not both; scheduled evaluation uses classic metric alarms with a Statistic, while metric-math definitions remain stored for API compatibility and are not evaluated as expressions (src/…/CloudWatchMetricsService.java• L420-448, src/…/CloudWatchMetricsJsonHandler.java• L332-356, src/…/CloudWatchMetricsJsonHandler.java• L440-476, src/…/AlarmEvaluator.java• L280-289, src/…/AlarmActionHandler.java• L1-80).

Metric alarms are checked on a repeating schedule. The evaluator uses complete periods and a wider history range before applying the configured missing-data rule. When an alarm stays in ALARM, its actions are dispatched again on later checks, and the action receives the latest breaching value rather than an unrelated latest reading (src/…/AlarmEvaluator.java• L60-193).

This makes CloudWatch a control point for other services. For example, Application Auto Scaling uses CloudWatch alarms to decide when a scaling policy should adjust a supported resource (Application Auto Scaling), while CloudFormation can manage the alarm resource lifecycle (src/…/ScalingPolicyAlarmActionHandler.java• L18-155).

References: src/…/CloudWatchMetricsService.java• L420-520 src/…/AlarmEvaluator.java• L60-193 src/…/ScalingPolicyAlarmActionHandler.java• L18-155

Logs

CloudWatch Logs stores log groups, streams, and timestamped events. It provides the event path for services and clients that need to write, read, filter, retain, and query text records. It also keeps saved query definitions and configuration for vended-log delivery.

Log event lifecycle

The Logs API manages the hierarchy from log group to log stream to event. PutLogEvents appends events and assigns a stable ingestion order for equal timestamps. GetLogEvents reads one stream, while FilterLogEvents searches across selected events. Logs Insights adds a query lifecycle for projections, filters, sorting, de-duplication, and limits (src/…/CloudWatchLogsService.java• L59-69, src/…/CloudWatchLogsHandler.java• L81-123, src/…/CloudWatchLogsHandler.java• L387-453, src/…/LogsInsightsQuery.java• L1-120).

Log data and its group configuration use the CloudWatch Logs storage scope. Group tags remain account-scoped metadata, and tag changes apply only to an existing group; they do not recreate a deleted group or cross account boundaries. The event store is append-heavy and has a bounded event count, so persistence and retention affect the data that later reads can see (src/…/CloudWatchLogsService.java• L117-145, src/…/CloudWatchLogsService.java• L453-527, home/…/cloudwatch.md• L335-345).

References: src/…/CloudWatchLogsService.java• L59-145 src/…/CloudWatchLogsHandler.java• L81-123 src/…/CloudWatchLogsHandler.java• L387-453 src/…/LogsInsightsQuery.java• L1-120

Log-derived telemetry

Metric filters turn matching newly ingested events into metric samples. Subscription filters send matching events to supported downstream services. Both are attached to log groups, so changing a filter changes future ingestion rather than rewriting stored events (src/…/CloudWatchLogsMetricFilterService.java• L54-62, src/…/CloudWatchLogsService.java• L70-83).

Metric-filter publication crosses the Logs and Metrics services through an ingestion event. Accepted samples keep the event timestamp and filter definition that applied at ingestion. Publication is decoupled from the log write, so a metric read immediately after log ingestion can lag the log write (src/…/CloudWatchLogsMetricFilterService.java• L85-100, home/…/cloudwatch.md• L178-217).

For pattern rules, dimension behavior, defaults, and retry boundaries, use CloudWatch metric filter verification rather than this overview.

References: src/…/CloudWatchLogsMetricFilterService.java• L54-100 src/…/CloudWatchLogsService.java• L70-83 home/…/cloudwatch.md• L147-217

Logs Insights queries

Logs Insights provides a separate asynchronous query interface over stored events. StartQuery creates a query record, GetQueryResults returns its state and rows, and StopQuery can stop a query that has not completed. The query language is intentionally a supported subset; unsupported commands fail the query instead of being treated as no-ops (src/…/CloudWatchLogsService.java• L107-115, src/…/CloudWatchLogsHandler.java• L456-554, home/…/cloudwatch.md• L264-306).

The query reads the same log groups and events as the direct read APIs. A configured completion delay can expose the running-to-complete lifecycle, while the default path completes without an artificial wait (src/…/CloudWatchLogsService.java• L93-98, home/…/cloudwatch.md• L327-345).

References: src/…/CloudWatchLogsService.java• L93-115 src/…/CloudWatchLogsHandler.java• L456-554 home/…/cloudwatch.md• L264-306

Saved query definitions

Saved query definitions are reusable metadata for Logs Insights. They keep a name, query text, target log groups, language, and optional query parameters, but they do not execute a query or replace the separate StartQuery and GetQueryResults lifecycle (src/…/QueryDefinition.java• L8-22, src/…/CloudWatchLogsQueryDefinitionHandler.java• L25-83).

PutQueryDefinition creates a definition when no ID is supplied and updates an existing definition when its ID is supplied. A client token makes the request repeatable: the same token returns the original ID for the same definition and rejects a different definition. Definitions can be listed by name prefix or query language and removed by ID (src/…/CloudWatchLogsQueryDefinitionService.java• L49-101, src/…/QueryDefinitionToken.java• L6-8).

The saved-query and vended-log request paths share model-based request checks. Saved-query violations use InvalidParameterException, while delivery violations use ValidationException, so client-visible errors remain tied to the operation family (src/…/CloudWatchLogsRequestShapes.java• L13-21, src/…/CloudWatchLogsRequestShapes.java• L62-83).

References: src/…/CloudWatchLogsQueryDefinitionHandler.java• L25-83 src/…/CloudWatchLogsQueryDefinitionService.java• L49-101 src/…/QueryDefinition.java• L8-22 src/…/CloudWatchLogsRequestShapes.java• L13-83

Vended-log delivery

Vended-log delivery describes how a supported AWS resource's log type is paired with a destination. A delivery source identifies the sending resource and log type. A delivery destination identifies a Logs, S3, Firehose, or X-Ray target. A delivery joins one source to one destination and stores output settings such as record fields and S3 path options (src/…/CloudWatchLogsDeliveryService.java• L27-31, src/…/DeliverySource.java• L11-21, src/…/DeliveryDestination.java• L9-18, src/…/Delivery.java• L11-24).

The API can create, read, update, list, and delete these delivery records. It does not send the source logs to the destination; the delivery service acts as a configuration registry. Sources and destinations cannot be removed while a delivery uses them, and a source-destination pair can have only one delivery. EventBridge log sources also receive CloudWatch's default record fields and suffix path when the request omits them (src/…/CloudWatchLogsDeliveryService.java• L83-123, src/…/CloudWatchLogsDeliveryService.java• L132-239, src/…/CloudWatchLogsDeliveryService.java• L365-370).

Delivery records are regional and use delivery-family ARNs for shared tag operations. IAM resource checks can resolve a delivery ID to its stored ARN and can derive the destinations reached through a source. This keeps delivery authorization tied to the same resource relationships that the delivery API stores (src/…/CloudWatchLogsDeliveryService.java• L232-355, src/…/CloudWatchLogsStoredResourceArns.java• L11-47).

References: src/…/CloudWatchLogsDeliveryService.java• L83-123 src/…/CloudWatchLogsDeliveryService.java• L132-239 src/…/CloudWatchLogsDeliveryService.java• L232-355 src/…/CloudWatchLogsStoredResourceArns.java• L11-47

Cross-account log controls

Cross-account log controls provide named destinations and account-level policies for log protection, subscriptions, transformations, field indexes, and metric extraction. A destination stores the target resource, role, access policy, creation data, and tags. Account policies are selected by policy type and can limit which log groups receive the policy (src/…/CloudWatchLogsCrossAccountService.java• L65-162, src/…/LogDestination.java• L11-35).

The service validates policy documents, selection criteria, and policy quotas before storing them. It keeps destination and policy state in account and Region scope, while ARN checks prevent a caller from treating a destination in another account, Region, or partition as a local resource (src/…/CloudWatchLogsCrossAccountService.java• L108-120, src/…/CloudWatchLogsCrossAccountService.java• L127-176, src/…/CloudWatchLogsCrossAccountService.java• L179-313).

References: src/…/CloudWatchLogsCrossAccountService.java• L65-176 src/…/CloudWatchLogsCrossAccountService.java• L179-313 src/…/CloudWatchLogsHandler.java• L252-319 src/…/LogDestination.java• L11-35

Dashboards

CloudWatch dashboards store named JSON views that clients can read and replace. A dashboard is metadata, not a second metric query engine: the body is validated as a JSON object and then returned as stored (src/…/CloudWatchDashboardsService.java• L30-35, src/…/CloudWatchDashboardsService.java• L66-125).

Dashboard names are regional resources with a regionless CloudWatch ARN. Listing supports name prefixes and pagination. Tags are preserved on replacement and changed through tag operations, which keeps dashboard content changes separate from resource metadata changes (src/…/CloudWatchDashboardsService.java• L127-157, src/…/CloudWatchDashboardsService.java• L192-257).

References: src/…/CloudWatchDashboardsService.java• L30-35 src/…/CloudWatchDashboardsService.java• L66-157 src/…/CloudWatchDashboardsService.java• L192-257

OTLP metrics ingestion

The OTLP endpoint accepts OpenTelemetry metrics at POST /v1/metrics. It supports JSON and protobuf bodies, optional gzip compression, OTLP status responses, partial acceptance, and a separate store for the accepted OTLP batches.

This diagram shows the request path from authentication to retained OTLP data.

flowchart LR
    A[OTLP exporter] --> B[POST /v1/metrics]
    B --> C[SigV4 and IAM checks]
    C --> D[JSON or protobuf decode]
    D --> E[Point and metadata validation]
    E -->|accepted points| F[Store accepted batch]
    E -->|mixed result| G[OTLP partial success]
    E -->|all points rejected| H[OTLP error]

OTLP request authentication

OTLP requests use the shared CloudWatch action mapping: the endpoint is authorized as cloudwatch:PutMetricData. When IAM enforcement is enabled, the caller needs AWS credentials and permission for that action. Bearer-token authentication is not a supported path (src/…/OtlpMetricsController.java• L24-48, src/…/ResolvedServiceCatalog.java• L301-306).

Authentication failures are translated into the OTLP google.rpc.Status response shape. This keeps a denied request on the OTLP error contract instead of exposing the normal AWS JSON error body (src/…/OtlpMetricsAuthResponseFilter.java• L13-40, src/…/OtlpMetricsResponses.java• L12-39). For the shared identity, signature, and policy rules, see IAM and authentication.

References: src/…/OtlpMetricsController.java• L24-48 src/…/OtlpMetricsAuthResponseFilter.java• L13-40 src/…/ResolvedServiceCatalog.java• L301-306

OTLP decoding and validation

The endpoint first limits the uncompressed body and checks the content type and encoding. It then decodes either OTLP JSON or protobuf into one common metric message. JSON exemplar IDs are normalized before the message is built so both input formats reach the same validation path (src/…/OtlpMetricsController.java• L50-76, src/…/OtlpMetricsDecoder.java• L16-71).

Validation works at data-point level while preserving the resource and scope context around accepted points. It checks request size, timestamps, metric names, attribute counts, attribute string lengths, and metadata size. A bad point can be removed while valid points from the same request continue to storage (src/…/OtlpMetricsValidation.java• L13-107, src/…/OtlpMetricsValidation.java• L178-216).

An all-invalid request returns an OTLP error. A mixed request stores the accepted points and returns a partial-success message with the rejected count and error text. An empty or untyped metric produces a partial-success message without adding a rejected point (src/…/OtlpMetricsController.java• L61-89).

References: src/…/OtlpMetricsController.java• L50-89 src/…/OtlpMetricsDecoder.java• L16-71 src/…/OtlpMetricsValidation.java• L13-216

OTLP batch storage and retention

Accepted OTLP messages are stored as batches under the CloudWatch metrics storage scope. The service does not merge them into classic MetricDatum samples, and this overview does not claim PromQL support for them. A later OTLP ingestion in the same account and Region removes batches older than 14 days, with cleanup limited to about once per minute for that scope (src/…/OtlpMetricsService.java• L19-27, src/…/OtlpMetricsService.java• L49-90).

This separation matters when a client publishes through OTLP and then reads through classic CloudWatch APIs. The ingestion path can acknowledge accepted OTLP data without making that data available through ListMetrics, GetMetricStatistics, or GetMetricData (src/…/OtlpMetricsService.java• L49-90, src/…/CloudWatchMetricsService.java• L223-401).

References: src/…/OtlpMetricsService.java• L19-90 src/…/CloudWatchMetricsService.java• L223-401

AWS-compatible API boundary

CloudWatch presents more than one wire protocol because AWS clients use more than one entry point. The service catalog declares CloudWatch under the monitoring service key, routes Query requests to the metric handler, routes JSON targets to the JSON handler, and exposes the OTLP controller at its own path (src/…/ResolvedServiceCatalog.java• L301-306, src/…/AwsQueryController.java• L140-167, src/…/AwsJsonController.java• L131-150). For the wider routing model, see request routing and protocols.

Query request routing

Query requests use form-encoded POST bodies or supported GET requests. Action takes precedence over Operation. A credential scope naming monitoring selects CloudWatch; otherwise the declared API version and action must identify the CloudWatch service. The current API version exposes the full modeled Query surface, while the legacy 2009-05-15 version exposes only ListMetrics and GetMetricStatistics (src/…/AwsQueryServiceResolver.java• L22-45, src/…/AwsQueryController.java• L430-451).

CloudWatch GET requests use the same signature and IAM checks as other Query requests. Unsigned GET routing is limited to unambiguous CloudWatch actions, so a browser request or another AWS service cannot gain CloudWatch behavior only by sending a matching query parameter (home/…/cloudwatch.md• L421-434).

References: src/…/AwsQueryServiceResolver.java• L22-45 src/…/AwsQueryController.java• L430-451 src/…/CloudWatchMetricsQueryHandler.java• L68-98

JSON and CBOR request routing

JSON 1.0 operations use the X-Amz-Target prefix selected by the service catalog. The standard Granite prefix serves SDK operations. A limited CloudWatch console prefix serves only the modeled console actions and rejects shapes that belong to a different API model (src/…/CloudWatchMetricsJsonHandler.java• L39-62, src/…/CloudWatchMetricsJsonHandler.java• L120-175).

Metric publication validates the same numeric contract across Query and JSON. Missing values, non-numeric values, non-finite values, values outside the supported range, conflicting scalar/statistic forms, and invalid expanded-value forms become CloudWatch-shaped errors. Query keeps its error code while JSON and CBOR use the typed exception shape expected by their clients (src/…/MetricValues.java• L18-119, src/…/MetricNumberValidation.java• L13-54, src/…/CloudWatchMetricsException.java• L5-42).

Large JSON PutMetricData bodies may be gzip encoded. Signature validation and IAM run over the compressed request bytes, and only the metric publication operation is decompressed before the JSON handler reads it. CBOR and the OTLP path have their own body decoding rules but share the same CloudWatch metric service boundary (src/…/CloudWatchGzipReaderInterceptor.java• L17-33, src/…/CloudWatchGzipReaderInterceptor.java• L50-79, src/…/AwsJsonCborController.java• L41-49).

References: src/…/CloudWatchMetricsJsonHandler.java• L39-175 src/…/MetricValues.java• L18-119 src/…/MetricNumberValidation.java• L13-54 src/…/CloudWatchMetricsException.java• L5-42 src/…/CloudWatchGzipReaderInterceptor.java• L17-79 src/…/AwsJsonCborController.java• L41-49

Change checklist

When these files or sections are changed, remember to consider these:

  • If a CloudWatch action or protocol target changes, keep the service catalog, request router, IAM action mapping, and protocol handler in agreement.
  • If metric identity or storage keys change, keep publication, list, statistic reads, alarm evaluation, and account or Region scope aligned.
  • If metric number or expanded-value rules change, keep Query parsing, JSON parsing, console-shape checks, and protocol-specific error bodies aligned.
  • If OTLP validation changes, keep JSON and protobuf decoding, partial-success counts, error responses, and accepted-batch storage consistent.
  • If OTLP retention or storage scope changes, check cleanup timing and the separation from classic metric queries.
  • If log ingestion changes, preserve the event handoff used by metric filters and subscription filters.
  • If saved query operations change, keep request-shape validation, client-token replay rules, query-language filtering, and pagination scopes aligned.
  • If delivery source, destination, or delivery behavior changes, keep ARN classification, stored-resource IAM lookups, tag routing, deletion conflicts, and source-destination uniqueness aligned.
  • If account policy or cross-account destination behavior changes, keep policy quotas, selection criteria, ARN scope, and response shapes aligned.
  • If dashboard ARN or replacement behavior changes, keep list, get, delete, and tag operations aligned.
  • If alarm definition fields change, keep Statistic and ExtendedStatistic validation, JSON and Query responses, stored state, and scheduled evaluation rules aligned.
  • If alarm action behavior changes, check downstream integrations such as SNS and Application Auto Scaling.
  • If log-group tag or lifecycle behavior changes, keep account-scoped tag reads, tag writes, deletion protection, and group deletion behavior aligned.

Important failure modes

TriggerConsequenceGuard
A CloudWatch action is routed to a handler but is missing from the service catalog or IAM mappingThe client can receive an unknown operation or an authorization decision for the wrong actionUpdate catalog, routing, and IAM mappings together
A metric value bypasses the shared number or expanded-value checksInvalid or extreme values can enter one protocol but not anotherUse the common validation for Query, JSON, and console-shaped metric input
An alarm is configured only with ExtendedStatistic but is treated as a scheduled classic metric alarmThe alarm is stored and returned but does not receive the expected automatic state evaluationKeep the evaluator's supported alarm shape aligned with the fields accepted and returned by the API
A Values and Counts pair has different sizes or sparse Query indexesA valid batch is rejected or a value is paired with the wrong countKeep bounded, consecutive indexing and equal list lengths
An OTLP request is authenticated before its error is translatedThe exporter receives an AWS error shape instead of an OTLP statusKeep the OTLP response filter on the /v1/metrics path
A mixed OTLP request stores the whole input instead of the accepted subsetRejected points appear as valid telemetryStore the validated request bytes and return the rejected count
Metric filter publication is treated as part of the log writeLog ingestion latency or success depends on the metric storeKeep the metric publication handoff separate and bounded
A saved query token is reused with different query contentA retry can silently return the wrong saved-query ID or create inconsistent stateCompare the token request with the stored definition before replay
A delivery source or destination is deleted while a delivery still references itExisting delivery configuration points to a missing resourceReject the deletion until the delivery is removed
Vended-log delivery is treated as live log forwardingA successful delivery configuration is mistaken for delivered recordsKeep the delivery service's registry-only behavior explicit
A delivery ID or source relationship is absent from IAM's stored-resource viewA valid delivery request can fail resource authorization or authorize the wrong destination setKeep stored ARN lookup and source-to-destination lookup aligned with delivery storage
A destination ARN from another account, Region, or partition is accepted as localTags or policies can affect the wrong resource scopeValidate the complete ARN scope before lookup
A dashboard replacement applies request tagsA content update silently changes resource metadataPreserve existing tags on replacement and use tag operations for changes
A log-group tag update uses a stale or cross-account group viewTags can be written to the wrong scope or a deleted group can reappearRead and write tags through the account-scoped group lifecycle
OTLP batches are expected in classic metric queriesA successful OTLP response appears to lose dataKeep OTLP batch storage and classic metric storage semantics distinct
A Query GET is dispatched from an untrusted action aloneA request can be routed as CloudWatch when it is ambiguousRequire a valid monitoring scope or an unambiguous supported action

Key files

FileWhy to read it
src/…/CloudWatchMetricsService.javaCore metric storage, identity lookup, statistics, metric-data reads, and alarm state
src/…/CloudWatchMetricsQueryHandler.javaAWS Query actions and Query metric decoding and response shapes
src/…/CloudWatchMetricsJsonHandler.javaJSON 1.0 and console-compatible request shapes, including metric statistics and alarm fields
src/…/MetricValues.javaShared Values and Counts decoding and normalization
src/…/MetricNumberValidation.javaShared metric number rules across publication protocols
src/…/CloudWatchMetricsException.javaProtocol-specific CloudWatch error codes and JSON types
src/…/AlarmEvaluator.javaScheduled alarm evaluation, missing-data behavior, and repeated action dispatch
src/…/OtlpMetricsController.javaOTLP endpoint boundary, limits, validation result handling, and response shape
src/…/OtlpMetricsDecoder.javaCommon decoding path for OTLP JSON and protobuf
src/…/OtlpMetricsValidation.javaData-point acceptance, rejection, and partial-success rules
src/…/OtlpMetricsService.javaOTLP batch storage and retention sweep
src/…/CloudWatchLogsService.javaLog group, stream, event, retention, query state, and account-scoped tag lifecycle
src/…/CloudWatchLogsHandler.javaCloudWatch Logs action boundary and routing for queries, definitions, deliveries, and policies
src/…/CloudWatchLogsQueryDefinitionService.javaSaved query definition lifecycle, replay tokens, and pagination
src/…/CloudWatchLogsDeliveryService.javaVended-log source, destination, delivery, ARN, default, and tag behavior
src/…/CloudWatchLogsStoredResourceArns.javaIAM resource lookup for delivery IDs and source relationships
src/…/CloudWatchLogsDeliveryHandler.javaAWS-shaped request and response boundary for vended-log delivery
src/…/CloudWatchLogsCrossAccountService.javaCross-account destinations, account policies, quotas, and scope checks
src/…/CloudWatchLogsMetricFilterService.javaLog-to-metric handoff and metric-filter publication lifecycle
src/…/CloudWatchLogsRequestShapes.javaShared request constraint checks for saved queries and delivery operations
src/…/CloudWatchDashboardsService.javaDashboard body, ARN, tag, replacement, and list behavior
src/…/ResolvedServiceCatalog.javaCloudWatch service identity, protocols, targets, and OTLP controller registration
src/…/IamEnforcementFilter.javaShared credential and policy enforcement before service handlers
src/…/AwsQueryController.javaQuery routing, version selection, and CloudWatch GET dispatch
src/…/CloudWatchGzipReaderInterceptor.javaGzip handling for signed JSON metric publication requests