text: from aws_cdk import aws_iam, core
  
  from common.common_stack import CommonStack
  from common.platforms import Platform
  from common.region_aware_stack import RegionAwareStack
  
  
  class SimpleDbStack(RegionAwareStack):
      def __init__(self, scope: core.Construct, id: str, common_stack: CommonStack, **kwargs) -> None:
          super().__init__(scope, id, **kwargs)
  
          self._supported_in_region = self.is_service_supported_in_region()
  
          domain_prefix = "integ_test_sdb_domain"
          self.parameters_to_save["domain_prefix"] = domain_prefix
  
          all_resources_policy = aws_iam.PolicyStatement(
              effect=aws_iam.Effect.ALLOW,
              actions=[
                  "sdb:BatchPutAttributes",
                  "sdb:CreateDomain",
                  "sdb:DeleteDomain",
                  "sdb:PutAttributes",
                  "sdb:Select",
              ],
              resources=[f"arn:aws:sdb:{self.region}:{self.account}:domain/{domain_prefix}*"],
          )
          common_stack.add_to_common_role_policies(self, policy_to_add=all_resources_policy)
  
          all_resources_policy = aws_iam.PolicyStatement(
              effect=aws_iam.Effect.ALLOW, actions=["sdb:ListDomains"], resources=["*"]
          )
          common_stack.add_to_common_role_policies(self, policy_to_add=all_resources_policy)
  
          self.save_parameters_in_parameter_store(platform=Platform.IOS)
  