def METHOD_NAME(self, cfn):
    """Initialize the rule"""
    resourcespecs = cfnlint.helpers.RESOURCE_SPECS[cfn.regions[0]]
    self.resourcetypes = resourcespecs["ResourceTypes"]
    self.propertytypes = resourcespecs["PropertyTypes"]
    self.resource_property_types = []
    self.resource_sub_property_types = []
    for resource_type_spec in self.resourcetypes.keys():
        self.resource_property_types.append(resource_type_spec)
    for property_type_spec in self.propertytypes.keys():
        self.resource_sub_property_types.append(property_type_spec)