Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.beyondcorp/v1alpha.Connection
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a new Connection in a given project and location.
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: ConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Connection(resource_name: str,
opts: Optional[ResourceOptions] = None,
application_endpoint: Optional[ApplicationEndpointArgs] = None,
type: Optional[ConnectionType] = None,
connection_id: Optional[str] = None,
connectors: Optional[Sequence[str]] = None,
display_name: Optional[str] = None,
gateway: Optional[GatewayArgs] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
request_id: Optional[str] = None)
func NewConnection(ctx *Context, name string, args ConnectionArgs, opts ...ResourceOption) (*Connection, error)
public Connection(string name, ConnectionArgs args, CustomResourceOptions? opts = null)
public Connection(String name, ConnectionArgs args)
public Connection(String name, ConnectionArgs args, CustomResourceOptions options)
type: google-native:beyondcorp/v1alpha: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 connectionResource = new GoogleNative.BeyondCorp.V1Alpha.Connection("connectionResource", new()
{
ApplicationEndpoint = new GoogleNative.BeyondCorp.V1Alpha.Inputs.ApplicationEndpointArgs
{
Host = "string",
Port = 0,
},
Type = GoogleNative.BeyondCorp.V1Alpha.ConnectionType.TypeUnspecified,
ConnectionId = "string",
Connectors = new[]
{
"string",
},
DisplayName = "string",
Gateway = new GoogleNative.BeyondCorp.V1Alpha.Inputs.GatewayArgs
{
Type = GoogleNative.BeyondCorp.V1Alpha.GatewayType.TypeUnspecified,
},
Labels =
{
{ "string", "string" },
},
Location = "string",
Name = "string",
Project = "string",
RequestId = "string",
});
example, err := beyondcorpv1alpha.NewConnection(ctx, "connectionResource", &beyondcorpv1alpha.ConnectionArgs{
ApplicationEndpoint: &beyondcorp.ApplicationEndpointArgs{
Host: pulumi.String("string"),
Port: pulumi.Int(0),
},
Type: beyondcorpv1alpha.ConnectionTypeTypeUnspecified,
ConnectionId: pulumi.String("string"),
Connectors: pulumi.StringArray{
pulumi.String("string"),
},
DisplayName: pulumi.String("string"),
Gateway: &beyondcorp.GatewayArgs{
Type: beyondcorpv1alpha.GatewayTypeTypeUnspecified,
},
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
RequestId: pulumi.String("string"),
})
var connectionResource = new Connection("connectionResource", ConnectionArgs.builder()
.applicationEndpoint(ApplicationEndpointArgs.builder()
.host("string")
.port(0)
.build())
.type("TYPE_UNSPECIFIED")
.connectionId("string")
.connectors("string")
.displayName("string")
.gateway(GatewayArgs.builder()
.type("TYPE_UNSPECIFIED")
.build())
.labels(Map.of("string", "string"))
.location("string")
.name("string")
.project("string")
.requestId("string")
.build());
connection_resource = google_native.beyondcorp.v1alpha.Connection("connectionResource",
application_endpoint={
"host": "string",
"port": 0,
},
type=google_native.beyondcorp.v1alpha.ConnectionType.TYPE_UNSPECIFIED,
connection_id="string",
connectors=["string"],
display_name="string",
gateway={
"type": google_native.beyondcorp.v1alpha.GatewayType.TYPE_UNSPECIFIED,
},
labels={
"string": "string",
},
location="string",
name="string",
project="string",
request_id="string")
const connectionResource = new google_native.beyondcorp.v1alpha.Connection("connectionResource", {
applicationEndpoint: {
host: "string",
port: 0,
},
type: google_native.beyondcorp.v1alpha.ConnectionType.TypeUnspecified,
connectionId: "string",
connectors: ["string"],
displayName: "string",
gateway: {
type: google_native.beyondcorp.v1alpha.GatewayType.TypeUnspecified,
},
labels: {
string: "string",
},
location: "string",
name: "string",
project: "string",
requestId: "string",
});
type: google-native:beyondcorp/v1alpha:Connection
properties:
applicationEndpoint:
host: string
port: 0
connectionId: string
connectors:
- string
displayName: string
gateway:
type: TYPE_UNSPECIFIED
labels:
string: string
location: string
name: string
project: string
requestId: string
type: TYPE_UNSPECIFIED
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:
- Application
Endpoint Pulumi.Google Native. Beyond Corp. V1Alpha. Inputs. Application Endpoint - Address of the remote application endpoint for the BeyondCorp Connection.
- Type
Pulumi.
Google Native. Beyond Corp. V1Alpha. Connection Type - The type of network connectivity used by the connection.
- Connection
Id string - Optional. User-settable connection resource ID. * Must start with a letter. * Must contain between 4-63 characters from
/a-z-/
. * Must end with a number or a letter. - Connectors List<string>
- Optional. List of [google.cloud.beyondcorp.v1main.Connector.name] that are authorised to be associated with this Connection.
- Display
Name string - Optional. An arbitrary user-provided name for the connection. Cannot exceed 64 characters.
- Gateway
Pulumi.
Google Native. Beyond Corp. V1Alpha. Inputs. Gateway - Optional. Gateway used by the connection.
- Labels Dictionary<string, string>
- Optional. Resource labels to represent user provided metadata.
- Location string
- Name string
- Unique resource name of the connection. The name is ignored when creating a connection.
- Project string
- Request
Id string - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- Application
Endpoint ApplicationEndpoint Args - Address of the remote application endpoint for the BeyondCorp Connection.
- Type
Connection
Type - The type of network connectivity used by the connection.
- Connection
Id string - Optional. User-settable connection resource ID. * Must start with a letter. * Must contain between 4-63 characters from
/a-z-/
. * Must end with a number or a letter. - Connectors []string
- Optional. List of [google.cloud.beyondcorp.v1main.Connector.name] that are authorised to be associated with this Connection.
- Display
Name string - Optional. An arbitrary user-provided name for the connection. Cannot exceed 64 characters.
- Gateway
Gateway
Args - Optional. Gateway used by the connection.
- Labels map[string]string
- Optional. Resource labels to represent user provided metadata.
- Location string
- Name string
- Unique resource name of the connection. The name is ignored when creating a connection.
- Project string
- Request
Id string - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- application
Endpoint ApplicationEndpoint - Address of the remote application endpoint for the BeyondCorp Connection.
- type
Connection
Type - The type of network connectivity used by the connection.
- connection
Id String - Optional. User-settable connection resource ID. * Must start with a letter. * Must contain between 4-63 characters from
/a-z-/
. * Must end with a number or a letter. - connectors List<String>
- Optional. List of [google.cloud.beyondcorp.v1main.Connector.name] that are authorised to be associated with this Connection.
- display
Name String - Optional. An arbitrary user-provided name for the connection. Cannot exceed 64 characters.
- gateway Gateway
- Optional. Gateway used by the connection.
- labels Map<String,String>
- Optional. Resource labels to represent user provided metadata.
- location String
- name String
- Unique resource name of the connection. The name is ignored when creating a connection.
- project String
- request
Id String - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- application
Endpoint ApplicationEndpoint - Address of the remote application endpoint for the BeyondCorp Connection.
- type
Connection
Type - The type of network connectivity used by the connection.
- connection
Id string - Optional. User-settable connection resource ID. * Must start with a letter. * Must contain between 4-63 characters from
/a-z-/
. * Must end with a number or a letter. - connectors string[]
- Optional. List of [google.cloud.beyondcorp.v1main.Connector.name] that are authorised to be associated with this Connection.
- display
Name string - Optional. An arbitrary user-provided name for the connection. Cannot exceed 64 characters.
- gateway Gateway
- Optional. Gateway used by the connection.
- labels {[key: string]: string}
- Optional. Resource labels to represent user provided metadata.
- location string
- name string
- Unique resource name of the connection. The name is ignored when creating a connection.
- project string
- request
Id string - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- application_
endpoint ApplicationEndpoint Args - Address of the remote application endpoint for the BeyondCorp Connection.
- type
Connection
Type - The type of network connectivity used by the connection.
- connection_
id str - Optional. User-settable connection resource ID. * Must start with a letter. * Must contain between 4-63 characters from
/a-z-/
. * Must end with a number or a letter. - connectors Sequence[str]
- Optional. List of [google.cloud.beyondcorp.v1main.Connector.name] that are authorised to be associated with this Connection.
- display_
name str - Optional. An arbitrary user-provided name for the connection. Cannot exceed 64 characters.
- gateway
Gateway
Args - Optional. Gateway used by the connection.
- labels Mapping[str, str]
- Optional. Resource labels to represent user provided metadata.
- location str
- name str
- Unique resource name of the connection. The name is ignored when creating a connection.
- project str
- request_
id str - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- application
Endpoint Property Map - Address of the remote application endpoint for the BeyondCorp Connection.
- type "TYPE_UNSPECIFIED" | "TCP_PROXY"
- The type of network connectivity used by the connection.
- connection
Id String - Optional. User-settable connection resource ID. * Must start with a letter. * Must contain between 4-63 characters from
/a-z-/
. * Must end with a number or a letter. - connectors List<String>
- Optional. List of [google.cloud.beyondcorp.v1main.Connector.name] that are authorised to be associated with this Connection.
- display
Name String - Optional. An arbitrary user-provided name for the connection. Cannot exceed 64 characters.
- gateway Property Map
- Optional. Gateway used by the connection.
- labels Map<String>
- Optional. Resource labels to represent user provided metadata.
- location String
- name String
- Unique resource name of the connection. The name is ignored when creating a connection.
- project String
- request
Id String - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
Outputs
All input properties are implicitly available as output properties. Additionally, the Connection resource produces the following output properties:
- Create
Time string - Timestamp when the resource was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The current state of the connection.
- Uid string
- A unique identifier for the instance generated by the system.
- Update
Time string - Timestamp when the resource was last modified.
- Create
Time string - Timestamp when the resource was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The current state of the connection.
- Uid string
- A unique identifier for the instance generated by the system.
- Update
Time string - Timestamp when the resource was last modified.
- create
Time String - Timestamp when the resource was created.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The current state of the connection.
- uid String
- A unique identifier for the instance generated by the system.
- update
Time String - Timestamp when the resource was last modified.
- create
Time string - Timestamp when the resource was created.
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- The current state of the connection.
- uid string
- A unique identifier for the instance generated by the system.
- update
Time string - Timestamp when the resource was last modified.
- create_
time str - Timestamp when the resource was created.
- id str
- The provider-assigned unique ID for this managed resource.
- state str
- The current state of the connection.
- uid str
- A unique identifier for the instance generated by the system.
- update_
time str - Timestamp when the resource was last modified.
- create
Time String - Timestamp when the resource was created.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The current state of the connection.
- uid String
- A unique identifier for the instance generated by the system.
- update
Time String - Timestamp when the resource was last modified.
Supporting Types
ApplicationEndpoint, ApplicationEndpointArgs
ApplicationEndpointResponse, ApplicationEndpointResponseArgs
ConnectionType, ConnectionTypeArgs
- Type
Unspecified - TYPE_UNSPECIFIEDDefault value. This value is unused.
- Tcp
Proxy - TCP_PROXYTCP Proxy based BeyondCorp Connection. API will default to this if unset.
- Connection
Type Type Unspecified - TYPE_UNSPECIFIEDDefault value. This value is unused.
- Connection
Type Tcp Proxy - TCP_PROXYTCP Proxy based BeyondCorp Connection. API will default to this if unset.
- Type
Unspecified - TYPE_UNSPECIFIEDDefault value. This value is unused.
- Tcp
Proxy - TCP_PROXYTCP Proxy based BeyondCorp Connection. API will default to this if unset.
- Type
Unspecified - TYPE_UNSPECIFIEDDefault value. This value is unused.
- Tcp
Proxy - TCP_PROXYTCP Proxy based BeyondCorp Connection. API will default to this if unset.
- TYPE_UNSPECIFIED
- TYPE_UNSPECIFIEDDefault value. This value is unused.
- TCP_PROXY
- TCP_PROXYTCP Proxy based BeyondCorp Connection. API will default to this if unset.
- "TYPE_UNSPECIFIED"
- TYPE_UNSPECIFIEDDefault value. This value is unused.
- "TCP_PROXY"
- TCP_PROXYTCP Proxy based BeyondCorp Connection. API will default to this if unset.
Gateway, GatewayArgs
- Type
Pulumi.
Google Native. Beyond Corp. V1Alpha. Gateway Type - The type of hosting used by the gateway.
- Type
Gateway
Type - The type of hosting used by the gateway.
- type
Gateway
Type - The type of hosting used by the gateway.
- type
Gateway
Type - The type of hosting used by the gateway.
- type
Gateway
Type - The type of hosting used by the gateway.
- type "TYPE_UNSPECIFIED" | "GCP_REGIONAL_MIG"
- The type of hosting used by the gateway.
GatewayResponse, GatewayResponseArgs
GatewayType, GatewayTypeArgs
- Type
Unspecified - TYPE_UNSPECIFIEDDefault value. This value is unused.
- Gcp
Regional Mig - GCP_REGIONAL_MIGGateway hosted in a GCP regional managed instance group.
- Gateway
Type Type Unspecified - TYPE_UNSPECIFIEDDefault value. This value is unused.
- Gateway
Type Gcp Regional Mig - GCP_REGIONAL_MIGGateway hosted in a GCP regional managed instance group.
- Type
Unspecified - TYPE_UNSPECIFIEDDefault value. This value is unused.
- Gcp
Regional Mig - GCP_REGIONAL_MIGGateway hosted in a GCP regional managed instance group.
- Type
Unspecified - TYPE_UNSPECIFIEDDefault value. This value is unused.
- Gcp
Regional Mig - GCP_REGIONAL_MIGGateway hosted in a GCP regional managed instance group.
- TYPE_UNSPECIFIED
- TYPE_UNSPECIFIEDDefault value. This value is unused.
- GCP_REGIONAL_MIG
- GCP_REGIONAL_MIGGateway hosted in a GCP regional managed instance group.
- "TYPE_UNSPECIFIED"
- TYPE_UNSPECIFIEDDefault value. This value is unused.
- "GCP_REGIONAL_MIG"
- GCP_REGIONAL_MIGGateway hosted in a GCP regional managed instance group.
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.