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
LookupGroupin the Go SDK.
public static class GetGroup {
public static Task<GetGroupResult> InvokeAsync(GetGroupArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetGroup Result
The following output properties are available:
- Arn string
The Amazon Resource Name (ARN) of the Auto Scaling group.
- Availability
Zones List<string> One or more Availability Zones for the group.
- Default
Cooldown int - Desired
Capacity int The desired size of the group.
- Health
Check intGrace 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.
- Health
Check stringType 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.
- Launch
Configuration string The name of the associated launch configuration.
- Load
Balancers List<string> One or more load balancers associated with the group.
- Max
Size int The maximum size of the group.
- Min
Size int The minimum size of the group.
- Name string
The name of the Auto Scaling group.
- New
Instances boolProtected From Scale In - Placement
Group 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.
- Service
Linked stringRole Arn 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.
- Target
Group List<string>Arns The Amazon Resource Names (ARN) of the target groups for your load balancer.
- Termination
Policies List<string> The termination policies for the group.
- Vpc
Zone stringIdentifier VPC ID for the group.
- Arn string
The Amazon Resource Name (ARN) of the Auto Scaling group.
- Availability
Zones []string One or more Availability Zones for the group.
- Default
Cooldown int - Desired
Capacity int The desired size of the group.
- Health
Check intGrace 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.
- Health
Check stringType 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.
- Launch
Configuration string The name of the associated launch configuration.
- Load
Balancers []string One or more load balancers associated with the group.
- Max
Size int The maximum size of the group.
- Min
Size int The minimum size of the group.
- Name string
The name of the Auto Scaling group.
- New
Instances boolProtected From Scale In - Placement
Group 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.
- Service
Linked stringRole Arn 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.
- Target
Group []stringArns The Amazon Resource Names (ARN) of the target groups for your load balancer.
- Termination
Policies []string The termination policies for the group.
- Vpc
Zone stringIdentifier VPC ID for the group.
- arn string
The Amazon Resource Name (ARN) of the Auto Scaling group.
- availability
Zones string[] One or more Availability Zones for the group.
- default
Cooldown number - desired
Capacity number The desired size of the group.
- health
Check numberGrace 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.
- health
Check stringType 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.
- launch
Configuration string The name of the associated launch configuration.
- load
Balancers string[] One or more load balancers associated with the group.
- max
Size number The maximum size of the group.
- min
Size number The minimum size of the group.
- name string
The name of the Auto Scaling group.
- new
Instances booleanProtected From Scale In - placement
Group 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.
- service
Linked stringRole Arn 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.
- target
Group string[]Arns The Amazon Resource Names (ARN) of the target groups for your load balancer.
- termination
Policies string[] The termination policies for the group.
- vpc
Zone stringIdentifier 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_ floatgrace_ 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.
- health_
check_ strtype 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_ boolprotected_ from_ scale_ in - 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_ strrole_ arn 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_ List[str]arns 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_ stridentifier 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
awsTerraform Provider.