<commit_before>actions :add, :remove

default_action :add

attribute :groupid,				  :kind_of => String
attribute :groupname,             :kind_of => String
attribute :name,  		  		  :kind_of => String, :name_attribute => true, :required => false
attribute :description,           :kind_of => String
attribute :cidr_ip,				  :kind_of => String
attribute :group,                 :kind_of => String
attribute :owner,				  :kind_of => String
attribute :ip_protocol,           :kind_of => String, :default => '-1', :equal_to => %w[-1 tcp udp icmp]
attribute :port_range,            :kind_of => String 
attribute :aws_access_key_id,	  :kind_of => String, :required => false
attribute :aws_secret_access_key, :kind_of => String, :required => false
attribute :region,				  :kind_of => String, :default => 'us-east-1'
attribute :from_port,			  :kind_of => Integer, :default => 0
attribute :to_port,               :kind_of => Integer, :default => 65535
attribute :mocking,               kind_of: [TrueClass, FalseClass],
                                  default: false

attr_accessor :exists<commit_msg>Clean up the whitespace in group_rule resource<commit_after>actions :add, :remove

default_action :add

attribute :name,                  kind_of: String,
                                  name_attribute: true,
                                  required: false
attribute :groupid,               kind_of: String
attribute :groupname,             kind_of: String
attribute :description,           kind_of: String
attribute :cidr_ip,               kind_of: String
attribute :group,                 kind_of: String
attribute :owner,                 kind_of: String
attribute :ip_protocol,           kind_of: String,
                                  default: '-1',
                                  equal_to: %w(-1 tcp udp icmp)
attribute :port_range,            kind_of: String
attribute :aws_access_key_id,     kind_of: String, required: false
attribute :aws_secret_access_key, kind_of: String, required: false
attribute :region,                kind_of: String,  default: 'us-east-1'
attribute :from_port,             kind_of: Integer, default: 0
attribute :to_port,               kind_of: Integer, default: 65_535
attribute :mocking,               kind_of: [TrueClass, FalseClass],
                                  default: false

attr_accessor :exists
{'fraction_non_alphanumeric': 0.0937766410912191, 'fraction_numerical': 0.0076726342710997444, 'mean_word_length': 2.210670314637483, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 26, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6165497', 'n_tokens_mistral': 670, 'n_tokens_neox': 637, 'n_words': 187}