Gems/AWSCore/cdk/core/core_stack.py [33:65]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        super().__init__(scope, id_, **kwargs)

        self._project_name = project_name
        self._feature_name = feature_name

        # Define Admin Group - these are folks who can deploy, update, edit and delete resources
        self._admin_group = iam.Group(self, id='Admins', group_name=f'{project_name}-Admins')

        # Define User Group - these are users who can call ServiceAPIs etc. as players/users
        self._user_group = iam.Group(self, id='Users', group_name=f'{project_name}-Users')

        # Generate a project resource group and automatically add stacks to them via tags
        # Will automatically add all project stacks to this resource group if they are tagged correctly
        query_property = resource_groups.CfnGroup.QueryProperty(
            tag_filters=[
                resource_groups.CfnGroup.TagFilterProperty(
                    key=Constants.O3DE_PROJECT_TAG_NAME,
                    values=[self._project_name]),
                resource_groups.CfnGroup.TagFilterProperty(
                    key=Constants.O3DE_FEATURE_TAG_NAME,
                    values=[self._feature_name]),
            ])

        # Note: Resource group names cannot start with AWS
        resource_group = resource_groups.CfnGroup(
            self,
            id=f'{self._project_name}-ResourceGroup',
            name=f'{CoreStack.RESOURCE_GROUP_PREFIX}-{self._project_name}-ResourceGroup',
            description=f'{self._project_name} application resource group',
            resource_query=resource_groups.CfnGroup.ResourceQueryProperty(
                query=query_property,
                type='TAG_FILTERS_1_0')
        )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



Gems/AWSCore/cdkv1/core/core_stack.py [29:61]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        super().__init__(scope, id_, **kwargs)

        self._project_name = project_name
        self._feature_name = feature_name

        # Define Admin Group - these are folks who can deploy, update, edit and delete resources
        self._admin_group = iam.Group(self, id='Admins', group_name=f'{project_name}-Admins')

        # Define User Group - these are users who can call ServiceAPIs etc as players/users
        self._user_group = iam.Group(self, id='Users', group_name=f'{project_name}-Users')

        # Generate a project resource group and automatically add stacks to them via tags
        # Will automatically add all project stacks to this resource group if they are tagged correctly
        query_property = resource_groups.CfnGroup.QueryProperty(
            tag_filters=[
                resource_groups.CfnGroup.TagFilterProperty(
                    key=Constants.O3DE_PROJECT_TAG_NAME,
                    values=[self._project_name]),
                resource_groups.CfnGroup.TagFilterProperty(
                    key=Constants.O3DE_FEATURE_TAG_NAME,
                    values=[self._feature_name]),
            ])

        # Note: Resource group names cannot start with AWS
        resource_group = resource_groups.CfnGroup(
            self,
            id=f'{self._project_name}-ResourceGroup',
            name=f'{CoreStack.RESOURCE_GROUP_PREFIX}-{self._project_name}-ResourceGroup',
            description=f'{self._project_name} application resource group',
            resource_query=resource_groups.CfnGroup.ResourceQueryProperty(
                query=query_property,
                type='TAG_FILTERS_1_0')
        )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



