GetSecurityGroups

Use this data source to get IDs and VPC membership of Security Groups that are created outside of this provider.

Using GetSecurityGroups

function getSecurityGroups(args: GetSecurityGroupsArgs, opts?: InvokeOptions): Promise<GetSecurityGroupsResult>
function  get_security_groups(filters=None, tags=None, opts=None)
func GetSecurityGroups(ctx *Context, args *GetSecurityGroupsArgs, opts ...InvokeOption) (*GetSecurityGroupsResult, error)
public static class GetSecurityGroups {
    public static Task<GetSecurityGroupsResult> InvokeAsync(GetSecurityGroupsArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Filters List<GetSecurityGroupsFilterArgs>

One or more name/value pairs to use as filters. There are several valid keys, for a full reference, check out [describe-security-groups in the AWS CLI reference][1].

Tags Dictionary<string, string>

A map of tags, each pair of which must exactly match for desired security groups.

Filters []GetSecurityGroupsFilter

One or more name/value pairs to use as filters. There are several valid keys, for a full reference, check out [describe-security-groups in the AWS CLI reference][1].

Tags map[string]string

A map of tags, each pair of which must exactly match for desired security groups.

filters GetSecurityGroupsFilter[]

One or more name/value pairs to use as filters. There are several valid keys, for a full reference, check out [describe-security-groups in the AWS CLI reference][1].

tags {[key: string]: string}

A map of tags, each pair of which must exactly match for desired security groups.

filters List[GetSecurityGroupsFilter]

One or more name/value pairs to use as filters. There are several valid keys, for a full reference, check out [describe-security-groups in the AWS CLI reference][1].

tags Dict[str, str]

A map of tags, each pair of which must exactly match for desired security groups.

GetSecurityGroups Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

IDs of the matches security groups.

Tags Dictionary<string, string>
VpcIds List<string>

The VPC IDs of the matched security groups. The data source’s tag or filter will span VPCs unless the vpc-id filter is also used.

Filters List<GetSecurityGroupsFilter>
Id string

The provider-assigned unique ID for this managed resource.

Ids []string

IDs of the matches security groups.

Tags map[string]string
VpcIds []string

The VPC IDs of the matched security groups. The data source’s tag or filter will span VPCs unless the vpc-id filter is also used.

Filters []GetSecurityGroupsFilter
id string

The provider-assigned unique ID for this managed resource.

ids string[]

IDs of the matches security groups.

tags {[key: string]: string}
vpcIds string[]

The VPC IDs of the matched security groups. The data source’s tag or filter will span VPCs unless the vpc-id filter is also used.

filters GetSecurityGroupsFilter[]
id str

The provider-assigned unique ID for this managed resource.

ids List[str]

IDs of the matches security groups.

tags Dict[str, str]
vpc_ids List[str]

The VPC IDs of the matched security groups. The data source’s tag or filter will span VPCs unless the vpc-id filter is also used.

filters List[GetSecurityGroupsFilter]

Supporting Types

GetSecurityGroupsFilter

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Name string
Values List<string>
Name string
Values []string
name string
values string[]
name str
values List[str]

Package Details

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