{
  "opencollection": "1.0.0",
  "info": {
    "name": "Amazon EC2 AMIs Security Groups API",
    "version": "2016-11-15"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Security Groups",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Amazon EC2 Create a Security Group",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://ec2.{region}.amazonaws.com/?Action=CreateSecurityGroup",
            "params": [
              {
                "name": "GroupName",
                "value": "example-cluster-01",
                "type": "query",
                "description": "The name of the security group"
              },
              {
                "name": "GroupDescription",
                "value": "example-cluster-01",
                "type": "query",
                "description": "A description for the security group"
              },
              {
                "name": "VpcId",
                "value": "example-id-1234",
                "type": "query",
                "description": "The ID of the VPC for the security group"
              }
            ]
          },
          "docs": "Creates a security group. A security group acts as a virtual firewall for your instances to control inbound and outbound traffic."
        },
        {
          "info": {
            "name": "Amazon EC2 Describe Security Groups",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://ec2.{region}.amazonaws.com/?Action=DescribeSecurityGroups",
            "params": [
              {
                "name": "GroupId",
                "value": "example-cluster-01",
                "type": "query",
                "description": "The IDs of the security groups to describe"
              },
              {
                "name": "GroupName",
                "value": "example-cluster-01",
                "type": "query",
                "description": "The names of the security groups to describe"
              }
            ]
          },
          "docs": "Describes the specified security groups or all of your security groups. A security group is for use with instances either in the EC2-Classic platform or in a specific VPC."
        },
        {
          "info": {
            "name": "Amazon EC2 Add Inbound Security Group Rules",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://ec2.{region}.amazonaws.com/?Action=AuthorizeSecurityGroupIngress",
            "params": [
              {
                "name": "GroupId",
                "value": "example-cluster-01",
                "type": "query",
                "description": "The ID of the security group"
              },
              {
                "name": "IpProtocol",
                "value": "example-string",
                "type": "query",
                "description": "The IP protocol name (tcp, udp, icmp) or number"
              },
              {
                "name": "FromPort",
                "value": "27017",
                "type": "query",
                "description": "The start of port range for TCP and UDP protocols"
              },
              {
                "name": "ToPort",
                "value": "27017",
                "type": "query",
                "description": "The end of port range for TCP and UDP protocols"
              },
              {
                "name": "CidrIp",
                "value": "example-id-1234",
                "type": "query",
                "description": "The IPv4 CIDR range"
              }
            ]
          },
          "docs": "Adds the specified inbound (ingress) rules to a security group. An inbound rule permits instances to receive traffic from the specified IPv4 or IPv6 CIDR address range, or from the instances associated with the specified security group."
        },
        {
          "info": {
            "name": "Amazon EC2 Delete a Security Group",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://ec2.{region}.amazonaws.com/?Action=DeleteSecurityGroup",
            "params": [
              {
                "name": "GroupId",
                "value": "example-cluster-01",
                "type": "query",
                "description": "The ID of the security group to delete"
              },
              {
                "name": "GroupName",
                "value": "example-cluster-01",
                "type": "query",
                "description": "The name of the security group to delete"
              }
            ]
          },
          "docs": "Deletes a security group. If you attempt to delete a security group that is associated with an instance, or is referenced by another security group, the operation fails."
        }
      ]
    }
  ],
  "bundled": true
}