PulumiUP: Hear from technical leaders as they present the vision for the future of cloud engineering. Save Your Spot

getAutoscalingGroups

Deprecated: aws.getAutoscalingGroups has been deprecated in favor of aws.autoscaling.getAmiIds

The Autoscaling Groups data source allows access to the list of AWS ASGs within a specific region. This will allow you to pass a list of AutoScaling Groups to other resources.

Using getAutoscalingGroups

function getAutoscalingGroups(args: GetAutoscalingGroupsArgs, opts?: InvokeOptions): Promise<GetAutoscalingGroupsResult>
def get_autoscaling_groups(filters: Optional[Sequence[GetAutoscalingGroupsFilterArgs]] = None, opts: Optional[InvokeOptions] = None) -> GetAutoscalingGroupsResult
func GetAutoscalingGroups(ctx *Context, args *GetAutoscalingGroupsArgs, opts ...InvokeOption) (*GetAutoscalingGroupsResult, error)

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

public static class GetAutoscalingGroups {
    public static Task<GetAutoscalingGroupsResult> InvokeAsync(GetAutoscalingGroupsArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Filters List<GetAutoscalingGroupsFilterArgs>
A filter used to scope the list e.g. by tags. See related docs.
Filters []GetAutoscalingGroupsFilter
A filter used to scope the list e.g. by tags. See related docs.
filters GetAutoscalingGroupsFilter[]
A filter used to scope the list e.g. by tags. See related docs.
filters Sequence[GetAutoscalingGroupsFilterArgs]
A filter used to scope the list e.g. by tags. See related docs.

getAutoscalingGroups Result

The following output properties are available:

Arns List<string>
A list of the Autoscaling Groups Arns in the current region.
Id string
The provider-assigned unique ID for this managed resource.
Names List<string>
A list of the Autoscaling Groups in the current region.
Filters List<GetAutoscalingGroupsFilter>
Arns []string
A list of the Autoscaling Groups Arns in the current region.
Id string
The provider-assigned unique ID for this managed resource.
Names []string
A list of the Autoscaling Groups in the current region.
Filters []GetAutoscalingGroupsFilter
arns string[]
A list of the Autoscaling Groups Arns in the current region.
id string
The provider-assigned unique ID for this managed resource.
names string[]
A list of the Autoscaling Groups in the current region.
filters GetAutoscalingGroupsFilter[]
arns Sequence[str]
A list of the Autoscaling Groups Arns in the current region.
id str
The provider-assigned unique ID for this managed resource.
names Sequence[str]
A list of the Autoscaling Groups in the current region.
filters Sequence[GetAutoscalingGroupsFilter]

Supporting Types

GetAutoscalingGroupsFilter

Name string
The name of the filter. The valid values are: auto-scaling-group, key, value, and propagate-at-launch.
Values List<string>
The value of the filter.
Name string
The name of the filter. The valid values are: auto-scaling-group, key, value, and propagate-at-launch.
Values []string
The value of the filter.
name string
The name of the filter. The valid values are: auto-scaling-group, key, value, and propagate-at-launch.
values string[]
The value of the filter.
name str
The name of the filter. The valid values are: auto-scaling-group, key, value, and propagate-at-launch.
values Sequence[str]
The value of the filter.

Package Details

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