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