AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Returns information about Amazon Redshift security groups. If the name of a security group is specified, the response will contain only information about only that security group.

For information about managing security groups, go to Amazon Redshift Cluster Security Groups in the Amazon Redshift Cluster Management Guide.

If you specify both tag keys and tag values in the same request, Amazon Redshift returns all security groups that match any combination of the specified keys and values. For example, if you have owner and environment for tag keys, and admin and test for tag values, all security groups that have any combination of those values are returned.

If both tag keys and values are omitted from the request, security groups are returned regardless of whether they have tag keys or values associated with them.


For .NET Core and PCL this operation is only available in asynchronous form. Please refer to DescribeClusterSecurityGroupsAsync.

Namespace: Amazon.Redshift
Assembly: AWSSDK.Redshift.dll
Version: 3.x.y.z


public virtual DescribeClusterSecurityGroupsResponse DescribeClusterSecurityGroups(
         DescribeClusterSecurityGroupsRequest request
Type: Amazon.Redshift.Model.DescribeClusterSecurityGroupsRequest

Container for the necessary parameters to execute the DescribeClusterSecurityGroups service method.

Return Value
The response from the DescribeClusterSecurityGroups service method, as returned by Redshift.


ClusterSecurityGroupNotFoundException The cluster security group name does not refer to an existing cluster security group.
InvalidTagException The tag is invalid.


This example returns a description of all cluster security groups for the account.

To get a description of cluster security groups for the account.

var response = client.DescribeClusterSecurityGroups(new DescribeClusterSecurityGroupsRequest 

List clusterSecurityGroups = response.ClusterSecurityGroups;


Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

See Also