Interface AWSSecurityGroupApi

All Superinterfaces:
SecurityGroupApi

@Beta public interface AWSSecurityGroupApi extends SecurityGroupApi
Provides access to EC2 SecurityGroup Services via their REST API.

  • Method Details

    • createSecurityGroupInRegionAndReturnId

      @Named("CreateSecurityGroup") @POST @Path("/") String createSecurityGroupInRegionAndReturnId(@Nullable String region, @FormParam("GroupName") String name, @FormParam("GroupDescription") String description, CreateSecurityGroupOptions... options)
    • authorizeSecurityGroupIngressInRegion

      @Named("AuthorizeSecurityGroupIngress") @POST @Path("/") void authorizeSecurityGroupIngressInRegion(@Nullable String region, @FormParam("GroupId") String groupId, IpPermission perm)
    • authorizeSecurityGroupIngressInRegion

      @Named("AuthorizeSecurityGroupIngress") @POST @Path("/") void authorizeSecurityGroupIngressInRegion(@Nullable String region, @FormParam("GroupId") String groupId, Iterable<IpPermission> perms)
    • revokeSecurityGroupIngressInRegion

      @Named("RevokeSecurityGroupIngress") @POST @Path("/") void revokeSecurityGroupIngressInRegion(@Nullable String region, @FormParam("GroupId") String groupId, IpPermission perm)
    • revokeSecurityGroupIngressInRegion

      @Named("RevokeSecurityGroupIngress") @POST @Path("/") void revokeSecurityGroupIngressInRegion(@Nullable String region, @FormParam("GroupId") String groupId, Iterable<IpPermission> perms)
    • deleteSecurityGroupInRegionById

      @Named("DeleteSecurityGroup") @POST @Path("/") void deleteSecurityGroupInRegionById(@Nullable String region, @FormParam("GroupId") String name)
      Description copied from interface: SecurityGroupApi
      Deletes a security group by ID.
      Specified by:
      deleteSecurityGroupInRegionById in interface SecurityGroupApi
      Parameters:
      region - Security groups are not copied across Regions. Instances within the Region cannot communicate with instances outside the Region using group-based firewall rules. Traffic from instances in another Region is seen as WAN bandwidth.
      name - ID of the security group to delete.
      See Also:
      • invalid reference
        #describeSecurityGroups
      • invalid reference
        #authorizeSecurityGroupIngress
      • invalid reference
        #revokeSecurityGroupIngress
      • invalid reference
        #createSecurityGroup
    • describeSecurityGroupsInRegionById

      @Named("DescribeSecurityGroups") @POST @Path("/") Set<SecurityGroupdescribeSecurityGroupsInRegionById(@Nullable String region, String... securityGroupNames)
    • describeSecurityGroupsInRegion

      @Named("DescribeSecurityGroups") @POST @Path("/") Set<SecurityGroup> describeSecurityGroupsInRegion(@Nullable String region, String... securityGroupNames)
      Description copied from interface: SecurityGroupApi
      Returns information about security groups that you own.

      NOTE Works with groups in default VPC only

      Specified by:
      describeSecurityGroupsInRegion in interface SecurityGroupApi
      Parameters:
      region - Security groups are not copied across Regions. Instances within the Region cannot communicate with instances outside the Region using group-based firewall rules. Traffic from instances in another Region is seen as WAN bandwidth.
      securityGroupNames - Name of the security groups
      See Also:
      • invalid reference
        #createSecurityGroup
      • invalid reference
        #authorizeSecurityGroupIngress
      • invalid reference
        #revokeSecurityGroupIngress
      • invalid reference
        #deleteSecurityGroup
    • describeSecurityGroupsInRegion

    • describeSecurityGroupsInRegionWithFilter

      @Named("DescribeSecurityGroups") @POST @Path("/") Set<SecurityGroup> describeSecurityGroupsInRegionWithFilter(@Nullable String region, com.google.common.collect.Multimap<String,String> filter)
      Description copied from interface: SecurityGroupApi
      Returns information about security groups that you own.
      Specified by:
      describeSecurityGroupsInRegionWithFilter in interface SecurityGroupApi
      Parameters:
      region - Security groups are not copied across Regions. Instances within the Region cannot communicate with instances outside the Region using group-based firewall rules. Traffic from instances in another Region is seen as WAN bandwidth.
      filter - Multimap of filter key/values.
      See Also:
      • invalid reference
        #createSecurityGroup
      • invalid reference
        #authorizeSecurityGroupIngress
      • invalid reference
        #revokeSecurityGroupIngress
      • invalid reference
        #deleteSecurityGroup