Skip to content

Commit b1e9c67

Browse files
authored
update the cfn to arn mappings (#37)
1 parent cd8f855 commit b1e9c67

File tree

2 files changed

+219
-1
lines changed

2 files changed

+219
-1
lines changed

cfn_policy_validator/parsers/utils/cfn_to_arn_map.json

Lines changed: 218 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,11 @@
828828
"Value": "arn:${Partition}:sagemaker:${Region}:${Account}:data-quality-job-definition/${DataQualityJobDefinitionName}",
829829
"ServicePrefix": "sagemaker",
830830
"ResourceType": "data-quality-job-definition"
831+
},
832+
"Ref": {
833+
"Value": "arn:${Partition}:sagemaker:${Region}:${Account}:data-quality-job-definition/${DataQualityJobDefinitionName}",
834+
"ServicePrefix": "sagemaker",
835+
"ResourceType": "data-quality-job-definition"
831836
}
832837
},
833838
"MonitoringSchedule": {
@@ -854,27 +859,47 @@
854859
"Value": "arn:${Partition}:sagemaker:${Region}:${Account}:model-explainability-job-definition/${ModelExplainabilityJobDefinitionName}",
855860
"ServicePrefix": "sagemaker",
856861
"ResourceType": "model-explainability-job-definition"
862+
},
863+
"Ref": {
864+
"Value": "arn:${Partition}:sagemaker:${Region}:${Account}:model-explainability-job-definition/${ModelExplainabilityJobDefinitionName}",
865+
"ServicePrefix": "sagemaker",
866+
"ResourceType": "model-explainability-job-definition"
857867
}
858868
},
859869
"ModelPackageGroup": {
860870
"ModelPackageGroupArn": {
861871
"Value": "arn:${Partition}:sagemaker:${Region}:${Account}:model-package-group/${ModelPackageGroupName}",
862872
"ServicePrefix": "sagemaker",
863873
"ResourceType": "model-package-group"
874+
},
875+
"Ref": {
876+
"Value": "arn:${Partition}:sagemaker:${Region}:${Account}:model-package-group/${ModelPackageGroupName}",
877+
"ServicePrefix": "sagemaker",
878+
"ResourceType": "model-package-group"
864879
}
865880
},
866881
"ModelBiasJobDefinition": {
867882
"JobDefinitionArn": {
868883
"Value": "arn:${Partition}:sagemaker:${Region}:${Account}:model-bias-job-definition/${ModelBiasJobDefinitionName}",
869884
"ServicePrefix": "sagemaker",
870885
"ResourceType": "model-bias-job-definition"
886+
},
887+
"Ref": {
888+
"Value": "arn:${Partition}:sagemaker:${Region}:${Account}:model-bias-job-definition/${ModelBiasJobDefinitionName}",
889+
"ServicePrefix": "sagemaker",
890+
"ResourceType": "model-bias-job-definition"
871891
}
872892
},
873893
"ModelQualityJobDefinition": {
874894
"JobDefinitionArn": {
875895
"Value": "arn:${Partition}:sagemaker:${Region}:${Account}:model-quality-job-definition/${ModelQualityJobDefinitionName}",
876896
"ServicePrefix": "sagemaker",
877897
"ResourceType": "model-quality-job-definition"
898+
},
899+
"Ref": {
900+
"Value": "arn:${Partition}:sagemaker:${Region}:${Account}:model-quality-job-definition/${ModelQualityJobDefinitionName}",
901+
"ServicePrefix": "sagemaker",
902+
"ResourceType": "model-quality-job-definition"
878903
}
879904
},
880905
"CodeRepository": {
@@ -915,6 +940,11 @@
915940
"Value": "arn:${Partition}:sagemaker:${Region}:${Account}:project/${ProjectName}",
916941
"ServicePrefix": "sagemaker",
917942
"ResourceType": "project"
943+
},
944+
"Ref": {
945+
"Value": "arn:${Partition}:sagemaker:${Region}:${Account}:project/${ProjectName}",
946+
"ServicePrefix": "sagemaker",
947+
"ResourceType": "project"
918948
}
919949
},
920950
"Image": {
@@ -934,6 +964,11 @@
934964
"Value": "arn:${Partition}:sagemaker:${Region}:${Account}:model-package/${ModelPackageName}",
935965
"ServicePrefix": "sagemaker",
936966
"ResourceType": "model-package"
967+
},
968+
"Ref": {
969+
"Value": "arn:${Partition}:sagemaker:${Region}:${Account}:model-package/${ModelPackageName}",
970+
"ServicePrefix": "sagemaker",
971+
"ResourceType": "model-package"
937972
}
938973
},
939974
"Space": {
@@ -962,6 +997,11 @@
962997
"Value": "arn:${Partition}:sagemaker:${Region}:${Account}:inference-component/${InferenceComponentName}",
963998
"ServicePrefix": "sagemaker",
964999
"ResourceType": "inference-component"
1000+
},
1001+
"Ref": {
1002+
"Value": "arn:${Partition}:sagemaker:${Region}:${Account}:inference-component/${InferenceComponentName}",
1003+
"ServicePrefix": "sagemaker",
1004+
"ResourceType": "inference-component"
9651005
}
9661006
}
9671007
},
@@ -1028,6 +1068,13 @@
10281068
"ServicePrefix": "eks",
10291069
"ResourceType": "podidentityassociation"
10301070
}
1071+
},
1072+
"AccessEntry": {
1073+
"AccessEntryArn": {
1074+
"Value": "arn:${Partition}:eks:${Region}:${Account}:access-entry/${ClusterName}/${IamIdentityType}/${IamIdentityAccountID}/${IamIdentityName}/${UUID}",
1075+
"ServicePrefix": "eks",
1076+
"ResourceType": "access-entry"
1077+
}
10311078
}
10321079
},
10331080
"AppMesh": {
@@ -1481,6 +1528,18 @@
14811528
"ServicePrefix": "codebuild",
14821529
"ResourceType": "report-group"
14831530
}
1531+
},
1532+
"Fleet": {
1533+
"Ref": {
1534+
"Value": "arn:${Partition}:codebuild:${Region}:${Account}:fleet/${FleetName}:${FleetId}",
1535+
"ServicePrefix": "codebuild",
1536+
"ResourceType": "fleet"
1537+
},
1538+
"Arn": {
1539+
"Value": "arn:${Partition}:codebuild:${Region}:${Account}:fleet/${FleetName}:${FleetId}",
1540+
"ServicePrefix": "codebuild",
1541+
"ResourceType": "fleet"
1542+
}
14841543
}
14851544
},
14861545
"CloudTrail": {
@@ -1656,6 +1715,13 @@
16561715
"ServicePrefix": "iot",
16571716
"ResourceType": "packageversion"
16581717
}
1718+
},
1719+
"CertificateProvider": {
1720+
"Arn": {
1721+
"Value": "arn:${Partition}:iot:${Region}:${Account}:certificateprovider/${CertificateProviderName}",
1722+
"ServicePrefix": "iot",
1723+
"ResourceType": "certificateprovider"
1724+
}
16591725
}
16601726
},
16611727
"RoboMaker": {
@@ -2078,6 +2144,27 @@
20782144
"ServicePrefix": "logs",
20792145
"ResourceType": "anomaly-detector"
20802146
}
2147+
},
2148+
"Delivery": {
2149+
"Arn": {
2150+
"Value": "arn:${Partition}:logs:${Region}:${Account}:delivery:${DeliveryName}",
2151+
"ServicePrefix": "logs",
2152+
"ResourceType": "delivery"
2153+
}
2154+
},
2155+
"DeliveryDestination": {
2156+
"Arn": {
2157+
"Value": "arn:${Partition}:logs:${Region}:${Account}:delivery-destination:${DeliveryDestinationName}",
2158+
"ServicePrefix": "logs",
2159+
"ResourceType": "delivery-destination"
2160+
}
2161+
},
2162+
"DeliverySource": {
2163+
"Arn": {
2164+
"Value": "arn:${Partition}:logs:${Region}:${Account}:delivery-source:${DeliverySourceName}",
2165+
"ServicePrefix": "logs",
2166+
"ResourceType": "delivery-source"
2167+
}
20812168
}
20822169
},
20832170
"Transfer": {
@@ -2276,6 +2363,13 @@
22762363
"ServicePrefix": "imagebuilder",
22772364
"ResourceType": "lifecycle-policy"
22782365
}
2366+
},
2367+
"Workflow": {
2368+
"Arn": {
2369+
"Value": "arn:${Partition}:imagebuilder:${Region}:${Account}:workflow/${WorkflowType}/${WorkflowName}/${WorkflowVersion}/${WorkflowBuildVersion}",
2370+
"ServicePrefix": "imagebuilder",
2371+
"ResourceType": "workflow"
2372+
}
22792373
}
22802374
},
22812375
"AutoScalingPlans": {
@@ -2406,6 +2500,11 @@
24062500
"Value": "arn:${Partition}:securityhub:${Region}:${Account}:hub/default",
24072501
"ServicePrefix": "securityhub",
24082502
"ResourceType": "hub"
2503+
},
2504+
"ARN": {
2505+
"Value": "arn:${Partition}:securityhub:${Region}:${Account}:hub/default",
2506+
"ServicePrefix": "securityhub",
2507+
"ResourceType": "hub"
24092508
}
24102509
},
24112510
"AutomationRule": {
@@ -2695,6 +2794,18 @@
26952794
"ServicePrefix": "rds",
26962795
"ResourceType": "cev"
26972796
}
2797+
},
2798+
"Integration": {
2799+
"Ref": {
2800+
"Value": "arn:${Partition}:rds:${Region}:${Account}:integration:${IntegrationIdentifier}",
2801+
"ServicePrefix": "rds",
2802+
"ResourceType": "integration"
2803+
},
2804+
"IntegrationArn": {
2805+
"Value": "arn:${Partition}:rds:${Region}:${Account}:integration:${IntegrationIdentifier}",
2806+
"ServicePrefix": "rds",
2807+
"ResourceType": "integration"
2808+
}
26982809
}
26992810
},
27002811
"EFS": {
@@ -3120,6 +3231,18 @@
31203231
"ServicePrefix": "codeartifact",
31213232
"ResourceType": "domain"
31223233
}
3234+
},
3235+
"PackageGroup": {
3236+
"Ref": {
3237+
"Value": "arn:${Partition}:codeartifact:${Region}:${Account}:package-group/${DomainName}${EncodedPackageGroupPattern}",
3238+
"ServicePrefix": "codeartifact",
3239+
"ResourceType": "package-group"
3240+
},
3241+
"Arn": {
3242+
"Value": "arn:${Partition}:codeartifact:${Region}:${Account}:package-group/${DomainName}${EncodedPackageGroupPattern}",
3243+
"ServicePrefix": "codeartifact",
3244+
"ResourceType": "package-group"
3245+
}
31233246
}
31243247
},
31253248
"MWAA": {
@@ -3183,6 +3306,13 @@
31833306
"ServicePrefix": "network-firewall",
31843307
"ResourceType": "firewall"
31853308
}
3309+
},
3310+
"TLSInspectionConfiguration": {
3311+
"TLSInspectionConfigurationArn": {
3312+
"Value": "arn:${Partition}:network-firewall:${Region}:${Account}:tls-configuration/${Name}",
3313+
"ServicePrefix": "network-firewall",
3314+
"ResourceType": "tls-inspection-configuration"
3315+
}
31863316
}
31873317
},
31883318
"ServiceCatalogAppRegistry": {
@@ -3560,6 +3690,13 @@
35603690
"ServicePrefix": "cloudfront",
35613691
"ResourceType": "function"
35623692
}
3693+
},
3694+
"KeyValueStore": {
3695+
"Arn": {
3696+
"Value": "arn:${Partition}:cloudfront::${Account}:key-value-store/${Name}",
3697+
"ServicePrefix": "cloudfront",
3698+
"ResourceType": "key-value-store"
3699+
}
35633700
}
35643701
},
35653702
"CodeGuruReviewer": {
@@ -4053,6 +4190,13 @@
40534190
"ServicePrefix": "geo",
40544191
"ResourceType": "geofence-collection"
40554192
}
4193+
},
4194+
"APIKey": {
4195+
"Arn": {
4196+
"Value": "arn:${Partition}:geo:${Region}:${Account}:api-key/${KeyName}",
4197+
"ServicePrefix": "geo",
4198+
"ResourceType": "api-key"
4199+
}
40564200
}
40574201
},
40584202
"AppRunner": {
@@ -4262,6 +4406,18 @@
42624406
"ServicePrefix": "aps",
42634407
"ResourceType": "rulegroupsnamespace"
42644408
}
4409+
},
4410+
"Scraper": {
4411+
"Arn": {
4412+
"Value": "arn:${Partition}:aps:${Region}:${Account}:scraper/${ScraperId}",
4413+
"ServicePrefix": "aps",
4414+
"ResourceType": "scraper"
4415+
},
4416+
"RoleArn": {
4417+
"Value": "arn:${Partition}:iam::${Account}:role/${RoleNameWithPath}",
4418+
"ServicePrefix": "iam",
4419+
"ResourceType": "role"
4420+
}
42654421
}
42664422
},
42674423
"OpenSearchService": {
@@ -4505,6 +4661,18 @@
45054661
"ServicePrefix": "inspector2",
45064662
"ResourceType": "filter"
45074663
}
4664+
},
4665+
"CisScanConfiguration": {
4666+
"Ref": {
4667+
"Value": "arn:${Partition}:inspector2:${Region}:${Account}:owner/${OwnerId}/cis-configuration/${CISScanConfigurationId}",
4668+
"ServicePrefix": "inspector2",
4669+
"ResourceType": "cis-scan-configuration"
4670+
},
4671+
"Arn": {
4672+
"Value": "arn:${Partition}:inspector2:${Region}:${Account}:owner/${OwnerId}/cis-configuration/${CISScanConfigurationId}",
4673+
"ServicePrefix": "inspector2",
4674+
"ResourceType": "cis-scan-configuration"
4675+
}
45084676
}
45094677
},
45104678
"KafkaConnect": {
@@ -4514,6 +4682,20 @@
45144682
"ServicePrefix": "kafkaconnect",
45154683
"ResourceType": "connector"
45164684
}
4685+
},
4686+
"CustomPlugin": {
4687+
"CustomPluginArn": {
4688+
"Value": "arn:${Partition}:kafkaconnect:${Region}:${Account}:custom-plugin/${CustomPluginName}/${UUID}",
4689+
"ServicePrefix": "kafkaconnect",
4690+
"ResourceType": "customplugin"
4691+
}
4692+
},
4693+
"WorkerConfiguration": {
4694+
"WorkerConfigurationArn": {
4695+
"Value": "arn:${Partition}:kafkaconnect:${Region}:${Account}:worker-configuration/${WorkerConfigurationName}/${UUID}",
4696+
"ServicePrefix": "kafkaconnect",
4697+
"ResourceType": "workerconfiguration"
4698+
}
45174699
}
45184700
},
45194701
"Personalize": {
@@ -5446,5 +5628,41 @@
54465628
"ResourceType": "landing-zone"
54475629
}
54485630
}
5631+
},
5632+
"DataZone": {
5633+
"Domain": {
5634+
"Arn": {
5635+
"Value": "arn:${Partition}:datazone:${Region}:${Account}:domain/${DomainId}",
5636+
"ServicePrefix": "datazone",
5637+
"ResourceType": "domain"
5638+
}
5639+
}
5640+
},
5641+
"NeptuneGraph": {
5642+
"Graph": {
5643+
"GraphArn": {
5644+
"Value": "arn:${Partition}:neptune-graph:${Region}:${Account}:graph/${ResourceId}",
5645+
"ServicePrefix": "neptune-graph",
5646+
"ResourceType": "graph"
5647+
}
5648+
}
5649+
},
5650+
"SecurityLake": {
5651+
"DataLake": {
5652+
"Arn": {
5653+
"Value": "arn:${Partition}:securitylake:${Region}:${Account}:data-lake/default",
5654+
"ServicePrefix": "securitylake",
5655+
"ResourceType": "data-lake"
5656+
}
5657+
}
5658+
},
5659+
"CleanRoomsML": {
5660+
"TrainingDataset": {
5661+
"TrainingDatasetArn": {
5662+
"Value": "arn:${Partition}:cleanrooms-ml:${Region}:${Account}:training-dataset/${ResourceId}",
5663+
"ServicePrefix": "cleanrooms-ml",
5664+
"ResourceType": "trainingdataset"
5665+
}
5666+
}
54495667
}
54505668
}

cfn_policy_validator/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
SPDX-License-Identifier: MIT-0
44
"""
5-
__version__ = '0.0.30'
5+
__version__ = '0.0.31'

0 commit comments

Comments
 (0)