mirror of
https://github.com/floci-io/floci.git
synced 2026-12-04 10:38:00 -05:00
Add CreateResourceMetricsConfiguration, GetResourceMetricsConfiguration,
UpdateResourceMetricsConfiguration and DeleteResourceMetricsConfiguration
over Query, JSON 1.0 and CBOR: at most one detailed monitoring
configuration per resource ARN, kept per account and Region. Floci stores
the configuration; collecting the selected metrics comes next.
The model is checked first, every violation in AWS's form, the metric
selection list quoted as AWS writes it. Then the ARN must name a resource
type ("ARN is missing resource type") and one with detailed monitoring
("Unsupported resource type"): the guides document only ElastiCache
replication groups. These refusals are ValidationError, the JSON body
naming com.amazon.coral.validate#ValidationException, as recorded from
AWS. A second create is ConflictException (409) and a missing
configuration ResourceNotFoundException (404), each with its exception's
model documentation, as AWS quotes no message. An update replaces the
selections, and one without them collects every metric.
DeleteReplicationGroup fires a ReplicationGroupDeleted event, and the
configuration of the deleted group is deleted with it, as the ElastiCache
user guide says. SmithyValidationErrors.Violations gains sizeOutOfRange, the quoted
twin of the list-size violation.
Part of #7030.