Show / Hide Table of Contents

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,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
RdsDbInstance
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.OpsWorks
Assembly: Pulumi.Aws.dll
Syntax
public class RdsDbInstance : CustomResource

Constructors

View Source

RdsDbInstance(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 Source

DbPassword

A db password

Declaration
public Output<string> DbPassword { get; }
Property Value
Type Description
Output<System.String>
View Source

DbUser

A db username

Declaration
public Output<string> DbUser { get; }
Property Value
Type Description
Output<System.String>
View Source

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

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.