AWS SDK for .NET Documentation
WithGroupId Method (list)
Amazon ► Amazon.EC2.Model ► ModifyInstanceAttributeRequest ► WithGroupId(array<String>[]()[][])
Did this page help you? Yes No Tell us about it...
Sets the new security groups that an instance belongs to.
Declaration Syntax

C#

    [ObsoleteAttribute("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")]
    public ModifyInstanceAttributeRequest WithGroupId(
    	params string[] list
    )

Parameters

list (array<String>[]()[][])
  This is applicable only to instances running in a VPC. Use this parameter when you want to change the security groups an instance is in. The new set of groups you specify replaces the current set. You must specify at least one group, even if it's just the default security group in the VPC.

Return Value
this instance

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)