aws.internal.encode_path_label

Percent-encode `value` as a single URI path label: `/` becomes `%2F` and `:` becomes `%3A`, so a Bedrock ARN or inference-profile id survives as one path segment. Also used for query-parameter keys and values, whose SigV4 canonical form re-encodes with the same unreserved set.

Reference version

Signature

function aws.internal.encode_path_label(value: string) -> string throws baml.errors.InvalidArgument

Percent-encode value as a single URI path label: / becomes %2F and : becomes %3A, so a Bedrock ARN or inference-profile id survives as one path segment. Also used for query-parameter keys and values, whose SigV4 canonical form re-encodes with the same unreserved set.

Source:<builtin>/aws/ns_internal/bedrock.bamlbytes 29513425