Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.bigqueryconnection/v1beta1.Connection
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a new connection.
Create Connection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Connection(name: string, args?: ConnectionArgs, opts?: CustomResourceOptions);@overload
def Connection(resource_name: str,
               args: Optional[ConnectionArgs] = None,
               opts: Optional[ResourceOptions] = None)
@overload
def Connection(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               cloud_sql: Optional[CloudSqlPropertiesArgs] = None,
               connection_id: Optional[str] = None,
               description: Optional[str] = None,
               friendly_name: Optional[str] = None,
               location: Optional[str] = None,
               name: Optional[str] = None,
               project: Optional[str] = None)func NewConnection(ctx *Context, name string, args *ConnectionArgs, opts ...ResourceOption) (*Connection, error)public Connection(string name, ConnectionArgs? args = null, CustomResourceOptions? opts = null)
public Connection(String name, ConnectionArgs args)
public Connection(String name, ConnectionArgs args, CustomResourceOptions options)
type: google-native:bigqueryconnection/v1beta1:Connection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ConnectionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConnectionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var google_nativeConnectionResource = new GoogleNative.BigQueryConnection.V1Beta1.Connection("google-nativeConnectionResource", new()
{
    CloudSql = new GoogleNative.BigQueryConnection.V1Beta1.Inputs.CloudSqlPropertiesArgs
    {
        Credential = new GoogleNative.BigQueryConnection.V1Beta1.Inputs.CloudSqlCredentialArgs
        {
            Password = "string",
            Username = "string",
        },
        Database = "string",
        InstanceId = "string",
        Type = GoogleNative.BigQueryConnection.V1Beta1.CloudSqlPropertiesType.DatabaseTypeUnspecified,
    },
    ConnectionId = "string",
    Description = "string",
    FriendlyName = "string",
    Location = "string",
    Name = "string",
    Project = "string",
});
example, err := bigqueryconnection.NewConnection(ctx, "google-nativeConnectionResource", &bigqueryconnection.ConnectionArgs{
	CloudSql: &bigqueryconnection.CloudSqlPropertiesArgs{
		Credential: &bigqueryconnection.CloudSqlCredentialArgs{
			Password: pulumi.String("string"),
			Username: pulumi.String("string"),
		},
		Database:   pulumi.String("string"),
		InstanceId: pulumi.String("string"),
		Type:       bigqueryconnection.CloudSqlPropertiesTypeDatabaseTypeUnspecified,
	},
	ConnectionId: pulumi.String("string"),
	Description:  pulumi.String("string"),
	FriendlyName: pulumi.String("string"),
	Location:     pulumi.String("string"),
	Name:         pulumi.String("string"),
	Project:      pulumi.String("string"),
})
var google_nativeConnectionResource = new Connection("google-nativeConnectionResource", ConnectionArgs.builder()
    .cloudSql(CloudSqlPropertiesArgs.builder()
        .credential(CloudSqlCredentialArgs.builder()
            .password("string")
            .username("string")
            .build())
        .database("string")
        .instanceId("string")
        .type("DATABASE_TYPE_UNSPECIFIED")
        .build())
    .connectionId("string")
    .description("string")
    .friendlyName("string")
    .location("string")
    .name("string")
    .project("string")
    .build());
google_native_connection_resource = google_native.bigqueryconnection.v1beta1.Connection("google-nativeConnectionResource",
    cloud_sql={
        "credential": {
            "password": "string",
            "username": "string",
        },
        "database": "string",
        "instance_id": "string",
        "type": google_native.bigqueryconnection.v1beta1.CloudSqlPropertiesType.DATABASE_TYPE_UNSPECIFIED,
    },
    connection_id="string",
    description="string",
    friendly_name="string",
    location="string",
    name="string",
    project="string")
const google_nativeConnectionResource = new google_native.bigqueryconnection.v1beta1.Connection("google-nativeConnectionResource", {
    cloudSql: {
        credential: {
            password: "string",
            username: "string",
        },
        database: "string",
        instanceId: "string",
        type: google_native.bigqueryconnection.v1beta1.CloudSqlPropertiesType.DatabaseTypeUnspecified,
    },
    connectionId: "string",
    description: "string",
    friendlyName: "string",
    location: "string",
    name: "string",
    project: "string",
});
type: google-native:bigqueryconnection/v1beta1:Connection
properties:
    cloudSql:
        credential:
            password: string
            username: string
        database: string
        instanceId: string
        type: DATABASE_TYPE_UNSPECIFIED
    connectionId: string
    description: string
    friendlyName: string
    location: string
    name: string
    project: string
