mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
* feat(route53resolver): add TagResource, UntagResource and ListTagsForResource The Terraform provider lists tags after creating any aws_route53_resolver_* resource, and Route 53 Resolver had no tagging operations, so the apply failed right after the create succeeded. Tags are kept per ARN in their own store, because none of the modelled resource shapes carries a Tags member. Resolver endpoints, resolver rules and custom firewall domain lists are taggable; tags passed to their Create calls are stored, and validated before anything is allocated. Lookup resolves the id in the caller's account and requires the stored ARN to match exactly, so an ARN naming another account, region or partition is ResourceNotFoundException. ListTagsForResource pages with MaxResults (1-100, default 100) and NextToken. * fix(route53resolver): scope tagging lookups to the caller and type-check tag input TagResource, UntagResource and ListTagsForResource now require the ARN to name the caller's own partition, region and account before reading any store, and fetch the resource with getForAccountMigratingLegacy, so an unprefixed pre-multi-account entry is migrated only into the account its stored ARN names. Before, a plain get() moved such an entry into whichever account looked it up first, and that account could then tag it by naming its original ARN. Tag Key and Value, and each UntagResource TagKeys entry, must be JSON strings (TagKey/TagValue are string shapes) instead of being coerced with asText(). MaxResults must be an integral number before its 1-100 range is checked, so 1.5 or true is InvalidParameterException rather than 1. ListTagsForResource copies the stored tag node under the monitor that TagResource and UntagResource mutate it under, so a concurrent tag change can no longer break the iteration or show a half-applied page. * fix(route53resolver): page tags through Pagination and cap tag lists at 200 ListTagsForResource now pages through the shared Pagination.paginate with an opaque, namespaced cursor on the tag key instead of a raw offset, so a forged or stale offset token is InvalidNextTokenException. MaxResults stays type-checked against the JSON value (integer 1-100, InvalidParameterException). TagResource Tags, UntagResource TagKeys and the Tags on CreateResolverEndpoint, CreateResolverRule and CreateFirewallDomainList are capped at the modelled 200 entries per request (TagList/TagKeyList max 200). Over the cap is the operation's parameter error: InvalidParameterException, or ValidationException on CreateFirewallDomainList. No per-resource total is enforced; the model does not state one.