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 Identity and Access Management (IAM) roles that can be used by the cluster to access other Amazon Web Services services.
The maximum number of IAM roles that you can associate is subject to a quota. For more information, go to Quotas and limits in the Amazon Redshift Cluster Management Guide.
Namespace: Amazon.Redshift.Model
Assembly: AWSSDK.Redshift.dll
Version: 3.x.y.z
public class ModifyClusterIamRolesRequest : AmazonRedshiftRequest IAmazonWebServiceRequest
The ModifyClusterIamRolesRequest type exposes the following members
Name | Description | |
---|---|---|
ModifyClusterIamRolesRequest() |
Name | Type | Description | |
---|---|---|---|
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. |
|
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. |
|
DefaultIamRoleArn | System.String |
Gets and sets the property DefaultIamRoleArn. The Amazon Resource Name (ARN) for the IAM role that was set as default for the cluster when the cluster was last modified. |
|
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. |
This example adds an IAM role the specified cluster.
var client = new AmazonRedshiftClient(); var response = client.ModifyClusterIamRoles(new ModifyClusterIamRolesRequest { AddIamRoles = new List<string> { "arn:aws:iam::112233445566:role/myRedshiftRole" }, ClusterIdentifier = "mycluster" });
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5