1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. networkconnectivity
  5. Group
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

gcp.networkconnectivity.Group

Explore with Pulumi AI

gcp logo
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

    The NetworkConnectivity Group resource

    To get more information about Group, see:

    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)
    public Group(String name, GroupArgs args)
    public Group(String name, GroupArgs args, CustomResourceOptions options)
    
    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}


    AutoAccept GroupAutoAccept
    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}


    AutoAccept GroupAutoAcceptArgs
    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}


    autoAccept GroupAutoAccept
    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}


    autoAccept GroupAutoAccept
    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 GroupAutoAcceptArgs
    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}


    autoAccept 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:

    CreateTime string
    Output only. The time the hub was created.
    EffectiveLabels 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.
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    RouteTable 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.
    UpdateTime string
    Output only. The time the hub was last updated.
    CreateTime string
    Output only. The time the hub was created.
    EffectiveLabels 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.
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    RouteTable 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.
    UpdateTime string
    Output only. The time the hub was last updated.
    createTime String
    Output only. The time the hub was created.
    effectiveLabels 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.
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    routeTable 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.
    updateTime String
    Output only. The time the hub was last updated.
    createTime string
    Output only. The time the hub was created.
    effectiveLabels {[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.
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    routeTable 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.
    updateTime 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.
    createTime String
    Output only. The time the hub was created.
    effectiveLabels 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.
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    routeTable 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.
    updateTime 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.
    The following state arguments are supported:
    AutoAccept GroupAutoAccept
    Optional. The auto-accept setting for this group. Structure is documented below.
    CreateTime string
    Output only. The time the hub was created.
    Description string
    An optional description of the group.
    EffectiveLabels 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.
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    RouteTable 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.
    UpdateTime string
    Output only. The time the hub was last updated.
    AutoAccept GroupAutoAcceptArgs
    Optional. The auto-accept setting for this group. Structure is documented below.
    CreateTime string
    Output only. The time the hub was created.
    Description string
    An optional description of the group.
    EffectiveLabels 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.
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    RouteTable 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.
    UpdateTime string
    Output only. The time the hub was last updated.
    autoAccept GroupAutoAccept
    Optional. The auto-accept setting for this group. Structure is documented below.
    createTime String
    Output only. The time the hub was created.
    description String
    An optional description of the group.
    effectiveLabels 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.
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    routeTable 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.
    updateTime String
    Output only. The time the hub was last updated.
    autoAccept GroupAutoAccept
    Optional. The auto-accept setting for this group. Structure is documented below.
    createTime string
    Output only. The time the hub was created.
    description string
    An optional description of the group.
    effectiveLabels {[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.
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    routeTable 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.
    updateTime string
    Output only. The time the hub was last updated.
    auto_accept GroupAutoAcceptArgs
    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.
    autoAccept Property Map
    Optional. The auto-accept setting for this group. Structure is documented below.
    createTime String
    Output only. The time the hub was created.
    description String
    An optional description of the group.
    effectiveLabels 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.
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    routeTable 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.
    updateTime String
    Output only. The time the hub was last updated.

    Supporting Types

    GroupAutoAccept, GroupAutoAcceptArgs

    AutoAcceptProjects List<string>
    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.
    AutoAcceptProjects []string
    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.
    autoAcceptProjects List<String>
    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.
    autoAcceptProjects string[]
    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_projects Sequence[str]
    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.
    autoAcceptProjects List<String>
    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.
    gcp logo
    Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi