Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.networkconnectivity/v1.Hub
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a new Network Connectivity Center hub in the specified project. Auto-naming is currently not supported for this resource.
Create Hub Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Hub(name: string, args: HubArgs, opts?: CustomResourceOptions);
@overload
def Hub(resource_name: str,
args: HubArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Hub(resource_name: str,
opts: Optional[ResourceOptions] = None,
hub_id: Optional[str] = None,
description: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
project: Optional[str] = None,
request_id: Optional[str] = None,
routing_vpcs: Optional[Sequence[RoutingVPCArgs]] = None)
func NewHub(ctx *Context, name string, args HubArgs, opts ...ResourceOption) (*Hub, error)
public Hub(string name, HubArgs args, CustomResourceOptions? opts = null)
type: google-native:networkconnectivity/v1:Hub
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 HubArgs
- 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 HubArgs
- 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 HubArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HubArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HubArgs
- 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 hubResource = new GoogleNative.NetworkConnectivity.V1.Hub("hubResource", new()
{
HubId = "string",
Description = "string",
Labels =
{
{ "string", "string" },
},
Name = "string",
Project = "string",
RequestId = "string",
RoutingVpcs = new[]
{
new GoogleNative.NetworkConnectivity.V1.Inputs.RoutingVPCArgs
{
Uri = "string",
},
},
});
example, err := networkconnectivity.NewHub(ctx, "hubResource", &networkconnectivity.HubArgs{
HubId: pulumi.String("string"),
Description: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Project: pulumi.String("string"),
RequestId: pulumi.String("string"),
RoutingVpcs: networkconnectivity.RoutingVPCArray{
&networkconnectivity.RoutingVPCArgs{
Uri: pulumi.String("string"),
},
},
})
var hubResource = new Hub("hubResource", HubArgs.builder()
.hubId("string")
.description("string")
.labels(Map.of("string", "string"))
.name("string")
.project("string")
.requestId("string")
.routingVpcs(RoutingVPCArgs.builder()
.uri("string")
.build())
.build());
hub_resource = google_native.networkconnectivity.v1.Hub("hubResource",
hub_id="string",
description="string",
labels={
"string": "string",
},
name="string",
project="string",
request_id="string",
routing_vpcs=[google_native.networkconnectivity.v1.RoutingVPCArgs(
uri="string",
)])
const hubResource = new google_native.networkconnectivity.v1.Hub("hubResource", {
hubId: "string",
description: "string",
labels: {
string: "string",
},
name: "string",
project: "string",
requestId: "string",
routingVpcs: [{
uri: "string",
}],
});
type: google-native:networkconnectivity/v1:Hub
properties:
description: string
hubId: string
labels:
string: string
name: string
project: string
requestId: string
routingVpcs:
- uri: string
Hub 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 Hub resource accepts the following input properties:
- Hub
Id string - Required. A unique identifier for the hub.
- Description string
- An optional description of the hub.
- Labels Dictionary<string, string>
- Optional labels in key-value pair format. For more information about labels, see Requirements for labels.
- Name string
- Immutable. The name of the hub. Hub names must be unique. They use the following form:
projects/{project_number}/locations/global/hubs/{hub_id}
- 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 knows to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. 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 to see whether the original operation was received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly 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).
- Routing
Vpcs List<Pulumi.Google Native. Network Connectivity. V1. Inputs. Routing VPC> - The VPC networks associated with this hub's spokes. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
- Hub
Id string - Required. A unique identifier for the hub.
- Description string
- An optional description of the hub.
- Labels map[string]string
- Optional labels in key-value pair format. For more information about labels, see Requirements for labels.
- Name string
- Immutable. The name of the hub. Hub names must be unique. They use the following form:
projects/{project_number}/locations/global/hubs/{hub_id}
- 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 knows to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. 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 to see whether the original operation was received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly 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).
- Routing
Vpcs []RoutingVPCArgs - The VPC networks associated with this hub's spokes. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
- hub
Id String - Required. A unique identifier for the hub.
- description String
- An optional description of the hub.
- labels Map<String,String>
- Optional labels in key-value pair format. For more information about labels, see Requirements for labels.
- name String
- Immutable. The name of the hub. Hub names must be unique. They use the following form:
projects/{project_number}/locations/global/hubs/{hub_id}
- 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 knows to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. 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 to see whether the original operation was received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly 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).
- routing
Vpcs List<RoutingVPC> - The VPC networks associated with this hub's spokes. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
- hub
Id string - Required. A unique identifier for the hub.
- description string
- An optional description of the hub.
- labels {[key: string]: string}
- Optional labels in key-value pair format. For more information about labels, see Requirements for labels.
- name string
- Immutable. The name of the hub. Hub names must be unique. They use the following form:
projects/{project_number}/locations/global/hubs/{hub_id}
- 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 knows to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. 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 to see whether the original operation was received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly 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).
- routing
Vpcs RoutingVPC[] - The VPC networks associated with this hub's spokes. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
- hub_
id str - Required. A unique identifier for the hub.
- description str
- An optional description of the hub.
- labels Mapping[str, str]
- Optional labels in key-value pair format. For more information about labels, see Requirements for labels.
- name str
- Immutable. The name of the hub. Hub names must be unique. They use the following form:
projects/{project_number}/locations/global/hubs/{hub_id}
- 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 knows to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. 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 to see whether the original operation was received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly 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).
- routing_
vpcs Sequence[RoutingVPCArgs] - The VPC networks associated with this hub's spokes. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
- hub
Id String - Required. A unique identifier for the hub.
- description String
- An optional description of the hub.
- labels Map<String>
- Optional labels in key-value pair format. For more information about labels, see Requirements for labels.
- name String
- Immutable. The name of the hub. Hub names must be unique. They use the following form:
projects/{project_number}/locations/global/hubs/{hub_id}
- 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 knows to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. 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 to see whether the original operation was received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly 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).
- routing
Vpcs List<Property Map> - The VPC networks associated with this hub's spokes. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
Outputs
All input properties are implicitly available as output properties. Additionally, the Hub resource produces the following output properties:
- Create
Time string - The time the hub was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Route
Tables List<string> - The route tables that belong to this hub. They use the following form:
projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}
This field is read-only. Network Connectivity Center automatically populates it based on the route tables nested under the hub. - Spoke
Summary Pulumi.Google Native. Network Connectivity. V1. Outputs. Spoke Summary Response - A summary of the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason.
- State string
- The current lifecycle state of this hub.
- Unique
Id string - The Google-generated UUID for the hub. This value is unique across all hub resources. If a hub is deleted and another with the same name is created, the new hub is assigned a different unique_id.
- Update
Time string - The time the hub was last updated.
- Create
Time string - The time the hub was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Route
Tables []string - The route tables that belong to this hub. They use the following form:
projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}
This field is read-only. Network Connectivity Center automatically populates it based on the route tables nested under the hub. - Spoke
Summary SpokeSummary Response - A summary of the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason.
- State string
- The current lifecycle state of this hub.
- Unique
Id string - The Google-generated UUID for the hub. This value is unique across all hub resources. If a hub is deleted and another with the same name is created, the new hub is assigned a different unique_id.
- Update
Time string - The time the hub was last updated.
- create
Time String - The time the hub was created.
- id String
- The provider-assigned unique ID for this managed resource.
- route
Tables List<String> - The route tables that belong to this hub. They use the following form:
projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}
This field is read-only. Network Connectivity Center automatically populates it based on the route tables nested under the hub. - spoke
Summary SpokeSummary Response - A summary of the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason.
- state String
- The current lifecycle state of this hub.
- unique
Id String - The Google-generated UUID for the hub. This value is unique across all hub resources. If a hub is deleted and another with the same name is created, the new hub is assigned a different unique_id.
- update
Time String - The time the hub was last updated.
- create
Time string - The time the hub was created.
- id string
- The provider-assigned unique ID for this managed resource.
- route
Tables string[] - The route tables that belong to this hub. They use the following form:
projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}
This field is read-only. Network Connectivity Center automatically populates it based on the route tables nested under the hub. - spoke
Summary SpokeSummary Response - A summary of the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason.
- state string
- The current lifecycle state of this hub.
- unique
Id string - The Google-generated UUID for the hub. This value is unique across all hub resources. If a hub is deleted and another with the same name is created, the new hub is assigned a different unique_id.
- update
Time string - The time the hub was last updated.
- create_
time str - The time the hub was created.
- id str
- The provider-assigned unique ID for this managed resource.
- route_
tables Sequence[str] - The route tables that belong to this hub. They use the following form:
projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}
This field is read-only. Network Connectivity Center automatically populates it based on the route tables nested under the hub. - spoke_
summary SpokeSummary Response - A summary of the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason.
- state str
- The current lifecycle state of this hub.
- unique_
id str - The Google-generated UUID for the hub. This value is unique across all hub resources. If a hub is deleted and another with the same name is created, the new hub is assigned a different unique_id.
- update_
time str - The time the hub was last updated.
- create
Time String - The time the hub was created.
- id String
- The provider-assigned unique ID for this managed resource.
- route
Tables List<String> - The route tables that belong to this hub. They use the following form:
projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}
This field is read-only. Network Connectivity Center automatically populates it based on the route tables nested under the hub. - spoke
Summary Property Map - A summary of the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason.
- state String
- The current lifecycle state of this hub.
- unique
Id String - The Google-generated UUID for the hub. This value is unique across all hub resources. If a hub is deleted and another with the same name is created, the new hub is assigned a different unique_id.
- update
Time String - The time the hub was last updated.
Supporting Types
RoutingVPC, RoutingVPCArgs
- Uri string
- The URI of the VPC network.
- Uri string
- The URI of the VPC network.
- uri String
- The URI of the VPC network.
- uri string
- The URI of the VPC network.
- uri str
- The URI of the VPC network.
- uri String
- The URI of the VPC network.
RoutingVPCResponse, RoutingVPCResponseArgs
- Required
For boolNew Site To Site Data Transfer Spokes - If true, indicates that this VPC network is currently associated with spokes that use the data transfer feature (spokes where the site_to_site_data_transfer field is set to true). If you create new spokes that use data transfer, they must be associated with this VPC network. At most, one VPC network will have this field set to true.
- Uri string
- The URI of the VPC network.
- Required
For boolNew Site To Site Data Transfer Spokes - If true, indicates that this VPC network is currently associated with spokes that use the data transfer feature (spokes where the site_to_site_data_transfer field is set to true). If you create new spokes that use data transfer, they must be associated with this VPC network. At most, one VPC network will have this field set to true.
- Uri string
- The URI of the VPC network.
- required
For BooleanNew Site To Site Data Transfer Spokes - If true, indicates that this VPC network is currently associated with spokes that use the data transfer feature (spokes where the site_to_site_data_transfer field is set to true). If you create new spokes that use data transfer, they must be associated with this VPC network. At most, one VPC network will have this field set to true.
- uri String
- The URI of the VPC network.
- required
For booleanNew Site To Site Data Transfer Spokes - If true, indicates that this VPC network is currently associated with spokes that use the data transfer feature (spokes where the site_to_site_data_transfer field is set to true). If you create new spokes that use data transfer, they must be associated with this VPC network. At most, one VPC network will have this field set to true.
- uri string
- The URI of the VPC network.
- required_
for_ boolnew_ site_ to_ site_ data_ transfer_ spokes - If true, indicates that this VPC network is currently associated with spokes that use the data transfer feature (spokes where the site_to_site_data_transfer field is set to true). If you create new spokes that use data transfer, they must be associated with this VPC network. At most, one VPC network will have this field set to true.
- uri str
- The URI of the VPC network.
- required
For BooleanNew Site To Site Data Transfer Spokes - If true, indicates that this VPC network is currently associated with spokes that use the data transfer feature (spokes where the site_to_site_data_transfer field is set to true). If you create new spokes that use data transfer, they must be associated with this VPC network. At most, one VPC network will have this field set to true.
- uri String
- The URI of the VPC network.
SpokeStateCountResponse, SpokeStateCountResponseArgs
SpokeStateReasonCountResponse, SpokeStateReasonCountResponseArgs
- Count string
- The total number of spokes that are inactive for a particular reason and associated with a given hub.
- State
Reason stringCode - The reason that a spoke is inactive.
- Count string
- The total number of spokes that are inactive for a particular reason and associated with a given hub.
- State
Reason stringCode - The reason that a spoke is inactive.
- count String
- The total number of spokes that are inactive for a particular reason and associated with a given hub.
- state
Reason StringCode - The reason that a spoke is inactive.
- count string
- The total number of spokes that are inactive for a particular reason and associated with a given hub.
- state
Reason stringCode - The reason that a spoke is inactive.
- count str
- The total number of spokes that are inactive for a particular reason and associated with a given hub.
- state_
reason_ strcode - The reason that a spoke is inactive.
- count String
- The total number of spokes that are inactive for a particular reason and associated with a given hub.
- state
Reason StringCode - The reason that a spoke is inactive.
SpokeSummaryResponse, SpokeSummaryResponseArgs
- Spoke
State List<Pulumi.Counts Google Native. Network Connectivity. V1. Inputs. Spoke State Count Response> - Counts the number of spokes that are in each state and associated with a given hub.
- Spoke
State List<Pulumi.Reason Counts Google Native. Network Connectivity. V1. Inputs. Spoke State Reason Count Response> - Counts the number of spokes that are inactive for each possible reason and associated with a given hub.
- Spoke
Type List<Pulumi.Counts Google Native. Network Connectivity. V1. Inputs. Spoke Type Count Response> - Counts the number of spokes of each type that are associated with a specific hub.
- Spoke
State []SpokeCounts State Count Response - Counts the number of spokes that are in each state and associated with a given hub.
- Spoke
State []SpokeReason Counts State Reason Count Response - Counts the number of spokes that are inactive for each possible reason and associated with a given hub.
- Spoke
Type []SpokeCounts Type Count Response - Counts the number of spokes of each type that are associated with a specific hub.
- spoke
State List<SpokeCounts State Count Response> - Counts the number of spokes that are in each state and associated with a given hub.
- spoke
State List<SpokeReason Counts State Reason Count Response> - Counts the number of spokes that are inactive for each possible reason and associated with a given hub.
- spoke
Type List<SpokeCounts Type Count Response> - Counts the number of spokes of each type that are associated with a specific hub.
- spoke
State SpokeCounts State Count Response[] - Counts the number of spokes that are in each state and associated with a given hub.
- spoke
State SpokeReason Counts State Reason Count Response[] - Counts the number of spokes that are inactive for each possible reason and associated with a given hub.
- spoke
Type SpokeCounts Type Count Response[] - Counts the number of spokes of each type that are associated with a specific hub.
- spoke_
state_ Sequence[Spokecounts State Count Response] - Counts the number of spokes that are in each state and associated with a given hub.
- spoke_
state_ Sequence[Spokereason_ counts State Reason Count Response] - Counts the number of spokes that are inactive for each possible reason and associated with a given hub.
- spoke_
type_ Sequence[Spokecounts Type Count Response] - Counts the number of spokes of each type that are associated with a specific hub.
- spoke
State List<Property Map>Counts - Counts the number of spokes that are in each state and associated with a given hub.
- spoke
State List<Property Map>Reason Counts - Counts the number of spokes that are inactive for each possible reason and associated with a given hub.
- spoke
Type List<Property Map>Counts - Counts the number of spokes of each type that are associated with a specific hub.
SpokeTypeCountResponse, SpokeTypeCountResponseArgs
- count str
- The total number of spokes of this type that are associated with the hub.
- spoke_
type str - The type of the spokes.
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.