<commit_before>require_relative '../resource'

module Convection
  module Model
    class Template
      class Resource
        ##
        # AWS::RDS::DBInstance
        ##
        class RDSDBInstance < Resource
          include Model::Mixin::Taggable

          def initialize(*args)
            super
            type 'AWS::RDS::DBInstance'
          end

          def allocated_storage(value)
            property('AllocatedStorage', value)
          end

          def allow_major_version_upgrade(value)
            property('AllowMajorVersionUpgrade', value)
          end

          def auto_minor_version_upgrade(value)
            property('AutoMinorVersionUpgrade', value)
          end

          def availability_zone(value)
            property('AvailabilityZone', value)
          end

          def backup_retention_period(value)
            property('BackupRetentionPeriod', value)
          end

          def db_instance_class(value)
            property('DBInstanceClass', value)
          end

          def db_instance_identifier(value)
            property('DBInstanceIdentifier', value)
          end

          def db_name(value)
            property('DBName', value)
          end

          def db_parameter_group_name(value)
            property('DBParameterGroupName', value)
          end

          def db_security_groups(value)
            property('DBSecurityGroups', value)
          end

          def db_snapshot_identifier(value)
            property('DBSnapshotIdentifier', value)
          end

          def db_subnet_group_name(value)
            property('DBSubnetGroupName', value)
          end

          def engine(value)
            property('Engine', value)
          end

          def engine_version(value)
            property('EngineVersion', value)
          end

          def iops(value)
            property('Iops', value)
          end

          def license_model(value)
            property('LicenseModel', value)
          end

          def master_username(value)
            property('MasterUsername', value)
          end

          def master_user_password(value)
            property('MasterUserPassword', value)
          end

          def multi_az(value)
            property('MultiAZ', value)
          end

          def option_group_name(value)
            property('OptionGroupName', value)
          end

          def port(value)
            property('Port', value)
          end

          def preferred_backup_window(value)
            property('PreferredBackupWindow', value)
          end

          def preferred_maintenance_window(value)
            property('PreferredMaintenanceWindow', value)
          end

          def publicly_accessible(value)
            property('PubliclyAccessible', value)
          end

          def source_db_instance_identifier(value)
            property('SourceDBInstanceIdentifier', value)
          end

          def storage_type(value)
            property('StorageType', value)
          end

          def vpc_security_groups(value)
            property('VPCSecurityGroups', value)
          end

          def render(*args)
            super.tap do |resource|
              render_tags(resource)
            end
          end
        end<commit_msg>CORE-469 Changes DBSecurityGroup and VPCSecurityGroup to arrays<commit_after>require_relative '../resource'

module Convection
  module Model
    class Template
      class Resource
        ##
        # AWS::RDS::DBInstance
        ##
        class RDSDBInstance < Resource
          include Model::Mixin::Taggable

          def initialize(*args)
            super
            type 'AWS::RDS::DBInstance'
            @property['DBSecurityGroups'] = []
            @property['VPCSecurityGroups'] = []
          end

          def allocated_storage(value)
            property('AllocatedStorage', value)
          end

          def allow_major_version_upgrade(value)
            property('AllowMajorVersionUpgrade', value)
          end

          def auto_minor_version_upgrade(value)
            property('AutoMinorVersionUpgrade', value)
          end

          def availability_zone(value)
            property('AvailabilityZone', value)
          end

          def backup_retention_period(value)
            property('BackupRetentionPeriod', value)
          end

          def db_instance_class(value)
            property('DBInstanceClass', value)
          end

          def db_instance_identifier(value)
            property('DBInstanceIdentifier', value)
          end

          def db_name(value)
            property('DBName', value)
          end

          def db_parameter_group_name(value)
            property('DBParameterGroupName', value)
          end

          def db_security_groups(value)
            @property['DBSecurityGroups'] << value
          end

          def db_snapshot_identifier(value)
            property('DBSnapshotIdentifier', value)
          end

          def db_subnet_group_name(value)
            property('DBSubnetGroupName', value)
          end

          def engine(value)
            property('Engine', value)
          end

          def engine_version(value)
            property('EngineVersion', value)
          end

          def iops(value)
            property('Iops', value)
          end

          def license_model(value)
            property('LicenseModel', value)
          end

          def master_username(value)
            property('MasterUsername', value)
          end

          def master_user_password(value)
            property('MasterUserPassword', value)
          end

          def multi_az(value)
            property('MultiAZ', value)
          end

          def option_group_name(value)
            property('OptionGroupName', value)
          end

          def port(value)
            property('Port', value)
          end

          def preferred_backup_window(value)
            property('PreferredBackupWindow', value)
          end

          def preferred_maintenance_window(value)
            property('PreferredMaintenanceWindow', value)
          end

          def publicly_accessible(value)
            property('PubliclyAccessible', value)
          end

          def source_db_instance_identifier(value)
            property('SourceDBInstanceIdentifier', value)
          end

          def storage_type(value)
            property('StorageType', value)
          end

          def vpc_security_groups(value)
            @property['VPCSecurityGroups'] << value
          end

          def render(*args)
            super.tap do |resource|
              render_tags(resource)
            end
          end
        end
{'fraction_non_alphanumeric': 0.0712684894666069, 'fraction_numerical': 0.00044822949350067237, 'mean_word_length': 1.6754596322941646, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7058037', 'n_tokens_mistral': 1635, 'n_tokens_neox': 1578, 'n_words': 339}