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.
Create a SourceRepresentationInstance Resource
new SourceRepresentationInstance(name: string, args: SourceRepresentationInstanceArgs, opts?: CustomResourceOptions);def SourceRepresentationInstance(resource_name, opts=None, database_version=None, host=None, name=None, port=None, project=None, region=None, __props__=None);func NewSourceRepresentationInstance(ctx *Context, name string, args SourceRepresentationInstanceArgs, opts ...ResourceOption) (*SourceRepresentationInstance, error)public SourceRepresentationInstance(string name, SourceRepresentationInstanceArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args SourceRepresentationInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SourceRepresentationInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SourceRepresentationInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
SourceRepresentationInstance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The SourceRepresentationInstance resource accepts the following input properties:
- Database
Version string The MySQL version running on your source database server.
- Host string
The externally accessible IPv4 address for the source database server.
- Name string
The name of the source representation instance. Use any valid Cloud SQL instance name.
- Port int
The externally accessible port for the source database server. Defaults to 3306.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
The Region in which the created instance should reside. If it is not provided, the provider region is used.
- Database
Version string The MySQL version running on your source database server.
- Host string
The externally accessible IPv4 address for the source database server.
- Name string
The name of the source representation instance. Use any valid Cloud SQL instance name.
- Port int
The externally accessible port for the source database server. Defaults to 3306.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
The Region in which the created instance should reside. If it is not provided, the provider region is used.
- database
Version string The MySQL version running on your source database server.
- host string
The externally accessible IPv4 address for the source database server.
- name string
The name of the source representation instance. Use any valid Cloud SQL instance name.
- port number
The externally accessible port for the source database server. Defaults to 3306.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region string
The Region in which the created instance should reside. If it is not provided, the provider region is used.
- database_
version str The MySQL version running on your source database server.
- host str
The externally accessible IPv4 address for the source database server.
- name str
The name of the source representation instance. Use any valid Cloud SQL instance name.
- port float
The externally accessible port for the source database server. Defaults to 3306.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region str
The Region in which the created instance should reside. If it is not provided, the provider region is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the SourceRepresentationInstance resource produces the following output properties:
Look up an Existing SourceRepresentationInstance Resource
Get an existing SourceRepresentationInstance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SourceRepresentationInstanceState, opts?: CustomResourceOptions): SourceRepresentationInstancestatic get(resource_name, id, opts=None, database_version=None, host=None, name=None, port=None, project=None, region=None, __props__=None);func GetSourceRepresentationInstance(ctx *Context, name string, id IDInput, state *SourceRepresentationInstanceState, opts ...ResourceOption) (*SourceRepresentationInstance, error)public static SourceRepresentationInstance Get(string name, Input<string> id, SourceRepresentationInstanceState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Database
Version string The MySQL version running on your source database server.
- Host string
The externally accessible IPv4 address for the source database server.
- Name string
The name of the source representation instance. Use any valid Cloud SQL instance name.
- Port int
The externally accessible port for the source database server. Defaults to 3306.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
The Region in which the created instance should reside. If it is not provided, the provider region is used.
- Database
Version string The MySQL version running on your source database server.
- Host string
The externally accessible IPv4 address for the source database server.
- Name string
The name of the source representation instance. Use any valid Cloud SQL instance name.
- Port int
The externally accessible port for the source database server. Defaults to 3306.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
The Region in which the created instance should reside. If it is not provided, the provider region is used.
- database
Version string The MySQL version running on your source database server.
- host string
The externally accessible IPv4 address for the source database server.
- name string
The name of the source representation instance. Use any valid Cloud SQL instance name.
- port number
The externally accessible port for the source database server. Defaults to 3306.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region string
The Region in which the created instance should reside. If it is not provided, the provider region is used.
- database_
version str The MySQL version running on your source database server.
- host str
The externally accessible IPv4 address for the source database server.
- name str
The name of the source representation instance. Use any valid Cloud SQL instance name.
- port float
The externally accessible port for the source database server. Defaults to 3306.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region str
The Region in which the created instance should reside. If it is not provided, the provider region is used.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.