AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Describes a security group and Amazon Web Services account ID pair.
We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC.
For more information, see Migrate
from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide.
Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z
public class UserIdGroupPair
The UserIdGroupPair type exposes the following members
Name | Description | |
---|---|---|
![]() |
UserIdGroupPair() |
Name | Type | Description | |
---|---|---|---|
![]() |
Description | System.String |
Gets and sets the property Description. A description for the security group rule that references this user ID group pair. Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$* |
![]() |
GroupId | System.String |
Gets and sets the property GroupId. The ID of the security group. |
![]() |
GroupName | System.String |
Gets and sets the property GroupName. The name of the security group. In a request, use this parameter for a security group in EC2-Classic or a default VPC only. For a security group in a nondefault VPC, use the security group ID. For a referenced security group in another VPC, this value is not returned if the referenced security group is deleted. |
![]() |
PeeringStatus | System.String |
Gets and sets the property PeeringStatus. The status of a VPC peering connection, if applicable. |
![]() |
UserId | System.String |
Gets and sets the property UserId. The ID of an Amazon Web Services account. For a referenced security group in another VPC, the account ID of the referenced security group is returned in the response. If the referenced security group is deleted, this value is not returned. [EC2-Classic] Required when adding or removing rules that reference a security group in another Amazon Web Services account. |
![]() |
VpcId | System.String |
Gets and sets the property VpcId. The ID of the VPC for the referenced security group, if applicable. |
![]() |
VpcPeeringConnectionId | System.String |
Gets and sets the property VpcPeeringConnectionId. The ID of the VPC peering connection, if applicable. |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5