instacart / instacart/arn

ARN service is not validated

Open
#21 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
44
Forks
3
PR merge metrics
No merged PRs in 30d

Description

It looks like the `service` portion is not validated to match what should be expected for its class:

```python
>>> from arn.elbv2 import TargetGroupArn
>>> TargetGroupArn("arn:aws:flibberty:us-east-1:123456789012:targetgroup/foo-bar/abc123")
TargetGroupArn(input_arn='arn:aws:flibberty:us-east-1:123456789012:targetgroup/foo-bar/abc123', partition='aws', service='flibberty', region='us-east-1', account='123456789012', rest='targetgroup/foo-bar/abc123', name='foo-bar', id='abc123')
```

I would expect this to raise `InvalidArnException` since it doesn't have `"elasticloadbalancing"` for the value of `service`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.