AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

UserIdGroupPair

import "github.com/aws/aws-sdk-go/service/ec2"

type UserIdGroupPair struct { Description *string `locationName:"description" type:"string"` GroupId *string `locationName:"groupId" type:"string"` GroupName *string `locationName:"groupName" type:"string"` PeeringStatus *string `locationName:"peeringStatus" type:"string"` UserId *string `locationName:"userId" type:"string"` VpcId *string `locationName:"vpcId" type:"string"` VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"` }

Describes a security group and AWS account ID pair.

Description

Type: *string

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

Type: *string

The ID of the security group.

GroupName

Type: *string

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

Type: *string

The status of a VPC peering connection, if applicable.

UserId

Type: *string

The ID of an AWS 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 AWS account.

VpcId

Type: *string

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

VpcPeeringConnectionId

Type: *string

The ID of the VPC peering connection, if applicable.

Method

GoString

func (s UserIdGroupPair) GoString() string

GoString returns the string representation

SetDescription

func (s *UserIdGroupPair) SetDescription(v string) *UserIdGroupPair

SetDescription sets the Description field's value.

SetGroupId

func (s *UserIdGroupPair) SetGroupId(v string) *UserIdGroupPair

SetGroupId sets the GroupId field's value.

SetGroupName

func (s *UserIdGroupPair) SetGroupName(v string) *UserIdGroupPair

SetGroupName sets the GroupName field's value.

SetPeeringStatus

func (s *UserIdGroupPair) SetPeeringStatus(v string) *UserIdGroupPair

SetPeeringStatus sets the PeeringStatus field's value.

SetUserId

func (s *UserIdGroupPair) SetUserId(v string) *UserIdGroupPair

SetUserId sets the UserId field's value.

SetVpcId

func (s *UserIdGroupPair) SetVpcId(v string) *UserIdGroupPair

SetVpcId sets the VpcId field's value.

SetVpcPeeringConnectionId

func (s *UserIdGroupPair) SetVpcPeeringConnectionId(v string) *UserIdGroupPair

SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.

String

func (s UserIdGroupPair) String() string

String returns the string representation

On this page: