ClusterIamRoles

class ClusterIamRoles : KotlinCustomResource

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

Properties

Link copied to clipboard

The name of the Redshift Cluster IAM Roles.

Link copied to clipboard

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>>

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>