Sha256: cf06ce6a39626d7299cc05f6cd6df1fe33119a974d0111bc37d411130e183e49

Contents?: true

Size: 1.5 KB

Versions: 21

Compression:

Stored size: 1.5 KB

Contents

require_relative '../resource'

module Convection
  module Model
    class Template
      class Resource
        ##
        # AWS::AutoScaling::AutoScalingGroup
        ##
        class AutoScalingGroup < Resource
          include Model::Mixin::Taggable

          type 'AWS::AutoScaling::AutoScalingGroup'
          property :availability_zone, 'AvailabilityZones', :array
          property :cooldown, 'Cooldown'
          property :desired_capacity, 'DesiredCapacity'
          property :health_check_grace_period, 'HealthCheckGracePeriod'
          property :health_check_type, 'HealthCheckType'
          property :instance_id, 'InstanceId'
          property :launch_configuration_name, 'LaunchConfigurationName'
          property :load_balancer_name, 'LoadBalancerNames', :array
          property :max_size, 'MaxSize'
          property :metrics_collection, 'MetricsCollection', :array
          property :min_size, 'MinSize'
          property :notification_configuration, 'NotificationConfiguration'
          property :placement_group, 'PlacementGroup'
          property :termination_policie, 'TerminationPolicies', :array
          property :vpc_zone_identifier, 'VPCZoneIdentifier', :array

          def render(*args)
            super.tap do |resource|
              render_tags(resource)
            end
          end

          def update_policy(&block)
            policy = ResourceAttribute::UpdatePolicy.new(self)
            policy.instance_exec(&block) if block
          end
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
convection-0.4.3 lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb
convection-0.4.2 lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb
convection-0.4.1 lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb
convection-0.4.0 lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb
convection-0.3.3.pre.beta.1 lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb
convection-0.3.2 lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb
convection-0.3.1 lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb
convection-0.3.0 lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb
convection-0.2.34.pre.beta.1 lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb
convection-0.2.33 lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb
convection-0.2.32 lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb
convection-0.2.31 lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb
convection-0.2.30 lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb
convection-0.2.29 lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb
convection-0.2.28 lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb
convection-0.2.27 lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb
convection-0.2.26 lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb
convection-0.2.25 lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb
convection-0.2.24 lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb
convection-0.2.23 lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb