ClusterIamRolesArgs

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_arn argument and the aws.redshift.Cluster resource's default_iam_role_arn argument. Do not configure different values for both arguments. Doing so will cause a conflict of default IAM roles.

Example Usage

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(aws_redshift_cluster.example().cluster_identifier())
.iamRoleArns(aws_iam_role.example().arn())
.build());
}
}

Import

Redshift Cluster IAM Roless can be imported using the cluster_identifier, e.g.,

$ pulumi import aws:redshift/clusterIamRoles:ClusterIamRoles examplegroup1 example

Constructors

Link copied to clipboard
constructor(clusterIdentifier: Output<String>? = null, defaultIamRoleArn: Output<String>? = null, iamRoleArns: Output<List<String>>? = null)

Properties

Link copied to clipboard
val clusterIdentifier: Output<String>? = null

The name of the Redshift Cluster IAM Roles.

Link copied to clipboard
val defaultIamRoleArn: Output<String>? = null

The Amazon Resource Name (ARN) for the IAM role that was set as default for the cluster when the cluster was created.

Link copied to clipboard
val iamRoleArns: Output<List<String>>? = null

A list of IAM Role ARNs to associate with the cluster. A Maximum of 10 can be associated to the cluster at any time.

Functions

Link copied to clipboard
open override fun toJava(): ClusterIamRolesArgs