Class: Convection::Model::Template::Resource::AutoScalingGroup
Overview
AWS::AutoScaling::AutoScalingGroup
Instance Attribute Summary
#exist, #name, #parent, #properties, #resource_attributes, #template
Instance Method Summary
collapse
#as_attribute, attach_method, #deletion_policy, #depends_on, #initialize, properties, property, #property, #reference, type, #type, #with_output
#condition, #render_condition
#_terraform_module_dir_to_flag, #_terraform_module_flag_to_dir, attach_resource, attach_resource_collection, resource_collection_dsl_methods, resource_dsl_methods
#camel_case, included, method_name, #screaming_snake_case, #snake_case
#base64, #find_in_map, #fn_and, #fn_equals, #fn_if, #fn_import_value, #fn_not, #fn_or, #fn_ref, #fn_sub, #get_att, #get_azs, included, #join, mixers, #select
Instance Method Details
#availability_zone ⇒ Object
#availability_zone(value) ⇒ Object
12
|
# File 'lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb', line 12
property :availability_zone, 'AvailabilityZones', :array
|
#cooldown ⇒ Object
#cooldown(value) ⇒ Object
13
|
# File 'lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb', line 13
property :cooldown, 'Cooldown'
|
#desired_capacity ⇒ Object
#desired_capacity(value) ⇒ Object
14
|
# File 'lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb', line 14
property :desired_capacity, 'DesiredCapacity'
|
#health_check_grace_period ⇒ Object
#health_check_grace_period(value) ⇒ Object
15
|
# File 'lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb', line 15
property :health_check_grace_period, 'HealthCheckGracePeriod'
|
#health_check_type ⇒ Object
#health_check_type(value) ⇒ Object
16
|
# File 'lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb', line 16
property :health_check_type, 'HealthCheckType'
|
#instance_id ⇒ Object
#instance_id(value) ⇒ Object
17
|
# File 'lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb', line 17
property :instance_id, 'InstanceId'
|
#launch_configuration_name ⇒ Object
#launch_configuration_name(value) ⇒ Object
18
|
# File 'lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb', line 18
property :launch_configuration_name, 'LaunchConfigurationName'
|
#load_balancer_name ⇒ Object
#load_balancer_name(value) ⇒ Object
19
|
# File 'lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb', line 19
property :load_balancer_name, 'LoadBalancerNames', :array
|
#max_size ⇒ Object
#max_size(value) ⇒ Object
20
|
# File 'lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb', line 20
property :max_size, 'MaxSize'
|
#metrics_collection ⇒ Object
#metrics_collection(value) ⇒ Object
21
|
# File 'lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb', line 21
property :metrics_collection, 'MetricsCollection', :array
|
#min_size ⇒ Object
#min_size(value) ⇒ Object
22
|
# File 'lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb', line 22
property :min_size, 'MinSize'
|
#notification_configuration ⇒ Object
#notification_configuration(value) ⇒ Object
23
|
# File 'lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb', line 23
property :notification_configuration, 'NotificationConfiguration'
|
#placement_group ⇒ Object
#placement_group(value) ⇒ Object
24
|
# File 'lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb', line 24
property :placement_group, 'PlacementGroup'
|
#render(*args) ⇒ Object
29
30
31
32
33
|
# File 'lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb', line 29
def render(*args)
super.tap do |resource|
render_tags(resource)
end
end
|
#tag(key, value, propagate_at_launch: nil) ⇒ Object
35
36
37
38
39
40
|
# File 'lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb', line 35
def tag(key, value, propagate_at_launch: nil)
tags[key] = { value: value }
tags[key][:propagate_at_launch] = propagate_at_launch unless propagate_at_launch.nil?
tags[key]
end
|
42
43
44
|
# File 'lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb', line 42
def tags
@tags ||= {}
end
|
#target_group_arn(arn) ⇒ Object
46
47
48
|
# File 'lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb', line 46
def target_group_arn(arn)
target_group_arns << arn
end
|
#target_group_arns ⇒ Object
#target_group_arns(value) ⇒ Object
26
|
# File 'lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb', line 26
property :target_group_arns, 'TargetGroupARNs', :array
|
#termination_policie ⇒ Object
#termination_policie(value) ⇒ Object
25
|
# File 'lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb', line 25
property :termination_policie, 'TerminationPolicies', :array
|
#update_policy(&block) ⇒ Object
50
51
52
53
|
# File 'lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb', line 50
def update_policy(&block)
policy = ResourceAttribute::UpdatePolicy.new(self)
policy.instance_exec(&block) if block
end
|
#vpc_zone_identifier ⇒ Object
#vpc_zone_identifier(value) ⇒ Object
27
|
# File 'lib/convection/model/template/resource/aws_auto_scaling_auto_scaling_group.rb', line 27
property :vpc_zone_identifier, 'VPCZoneIdentifier', :array
|