Cluster Iam Roles Args
    data class ClusterIamRolesArgs(val clusterIdentifier: Output<String>? = null, val defaultIamRoleArn: Output<String>? = null, val iamRoleArns: Output<List<String>>? = null) : ConvertibleToJava<ClusterIamRolesArgs> 
Provides a Redshift Cluster IAM Roles resource.
NOTE: A Redshift cluster's default IAM role can be managed both by this resource's
default_iam_role_arnargument and theaws.redshift.Clusterresource'sdefault_iam_role_arnargument. Do not configure different values for both arguments. Doing so will cause a conflict of default IAM roles.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.redshift.ClusterIamRoles("example", {
    clusterIdentifier: exampleAwsRedshiftCluster.clusterIdentifier,
    iamRoleArns: [exampleAwsIamRole.arn],
});Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.redshift.ClusterIamRoles("example",
    cluster_identifier=example_aws_redshift_cluster["clusterIdentifier"],
    iam_role_arns=[example_aws_iam_role["arn"]])Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
    var example = new Aws.RedShift.ClusterIamRoles("example", new()
    {
        ClusterIdentifier = exampleAwsRedshiftCluster.ClusterIdentifier,
        IamRoleArns = new[]
        {
            exampleAwsIamRole.Arn,
        },
    });
});Content copied to clipboard
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/redshift"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := redshift.NewClusterIamRoles(ctx, "example", &redshift.ClusterIamRolesArgs{
			ClusterIdentifier: pulumi.Any(exampleAwsRedshiftCluster.ClusterIdentifier),
			IamRoleArns: pulumi.StringArray{
				exampleAwsIamRole.Arn,
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.redshift.ClusterIamRoles;
import com.pulumi.aws.redshift.ClusterIamRolesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var example = new ClusterIamRoles("example", ClusterIamRolesArgs.builder()
            .clusterIdentifier(exampleAwsRedshiftCluster.clusterIdentifier())
            .iamRoleArns(exampleAwsIamRole.arn())
            .build());
    }
}Content copied to clipboard
resources:
  example:
    type: aws:redshift:ClusterIamRoles
    properties:
      clusterIdentifier: ${exampleAwsRedshiftCluster.clusterIdentifier}
      iamRoleArns:
        - ${exampleAwsIamRole.arn}Content copied to clipboard
Import
Using pulumi import, import Redshift Cluster IAM Roless using the cluster_identifier. For example:
$ pulumi import aws:redshift/clusterIamRoles:ClusterIamRoles examplegroup1 exampleContent copied to clipboard
Constructors
Link copied to clipboard
                fun ClusterIamRolesArgs(clusterIdentifier: Output<String>? = null, defaultIamRoleArn: Output<String>? = null, iamRoleArns: Output<List<String>>? = null)