Ensures a UserPool Id starts like {region}_
This commit is contained in:
parent
dfa7935e13
commit
d9577f9d3d
2 changed files with 2 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ class CognitoIdpUserPool(BaseModel):
|
|||
|
||||
def __init__(self, region, name, extended_config):
|
||||
self.region = region
|
||||
self.id = str(uuid.uuid4())
|
||||
self.id = "{}_{}".format(self.region, str(uuid.uuid4().hex))
|
||||
self.name = name
|
||||
self.status = None
|
||||
self.extended_config = extended_config or {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue