if (FALSE) {
# This example adds a rule that grants access to the specified address
# ranges on TCP port 80.
svc$authorize_security_group_egress(
GroupId = "sg-1a2b3c4d",
IpPermissions = list(
list(
FromPort = 80L,
IpProtocol = "tcp",
IpRanges = list(
list(
CidrIp = "10.0.0.0/16"
)
),
ToPort = 80L
)
)
)
# This example adds a rule that grants access to the specified security
# group on TCP port 80.
svc$authorize_security_group_egress(
GroupId = "sg-1a2b3c4d",
IpPermissions = list(
list(
FromPort = 80L,
IpProtocol = "tcp",
ToPort = 80L,
UserIdGroupPairs = list(
list(
GroupId = "sg-4b51a32f"
)
)
)
)
)
}
Run the code above in your browser using DataLab