Auto Scaling
autoscaling.auto_scaling_group
- class autoscaling.auto_scaling_group
-
Discovery Example:
>>> from cloudwanderer import CloudWanderer, ServiceResourceType >>> from cloudwanderer.storage_connectors import GremlinStorageConnector >>> cloud_wanderer = CloudWanderer(storage_connectors=[ ... GremlinStorageConnector( ... endpoint_url="ws://localhost:8182", ... ) ... ]) >>> cloud_wanderer.write_resources( ... service_resource_types=[ServiceResourceType("autoscaling","auto_scaling_group")] ... )
OpenCypher Example:
How to query resources of this type using OpenCypher in Neptune.
MATCH (auto_scaling_group:aws_autoscaling_auto_scaling_group) RETURN *
Gremlin Example:
How to query resources of this type using Gremlin in Neptune/local Gremlin.
g.V().hasLabel('aws_autoscaling_auto_scaling_group').out().path().by(valueMap(true))
- auto_scaling_group_arn
The Amazon Resource Name (ARN) of the Auto Scaling group.
- availability_zones
One or more Availability Zones for the group.
- capacity_rebalance
Indicates whether Capacity Rebalancing is enabled.
- context
Reserved.
- created_time
The date and time the group was created.
- default_cooldown
The duration of the default cooldown period, in seconds.
- desired_capacity
The desired size of the group.
- desired_capacity_type
The unit of measurement for the value specified for desired capacity. Amazon EC2 Auto Scaling supports
DesiredCapacityType
for attribute-based instance type selection only. For more information, see Creating an Auto Scaling group using attribute-based instance type selection in the Amazon EC2 Auto Scaling User Guide . By default, Amazon EC2 Auto Scaling specifiesunits
, which translates into number of instances. Valid values:units
|vcpu
|memory-mib
- enabled_metrics
The metrics enabled for the group.
- health_check_grace_period
The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before checking the health status of an EC2 instance that has come into service and marking it unhealthy due to a failed health check.
- health_check_type
The service to use for the health checks. The valid values are
EC2
andELB
. If you configure an Auto Scaling group to useELB
health checks, it considers the instance unhealthy if it fails either the EC2 status checks or the load balancer health checks.
- instances
The EC2 instances associated with the group.
- launch_configuration_name
The name of the associated launch configuration.
- launch_template
The launch template for the group.
- load_balancer_names
One or more load balancers associated with the group.
- max_instance_lifetime
The maximum amount of time, in seconds, that an instance can be in service. Valid Range: Minimum value of 0.
- max_size
The maximum size of the group.
- min_size
The minimum size of the group.
- mixed_instances_policy
The mixed instances policy for the group.
- new_instances_protected_from_scale_in
Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling in.
- placement_group
The name of the placement group into which to launch your instances, if any.
- predicted_capacity
The predicted capacity of the group when it has a predictive scaling policy.
- service_linked_role_arn
The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other Amazon Web Services on your behalf.
- status
The current state of the group when the DeleteAutoScalingGroup operation is in progress.
- suspended_processes
The suspended processes associated with the group.
- tags
The tags for the group.
- target_group_arns
The Amazon Resource Names (ARN) of the target groups for your load balancer.
- termination_policies
The termination policies for the group.
- vpc_zone_identifier
One or more subnet IDs, if applicable, separated by commas.
- warm_pool_configuration
The warm pool for the group.
- warm_pool_size
The current size of the warm pool.
autoscaling.launch_configuration
- class autoscaling.launch_configuration
-
Discovery Example:
>>> from cloudwanderer import CloudWanderer, ServiceResourceType >>> from cloudwanderer.storage_connectors import GremlinStorageConnector >>> cloud_wanderer = CloudWanderer(storage_connectors=[ ... GremlinStorageConnector( ... endpoint_url="ws://localhost:8182", ... ) ... ]) >>> cloud_wanderer.write_resources( ... service_resource_types=[ServiceResourceType("autoscaling","launch_configuration")] ... )
OpenCypher Example:
How to query resources of this type using OpenCypher in Neptune.
MATCH (launch_configuration:aws_autoscaling_launch_configuration) RETURN *
Gremlin Example:
How to query resources of this type using Gremlin in Neptune/local Gremlin.
g.V().hasLabel('aws_autoscaling_launch_configuration').out().path().by(valueMap(true))
- associate_public_ip_address
For Auto Scaling groups that are running in a VPC, specifies whether to assign a public IP address to the group’s instances. For more information, see Launching Auto Scaling instances in a VPC in the Amazon EC2 Auto Scaling User Guide .
- block_device_mappings
A block device mapping, which specifies the block devices for the instance. For more information, see Block Device Mapping in the Amazon EC2 User Guide for Linux Instances .
- classic_link_vpc_id
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. For more information, see ClassicLink in the Amazon EC2 User Guide for Linux Instances and Linking EC2-Classic instances to a VPC in the Amazon EC2 Auto Scaling User Guide .
- classic_link_vpc_security_groups
The IDs of one or more security groups for the VPC specified in
ClassicLinkVPCId
. For more information, see ClassicLink in the Amazon EC2 User Guide for Linux Instances and Linking EC2-Classic instances to a VPC in the Amazon EC2 Auto Scaling User Guide .
- created_time
The creation date and time for the launch configuration.
- ebs_optimized
Specifies whether the launch configuration is optimized for EBS I/O (
true
) or not (false
). For more information, see Amazon EBS-Optimized Instances in the Amazon EC2 User Guide for Linux Instances .
- iam_instance_profile
The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. The instance profile contains the IAM role. For more information, see IAM role for applications that run on Amazon EC2 instances in the Amazon EC2 Auto Scaling User Guide .
- image_id
The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances. For more information, see Finding an AMI in the Amazon EC2 User Guide for Linux Instances .
- instance_monitoring
Controls whether instances in this group are launched with detailed (
true
) or basic (false
) monitoring. For more information, see Configure Monitoring for Auto Scaling Instances in the Amazon EC2 Auto Scaling User Guide .
- instance_type
The instance type for the instances. For information about available instance types, see Available Instance Types in the Amazon EC2 User Guide for Linux Instances .
- kernel_id
The ID of the kernel associated with the AMI.
- key_name
The name of the key pair. For more information, see Amazon EC2 Key Pairs in the Amazon EC2 User Guide for Linux Instances .
- launch_configuration_arn
The Amazon Resource Name (ARN) of the launch configuration.
- metadata_options
The metadata options for the instances. For more information, see Configuring the Instance Metadata Options in the Amazon EC2 Auto Scaling User Guide .
- placement_tenancy
The tenancy of the instance, either
default
ordedicated
. An instance withdedicated
tenancy runs on isolated, single-tenant hardware and can only be launched into a VPC. For more information, see Configuring instance tenancy with Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide .
- ramdisk_id
The ID of the RAM disk associated with the AMI.
- security_groups
A list that contains the security groups to assign to the instances in the Auto Scaling group. For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide .
- spot_price
The maximum hourly price to be paid for any Spot Instance launched to fulfill the request. Spot Instances are launched when the price you specify exceeds the current Spot price. For more information, see Requesting Spot Instances in the Amazon EC2 Auto Scaling User Guide .
- user_data
The user data to make available to the launched EC2 instances. For more information, see Instance metadata and user data (Linux) and Instance metadata and user data (Windows). If you are using a command line tool, base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide base64-encoded text. User data is limited to 16 KB.