public interface SecurityGroupApi
| Modifier and Type | Method and Description |
|---|---|
void |
authorizeSecurityGroupIngressInRegion(String region,
String groupName,
IpProtocol ipProtocol,
int fromPort,
int toPort,
String cidrIp)
Adds permissions to a security group.
|
void |
authorizeSecurityGroupIngressInRegion(String region,
String groupName,
UserIdGroupPair sourceSecurityGroup)
Adds permissions to a security group based on another group.
|
void |
createSecurityGroupInRegion(String region,
String name,
String description)
Creates a new security group.
|
void |
deleteSecurityGroupInRegion(String region,
String name)
Deletes a security group that you own.
|
void |
deleteSecurityGroupInRegionById(String region,
String id)
Deletes a security group by ID.
|
Set<SecurityGroup> |
describeSecurityGroupsInRegion(String region,
String... securityGroupNames)
Returns information about security groups that you own.
|
Set<SecurityGroup> |
describeSecurityGroupsInRegionWithFilter(String region,
com.google.common.collect.Multimap<String,String> filter)
Returns information about security groups that you own.
|
void |
revokeSecurityGroupIngressInRegion(String region,
String groupName,
IpProtocol ipProtocol,
int fromPort,
int toPort,
String cidrIp)
Revokes permissions from a security group.
|
void |
revokeSecurityGroupIngressInRegion(String region,
String groupName,
UserIdGroupPair sourceSecurityGroup)
Revokes permissions from a security group.
|
@Named(value="CreateSecurityGroup")
@POST
@Path(value="/")
void createSecurityGroupInRegion(@Nullable
String region,
@FormParam(value="GroupName")
String name,
@FormParam(value="GroupDescription")
String description)
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 - Name of the security group. Accepts alphanumeric characters, spaces, dashes, and
underscores.description - Description of the group. This is informational only. If the description contains
spaces, you must enc lose it in single quotes (') or URL-encode it. Accepts
alphanumeric characters, spaces, dashes, and underscores.#runInstances,
#describeSecurityGroups,
#authorizeSecurityGroupIngress,
#revokeSecurityGroupIngress,
#deleteSecurityGroup,
@Named(value="DeleteSecurityGroup")
@POST
@Path(value="/")
void deleteSecurityGroupInRegionById(@Nullable
String region,
@FormParam(value="GroupId")
String id)
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.id - ID of the security group to delete.#describeSecurityGroups,
#authorizeSecurityGroupIngress,
#revokeSecurityGroupIngress,
#createSecurityGroup,
@Named(value="DeleteSecurityGroup")
@POST
@Path(value="/")
void deleteSecurityGroupInRegion(@Nullable
String region,
@FormParam(value="GroupName")
String name)
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 - Name of the security group to delete.#describeSecurityGroups,
#authorizeSecurityGroupIngress,
#revokeSecurityGroupIngress,
#createSecurityGroup,
@Named(value="DescribeSecurityGroups") @POST @Path(value="/") Set<SecurityGroup> describeSecurityGroupsInRegion(@Nullable String region, String... securityGroupNames)
NOTE Works with groups in default VPC only
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#createSecurityGroup,
#authorizeSecurityGroupIngress,
#revokeSecurityGroupIngress,
#deleteSecurityGroup,
@Named(value="DescribeSecurityGroups") @POST @Path(value="/") Set<SecurityGroup> describeSecurityGroupsInRegionWithFilter(@Nullable String region, com.google.common.collect.Multimap<String,String> filter)
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.#createSecurityGroup,
#authorizeSecurityGroupIngress,
#revokeSecurityGroupIngress,
#deleteSecurityGroup,
@Named(value="AuthorizeSecurityGroupIngress")
@POST
@Path(value="/")
void authorizeSecurityGroupIngressInRegion(@Nullable
String region,
@FormParam(value="GroupName")
String groupName,
UserIdGroupPair sourceSecurityGroup)
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.groupName - Name of the group to modify. The name must be valid and belong to the identitysourceSecurityGroup - group to associate with this group.#createSecurityGroup,
#describeSecurityGroups,
#revokeSecurityGroupIngress,
#deleteSecurityGroup,
@Named(value="AuthorizeSecurityGroupIngress")
@POST
@Path(value="/")
void authorizeSecurityGroupIngressInRegion(@Nullable
String region,
@FormParam(value="GroupName")
String groupName,
@FormParam(value="IpProtocol")
IpProtocol ipProtocol,
@FormParam(value="FromPort")
int fromPort,
@FormParam(value="ToPort")
int toPort,
@FormParam(value="CidrIp")
String cidrIp)
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.groupName - Name of the group to modify. The name must be valid and belong to the identityipProtocol - IP protocol.fromPort - Start of port range for the TCP and UDP protocols, or an ICMP type number. An ICMP
type number of -1 indicates a wildcard (i.e., any ICMP type number).toPort - End of port range for the TCP and UDP protocols, or an ICMP code. An ICMP code of -1
indicates a wildcard (i.e., any ICMP code).cidrIp - CIDR range.#createSecurityGroup,
#describeSecurityGroups,
#revokeSecurityGroupIngress,
#deleteSecurityGroup,
@Named(value="RevokeSecurityGroupIngress")
@POST
@Path(value="/")
void revokeSecurityGroupIngressInRegion(@Nullable
String region,
@FormParam(value="GroupName")
String groupName,
UserIdGroupPair sourceSecurityGroup)
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.groupName - Name of the group to modify. The name must be valid and belong to the identitysourceSecurityGroup - group to associate with this group.#createSecurityGroup,
#describeSecurityGroups,
#authorizeSecurityGroupIngress,
#deleteSecurityGroup,
@Named(value="RevokeSecurityGroupIngress")
@POST
@Path(value="/")
void revokeSecurityGroupIngressInRegion(@Nullable
String region,
@FormParam(value="GroupName")
String groupName,
@FormParam(value="IpProtocol")
IpProtocol ipProtocol,
@FormParam(value="FromPort")
int fromPort,
@FormParam(value="ToPort")
int toPort,
@FormParam(value="CidrIp")
String cidrIp)
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.groupName - Name of the group to modify. The name must be valid and belong to the identityipProtocol - IP protocol.fromPort - Start of port range for the TCP and UDP protocols, or an ICMP type number. An ICMP
type number of -1 indicates a wildcard (i.e., any ICMP type number).toPort - End of port range for the TCP and UDP protocols, or an ICMP code. An ICMP code of -1
indicates a wildcard (i.e., any ICMP code).cidrIp - CIDR range.#createSecurityGroup,
#describeSecurityGroups,
#authorizeSecurityGroupIngress,
#deleteSecurityGroup,
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.