Class RdsDbInstance
Provides an OpsWorks RDS DB Instance resource.
Note: All arguments including the username and password will be stored in the raw state as plain-text. Read more about sensitive data in state.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var myInstance = new Aws.OpsWorks.RdsDbInstance("myInstance", new Aws.OpsWorks.RdsDbInstanceArgs
{
DbPassword = "somePass",
DbUser = "someUser",
RdsDbInstanceArn = aws_db_instance.My_instance.Arn,
StackId = aws_opsworks_stack.My_stack.Id,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.OpsWorks
Assembly: Pulumi.Aws.dll
Syntax
public class RdsDbInstance : CustomResource
Constructors
View SourceRdsDbInstance(String, RdsDbInstanceArgs, CustomResourceOptions)
Create a RdsDbInstance resource with the given unique name, arguments, and options.
Declaration
public RdsDbInstance(string name, RdsDbInstanceArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| RdsDbInstanceArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceDbPassword
A db password
Declaration
public Output<string> DbPassword { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DbUser
A db username
Declaration
public Output<string> DbUser { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RdsDbInstanceArn
The db instance to register for this stack. Changing this will force a new resource.
Declaration
public Output<string> RdsDbInstanceArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
StackId
The stack to register a db instance for. Changing this will force a new resource.
Declaration
public Output<string> StackId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, RdsDbInstanceState, CustomResourceOptions)
Get an existing RdsDbInstance resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static RdsDbInstance Get(string name, Input<string> id, RdsDbInstanceState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| RdsDbInstanceState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| RdsDbInstance |