Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 SecurityGroups in the Amazon Elastic Compute Cloud User Guide for Linux and SecurityGroups for Your VPC in the Amazon Virtual Private Cloud User Guide.
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
.
http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-CreateSecurityGroup.html
- data CreateSecurityGroup
- createSecurityGroup :: Text -> Text -> CreateSecurityGroup
- csgDescription :: Lens' CreateSecurityGroup Text
- csgDryRun :: Lens' CreateSecurityGroup (Maybe Bool)
- csgGroupName :: Lens' CreateSecurityGroup Text
- csgVpcId :: Lens' CreateSecurityGroup (Maybe Text)
- data CreateSecurityGroupResponse
- createSecurityGroupResponse :: Text -> CreateSecurityGroupResponse
- csgrGroupId :: Lens' CreateSecurityGroupResponse Text
Request
data CreateSecurityGroup Source
Eq CreateSecurityGroup | |
Ord CreateSecurityGroup | |
Read CreateSecurityGroup | |
Show CreateSecurityGroup | |
AWSRequest CreateSecurityGroup | |
ToQuery CreateSecurityGroup | |
ToPath CreateSecurityGroup | |
ToHeaders CreateSecurityGroup | |
type Sv CreateSecurityGroup = EC2 | |
type Rs CreateSecurityGroup = CreateSecurityGroupResponse |
Request constructor
CreateSecurityGroup
constructor.
The fields accessible through corresponding lenses are:
csgDescription
::
Text
csgDryRun
::
Maybe
Bool
csgGroupName
::
Text
csgVpcId
::
Maybe
Text
Request lenses
csgDescription :: Lens' CreateSecurityGroup Text Source
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 ._-:/()#,@[]+=&;{}!$*
csgGroupName :: Lens' CreateSecurityGroup Text Source
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 ._-:/()#,@[]+=&;{}!$*
csgVpcId :: Lens' CreateSecurityGroup (Maybe Text) Source
- EC2-VPC
- The ID of the VPC. Required for EC2-VPC.
Response
Response constructor
createSecurityGroupResponse Source
CreateSecurityGroupResponse
constructor.
The fields accessible through corresponding lenses are:
csgrGroupId
::
Text
Response lenses
csgrGroupId :: Lens' CreateSecurityGroupResponse Text Source
The ID of the security group.