mirror of
https://github.com/floci-io/floci.git
synced 2026-12-04 18:48:00 -05:00
AWS::CloudWatch::ResourceMetricsConfiguration creates the detailed monitoring configuration of its ResourceArn and deletes it with the stack. Ref returns the ARN, and CreatedAt and UpdatedAt return the configuration's timestamps to the millisecond, as the API answers them. MetricSelections updates in place, and a dropped list removes the filter. The resolved selections are compared with the stored ones, so a selection reading a replaced resource takes its new value. A new ResourceArn replaces the configuration, and the old one is deleted once the update completes. A failed update puts the previous selections back, with the timestamps of that write, and a create for a configured ARN fails with AlreadyExists. CreatedAt and UpdatedAt are read-only and refused in the template. A configuration already gone is taken as deleted. CfnExceptions.alreadyExists builds the resource handler's AlreadyExists answer and CfnExceptions.refuseReadOnly the read-only refusal, for the provisioners that spelled them out, and the OTel enrichment snapshot moves to a __Floci key in CfnRollback, as every other provisioner's does. Part of #7030.