Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.datastream/v1.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 configuration 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/v1:Route
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. RouteArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. 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
This property is required. string - The unique name of the resource.
- args
This property is required. RouteArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. RouteArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. 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 examplerouteResourceResourceFromDatastreamv1 = new GoogleNative.Datastream.V1.Route("examplerouteResourceResourceFromDatastreamv1", new()
{
DestinationAddress = "string",
DisplayName = "string",
PrivateConnectionId = "string",
RouteId = "string",
DestinationPort = 0,
Labels =
{
{ "string", "string" },
},
Location = "string",
Project = "string",
RequestId = "string",
});
example, err := datastream.NewRoute(ctx, "examplerouteResourceResourceFromDatastreamv1", &datastream.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 examplerouteResourceResourceFromDatastreamv1 = new Route("examplerouteResourceResourceFromDatastreamv1", 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_datastreamv1 = google_native.datastream.v1.Route("examplerouteResourceResourceFromDatastreamv1",
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 examplerouteResourceResourceFromDatastreamv1 = new google_native.datastream.v1.Route("examplerouteResourceResourceFromDatastreamv1", {
destinationAddress: "string",
displayName: "string",
privateConnectionId: "string",
routeId: "string",
destinationPort: 0,
labels: {
string: "string",
},
location: "string",
project: "string",
requestId: "string",
});
type: google-native:datastream/v1: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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Route resource accepts the following input properties:
- Destination
Address This property is required. string - Destination address for connection
- Display
Name This property is required. string - Display name.
- Private
Connection Id This property is required. Changes to this property will trigger replacement.
- Route
Id This property is required. Changes to this property will trigger replacement.
- Required. The Route identifier.
- Destination
Port int - Destination port for connection
- Labels Dictionary<string, string>
- Labels.
- Location
Changes to this property will trigger replacement.
- Project
Changes to this property will trigger replacement.
- 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 This property is required. string - Destination address for connection
- Display
Name This property is required. string - Display name.
- Private
Connection Id This property is required. Changes to this property will trigger replacement.
- Route
Id This property is required. Changes to this property will trigger replacement.
- Required. The Route identifier.
- Destination
Port int - Destination port for connection
- Labels map[string]string
- Labels.
- Location
Changes to this property will trigger replacement.
- Project
Changes to this property will trigger replacement.
- 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 This property is required. String - Destination address for connection
- display
Name This property is required. String - Display name.
- private
Connection Id This property is required. Changes to this property will trigger replacement.
- route
Id This property is required. Changes to this property will trigger replacement.
- Required. The Route identifier.
- destination
Port Integer - Destination port for connection
- labels Map<String,String>
- Labels.
- location
Changes to this property will trigger replacement.
- project
Changes to this property will trigger replacement.
- 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 This property is required. string - Destination address for connection
- display
Name This property is required. string - Display name.
- private
Connection Id This property is required. Changes to this property will trigger replacement.
- route
Id This property is required. Changes to this property will trigger replacement.
- Required. The Route identifier.
- destination
Port number - Destination port for connection
- labels {[key: string]: string}
- Labels.
- location
Changes to this property will trigger replacement.
- project
Changes to this property will trigger replacement.
- 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 This property is required. str - Destination address for connection
- display_
name This property is required. str - Display name.
- private_
connection_ id This property is required. Changes to this property will trigger replacement.
- route_
id This property is required. Changes to this property will trigger replacement.
- Required. The Route identifier.
- destination_
port int - Destination port for connection
- labels Mapping[str, str]
- Labels.
- location
Changes to this property will trigger replacement.
- project
Changes to this property will trigger replacement.
- 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 This property is required. String - Destination address for connection
- display
Name This property is required. String - Display name.
- private
Connection Id This property is required. Changes to this property will trigger replacement.
- route
Id This property is required. Changes to this property will trigger replacement.
- Required. The Route identifier.
- destination
Port Number - Destination port for connection
- labels Map<String>
- Labels.
- location
Changes to this property will trigger replacement.
- project
Changes to this property will trigger replacement.
- 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.