fn registry_name_from_schema_arn(arn: &str) -> Option<&str>Expand description
Parse the registry name out of a Glue SchemaArn.
Glue schema ARNs have the shape
arn:<partition>:glue:<region>:<account>:schema/<registry>/<schema>,
where <partition> is aws, aws-cn, aws-us-gov, etc. We anchor
on arn: and the :glue: segment so a fragment like
:schema/foo/bar alone won’t parse. Returns None if the input
doesn’t match — we surface that as a decode error rather than
panicking, so schemas in unexpected partitions or future ARN shapes
don’t crash the source.