Package com.pulumi.aws.rds
Class ClusterRoleAssociation
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.rds.ClusterRoleAssociation
-
public class ClusterRoleAssociation extends com.pulumi.resources.CustomResourceManages a RDS DB Cluster association with an IAM Role. Example use cases: * [Creating an IAM Role to Allow Amazon Aurora to Access AWS Services](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Integrating.Authorizing.IAM.CreateRole.html) * [Importing Amazon S3 Data into an RDS PostgreSQL DB Cluster](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PostgreSQL.S3Import.html) ## Example Usage
## Import Using `pulumi import`, import `aws.rds.ClusterRoleAssociation` using the DB Cluster Identifier and IAM Role ARN separated by a comma (`,`). For example: ```sh $ pulumi import aws:rds/clusterRoleAssociation:ClusterRoleAssociation example my-db-cluster,arn:aws:iam::123456789012:role/my-role ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.rds.ClusterRoleAssociation; import com.pulumi.aws.rds.ClusterRoleAssociationArgs; import java.util.ArrayList; import java.util.Arrays; 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 ClusterRoleAssociation("example", ClusterRoleAssociationArgs.builder() .dbClusterIdentifier(exampleAwsRdsCluster.id()) .featureName("S3_INTEGRATION") .roleArn(exampleAwsIamRole.arn()) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description ClusterRoleAssociation(java.lang.String name)ClusterRoleAssociation(java.lang.String name, ClusterRoleAssociationArgs args)ClusterRoleAssociation(java.lang.String name, ClusterRoleAssociationArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>dbClusterIdentifier()com.pulumi.core.Output<java.util.Optional<java.lang.String>>featureName()static ClusterRoleAssociationget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, ClusterRoleAssociationState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.lang.String>roleArn()
-
-
-
Constructor Detail
-
ClusterRoleAssociation
public ClusterRoleAssociation(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
ClusterRoleAssociation
public ClusterRoleAssociation(java.lang.String name, ClusterRoleAssociationArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
ClusterRoleAssociation
public ClusterRoleAssociation(java.lang.String name, ClusterRoleAssociationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
dbClusterIdentifier
public com.pulumi.core.Output<java.lang.String> dbClusterIdentifier()
- Returns:
- DB Cluster Identifier to associate with the IAM Role.
-
featureName
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> featureName()
- Returns:
- Name of the feature for association. This can be found in the AWS documentation relevant to the integration or a full list is available in the `SupportedFeatureNames` list returned by [AWS CLI `rds describe-db-engine-versions`](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-engine-versions.html).
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
roleArn
public com.pulumi.core.Output<java.lang.String> roleArn()
- Returns:
- ARN of the IAM Role to associate with the DB Cluster.
-
get
public static ClusterRoleAssociation get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable ClusterRoleAssociationState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-