'Make sure all the AllowedResources are present.'

def validate(self):

    super(AccessPolicy, self).validate()
    resources = self.properties[self.ALLOWED_RESOURCES]
    for res in resources:
        if (res not in self.stack):
            msg = (_('AccessPolicy    resource    %s    not    in    stack') % res)
            raise exception.StackValidationFailed(message=msg)
