parameters: (request_type, deployment_access, resource_group_name, problems)
return_statement: return were_changes
docstring: Performs the processing necessary when the Custom::AccessControl resource is in a deployment access stack.
  
      Args:
  
          request_type - 'Create', 'Update', or 'Delete'
  
          deployment_access - an stack_info.ResourceGroupInfo object representing the deployment access stack that contains the Custom::AccessControl resource.
  
          problems - A ProblemList object used to report problems
docstring_summary: Performs the processing necessary when the Custom::AccessControl resource is in a deployment access stack.
docstring_tokens: Performs the processing necessary when the Custom :: AccessControl resource is in a deployment access stack .
function: def _apply_deployment_access_control(request_type, deployment_access, resource_group_name, problems):
      """Performs the processing necessary when the Custom::AccessControl resource is in a deployment access stack.
  
      Args:
  
          request_type - 'Create', 'Update', or 'Delete'
  
          deployment_access - an stack_info.ResourceGroupInfo object representing the deployment access stack that contains the Custom::AccessControl resource.
  
          problems - A ProblemList object used to report problems
  
      """
  
      # Get abstract to concrete role mappings for the target stack
      role_mappings = _get_explicit_role_mappings(deployment_access, problems)
  
      # Get the permissions desired by each of the resource group's resources.
      permissions = None
      policy_name = ""
      for resource_group in deployment_access.deployment.resource_groups:
          if resource_group.resource_group_name != resource_group_name:
              continue
          policy_name = _get_resource_group_policy_name(resource_group)
          permissions = _get_permissions(resource_group, problems)
  
      # If there were no problems collecting the metadata, update the roles in the target stack as needed
      were_changes = False
      if not problems and policy_name and permissions is not None:
          if _update_roles(request_type, policy_name, permissions, role_mappings):
              were_changes = True
  
      return were_changes
function_tokens: def _apply_deployment_access_control ( request_type , deployment_access , resource_group_name , problems ) : # Get abstract to concrete role mappings for the target stack role_mappings = _get_explicit_role_mappings ( deployment_access , problems ) # Get the permissions desired by each of the resource group's resources. permissions = None policy_name = "" for resource_group in deployment_access . deployment . resource_groups : if resource_group . resource_group_name != resource_group_name : continue policy_name = _get_resource_group_policy_name ( resource_group ) permissions = _get_permissions ( resource_group , problems ) # If there were no problems collecting the metadata, update the roles in the target stack as needed were_changes = False if not problems and policy_name and permissions is not None : if _update_roles ( request_type , policy_name , permissions , role_mappings ) : were_changes = True return were_changes