AWS SDK Version 3 for .NET
API Reference

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 AWS account ID pair.

Inheritance Hierarchy

System.Object
  Amazon.EC2.Model.UserIdGroupPair

Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z

Syntax

C#
public class UserIdGroupPair

The UserIdGroupPair type exposes the following members

Constructors

NameDescription
Public Method UserIdGroupPair()

Properties

NameTypeDescription
Public Property 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 ._-:/()#,@[]+=;{}!$*

Public Property GroupId System.String

Gets and sets the property GroupId.

The ID of the security group.

Public Property 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.

Public Property PeeringStatus System.String

Gets and sets the property PeeringStatus.

The status of a VPC peering connection, if applicable.

Public Property UserId System.String

Gets and sets the property UserId.

The ID of an AWS account. For a referenced security group in another VPC, the account ID of the referenced security group is returned.

[EC2-Classic] Required when adding or removing rules that reference a security group in another AWS account.

Public Property VpcId System.String

Gets and sets the property VpcId.

The ID of the VPC for the referenced security group, if applicable.

Public Property VpcPeeringConnectionId System.String

Gets and sets the property VpcPeeringConnectionId.

The ID of the VPC peering connection, if applicable.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms