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

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.redshift.ClusterIamRoles("example", {
clusterIdentifier: exampleAwsRedshiftCluster.clusterIdentifier,
iamRoleArns: [exampleAwsIamRole&#46;arn],
});
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"]])
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,
},
});
});
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
})
}
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());
}
}
resources:
example:
type: aws:redshift:ClusterIamRoles
properties:
clusterIdentifier: ${exampleAwsRedshiftCluster.clusterIdentifier}
iamRoleArns:
- ${exampleAwsIamRole.arn}

Import

Using pulumi import, import Redshift Cluster IAM Roless using the cluster_identifier. For example:

$ 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