An ARN has the form arn:partition:service:region:account-id:resource. The resource part may itself
contain colons or slashes (e.g. function:my-fn:prod or role/admin).
Return a dictionary with keys partition, service, region, account, resource. Return None if
the string doesn't start with arn: or has fewer than six parts.
Implement parse_arn. Input: arn: str. Returns: dict | None.
def parse_arn(arn: str):
return None
Run executes the public tests. Submit grades against public and hidden tests.
An ARN has the form arn:partition:service:region:account-id:resource. The resource part may itself
contain colons or slashes (e.g. function:my-fn:prod or role/admin).
Return a dictionary with keys partition, service, region, account, resource. Return None if
the string doesn't start with arn: or has fewer than six parts.
Implement parse_arn. Input: arn: str. Returns: dict | None.
def parse_arn(arn: str):
return None
Run executes the public tests. Submit grades against public and hidden tests.