Exemple #1
0
 def test_gov(self):
     arn = BaseARN("service", "resource", "us-gov-west-1", "account")
     self.assertEqual(
         arn.JSONrepr(),
         "arn:aws-us-gov:service:us-gov-west-1:account:resource")
Exemple #2
0
 def test_aws(self):
     arn = BaseARN("service", "resource", "us-east-1", "account")
     self.assertEqual(arn.JSONrepr(),
                      "arn:aws:service:us-east-1:account:resource")
Exemple #3
0
 def test_cn(self):
     arn = BaseARN("service", "resource", "cn-north-1", "account")
     self.assertEqual(arn.JSONrepr(),
                      "arn:aws-cn:service:cn-north-1:account:resource")
Exemple #4
0
 def test_dynamic(self):
     arn = BaseARN("service", "resource", "${AWS::Region}", "account")
     self.assertEqual(
         arn.JSONrepr(),
         "arn:${AWS::Partition}:service:${AWS::Region}:account:resource",
     )