C# 클래스 Amazon.EC2.Model.CreateSecurityGroupRequest

Container for the parameters to the CreateSecurityGroup operation.

Creates a security group.

A security group is for use with instances either in the EC2-Classic platform or in a specific VPC. For more information, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide .

IMPORTANT: EC2-Classic: You can have up to 500 security groups. EC2-VPC: You can create up to 100 security groups per VPC.

When you create a security group, you specify a friendly name of your choice. You can have a security group for use in EC2-Classic with the same name as a security group for use in a VPC. However, you can't have two security groups for use in EC2-Classic with the same name or two security groups for use in a VPC with the same name.

You have a default security group for use in EC2-Classic and a default security group for use in your VPC. If you don't specify a security group when you launch an instance, the instance is launched into the appropriate default security group. A default security group includes a default rule that grants instances unrestricted network access to each other.

You can add or remove rules from your security groups using AuthorizeSecurityGroupIngress, AuthorizeSecurityGroupEgress, RevokeSecurityGroupIngress, and RevokeSecurityGroupEgress.

상속: AmazonEC2Request
파일 보기 프로젝트 열기: aws/aws-sdk-net 1 사용 예제들

공개 메소드들

메소드 설명
CreateSecurityGroupRequest ( ) : System

Empty constructor used to set properties independently even when a simple constructor is available

CreateSecurityGroupRequest ( string groupName, string description ) : System

Instantiates CreateSecurityGroupRequest with the parameterized properties

비공개 메소드들

메소드 설명
IsSetDescription ( ) : bool
IsSetGroupName ( ) : bool
IsSetVpcId ( ) : bool

메소드 상세

CreateSecurityGroupRequest() 공개 메소드

Empty constructor used to set properties independently even when a simple constructor is available
public CreateSecurityGroupRequest ( ) : System
리턴 System

CreateSecurityGroupRequest() 공개 메소드

Instantiates CreateSecurityGroupRequest with the parameterized properties
public CreateSecurityGroupRequest ( string groupName, string description ) : System
groupName string The name of the security group. Constraints: Up to 255 characters in length Constraints for EC2-Classic: ASCII characters Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
description string A description for the security group. This is informational only. Constraints: Up to 255 characters in length Constraints for EC2-Classic: ASCII characters Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
리턴 System