User guide

null.");
return;
}
System.out.println("\nPrinting security group results:");
for (ClusterSecurityGroup group : groups)
{
printResultSecurityGroup(group);
}
}
private static void printResultSecurityGroup(ClusterSecurityGroup group) {
System.out.format("\nName: '%s', Description: '%s'\n",
group.getClusterSecurityGroupName(), group.getDescription());
for (EC2SecurityGroup g : group.getEC2SecurityGroups()) {
System.out.format("EC2group: '%s', '%s', '%s'\n", g.getEC2Security
GroupName(), g.getEC2SecurityGroupOwnerId(), g.getStatus());
}
for (IPRange range : group.getIPRanges()) {
System.out.format("IPRanges: '%s', '%s'\n", range.getCIDRIP(),
range.getStatus());
}
}
}
Manage Cluster Security Groups Using the
Amazon Redshift CLI and API
You can use the following Amazon Redshift CLI operations to manage cluster security groups.
authorize-cluster-security-group-ingress
create-cluster-security-group
delete-cluster-security-group
describe-cluster-security-groups
revoke-cluster-security-group-ingress
You can use the following Amazon Redshift APIs to manage cluster security groups.
AuthorizeClusterSecurityGroupIngress
CreateClusterSecurityGroup
DeleteClusterSecurityGroup
DescribeClusterSecurityGroups
RevokeClusterSecurityGroupIngress
API Version 2012-12-01
55
Amazon Redshift Management Guide
Manage Cluster Security Groups Using the Amazon
Redshift CLI and API