GetGroup

Use this data source to get information on an existing autoscaling group.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = Output.Create(Aws.AutoScaling.GetGroup.InvokeAsync(new Aws.AutoScaling.GetGroupArgs
        {
            Name = "foo",
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/autoscaling"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := autoscaling.LookupGroup(ctx, &autoscaling.LookupGroupArgs{
            Name: "foo",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

foo = aws.autoscaling.get_group(name="foo")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const foo = pulumi.output(aws.autoscaling.getGroup({
    name: "foo",
}, { async: true }));

Using GetGroup

function getGroup(args: GetGroupArgs, opts?: InvokeOptions): Promise<GetGroupResult>
function  get_group(name=None, opts=None)
func LookupGroup(ctx *Context, args *LookupGroupArgs, opts ...InvokeOption) (*LookupGroupResult, error)

Note: This function is named LookupGroup in the Go SDK.

public static class GetGroup {
    public static Task<GetGroupResult> InvokeAsync(GetGroupArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

Specify the exact name of the desired autoscaling group.

Name string

Specify the exact name of the desired autoscaling group.

name string

Specify the exact name of the desired autoscaling group.

name str

Specify the exact name of the desired autoscaling group.

GetGroup Result

The following output properties are available:

Arn string

The Amazon Resource Name (ARN) of the Auto Scaling group.

AvailabilityZones List<string>

One or more Availability Zones for the group.

DefaultCooldown int
DesiredCapacity int

The desired size of the group.

HealthCheckGracePeriod int

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.

HealthCheckType string

The service to use for the health checks. The valid values are EC2 and ELB.

Id string

The provider-assigned unique ID for this managed resource.

LaunchConfiguration string

The name of the associated launch configuration.

LoadBalancers List<string>

One or more load balancers associated with the group.

MaxSize int

The maximum size of the group.

MinSize int

The minimum size of the group.

Name string

The name of the Auto Scaling group.

NewInstancesProtectedFromScaleIn bool
PlacementGroup string

The name of the placement group into which to launch your instances, if any. For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) in the Amazon Elastic Compute Cloud User Guide.

ServiceLinkedRoleArn string

The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other AWS services on your behalf.

Status string

The current state of the group when DeleteAutoScalingGroup is in progress.

TargetGroupArns List<string>

The Amazon Resource Names (ARN) of the target groups for your load balancer.

TerminationPolicies List<string>

The termination policies for the group.

VpcZoneIdentifier string

VPC ID for the group.

Arn string

The Amazon Resource Name (ARN) of the Auto Scaling group.

AvailabilityZones []string

One or more Availability Zones for the group.

DefaultCooldown int
DesiredCapacity int

The desired size of the group.

HealthCheckGracePeriod int

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.

HealthCheckType string

The service to use for the health checks. The valid values are EC2 and ELB.

Id string

The provider-assigned unique ID for this managed resource.

LaunchConfiguration string

The name of the associated launch configuration.

LoadBalancers []string

One or more load balancers associated with the group.

MaxSize int

The maximum size of the group.

MinSize int

The minimum size of the group.

Name string

The name of the Auto Scaling group.

NewInstancesProtectedFromScaleIn bool
PlacementGroup string

The name of the placement group into which to launch your instances, if any. For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) in the Amazon Elastic Compute Cloud User Guide.

ServiceLinkedRoleArn string

The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other AWS services on your behalf.

Status string

The current state of the group when DeleteAutoScalingGroup is in progress.

TargetGroupArns []string

The Amazon Resource Names (ARN) of the target groups for your load balancer.

TerminationPolicies []string

The termination policies for the group.

VpcZoneIdentifier string

VPC ID for the group.

arn string

The Amazon Resource Name (ARN) of the Auto Scaling group.

availabilityZones string[]

One or more Availability Zones for the group.

defaultCooldown number
desiredCapacity number

The desired size of the group.

healthCheckGracePeriod number

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.

healthCheckType string

The service to use for the health checks. The valid values are EC2 and ELB.

id string

The provider-assigned unique ID for this managed resource.

launchConfiguration string

The name of the associated launch configuration.

loadBalancers string[]

One or more load balancers associated with the group.

maxSize number

The maximum size of the group.

minSize number

The minimum size of the group.

name string

The name of the Auto Scaling group.

newInstancesProtectedFromScaleIn boolean
placementGroup string

The name of the placement group into which to launch your instances, if any. For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) in the Amazon Elastic Compute Cloud User Guide.

serviceLinkedRoleArn string

The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other AWS services on your behalf.

status string

The current state of the group when DeleteAutoScalingGroup is in progress.

targetGroupArns string[]

The Amazon Resource Names (ARN) of the target groups for your load balancer.

terminationPolicies string[]

The termination policies for the group.

vpcZoneIdentifier string

VPC ID for the group.

arn str

The Amazon Resource Name (ARN) of the Auto Scaling group.

availability_zones List[str]

One or more Availability Zones for the group.

default_cooldown float
desired_capacity float

The desired size of the group.

health_check_grace_period float

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.

health_check_type str

The service to use for the health checks. The valid values are EC2 and ELB.

id str

The provider-assigned unique ID for this managed resource.

launch_configuration str

The name of the associated launch configuration.

load_balancers List[str]

One or more load balancers associated with the group.

max_size float

The maximum size of the group.

min_size float

The minimum size of the group.

name str

The name of the Auto Scaling group.

new_instances_protected_from_scale_in bool
placement_group str

The name of the placement group into which to launch your instances, if any. For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) in the Amazon Elastic Compute Cloud User Guide.

service_linked_role_arn str

The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other AWS services on your behalf.

status str

The current state of the group when DeleteAutoScalingGroup is in progress.

target_group_arns List[str]

The Amazon Resource Names (ARN) of the target groups for your load balancer.

termination_policies List[str]

The termination policies for the group.

vpc_zone_identifier str

VPC ID for the group.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.