Connection Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Connection resource accepts the following input properties:
- CloudSql Pulumi.Google Native. Big Query Connection. V1Beta1. Inputs. Cloud Sql Properties 
- Cloud SQL properties.
- ConnectionId string
- Optional. Connection id that should be assigned to the created connection.
- Description string
- User provided description.
- FriendlyName string
- User provided display name for the connection.
- Location string
- Name string
- The resource name of the connection in the form of: projects/{project_id}/locations/{location_id}/connections/{connection_id}
- Project string
- CloudSql CloudSql Properties Args 
- Cloud SQL properties.
- ConnectionId string
- Optional. Connection id that should be assigned to the created connection.
- Description string
- User provided description.
- FriendlyName string
- User provided display name for the connection.
- Location string
- Name string
- The resource name of the connection in the form of: projects/{project_id}/locations/{location_id}/connections/{connection_id}
- Project string
- cloudSql CloudSql Properties 
- Cloud SQL properties.
- connectionId String
- Optional. Connection id that should be assigned to the created connection.
- description String
- User provided description.
- friendlyName String
- User provided display name for the connection.
- location String
- name String
- The resource name of the connection in the form of: projects/{project_id}/locations/{location_id}/connections/{connection_id}
- project String
- cloudSql CloudSql Properties 
- Cloud SQL properties.
- connectionId string
- Optional. Connection id that should be assigned to the created connection.
- description string
- User provided description.
- friendlyName string
- User provided display name for the connection.
- location string
- name string
- The resource name of the connection in the form of: projects/{project_id}/locations/{location_id}/connections/{connection_id}
- project string
- cloud_sql CloudSql Properties Args 
- Cloud SQL properties.
- connection_id str
- Optional. Connection id that should be assigned to the created connection.
- description str
- User provided description.
- friendly_name str
- User provided display name for the connection.
- location str
- name str
- The resource name of the connection in the form of: projects/{project_id}/locations/{location_id}/connections/{connection_id}
- project str
- cloudSql Property Map
- Cloud SQL properties.
- connectionId String
- Optional. Connection id that should be assigned to the created connection.
- description String
- User provided description.
- friendlyName String
- User provided display name for the connection.
- location String
- name String
- The resource name of the connection in the form of: projects/{project_id}/locations/{location_id}/connections/{connection_id}
- project String
Outputs
All input properties are implicitly available as output properties. Additionally, the Connection resource produces the following output properties:
- CreationTime string
- The creation timestamp of the connection.
- HasCredential bool
- True, if credential is configured for this connection.
- Id string
- The provider-assigned unique ID for this managed resource.
- LastModified stringTime 
- The last update timestamp of the connection.
- CreationTime string
- The creation timestamp of the connection.
- HasCredential bool
- True, if credential is configured for this connection.
- Id string
- The provider-assigned unique ID for this managed resource.
- LastModified stringTime 
- The last update timestamp of the connection.
- creationTime String
- The creation timestamp of the connection.
- hasCredential Boolean
- True, if credential is configured for this connection.
- id String
- The provider-assigned unique ID for this managed resource.
- lastModified StringTime 
- The last update timestamp of the connection.
- creationTime string
- The creation timestamp of the connection.
- hasCredential boolean
- True, if credential is configured for this connection.
- id string
- The provider-assigned unique ID for this managed resource.
- lastModified stringTime 
- The last update timestamp of the connection.
- creation_time str
- The creation timestamp of the connection.
- has_credential bool
- True, if credential is configured for this connection.
- id str
- The provider-assigned unique ID for this managed resource.
- last_modified_ strtime 
- The last update timestamp of the connection.
- creationTime String
- The creation timestamp of the connection.
- hasCredential Boolean
- True, if credential is configured for this connection.
- id String
- The provider-assigned unique ID for this managed resource.
- lastModified StringTime 
- The last update timestamp of the connection.
Supporting Types
CloudSqlCredential, CloudSqlCredentialArgs      
CloudSqlCredentialResponse, CloudSqlCredentialResponseArgs        
CloudSqlProperties, CloudSqlPropertiesArgs      
- Credential
Pulumi.Google Native. Big Query Connection. V1Beta1. Inputs. Cloud Sql Credential 
- Input only. Cloud SQL credential.
- Database string
- Database name.
- InstanceId string
- Cloud SQL instance ID in the form project:location:instance.
- Type
Pulumi.Google Native. Big Query Connection. V1Beta1. Cloud Sql Properties Type 
- Type of the Cloud SQL database.
- Credential
CloudSql Credential 
- Input only. Cloud SQL credential.
- Database string
- Database name.
- InstanceId string
- Cloud SQL instance ID in the form project:location:instance.
- Type
CloudSql Properties Type 
- Type of the Cloud SQL database.
- credential
CloudSql Credential 
- Input only. Cloud SQL credential.
- database String
- Database name.
- instanceId String
- Cloud SQL instance ID in the form project:location:instance.
- type
CloudSql Properties Type 
- Type of the Cloud SQL database.
- credential
CloudSql Credential 
- Input only. Cloud SQL credential.
- database string
- Database name.
- instanceId string
- Cloud SQL instance ID in the form project:location:instance.
- type
CloudSql Properties Type 
- Type of the Cloud SQL database.
- credential
CloudSql Credential 
- Input only. Cloud SQL credential.
- database str
- Database name.
- instance_id str
- Cloud SQL instance ID in the form project:location:instance.
- type
CloudSql Properties Type 
- Type of the Cloud SQL database.
- credential Property Map
- Input only. Cloud SQL credential.
- database String
- Database name.
- instanceId String
- Cloud SQL instance ID in the form project:location:instance.
- type "DATABASE_TYPE_UNSPECIFIED" | "POSTGRES" | "MYSQL"
- Type of the Cloud SQL database.
CloudSqlPropertiesResponse, CloudSqlPropertiesResponseArgs        
- Credential
Pulumi.Google Native. Big Query Connection. V1Beta1. Inputs. Cloud Sql Credential Response 
- Input only. Cloud SQL credential.
- Database string
- Database name.
- InstanceId string
- Cloud SQL instance ID in the form project:location:instance.
- ServiceAccount stringId 
- The account ID of the service used for the purpose of this connection. When the connection is used in the context of an operation in BigQuery, this service account will serve as the identity being used for connecting to the CloudSQL instance specified in this connection.
- Type string
- Type of the Cloud SQL database.
- Credential
CloudSql Credential Response 
- Input only. Cloud SQL credential.
- Database string
- Database name.
- InstanceId string
- Cloud SQL instance ID in the form project:location:instance.
- ServiceAccount stringId 
- The account ID of the service used for the purpose of this connection. When the connection is used in the context of an operation in BigQuery, this service account will serve as the identity being used for connecting to the CloudSQL instance specified in this connection.
- Type string
- Type of the Cloud SQL database.
- credential
CloudSql Credential Response 
- Input only. Cloud SQL credential.
- database String
- Database name.
- instanceId String
- Cloud SQL instance ID in the form project:location:instance.
- serviceAccount StringId 
- The account ID of the service used for the purpose of this connection. When the connection is used in the context of an operation in BigQuery, this service account will serve as the identity being used for connecting to the CloudSQL instance specified in this connection.
- type String
- Type of the Cloud SQL database.
- credential
CloudSql Credential Response 
- Input only. Cloud SQL credential.
- database string
- Database name.
- instanceId string
- Cloud SQL instance ID in the form project:location:instance.
- serviceAccount stringId 
- The account ID of the service used for the purpose of this connection. When the connection is used in the context of an operation in BigQuery, this service account will serve as the identity being used for connecting to the CloudSQL instance specified in this connection.
- type string
- Type of the Cloud SQL database.
- credential
CloudSql Credential Response 
- Input only. Cloud SQL credential.
- database str
- Database name.
- instance_id str
- Cloud SQL instance ID in the form project:location:instance.
- service_account_ strid 
- The account ID of the service used for the purpose of this connection. When the connection is used in the context of an operation in BigQuery, this service account will serve as the identity being used for connecting to the CloudSQL instance specified in this connection.
- type str
- Type of the Cloud SQL database.
- credential Property Map
- Input only. Cloud SQL credential.
- database String
- Database name.
- instanceId String
- Cloud SQL instance ID in the form project:location:instance.
- serviceAccount StringId 
- The account ID of the service used for the purpose of this connection. When the connection is used in the context of an operation in BigQuery, this service account will serve as the identity being used for connecting to the CloudSQL instance specified in this connection.
- type String
- Type of the Cloud SQL database.
CloudSqlPropertiesType, CloudSqlPropertiesTypeArgs        
- DatabaseType Unspecified 
- DATABASE_TYPE_UNSPECIFIEDUnspecified database type.
- Postgres
- POSTGRESCloud SQL for PostgreSQL.
- Mysql
- MYSQLCloud SQL for MySQL.
- CloudSql Properties Type Database Type Unspecified 
- DATABASE_TYPE_UNSPECIFIEDUnspecified database type.
- CloudSql Properties Type Postgres 
- POSTGRESCloud SQL for PostgreSQL.
- CloudSql Properties Type Mysql 
- MYSQLCloud SQL for MySQL.
- DatabaseType Unspecified 
- DATABASE_TYPE_UNSPECIFIEDUnspecified database type.
- Postgres
- POSTGRESCloud SQL for PostgreSQL.
- Mysql
- MYSQLCloud SQL for MySQL.
- DatabaseType Unspecified 
- DATABASE_TYPE_UNSPECIFIEDUnspecified database type.
- Postgres
- POSTGRESCloud SQL for PostgreSQL.
- Mysql
- MYSQLCloud SQL for MySQL.
- DATABASE_TYPE_UNSPECIFIED
- DATABASE_TYPE_UNSPECIFIEDUnspecified database type.
- POSTGRES
- POSTGRESCloud SQL for PostgreSQL.
- MYSQL
- MYSQLCloud SQL for MySQL.
- "DATABASE_TYPE_UNSPECIFIED"
- DATABASE_TYPE_UNSPECIFIEDUnspecified database type.
- "POSTGRES"
- POSTGRESCloud SQL for PostgreSQL.
- "MYSQL"
- MYSQLCloud SQL for MySQL.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.