Interface AWSSecurityGroupApi

  • All Superinterfaces:
    SecurityGroupApi

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

    • Method Detail

      • 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:
        #describeSecurityGroups, #authorizeSecurityGroupIngress, #revokeSecurityGroupIngress, #createSecurityGroup,
      • describeSecurityGroupsInRegionById

        @Named("DescribeSecurityGroups")
        @POST
        @Path("/")
        Set<SecurityGroup> describeSecurityGroupsInRegionById​(@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:
        #createSecurityGroup, #authorizeSecurityGroupIngress, #revokeSecurityGroupIngress, #deleteSecurityGroup,
      • describeSecurityGroupsInRegion

        @Named("DescribeSecurityGroups")
        @POST
        @Path("/")
        Set<SecurityGroup> describeSecurityGroupsInRegion​(@Nullable
                                                          String region)
      • 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:
        #createSecurityGroup, #authorizeSecurityGroupIngress, #revokeSecurityGroupIngress, #deleteSecurityGroup,