Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
84210f6011
78 changed files with 1510 additions and 618 deletions
|
|
@ -9,7 +9,7 @@ import uuid
|
|||
from collections import OrderedDict
|
||||
from datetime import datetime
|
||||
|
||||
import boto3
|
||||
from boto3 import Session
|
||||
|
||||
from moto.core import BaseBackend, BaseModel
|
||||
from .exceptions import (
|
||||
|
|
@ -1160,5 +1160,10 @@ class IoTBackend(BaseBackend):
|
|||
return job_executions, next_token
|
||||
|
||||
|
||||
available_regions = boto3.session.Session().get_available_regions("iot")
|
||||
iot_backends = {region: IoTBackend(region) for region in available_regions}
|
||||
iot_backends = {}
|
||||
for region in Session().get_available_regions("iot"):
|
||||
iot_backends[region] = IoTBackend(region)
|
||||
for region in Session().get_available_regions("iot", partition_name="aws-us-gov"):
|
||||
iot_backends[region] = IoTBackend(region)
|
||||
for region in Session().get_available_regions("iot", partition_name="aws-cn"):
|
||||
iot_backends[region] = IoTBackend(region)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue