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<Get
Security Groups Filter Args> 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].
- Dictionary<string, string>
A map of tags, each pair of which must exactly match for desired security groups.
- Filters
[]Get
Security Groups Filter 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].
- map[string]string
A map of tags, each pair of which must exactly match for desired security groups.
- filters
Get
Security Groups Filter[] 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].
- {[key: string]: string}
A map of tags, each pair of which must exactly match for desired security groups.
- filters
List[Get
Security Groups Filter] 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].
- 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.
- Dictionary<string, string>
- Vpc
Ids List<string> The VPC IDs of the matched security groups. The data source’s tag or filter will span VPCs unless the
vpc-idfilter is also used.- Filters
List<Get
Security Groups Filter>
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
IDs of the matches security groups.
- map[string]string
- Vpc
Ids []string The VPC IDs of the matched security groups. The data source’s tag or filter will span VPCs unless the
vpc-idfilter is also used.- Filters
[]Get
Security Groups Filter
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
IDs of the matches security groups.
- {[key: string]: string}
- vpc
Ids string[] The VPC IDs of the matched security groups. The data source’s tag or filter will span VPCs unless the
vpc-idfilter is also used.- filters
Get
Security Groups Filter[]
- id str
The provider-assigned unique ID for this managed resource.
- ids List[str]
IDs of the matches security groups.
- 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-idfilter is also used.- filters
List[Get
Security Groups Filter]
Supporting Types
GetSecurityGroupsFilter
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.