Show / Hide Table of Contents

Class SourceRepresentationInstance

A source representation instance is a Cloud SQL instance that represents the source database server to the Cloud SQL replica. It is visible in the Cloud Console and appears the same as a regular Cloud SQL instance, but it contains no data, requires no configuration or maintenance, and does not affect billing. You cannot update the source representation instance.

Example Usage - Sql Source Representation Instance Basic

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var instance = new Gcp.Sql.SourceRepresentationInstance("instance", new Gcp.Sql.SourceRepresentationInstanceArgs
    {
        DatabaseVersion = "MYSQL_5_7",
        Host = "10.20.30.40",
        Port = 3306,
        Region = "us-central1",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
SourceRepresentationInstance
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.Gcp.Sql
Assembly: Pulumi.Gcp.dll
Syntax
public class SourceRepresentationInstance : CustomResource

Constructors

View Source

SourceRepresentationInstance(String, SourceRepresentationInstanceArgs, CustomResourceOptions)

Create a SourceRepresentationInstance resource with the given unique name, arguments, and options.

Declaration
public SourceRepresentationInstance(string name, SourceRepresentationInstanceArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

SourceRepresentationInstanceArgs 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

DatabaseVersion

The MySQL version running on your source database server.

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

Host

The externally accessible IPv4 address for the source database server.

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

Name

The name of the source representation instance. Use any valid Cloud SQL instance name.

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

Port

The externally accessible port for the source database server. Defaults to 3306.

Declaration
public Output<int?> Port { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

Project

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

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

Region

The Region in which the created instance should reside. If it is not provided, the provider region is used.

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

Methods

View Source

Get(String, Input<String>, SourceRepresentationInstanceState, CustomResourceOptions)

Get an existing SourceRepresentationInstance resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static SourceRepresentationInstance Get(string name, Input<string> id, SourceRepresentationInstanceState 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.

SourceRepresentationInstanceState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
SourceRepresentationInstance
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.