gcp.networkconnectivity.Group
Explore with Pulumi AI
The NetworkConnectivity Group resource
To get more information about Group, see:
- API documentation
- How-to Guides
Example Usage
Network Connectivity Group Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const basicHub = new gcp.networkconnectivity.Hub("basic_hub", {
name: "network-connectivity-hub1",
description: "A sample hub",
labels: {
"label-one": "value-one",
},
});
const primary = new gcp.networkconnectivity.Group("primary", {
hub: basicHub.id,
name: "default",
labels: {
"label-one": "value-one",
},
description: "A sample hub group",
autoAccept: {
autoAcceptProjects: [
"foo",
"bar",
],
},
});
import pulumi
import pulumi_gcp as gcp
basic_hub = gcp.networkconnectivity.Hub("basic_hub",
name="network-connectivity-hub1",
description="A sample hub",
labels={
"label-one": "value-one",
})
primary = gcp.networkconnectivity.Group("primary",
hub=basic_hub.id,
name="default",
labels={
"label-one": "value-one",
},
description="A sample hub group",
auto_accept={
"auto_accept_projects": [
"foo",
"bar",
],
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/networkconnectivity"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
basicHub, err := networkconnectivity.NewHub(ctx, "basic_hub", &networkconnectivity.HubArgs{
Name: pulumi.String("network-connectivity-hub1"),
Description: pulumi.String("A sample hub"),
Labels: pulumi.StringMap{
"label-one": pulumi.String("value-one"),
},
})
if err != nil {
return err
}
_, err = networkconnectivity.NewGroup(ctx, "primary", &networkconnectivity.GroupArgs{
Hub: basicHub.ID(),
Name: pulumi.String("default"),
Labels: pulumi.StringMap{
"label-one": pulumi.String("value-one"),
},
Description: pulumi.String("A sample hub group"),
AutoAccept: &networkconnectivity.GroupAutoAcceptArgs{
AutoAcceptProjects: pulumi.StringArray{
pulumi.String("foo"),
pulumi.String("bar"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var basicHub = new Gcp.NetworkConnectivity.Hub("basic_hub", new()
{
Name = "network-connectivity-hub1",
Description = "A sample hub",
Labels =
{
{ "label-one", "value-one" },
},
});
var primary = new Gcp.NetworkConnectivity.Group("primary", new()
{
Hub = basicHub.Id,
Name = "default",
Labels =
{
{ "label-one", "value-one" },
},
Description = "A sample hub group",
AutoAccept = new Gcp.NetworkConnectivity.Inputs.GroupAutoAcceptArgs
{
AutoAcceptProjects = new[]
{
"foo",
"bar",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.networkconnectivity.Hub;
import com.pulumi.gcp.networkconnectivity.HubArgs;
import com.pulumi.gcp.networkconnectivity.Group;
import com.pulumi.gcp.networkconnectivity.GroupArgs;
import com.pulumi.gcp.networkconnectivity.inputs.GroupAutoAcceptArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var basicHub = new Hub("basicHub", HubArgs.builder()
.name("network-connectivity-hub1")
.description("A sample hub")
.labels(Map.of("label-one", "value-one"))
.build());
var primary = new Group("primary", GroupArgs.builder()
.hub(basicHub.id())
.name("default")
.labels(Map.of("label-one", "value-one"))
.description("A sample hub group")
.autoAccept(GroupAutoAcceptArgs.builder()
.autoAcceptProjects(
"foo",
"bar")
.build())
.build());
}
}
resources:
basicHub:
type: gcp:networkconnectivity:Hub
name: basic_hub
properties:
name: network-connectivity-hub1
description: A sample hub
labels:
label-one: value-one
primary:
type: gcp:networkconnectivity:Group
properties:
hub: ${basicHub.id}
name: default
labels:
label-one: value-one
description: A sample hub group
autoAccept:
autoAcceptProjects:
- foo
- bar
Create Group Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Group(name: string, args: GroupArgs, opts?: CustomResourceOptions);
@overload
def Group(resource_name: str,
args: GroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Group(resource_name: str,
opts: Optional[ResourceOptions] = None,
hub: Optional[str] = None,
auto_accept: Optional[GroupAutoAcceptArgs] = None,
description: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
project: Optional[str] = None)
func NewGroup(ctx *Context, name string, args GroupArgs, opts ...ResourceOption) (*Group, error)
public Group(string name, GroupArgs args, CustomResourceOptions? opts = null)
type: gcp:networkconnectivity:Group
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 GroupArgs
- 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 GroupArgs
- 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 GroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GroupArgs
- 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 examplegroupResourceResourceFromNetworkconnectivitygroup = new Gcp.NetworkConnectivity.Group("examplegroupResourceResourceFromNetworkconnectivitygroup", new()
{
Hub = "string",
AutoAccept = new Gcp.NetworkConnectivity.Inputs.GroupAutoAcceptArgs
{
AutoAcceptProjects = new[]
{
"string",
},
},
Description = "string",
Labels =
{
{ "string", "string" },
},
Name = "string",
Project = "string",
});
example, err := networkconnectivity.NewGroup(ctx, "examplegroupResourceResourceFromNetworkconnectivitygroup", &networkconnectivity.GroupArgs{
Hub: pulumi.String("string"),
AutoAccept: &networkconnectivity.GroupAutoAcceptArgs{
AutoAcceptProjects: pulumi.StringArray{
pulumi.String("string"),
},
},
Description: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Project: pulumi.String("string"),
})
var examplegroupResourceResourceFromNetworkconnectivitygroup = new Group("examplegroupResourceResourceFromNetworkconnectivitygroup", GroupArgs.builder()
.hub("string")
.autoAccept(GroupAutoAcceptArgs.builder()
.autoAcceptProjects("string")
.build())
.description("string")
.labels(Map.of("string", "string"))
.name("string")
.project("string")
.build());
examplegroup_resource_resource_from_networkconnectivitygroup = gcp.networkconnectivity.Group("examplegroupResourceResourceFromNetworkconnectivitygroup",
hub="string",
auto_accept={
"auto_accept_projects": ["string"],
},
description="string",
labels={
"string": "string",
},
name="string",
project="string")
const examplegroupResourceResourceFromNetworkconnectivitygroup = new gcp.networkconnectivity.Group("examplegroupResourceResourceFromNetworkconnectivitygroup", {
hub: "string",
autoAccept: {
autoAcceptProjects: ["string"],
},
description: "string",
labels: {
string: "string",
},
name: "string",
project: "string",
});
type: gcp:networkconnectivity:Group
properties:
autoAccept:
autoAcceptProjects:
- string
description: string
hub: string
labels:
string: string
name: string
project: string
Group 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 Group resource accepts the following input properties:
- Hub string
- The name of the hub. Hub names must be unique. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}
- Auto
Accept GroupAuto Accept - Optional. The auto-accept setting for this group. Structure is documented below.
- Description string
- An optional description of the group.
- Labels Dictionary<string, string>
- Optional labels in key:value format. For more information about labels, see Requirements for labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - Name string
- The name of the group. Group names must be unique.
Possible values are:
default
,center
,edge
. - Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Hub string
- The name of the hub. Hub names must be unique. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}
- Auto
Accept GroupAuto Accept Args - Optional. The auto-accept setting for this group. Structure is documented below.
- Description string
- An optional description of the group.
- Labels map[string]string
- Optional labels in key:value format. For more information about labels, see Requirements for labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - Name string
- The name of the group. Group names must be unique.
Possible values are:
default
,center
,edge
. - Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- hub String
- The name of the hub. Hub names must be unique. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}
- auto
Accept GroupAuto Accept - Optional. The auto-accept setting for this group. Structure is documented below.
- description String
- An optional description of the group.
- labels Map<String,String>
- Optional labels in key:value format. For more information about labels, see Requirements for labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - name String
- The name of the group. Group names must be unique.
Possible values are:
default
,center
,edge
. - project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- hub string
- The name of the hub. Hub names must be unique. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}
- auto
Accept GroupAuto Accept - Optional. The auto-accept setting for this group. Structure is documented below.
- description string
- An optional description of the group.
- labels {[key: string]: string}
- Optional labels in key:value format. For more information about labels, see Requirements for labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - name string
- The name of the group. Group names must be unique.
Possible values are:
default
,center
,edge
. - project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- hub str
- The name of the hub. Hub names must be unique. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}
- auto_
accept GroupAuto Accept Args - Optional. The auto-accept setting for this group. Structure is documented below.
- description str
- An optional description of the group.
- labels Mapping[str, str]
- Optional labels in key:value format. For more information about labels, see Requirements for labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - name str
- The name of the group. Group names must be unique.
Possible values are:
default
,center
,edge
. - project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- hub String
- The name of the hub. Hub names must be unique. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}
- auto
Accept Property Map - Optional. The auto-accept setting for this group. Structure is documented below.
- description String
- An optional description of the group.
- labels Map<String>
- Optional labels in key:value format. For more information about labels, see Requirements for labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - name String
- The name of the group. Group names must be unique.
Possible values are:
default
,center
,edge
. - project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the Group resource produces the following output properties:
- Create
Time string - Output only. The time the hub was created.
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Route
Table string - Output only. The name of the route table that corresponds to this group. They use the following form:
projects/{projectNumber}/locations/global/hubs/{hubId}/routeTables/{route_table_id}
- State string
- Output only. The current lifecycle state of this hub.
- Uid string
- Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different uniqueId.
- Update
Time string - Output only. The time the hub was last updated.
- Create
Time string - Output only. The time the hub was created.
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Route
Table string - Output only. The name of the route table that corresponds to this group. They use the following form:
projects/{projectNumber}/locations/global/hubs/{hubId}/routeTables/{route_table_id}
- State string
- Output only. The current lifecycle state of this hub.
- Uid string
- Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different uniqueId.
- Update
Time string - Output only. The time the hub was last updated.
- create
Time String - Output only. The time the hub was created.
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- route
Table String - Output only. The name of the route table that corresponds to this group. They use the following form:
projects/{projectNumber}/locations/global/hubs/{hubId}/routeTables/{route_table_id}
- state String
- Output only. The current lifecycle state of this hub.
- uid String
- Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different uniqueId.
- update
Time String - Output only. The time the hub was last updated.
- create
Time string - Output only. The time the hub was created.
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id string
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- route
Table string - Output only. The name of the route table that corresponds to this group. They use the following form:
projects/{projectNumber}/locations/global/hubs/{hubId}/routeTables/{route_table_id}
- state string
- Output only. The current lifecycle state of this hub.
- uid string
- Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different uniqueId.
- update
Time string - Output only. The time the hub was last updated.
- create_
time str - Output only. The time the hub was created.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id str
- The provider-assigned unique ID for this managed resource.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- route_
table str - Output only. The name of the route table that corresponds to this group. They use the following form:
projects/{projectNumber}/locations/global/hubs/{hubId}/routeTables/{route_table_id}
- state str
- Output only. The current lifecycle state of this hub.
- uid str
- Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different uniqueId.
- update_
time str - Output only. The time the hub was last updated.
- create
Time String - Output only. The time the hub was created.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- route
Table String - Output only. The name of the route table that corresponds to this group. They use the following form:
projects/{projectNumber}/locations/global/hubs/{hubId}/routeTables/{route_table_id}
- state String
- Output only. The current lifecycle state of this hub.
- uid String
- Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different uniqueId.
- update
Time String - Output only. The time the hub was last updated.
Look up Existing Group Resource
Get an existing Group resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: GroupState, opts?: CustomResourceOptions): Group
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_accept: Optional[GroupAutoAcceptArgs] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
effective_labels: Optional[Mapping[str, str]] = None,
hub: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
project: Optional[str] = None,
pulumi_labels: Optional[Mapping[str, str]] = None,
route_table: Optional[str] = None,
state: Optional[str] = None,
uid: Optional[str] = None,
update_time: Optional[str] = None) -> Group
func GetGroup(ctx *Context, name string, id IDInput, state *GroupState, opts ...ResourceOption) (*Group, error)
public static Group Get(string name, Input<string> id, GroupState? state, CustomResourceOptions? opts = null)
public static Group get(String name, Output<String> id, GroupState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Auto
Accept GroupAuto Accept - Optional. The auto-accept setting for this group. Structure is documented below.
- Create
Time string - Output only. The time the hub was created.
- Description string
- An optional description of the group.
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Hub string
- The name of the hub. Hub names must be unique. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}
- Labels Dictionary<string, string>
- Optional labels in key:value format. For more information about labels, see Requirements for labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - Name string
- The name of the group. Group names must be unique.
Possible values are:
default
,center
,edge
. - Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Route
Table string - Output only. The name of the route table that corresponds to this group. They use the following form:
projects/{projectNumber}/locations/global/hubs/{hubId}/routeTables/{route_table_id}
- State string
- Output only. The current lifecycle state of this hub.
- Uid string
- Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different uniqueId.
- Update
Time string - Output only. The time the hub was last updated.
- Auto
Accept GroupAuto Accept Args - Optional. The auto-accept setting for this group. Structure is documented below.
- Create
Time string - Output only. The time the hub was created.
- Description string
- An optional description of the group.
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Hub string
- The name of the hub. Hub names must be unique. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}
- Labels map[string]string
- Optional labels in key:value format. For more information about labels, see Requirements for labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - Name string
- The name of the group. Group names must be unique.
Possible values are:
default
,center
,edge
. - Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Route
Table string - Output only. The name of the route table that corresponds to this group. They use the following form:
projects/{projectNumber}/locations/global/hubs/{hubId}/routeTables/{route_table_id}
- State string
- Output only. The current lifecycle state of this hub.
- Uid string
- Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different uniqueId.
- Update
Time string - Output only. The time the hub was last updated.
- auto
Accept GroupAuto Accept - Optional. The auto-accept setting for this group. Structure is documented below.
- create
Time String - Output only. The time the hub was created.
- description String
- An optional description of the group.
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- hub String
- The name of the hub. Hub names must be unique. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}
- labels Map<String,String>
- Optional labels in key:value format. For more information about labels, see Requirements for labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - name String
- The name of the group. Group names must be unique.
Possible values are:
default
,center
,edge
. - project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- route
Table String - Output only. The name of the route table that corresponds to this group. They use the following form:
projects/{projectNumber}/locations/global/hubs/{hubId}/routeTables/{route_table_id}
- state String
- Output only. The current lifecycle state of this hub.
- uid String
- Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different uniqueId.
- update
Time String - Output only. The time the hub was last updated.
- auto
Accept GroupAuto Accept - Optional. The auto-accept setting for this group. Structure is documented below.
- create
Time string - Output only. The time the hub was created.
- description string
- An optional description of the group.
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- hub string
- The name of the hub. Hub names must be unique. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}
- labels {[key: string]: string}
- Optional labels in key:value format. For more information about labels, see Requirements for labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - name string
- The name of the group. Group names must be unique.
Possible values are:
default
,center
,edge
. - project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- route
Table string - Output only. The name of the route table that corresponds to this group. They use the following form:
projects/{projectNumber}/locations/global/hubs/{hubId}/routeTables/{route_table_id}
- state string
- Output only. The current lifecycle state of this hub.
- uid string
- Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different uniqueId.
- update
Time string - Output only. The time the hub was last updated.
- auto_
accept GroupAuto Accept Args - Optional. The auto-accept setting for this group. Structure is documented below.
- create_
time str - Output only. The time the hub was created.
- description str
- An optional description of the group.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- hub str
- The name of the hub. Hub names must be unique. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}
- labels Mapping[str, str]
- Optional labels in key:value format. For more information about labels, see Requirements for labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - name str
- The name of the group. Group names must be unique.
Possible values are:
default
,center
,edge
. - project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- route_
table str - Output only. The name of the route table that corresponds to this group. They use the following form:
projects/{projectNumber}/locations/global/hubs/{hubId}/routeTables/{route_table_id}
- state str
- Output only. The current lifecycle state of this hub.
- uid str
- Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different uniqueId.
- update_
time str - Output only. The time the hub was last updated.
- auto
Accept Property Map - Optional. The auto-accept setting for this group. Structure is documented below.
- create
Time String - Output only. The time the hub was created.
- description String
- An optional description of the group.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- hub String
- The name of the hub. Hub names must be unique. They use the following form: projects/{projectNumber}/locations/global/hubs/{hubId}
- labels Map<String>
- Optional labels in key:value format. For more information about labels, see Requirements for labels.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - name String
- The name of the group. Group names must be unique.
Possible values are:
default
,center
,edge
. - project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- route
Table String - Output only. The name of the route table that corresponds to this group. They use the following form:
projects/{projectNumber}/locations/global/hubs/{hubId}/routeTables/{route_table_id}
- state String
- Output only. The current lifecycle state of this hub.
- uid String
- Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different uniqueId.
- update
Time String - Output only. The time the hub was last updated.
Supporting Types
GroupAutoAccept, GroupAutoAcceptArgs
- Auto
Accept List<string>Projects - A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects.
- Auto
Accept []stringProjects - A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects.
- auto
Accept List<String>Projects - A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects.
- auto
Accept string[]Projects - A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects.
- auto_
accept_ Sequence[str]projects - A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects.
- auto
Accept List<String>Projects - A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects.
Import
Group can be imported using any of these accepted formats:
projects/{{project}}/locations/global/hubs/{{hub}}/groups/{{name}}
{{project}}/{{hub}}/{{name}}
{{hub}}/{{name}}
When using the pulumi import
command, Group can be imported using one of the formats above. For example:
$ pulumi import gcp:networkconnectivity/group:Group default projects/{{project}}/locations/global/hubs/{{hub}}/groups/{{name}}
$ pulumi import gcp:networkconnectivity/group:Group default {{project}}/{{hub}}/{{name}}
$ pulumi import gcp:networkconnectivity/group:Group default {{hub}}/{{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.