Best Python code snippet using localstack_python
allowed_resources.py
Source:allowed_resources.py  
1"""2JSON Format to check quota3    "service": {4        "quota-code": {5            "method": "xxx",6            "key": "xxx",7            "fields": "xxx",8            "divisor": xxx,9            "filter": {xxx},10        },11        "global": True|False,12    }13service:14    - Service name in Services Quota15    - Ref: https://docs.aws.amazon.com/cli/latest/reference/service-quotas/list-service-quotas.html16quota-code:17    - Quota code used by Services Quota18    - Ref: https://docs.aws.amazon.com/cli/latest/reference/service-quotas/list-service-quotas.html19method:20    - boto3 method name to check a specific resource. Usually List*, Describe*, Get*21    - Ref: https://boto3.amazonaws.com/v1/documentation/api/latest/index.html22    - Example:23    https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html#EC2.Client.describe_volumes24key:25    - boto3 key List26fields:27    - If needed sum a specific field, specify here28divisor:29    - If used fields and needs to convert between TB -> GB, GB -> TB, GB -> MB, others.30filter:31    - Filter format used by boto3 resource. Check boto3 documentation32    - Example: "filter": {"Filters": [{"Name": "", "Values": [],}]},33    - Example: "filter": {"Type": "PullRequest"},34global:35    - Global parameter determines if this is an AWS Global Service such IAM, Route53, others.36"""37ALLOWED_SERVICES_CODES = {38    "acm": {39        "L-F141DD1D": {40            "method": "list_certificates",41            "key": "CertificateSummaryList",42            "fields": [],43        },44        "global": False,45    },46    "amplify": {47        "L-1BED97F3": {"method": "list_apps", "key": "apps", "fields": [],},48        "global": False,49    },50    "apigateway": {51        "L-1D180A63": {"method": "get_api_keys", "key": "items", "fields": [],},52        "L-824C9E42": {53            "method": "get_client_certificates",54            "key": "items",55            "fields": [],56        },57        "L-A93447B8": {"method": "get_domain_names", "key": "items", "fields": [],},58        "L-E8693075": {"method": "get_usage_plans", "key": "items", "fields": [],},59        "L-A4C7274F": {"method": "get_vpc_links", "key": "items", "fields": [],},60        "global": False,61    },62    "appmesh": {63        "L-AC861A39": {"method": "list_meshes", "key": "meshes", "fields": [],},64        "global": False,65    },66    "appsync": {67        "L-06A0647C": {68            "method": "list_graphql_apis",69            "key": "graphqlApis",70            "fields": [],71        },72        "global": False,73    },74    "autoscaling-plans": {75        "L-BD401546": {76            "method": "describe_scaling_plans",77            "key": "ScalingPlans",78            "fields": [],79        },80        "global": False,81    },82    "AWSCloudMap": {83        "L-0FE3F50E": {"method": "list_namespaces", "key": "Namespaces", "fields": [],},84        "global": False,85    },86    "batch": {87        "L-144F0CA5": {88            "method": "describe_compute_environments",89            "key": "computeEnvironments",90            "fields": [],91        },92        "global": False,93    },94    "chime": {95        "L-8EE806B4": {96            "method": "list_voice_connectors",97            "key": "VoiceConnectors",98            "fields": [],99        },100        "L-32405DBA": {101            "method": "list_phone_numbers",102            "key": "PhoneNumbers",103            "fields": [],104        },105        "L-D3615084": {106            "method": "list_voice_connector_groups",107            "key": "VoiceConnectorGroups",108            "fields": [],109        },110        "global": True,111    },112    "codeartifact": {113        "L-DD7208D3": {"method": "list_domains", "key": "domains", "fields": [],},114        "global": False,115    },116    "codebuild": {117        "L-ACCF6C0D": {"method": "list_projects", "key": "projects", "fields": [],},118        "global": False,119    },120    "codecommit": {121        "L-81790602": {122            "method": "list_repositories",123            "key": "repositories",124            "fields": [],125        },126        "global": False,127    },128    "codedeploy": {129        "L-3F19B6A5": {130            "method": "list_applications",131            "key": "applications",132            "fields": [],133        },134        "L-B0CB7B38": {135            "method": "list_git_hub_account_token_names",136            "key": "tokenNameList",137            "fields": [],138        },139        "global": False,140    },141    "cloudformation": {142        "L-0485CB21": {143            "method": "list_stacks",144            "key": "StackSummaries",145            "fields": [],146            "filter": {147                "StackStatusFilter": [148                    "CREATE_IN_PROGRESS",149                    "CREATE_FAILED",150                    "CREATE_COMPLETE",151                    "ROLLBACK_IN_PROGRESS",152                    "ROLLBACK_FAILED",153                    "ROLLBACK_COMPLETE",154                    "DELETE_IN_PROGRESS",155                    "DELETE_FAILED",156                    "UPDATE_IN_PROGRESS",157                    "UPDATE_COMPLETE_CLEANUP_IN_PROGRESS",158                    "UPDATE_COMPLETE",159                    "UPDATE_ROLLBACK_IN_PROGRESS",160                    "UPDATE_ROLLBACK_FAILED",161                    "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS",162                    "UPDATE_ROLLBACK_COMPLETE",163                    "REVIEW_IN_PROGRESS",164                    "IMPORT_IN_PROGRESS",165                    "IMPORT_COMPLETE",166                    "IMPORT_ROLLBACK_IN_PROGRESS",167                    "IMPORT_ROLLBACK_FAILED",168                    "IMPORT_ROLLBACK_COMPLETE",169                ]170            },171        },172        "L-9DE8E4FB": {"method": "list_types", "key": "TypeSummaries", "fields": [],},173        "L-31709F13": {"method": "list_stack_sets", "key": "Summaries", "fields": [],},174        "global": False,175    },176    "codeguru-reviewer": {177        "L-F5129FC6": {178            "method": "list_code_reviews",179            "key": "CodeReviewSummaries",180            "fields": [],181            "filter": {"Type": "PullRequest"},182        },183        "global": False,184    },185    "codeguru-profiler": {186        "L-DA8D4E8D": {187            "method": "list_profiling_groups",188            "key": "profilingGroupNames",189            "fields": [],190        },191        "global": False,192    },193    "cognito-identity": {194        "L-8692CE1C": {195            "method": "list_identity_pools",196            "key": "IdentityPools",197            "fields": [],198            "filter": {"MaxResults": 60},199        },200        "global": False,201    },202    "dynamodb": {203        "L-F98FE922": {"method": "list_tables", "key": "TableNames", "fields": [],},204        "global": False,205    },206    "ebs": {207        "L-309BACF6": {208            "method": "describe_snapshots",209            "key": "Snapshots",210            "fields": [],211            "filter": {"OwnerIds": ["self"]},212        },213        "L-D18FCD1D": {214            "method": "describe_volumes",215            "key": "Volumes",216            "fields": "Size",217            "divisor": 1000,218            "filter": {"Filters": [{"Name": "volume-type", "Values": ["gp2",],}]},219        },220        "L-9CF3C2EB": {221            "method": "describe_volumes",222            "key": "Volumes",223            "fields": "Size",224            "divisor": 1000,225            "filter": {"Filters": [{"Name": "volume-type", "Values": ["standard",],}]},226        },227        "L-FD252861": {228            "method": "describe_volumes",229            "key": "Volumes",230            "fields": "Size",231            "divisor": 1000,232            "filter": {"Filters": [{"Name": "volume-type", "Values": ["io1",],}]},233        },234        "L-17AF77E8": {235            "method": "describe_volumes",236            "key": "Volumes",237            "fields": "Size",238            "divisor": 1000,239            "filter": {"Filters": [{"Name": "volume-type", "Values": ["sc1",],}]},240        },241        "L-82ACEF56": {242            "method": "describe_volumes",243            "key": "Volumes",244            "fields": "Size",245            "divisor": 1000,246            "filter": {"Filters": [{"Name": "volume-type", "Values": ["st1",],}]},247        },248        "L-B3A130E6": {249            "method": "describe_volumes",250            "key": "Volumes",251            "fields": "Iops",252            "filter": {"Filters": [{"Name": "volume-type", "Values": ["io1",],}]},253        },254        "global": False,255    },256    "ec2": {257        "L-0263D0A3": {258            "method": "describe_addresses",259            "key": "Addresses",260            "fields": [],261        },262        "L-74FC7D96": {263            "method": "describe_instances",264            "key": "Reservations",265            "fields": [],266            "filter": {267                "Filters": [268                    {269                        "Name": "instance-type",270                        "Values": ["f1.2xlarge", "f1.4xlarge", "f1.16xlarge"],271                    }272                ]273            },274        },275        "L-DB2E81BA": {276            "method": "describe_instances",277            "key": "Reservations",278            "fields": [],279            "filter": {280                "Filters": [281                    {282                        "Name": "instance-type",283                        "Values": [284                            "g3s.xlarge",285                            "g3.4xlarge",286                            "g3.8xlarge",287                            "g3.16xlarge",288                            "g4dn.xlarge",289                            "g4dn.2xlarge",290                            "g4dn.4xlarge",291                            "g4dn.8xlarge",292                            "g4dn.16xlarge",293                            "g4dn.12xlarge",294                            "g4dn.metal",295                        ],296                    }297                ]298            },299        },300        "L-1945791B": {301            "method": "describe_instances",302            "key": "Reservations",303            "fields": [],304            "filter": {305                "Filters": [306                    {307                        "Name": "instance-type",308                        "Values": [309                            "inf1.xlarge",310                            "inf1.2xlarge",311                            "inf1.6xlarge",312                            "inf1.24xlarge",313                        ],314                    }315                ]316            },317        },318        "L-417A185B": {319            "method": "describe_instances",320            "key": "Reservations",321            "fields": [],322            "filter": {323                "Filters": [324                    {325                        "Name": "instance-type",326                        "Values": [327                            "p2.xlarge",328                            "p2.8xlarge",329                            "p2.16xlarge",330                            "p3.2xlarge",331                            "p3.8xlarge",332                            "p3.16xlarge",333                            "p3dn.24xlarge",334                        ],335                    }336                ]337            },338        },339        "L-1216C47A": {340            "method": "describe_instances",341            "key": "Reservations",342            "fields": [],343            "filter": {344                "Filters": [345                    {346                        "Name": "instance-type",347                        "Values": [348                            "c5d.large",349                            "c5d.xlarge",350                            "c5d.2xlarge",351                            "c5d.4xlarge",352                            "c5d.9xlarge",353                            "c5d.12xlarge",354                            "c5d.18xlarge",355                            "c5d.24xlarge",356                            "c5d.metal",357                            "c5a.large",358                            "c5a.xlarge",359                            "c5a.2xlarge",360                            "c5a.4xlarge",361                            "c5a.8xlarge",362                            "c5a.12xlarge",363                            "c5a.16xlarge",364                            "c5a.24xlarge",365                            "c5n.large",366                            "c5n.xlarge",367                            "c5n.2xlarge",368                            "c5n.4xlarge",369                            "c5n.9xlarge",370                            "c5n.18xlarge",371                            "c5n.metal",372                            "c4.large",373                            "c4.xlarge",374                            "c4.2xlarge",375                            "c4.4xlarge",376                            "c4.8xlarge",377                            "d2.xlarge",378                            "d2.2xlarge",379                            "d2.4xlarge",380                            "d2.8xlarge",381                            "h1.2xlarge",382                            "h1.4xlarge",383                            "h1.8xlarge",384                            "h1.16xlarge",385                            "i3.large",386                            "i3.xlarge",387                            "i3.2xlarge",388                            "i3.4xlarge",389                            "i3.8xlarge",390                            "i3.16xlarge",391                            "i3.metal",392                            "m6g.medium",393                            "m6g.large",394                            "m6g.xlarge",395                            "m6g.2xlarge",396                            "m6g.4xlarge",397                            "m6g.8xlarge",398                            "m6g.12xlarge",399                            "m6g.16xlarge",400                            "m6g.metal",401                            "m5.large",402                            "m5.xlarge",403                            "m5.2xlarge",404                            "m5.4xlarge",405                            "m5.8xlarge",406                            "m5.12xlarge",407                            "m5.16xlarge",408                            "m5.24xlarge",409                            "m5.metal",410                            "m5d.large",411                            "m5d.xlarge",412                            "m5d.2xlarge",413                            "m5d.4xlarge",414                            "m5d.8xlarge",415                            "m5d.12xlarge",416                            "m5d.16xlarge",417                            "m5d.24xlarge",418                            "m5d.metal",419                            "m5a.large",420                            "m5a.xlarge",421                            "m5a.2xlarge",422                            "m5a.4xlarge",423                            "m5a.8xlarge",424                            "m5a.12xlarge",425                            "m5a.16xlarge",426                            "m5a.24xlarge",427                            "m5ad.large",428                            "m5ad.xlarge",429                            "m5ad.2xlarge",430                            "m5ad.4xlarge",431                            "m5ad.12xlarge",432                            "m5ad.24xlarge",433                            "m5n.large",434                            "m5n.xlarge",435                            "m5n.2xlarge",436                            "m5n.4xlarge",437                            "m5n.8xlarge",438                            "m5n.12xlarge",439                            "m5n.16xlarge",440                            "m5n.24xlarge",441                            "m5dn.large",442                            "m5dn.xlarge",443                            "m5dn.2xlarge",444                            "m5dn.4xlarge",445                            "m5dn.8xlarge",446                            "m5dn.12xlarge",447                            "m5dn.16xlarge",448                            "m5dn.24xlarge",449                            "m4.large",450                            "m4.xlarge",451                            "m4.2xlarge",452                            "m4.4xlarge",453                            "m4.10xlarge",454                            "m4.16xlarge",455                            "z1d.large",456                            "z1d.xlarge",457                            "z1d.2xlarge",458                            "z1d.3xlarge",459                            "z1d.6xlarge",460                            "z1d.12xlarge",461                            "z1d.metal",462                            "r6g.medium",463                            "r6g.large",464                            "r6g.xlarge",465                            "r6g.2xlarge",466                            "r6g.4xlarge",467                            "r6g.8xlarge",468                            "r6g.12xlarge",469                            "r6g.16xlarge",470                            "r6g.metal",471                            "r5.large",472                            "r5.xlarge",473                            "r5.2xlarge",474                            "r5.4xlarge",475                            "r5.8xlarge",476                            "r5.12xlarge",477                            "r5.16xlarge",478                            "r5.24xlarge",479                            "r5.metal",480                            "r5d.large",481                            "r5d.xlarge",482                            "r5d.2xlarge",483                            "r5d.4xlarge",484                            "r5d.8xlarge",485                            "r5d.12xlarge",486                            "r5d.16xlarge",487                            "r5d.24xlarge",488                            "r5d.metal",489                            "r5a.large",490                            "r5a.xlarge",491                            "r5a.2xlarge",492                            "r5a.4xlarge",493                            "r5a.8xlarge",494                            "r5a.12xlarge",495                            "r5a.16xlarge",496                            "r5a.24xlarge",497                            "r5ad.large",498                            "r5ad.xlarge",499                            "r5ad.2xlarge",500                            "r5ad.4xlarge",501                            "r5ad.12xlarge",502                            "r5ad.24xlarge",503                            "r5n.large",504                            "r5n.xlarge",505                            "r5n.2xlarge",506                            "r5n.4xlarge",507                            "r5n.8xlarge",508                            "r5n.12xlarge",509                            "r5n.16xlarge",510                            "r5n.24xlarge",511                            "r5dn.large",512                            "r5dn.xlarge",513                            "r5dn.2xlarge",514                            "r5dn.4xlarge",515                            "r5dn.8xlarge",516                            "r5dn.12xlarge",517                            "r5dn.16xlarge",518                            "r5dn.24xlarge",519                            "r4.large",520                            "r4.xlarge",521                            "r4.2xlarge",522                            "r4.4xlarge",523                            "r4.8xlarge",524                            "r4.16xlarge",525                            "t3.nano",526                            "t3.micro",527                            "t3.small",528                            "t3.medium",529                            "t3.large",530                            "t3.xlarge",531                            "t3.2xlarge",532                            "t3a.nano",533                            "t3a.micro",534                            "t3a.small",535                            "t3a.medium",536                            "t3a.large",537                            "t3a.xlarge",538                            "t3a.2xlarge",539                            "t2.nano",540                            "t2.micro",541                            "t2.small",542                            "t2.medium",543                            "t2.large",544                            "t2.xlarge",545                            "t2.2xlarge",546                        ],547                    }548                ]549            },550        },551        "L-7295265B": {552            "method": "describe_instances",553            "key": "Reservations",554            "fields": [],555            "filter": {556                "Filters": [557                    {558                        "Name": "instance-type",559                        "Values": [560                            "x1e.xlarge",561                            "x1e.2xlarge",562                            "x1e.4xlarge",563                            "x1e.8xlarge",564                            "x1e.16xlarge",565                            "x1e.32xlarge",566                            "x1.16xlarge",567                            "x1.32xlarge",568                        ],569                    }570                ]571            },572        },573        "L-949445B0": {574            "method": "describe_hosts",575            "key": "Hosts",576            "fields": [],577            "filter": {"Filters": [{"Name": "instance-type", "Values": ["a1",],}]},578        },579        "L-8D142A2E": {580            "method": "describe_hosts",581            "key": "Hosts",582            "fields": [],583            "filter": {"Filters": [{"Name": "instance-type", "Values": ["c3",],}]},584        },585        "L-E4BF28E0": {586            "method": "describe_hosts",587            "key": "Hosts",588            "fields": [],589            "filter": {"Filters": [{"Name": "instance-type", "Values": ["c4",],}]},590        },591        "L-81657574": {592            "method": "describe_hosts",593            "key": "Hosts",594            "fields": [],595            "filter": {"Filters": [{"Name": "instance-type", "Values": ["c5",],}]},596        },597        "L-C93F66A2": {598            "method": "describe_hosts",599            "key": "Hosts",600            "fields": [],601            "filter": {"Filters": [{"Name": "instance-type", "Values": ["c5d",],}]},602        },603        "L-20F13EBD": {604            "method": "describe_hosts",605            "key": "Hosts",606            "fields": [],607            "filter": {"Filters": [{"Name": "instance-type", "Values": ["C5n",],}]},608        },609        "L-A749B537": {610            "method": "describe_hosts",611            "key": "Hosts",612            "fields": [],613            "filter": {"Filters": [{"Name": "instance-type", "Values": ["c6g",],}]},614        },615        "L-8B27377A": {616            "method": "describe_hosts",617            "key": "Hosts",618            "fields": [],619            "filter": {"Filters": [{"Name": "instance-type", "Values": ["d2",],}]},620        },621        "L-5C4CD236": {622            "method": "describe_hosts",623            "key": "Hosts",624            "fields": [],625            "filter": {"Filters": [{"Name": "instance-type", "Values": ["f1",],}]},626        },627        "L-74BBB7CB": {628            "method": "describe_hosts",629            "key": "Hosts",630            "fields": [],631            "filter": {"Filters": [{"Name": "instance-type", "Values": ["g2",],}]},632        },633        "L-DE82EABA": {634            "method": "describe_hosts",635            "key": "Hosts",636            "fields": [],637            "filter": {"Filters": [{"Name": "instance-type", "Values": ["g3",],}]},638        },639        "L-9675FDCD": {640            "method": "describe_hosts",641            "key": "Hosts",642            "fields": [],643            "filter": {"Filters": [{"Name": "instance-type", "Values": ["g3s",],}]},644        },645        "L-CAE24619": {646            "method": "describe_hosts",647            "key": "Hosts",648            "fields": [],649            "filter": {"Filters": [{"Name": "instance-type", "Values": ["g4dn",],}]},650        },651        "L-84391ECC": {652            "method": "describe_hosts",653            "key": "Hosts",654            "fields": [],655            "filter": {"Filters": [{"Name": "instance-type", "Values": ["h1",],}]},656        },657        "L-6222C1B6": {658            "method": "describe_hosts",659            "key": "Hosts",660            "fields": [],661            "filter": {"Filters": [{"Name": "instance-type", "Values": ["i2",],}]},662        },663        "L-8E60B0B1": {664            "method": "describe_hosts",665            "key": "Hosts",666            "fields": [],667            "filter": {"Filters": [{"Name": "instance-type", "Values": ["i3",],}]},668        },669        "L-77EE2B11": {670            "method": "describe_hosts",671            "key": "Hosts",672            "fields": [],673            "filter": {"Filters": [{"Name": "instance-type", "Values": ["i3en",],}]},674        },675        "L-5480EFD2": {676            "method": "describe_hosts",677            "key": "Hosts",678            "fields": [],679            "filter": {"Filters": [{"Name": "instance-type", "Values": ["inf1",],}]},680        },681        "L-3C82F907": {682            "method": "describe_hosts",683            "key": "Hosts",684            "fields": [],685            "filter": {"Filters": [{"Name": "instance-type", "Values": ["m3",],}]},686        },687        "L-EF30B25E": {688            "method": "describe_hosts",689            "key": "Hosts",690            "fields": [],691            "filter": {"Filters": [{"Name": "instance-type", "Values": ["m4",],}]},692        },693        "L-8B7BF662": {694            "method": "describe_hosts",695            "key": "Hosts",696            "fields": [],697            "filter": {"Filters": [{"Name": "instance-type", "Values": ["m5",],}]},698        },699        "L-B10F70D6": {700            "method": "describe_hosts",701            "key": "Hosts",702            "fields": [],703            "filter": {"Filters": [{"Name": "instance-type", "Values": ["M5a",],}]},704        },705        "L-74F41837": {706            "method": "describe_hosts",707            "key": "Hosts",708            "fields": [],709            "filter": {"Filters": [{"Name": "instance-type", "Values": ["M5ad",],}]},710        },711        "L-8CCBD91B": {712            "method": "describe_hosts",713            "key": "Hosts",714            "fields": [],715            "filter": {"Filters": [{"Name": "instance-type", "Values": ["m5d",],}]},716        },717        "L-DA07429F": {718            "method": "describe_hosts",719            "key": "Hosts",720            "fields": [],721            "filter": {"Filters": [{"Name": "instance-type", "Values": ["m5dn",],}]},722        },723        "L-24D7D4AD": {724            "method": "describe_hosts",725            "key": "Hosts",726            "fields": [],727            "filter": {"Filters": [{"Name": "instance-type", "Values": ["m5n",],}]},728        },729        "L-D50A37FA": {730            "method": "describe_hosts",731            "key": "Hosts",732            "fields": [],733            "filter": {"Filters": [{"Name": "instance-type", "Values": ["m6g",],}]},734        },735        "L-2753CF59": {736            "method": "describe_hosts",737            "key": "Hosts",738            "fields": [],739            "filter": {"Filters": [{"Name": "instance-type", "Values": ["p2",],}]},740        },741        "L-A0A19F79": {742            "method": "describe_hosts",743            "key": "Hosts",744            "fields": [],745            "filter": {"Filters": [{"Name": "instance-type", "Values": ["p3",],}]},746        },747        "L-B601B3B6": {748            "method": "describe_hosts",749            "key": "Hosts",750            "fields": [],751            "filter": {"Filters": [{"Name": "instance-type", "Values": ["p3dn",],}]},752        },753        "L-B7208018": {754            "method": "describe_hosts",755            "key": "Hosts",756            "fields": [],757            "filter": {"Filters": [{"Name": "instance-type", "Values": ["r3",],}]},758        },759        "L-313524BA": {760            "method": "describe_hosts",761            "key": "Hosts",762            "fields": [],763            "filter": {"Filters": [{"Name": "instance-type", "Values": ["r4",],}]},764        },765        "L-EA4FD6CF": {766            "method": "describe_hosts",767            "key": "Hosts",768            "fields": [],769            "filter": {"Filters": [{"Name": "instance-type", "Values": ["r5",],}]},770        },771        "L-8FE30D52": {772            "method": "describe_hosts",773            "key": "Hosts",774            "fields": [],775            "filter": {"Filters": [{"Name": "instance-type", "Values": ["R5a",],}]},776        },777        "L-EC7178B6": {778            "method": "describe_hosts",779            "key": "Hosts",780            "fields": [],781            "filter": {"Filters": [{"Name": "instance-type", "Values": ["R5ad",],}]},782        },783        "L-8814B54F": {784            "method": "describe_hosts",785            "key": "Hosts",786            "fields": [],787            "filter": {"Filters": [{"Name": "instance-type", "Values": ["r5d",],}]},788        },789        "L-4AB14223": {790            "method": "describe_hosts",791            "key": "Hosts",792            "fields": [],793            "filter": {"Filters": [{"Name": "instance-type", "Values": ["r5dn",],}]},794        },795        "L-52EF324A": {796            "method": "describe_hosts",797            "key": "Hosts",798            "fields": [],799            "filter": {"Filters": [{"Name": "instance-type", "Values": ["r5n",],}]},800        },801        "L-B6D6065D": {802            "method": "describe_hosts",803            "key": "Hosts",804            "fields": [],805            "filter": {"Filters": [{"Name": "instance-type", "Values": ["r6g",],}]},806        },807        "L-DE3D9563": {808            "method": "describe_hosts",809            "key": "Hosts",810            "fields": [],811            "filter": {"Filters": [{"Name": "instance-type", "Values": ["x1",],}]},812        },813        "L-DEF8E115": {814            "method": "describe_hosts",815            "key": "Hosts",816            "fields": [],817            "filter": {"Filters": [{"Name": "instance-type", "Values": ["x1e",],}]},818        },819        "L-F035E935": {820            "method": "describe_hosts",821            "key": "Hosts",822            "fields": [],823            "filter": {"Filters": [{"Name": "instance-type", "Values": ["z1d",],}]},824        },825        "global": False,826    },827    "ecr": {828        "L-CFEB8E8D": {829            "method": "describe_repositories",830            "key": "repositories",831            "fields": [],832        },833        "global": False,834    },835    "ecs": {836        "L-21C621EB": {"method": "list_clusters", "key": "clusterArns", "fields": [],},837        "global": False,838    },839    "elasticfilesystem": {840        "L-848C634D": {841            "method": "describe_file_systems",842            "key": "FileSystems",843            "fields": [],844        },845        "global": False,846    },847    "elasticbeanstalk": {848        "L-8EFC1C51": {849            "method": "describe_environments",850            "key": "Environments",851            "fields": [],852        },853        "L-1CEABD17": {854            "method": "describe_applications",855            "key": "Applications",856            "fields": [],857        },858        "L-D64F1F14": {859            "method": "describe_application_versions",860            "key": "ApplicationVersions",861            "fields": [],862        },863        "global": False,864    },865    "elasticloadbalancing": {866        "L-53DA6B97": {867            "method": "describe_load_balancers",868            "key": "LoadBalancers",869            "fields": [],870        },871        "global": False,872    },873    "elastic-inference": {874        "L-495D9A1B": {875            "method": "describe_accelerators",876            "key": "acceleratorSet",877            "fields": [],878        },879        "global": False,880    },881    "es": {882        "L-076D529E": {883            "method": "list_domain_names",884            "key": "DomainNames",885            "fields": [],886        },887        "global": False,888    },889    "forecast": {890        "L-D87814A4": {"method": "list_predictors", "key": "Predictors", "fields": [],},891        "L-B3A7DE22": {892            "method": "list_dataset_import_jobs",893            "key": "DatasetImportJobs",894            "fields": [],895        },896        "L-A8E1A12A": {"method": "get_outcomes", "key": "outcomes", "fields": [],},897        "global": False,898    },899    "frauddetector": {900        "L-EB925C6F": {"method": "get_detectors", "key": "detectors", "fields": [],},901        "L-A499790A": {"method": "get_models", "key": "models", "fields": [],},902        "L-A8E1A12A": {"method": "get_outcomes", "key": "outcomes", "fields": [],},903        "global": False,904    },905    "gamelift": {906        "L-AED4A06A": {"method": "list_aliases", "key": "Aliases", "fields": [],},907        "L-90D24F1B": {"method": "list_builds", "key": "Builds", "fields": [],},908        "L-FDDD1260": {"method": "list_fleets", "key": "FleetIds", "fields": [],},909        "L-8D885299": {910            "method": "list_game_server_groups",911            "key": "GameServerGroups",912            "fields": [],913        },914        "global": False,915    },916    "glue": {917        "L-F953935E": {"method": "get_databases", "key": "DatabaseList", "fields": [],},918        "L-D987EC31": {919            "method": "get_user_defined_functions",920            "key": "UserDefinedFunctions",921            "fields": [],922            "filter": {"Pattern": "*"},923        },924        "L-83192DBF": {925            "method": "get_security_configurations",926            "key": "SecurityConfigurations",927            "fields": [],928        },929        "L-F1653A6D": {"method": "get_triggers", "key": "Triggers", "fields": [],},930        "L-11FA2C1A": {"method": "get_crawlers", "key": "Crawlers", "fields": [],},931        "L-7DD7C33A": {"method": "list_workflows", "key": "Workflows", "fields": [],},932        "L-04CEE988": {933            "method": "list_ml_transforms",934            "key": "TransformIds",935            "fields": [],936        },937        "global": False,938    },939    "iam": {940        "L-F4A5425F": {"method": "list_groups", "key": "Groups", "fields": [],},941        "L-F55AF5E4": {"method": "list_users", "key": "Users", "fields": [],},942        "L-BF35879D": {943            "method": "list_server_certificates",944            "key": "ServerCertificateMetadataList",945            "fields": [],946        },947        "L-6E65F664": {948            "method": "list_instance_profiles",949            "key": "InstanceProfiles",950            "fields": [],951            "paginate": False,952        },953        "L-FE177D64": {"method": "list_roles", "key": "Roles", "fields": [],},954        "L-DB618D39": {955            "method": "list_saml_providers",956            "key": "SAMLProviderList",957            "fields": [],958        },959        "global": True,960    },961    "inspector": {962        "L-E1AFB5F4": {963            "method": "list_assessment_targets",964            "key": "assessmentTargetArns",965            "fields": [],966        },967        "L-7A3AEC10": {968            "method": "list_assessment_templates",969            "key": "assessmentTemplateArns",970            "fields": [],971        },972        "L-12943E2F": {973            "method": "list_assessment_runs",974            "key": "assessmentRunArns",975            "fields": [],976        },977        "global": False,978    },979    "kendra": {980        "L-51C776DF": {981            "method": "list_indices",982            "key": "IndexConfigurationSummaryItems",983            "fields": [],984        },985        "global": False,986    },987    "kms": {988        "L-C2F1777E": {"method": "list_keys", "key": "Keys", "fields": [],},989        "L-2601EE20": {"method": "list_aliases", "key": "Aliases", "fields": [],},990        "global": False,991    },992    "logs": {993        "L-D2832119": {994            "method": "describe_log_groups",995            "key": "logGroups",996            "fields": [],997        },998        "global": False,999    },1000    "mediaconnect": {1001        "L-A99016A8": {"method": "list_flows", "key": "Flows", "fields": [],},1002        "L-F1F62F5D": {1003            "method": "list_entitlements",1004            "key": "Entitlements",1005            "fields": [],1006        },1007        "global": False,1008    },1009    "medialive": {1010        "L-D1AFAF75": {"method": "list_channels", "key": "Channels", "fields": [],},1011        "L-BDF24E14": {1012            "method": "list_input_devices",1013            "key": "InputDevices",1014            "fields": [],1015        },1016        "global": False,1017    },1018    "mediapackage": {1019        "L-352B8598": {"method": "list_channels", "key": "Channels", "fields": [],},1020        "global": False,1021    },1022    "networkmanager": {1023        "L-2418390E": {1024            "method": "describe_global_networks",1025            "key": "GlobalNetworks",1026            "fields": [],1027        },1028        "global": True,1029    },1030    "polly": {1031        "L-BC40090A": {"method": "list_lexicons", "key": "Lexicons", "fields": [],},1032        "global": False,1033    },1034    "qldb": {1035        "L-CD70CADB": {"method": "list_ledgers", "key": "Ledgers", "fields": [],},1036        "global": False,1037    },1038    "robomaker": {1039        "L-40FACCBF": {"method": "list_robots", "key": "robots", "fields": [],},1040        "L-D6554FB1": {1041            "method": "list_simulation_applications",1042            "key": "simulationApplicationSummaries",1043            "fields": [],1044        },1045        "global": False,1046    },1047    "route53": {1048        "L-4EA4796A": {1049            "method": "list_hosted_zones",1050            "key": "HostedZones",1051            "fields": [],1052        },1053        "L-ACB674F3": {1054            "method": "list_health_checks",1055            "key": "HealthChecks",1056            "fields": [],1057        },1058        "global": True,1059    },1060    "route53resolver": {1061        "L-4A669CC0": {1062            "method": "list_resolver_endpoints",1063            "key": "ResolverEndpoints",1064            "fields": [],1065        },1066        "L-51D8A1FB": {1067            "method": "list_resolver_rules",1068            "key": "ResolverRules",1069            "fields": [],1070        },1071        "global": True,1072    },1073    "rds": {1074        "L-7B6409FD": {1075            "method": "describe_db_instances",1076            "key": "DBInstances",1077            "fields": [],1078        },1079        "L-952B80B8": {1080            "method": "describe_db_clusters",1081            "key": "DBClusters",1082            "fields": [],1083        },1084        "L-DE55804A": {1085            "method": "describe_db_parameter_groups",1086            "key": "DBParameterGroups",1087            "fields": [],1088        },1089        "L-9FA33840": {1090            "method": "describe_option_groups",1091            "key": "OptionGroupsList",1092            "fields": [],1093        },1094        "L-7ADDB58A": {1095            "method": "describe_db_instances",1096            "key": "DBInstances",1097            "fields": "AllocatedStorage",1098        },1099        "L-D94C7EA3": {1100            "method": "describe_db_proxies",1101            "key": "DBProxies",1102            "fields": [],1103        },1104        "L-732153D0": {1105            "method": "describe_db_security_groups",1106            "key": "DBSecurityGroups",1107            "fields": [],1108        },1109        "L-48C6BF61": {1110            "method": "describe_db_subnet_groups",1111            "key": "DBSubnetGroups",1112            "fields": [],1113        },1114        "global": False,1115    },1116    "s3": {1117        "L-DC2B2D3D": {"method": "list_buckets", "key": "Buckets", "fields": [],},1118        "global": False,1119    },1120    "sns": {1121        "L-61103206": {"method": "list_topics", "key": "Topics", "fields": [],},1122        "global": False,1123    },1124    "swf": {1125        "L-464CCB53": {1126            "method": "list_domains",1127            "key": "domainInfos",1128            "fields": [],1129            "filter": {"registrationStatus": "REGISTERED"},1130        },1131        "global": False,1132    },1133    "transcribe": {1134        "L-3278D334": {1135            "method": "list_vocabularies",1136            "key": "Vocabularies",1137            "fields": [],1138        },1139        "global": False,1140    },1141    "translate": {1142        "L-4011ABD8": {1143            "method": "list_terminologies",1144            "key": "TerminologyPropertiesList",1145            "fields": [],1146        },1147        "global": False,1148    },1149    "vpc": {1150        "L-F678F1CE": {"method": "describe_vpcs", "key": "Vpcs", "fields": [],},1151        "global": False,1152    },1153}1154# These resources are not covered by services-quota, than we must use "manual" checks1155SPECIAL_RESOURCES = ["ses"]1156FILTER_EC2_BIGFAMILY = {1157    "filter": {1158        "Filters": [1159            {1160                "Name": "instance-type",1161                "Values": [1162                    "a1.medium",1163                    "a1.large",1164                    "a1.xlarge",1165                    "a1.2xlarge",1166                    "a1.4xlarge",1167                    "a1.metal",1168                    "c6g.medium",1169                    "c6g.large",1170                    "c6g.xlarge",1171                    "c6g.2xlarge",1172                    "c6g.4xlarge",1173                    "c6g.8xlarge",1174                    "c6g.12xlarge",1175                    "c6g.16xlarge",1176                    "c6g.metal",1177                    "c5.large",1178                    "c5.xlarge",1179                    "c5.2xlarge",1180                    "c5.4xlarge",1181                    "c5.9xlarge",1182                    "c5.12xlarge",1183                    "c5.18xlarge",1184                    "c5.24xlarge",1185                    "c5.metal",1186                ],1187            }1188        ]1189    },...Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!
