Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.datastream/v1alpha1.Route
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Use this method to create a route for a private connectivity in a project and location. Auto-naming is currently not supported for this resource.
Create Route Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Route(name: string, args: RouteArgs, opts?: CustomResourceOptions);
@overload
def Route(resource_name: str,
args: RouteArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Route(resource_name: str,
opts: Optional[ResourceOptions] = None,
destination_address: Optional[str] = None,
display_name: Optional[str] = None,
private_connection_id: Optional[str] = None,
route_id: Optional[str] = None,
destination_port: Optional[int] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
project: Optional[str] = None,
request_id: Optional[str] = None)
func NewRoute(ctx *Context, name string, args RouteArgs, opts ...ResourceOption) (*Route, error)
public Route(string name, RouteArgs args, CustomResourceOptions? opts = null)
type: google-native:datastream/v1alpha1:Route
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 RouteArgs
- 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 RouteArgs
- 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 RouteArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RouteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RouteArgs
- 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 examplerouteResourceResourceFromDatastreamv1alpha1 = new GoogleNative.Datastream.V1Alpha1.Route("examplerouteResourceResourceFromDatastreamv1alpha1", new()
{
DestinationAddress = "string",
DisplayName = "string",
PrivateConnectionId = "string",
RouteId = "string",
DestinationPort = 0,
Labels =
{
{ "string", "string" },
},
Location = "string",
Project = "string",
RequestId = "string",
});
example, err := datastreamv1alpha1.NewRoute(ctx, "examplerouteResourceResourceFromDatastreamv1alpha1", &datastreamv1alpha1.RouteArgs{
DestinationAddress: pulumi.String("string"),
DisplayName: pulumi.String("string"),
PrivateConnectionId: pulumi.String("string"),
RouteId: pulumi.String("string"),
DestinationPort: pulumi.Int(0),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
Project: pulumi.String("string"),
RequestId: pulumi.String("string"),
})
var examplerouteResourceResourceFromDatastreamv1alpha1 = new Route("examplerouteResourceResourceFromDatastreamv1alpha1", RouteArgs.builder()
.destinationAddress("string")
.displayName("string")
.privateConnectionId("string")
.routeId("string")
.destinationPort(0)
.labels(Map.of("string", "string"))
.location("string")
.project("string")
.requestId("string")
.build());
exampleroute_resource_resource_from_datastreamv1alpha1 = google_native.datastream.v1alpha1.Route("examplerouteResourceResourceFromDatastreamv1alpha1",
destination_address="string",
display_name="string",
private_connection_id="string",
route_id="string",
destination_port=0,
labels={
"string": "string",
},
location="string",
project="string",
request_id="string")
const examplerouteResourceResourceFromDatastreamv1alpha1 = new google_native.datastream.v1alpha1.Route("examplerouteResourceResourceFromDatastreamv1alpha1", {
destinationAddress: "string",
displayName: "string",
privateConnectionId: "string",
routeId: "string",
destinationPort: 0,
labels: {
string: "string",
},
location: "string",
project: "string",
requestId: "string",
});
type: google-native:datastream/v1alpha1:Route
properties:
destinationAddress: string
destinationPort: 0
displayName: string
labels:
string: string
location: string
privateConnectionId: string
project: string
requestId: string
routeId: string
Route Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Route resource accepts the following input properties:
- Destination
Address string - Destination address for connection
- Display
Name string - Display name.
- Private
Connection stringId - Route
Id string - Required. The Route identifier.
- Destination
Port int - Destination port for connection
- Labels Dictionary<string, string>
- Labels.
- Location string
- Project string
- Request
Id string - Optional. A 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).
- Destination
Address string - Destination address for connection
- Display
Name string - Display name.
- Private
Connection stringId - Route
Id string - Required. The Route identifier.
- Destination
Port int - Destination port for connection
- Labels map[string]string
- Labels.
- Location string
- Project string
- Request
Id string - Optional. A 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).
- destination
Address String - Destination address for connection
- display
Name String - Display name.
- private
Connection StringId - route
Id String - Required. The Route identifier.
- destination
Port Integer - Destination port for connection
- labels Map<String,String>
- Labels.
- location String
- project String
- request
Id String - Optional. A 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).
- destination
Address string - Destination address for connection
- display
Name string - Display name.
- private
Connection stringId - route
Id string - Required. The Route identifier.
- destination
Port number - Destination port for connection
- labels {[key: string]: string}
- Labels.
- location string
- project string
- request
Id string - Optional. A 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).
- destination_
address str - Destination address for connection
- display_
name str - Display name.
- private_
connection_ strid - route_
id str - Required. The Route identifier.
- destination_
port int - Destination port for connection
- labels Mapping[str, str]
- Labels.
- location str
- project str
- request_
id str - Optional. A 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).
- destination
Address String - Destination address for connection
- display
Name String - Display name.
- private
Connection StringId - route
Id String - Required. The Route identifier.
- destination
Port Number - Destination port for connection
- labels Map<String>
- Labels.
- location String
- project String
- request
Id String - Optional. A 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 Route resource produces the following output properties:
- Create
Time string - The create time of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource's name.
- Update
Time string - The update time of the resource.
- Create
Time string - The create time of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource's name.
- Update
Time string - The update time of the resource.
- create
Time String - The create time of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource's name.
- update
Time String - The update time of the resource.
- create
Time string - The create time of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The resource's name.
- update
Time string - The update time of the resource.
- create_
time str - The create time of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The resource's name.
- update_
time str - The update time of the resource.
- create
Time String - The create time of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource's name.
- update
Time String - The update time of the resource.
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.