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.

Container for the parameters to the ModifyClusterIamRoles operation. Modifies the list of AWS Identity and Access Management (IAM) roles that can be used by the cluster to access other AWS services.

A cluster can have up to 10 IAM roles associated at any time.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.Redshift.AmazonRedshiftRequest
      Amazon.Redshift.Model.ModifyClusterIamRolesRequest

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

Syntax

C#
public class ModifyClusterIamRolesRequest : AmazonRedshiftRequest
         IAmazonWebServiceRequest

The ModifyClusterIamRolesRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property AddIamRoles System.Collections.Generic.List<System.String>

Gets and sets the property AddIamRoles.

Zero or more IAM roles to associate with the cluster. The roles must be in their Amazon Resource Name (ARN) format. You can associate up to 10 IAM roles with a single cluster in a single request.

Public Property ClusterIdentifier System.String

Gets and sets the property ClusterIdentifier.

The unique identifier of the cluster for which you want to associate or disassociate IAM roles.

Public Property RemoveIamRoles System.Collections.Generic.List<System.String>

Gets and sets the property RemoveIamRoles.

Zero or more IAM roles in ARN format to disassociate from the cluster. You can disassociate up to 10 IAM roles from a single cluster in a single request.

Examples

This example adds an IAM role the specified cluster.

To modify a cluster IAM roles


var response = client.ModifyClusterIamRoles(new ModifyClusterIamRolesRequest 
{
    AddIamRoles = new List {
        "arn:aws:iam::112233445566:role/myRedshiftRole"
    },
    ClusterIdentifier = "mycluster"
});


            

Version Information

.NET Standard:
Supported in: 1.3

.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