1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. ChdfsAccessGroup
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.ChdfsAccessGroup

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a chdfs access_group

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const accessGroup = new tencentcloud.ChdfsAccessGroup("accessGroup", {
        accessGroupName: "testAccessGroup",
        description: "test access group",
        vpcId: "vpc-4owdpnwr",
        vpcType: 1,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    access_group = tencentcloud.ChdfsAccessGroup("accessGroup",
        access_group_name="testAccessGroup",
        description="test access group",
        vpc_id="vpc-4owdpnwr",
        vpc_type=1)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewChdfsAccessGroup(ctx, "accessGroup", &tencentcloud.ChdfsAccessGroupArgs{
    			AccessGroupName: pulumi.String("testAccessGroup"),
    			Description:     pulumi.String("test access group"),
    			VpcId:           pulumi.String("vpc-4owdpnwr"),
    			VpcType:         pulumi.Float64(1),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var accessGroup = new Tencentcloud.ChdfsAccessGroup("accessGroup", new()
        {
            AccessGroupName = "testAccessGroup",
            Description = "test access group",
            VpcId = "vpc-4owdpnwr",
            VpcType = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.ChdfsAccessGroup;
    import com.pulumi.tencentcloud.ChdfsAccessGroupArgs;
    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 accessGroup = new ChdfsAccessGroup("accessGroup", ChdfsAccessGroupArgs.builder()
                .accessGroupName("testAccessGroup")
                .description("test access group")
                .vpcId("vpc-4owdpnwr")
                .vpcType(1)
                .build());
    
        }
    }
    
    resources:
      accessGroup:
        type: tencentcloud:ChdfsAccessGroup
        properties:
          accessGroupName: testAccessGroup
          description: test access group
          vpcId: vpc-4owdpnwr
          vpcType: 1
    

    Create ChdfsAccessGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ChdfsAccessGroup(name: string, args: ChdfsAccessGroupArgs, opts?: CustomResourceOptions);
    @overload
    def ChdfsAccessGroup(resource_name: str,
                         args: ChdfsAccessGroupArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def ChdfsAccessGroup(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         access_group_name: Optional[str] = None,
                         vpc_id: Optional[str] = None,
                         vpc_type: Optional[float] = None,
                         chdfs_access_group_id: Optional[str] = None,
                         description: Optional[str] = None)
    func NewChdfsAccessGroup(ctx *Context, name string, args ChdfsAccessGroupArgs, opts ...ResourceOption) (*ChdfsAccessGroup, error)
    public ChdfsAccessGroup(string name, ChdfsAccessGroupArgs args, CustomResourceOptions? opts = null)
    public ChdfsAccessGroup(String name, ChdfsAccessGroupArgs args)
    public ChdfsAccessGroup(String name, ChdfsAccessGroupArgs args, CustomResourceOptions options)
    
    type: tencentcloud:ChdfsAccessGroup
    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 ChdfsAccessGroupArgs
    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 ChdfsAccessGroupArgs
    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 ChdfsAccessGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ChdfsAccessGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ChdfsAccessGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ChdfsAccessGroup 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 ChdfsAccessGroup resource accepts the following input properties:

    AccessGroupName string
    Permission group name.
    VpcId string
    VPC ID.
    VpcType double
    vpc network type(1:CVM, 2:BM 1.0).
    ChdfsAccessGroupId string
    ID of the resource.
    Description string
    Permission group description, default empty.
    AccessGroupName string
    Permission group name.
    VpcId string
    VPC ID.
    VpcType float64
    vpc network type(1:CVM, 2:BM 1.0).
    ChdfsAccessGroupId string
    ID of the resource.
    Description string
    Permission group description, default empty.
    accessGroupName String
    Permission group name.
    vpcId String
    VPC ID.
    vpcType Double
    vpc network type(1:CVM, 2:BM 1.0).
    chdfsAccessGroupId String
    ID of the resource.
    description String
    Permission group description, default empty.
    accessGroupName string
    Permission group name.
    vpcId string
    VPC ID.
    vpcType number
    vpc network type(1:CVM, 2:BM 1.0).
    chdfsAccessGroupId string
    ID of the resource.
    description string
    Permission group description, default empty.
    access_group_name str
    Permission group name.
    vpc_id str
    VPC ID.
    vpc_type float
    vpc network type(1:CVM, 2:BM 1.0).
    chdfs_access_group_id str
    ID of the resource.
    description str
    Permission group description, default empty.
    accessGroupName String
    Permission group name.
    vpcId String
    VPC ID.
    vpcType Number
    vpc network type(1:CVM, 2:BM 1.0).
    chdfsAccessGroupId String
    ID of the resource.
    description String
    Permission group description, default empty.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ChdfsAccessGroup resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ChdfsAccessGroup Resource

    Get an existing ChdfsAccessGroup 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?: ChdfsAccessGroupState, opts?: CustomResourceOptions): ChdfsAccessGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_group_name: Optional[str] = None,
            chdfs_access_group_id: Optional[str] = None,
            description: Optional[str] = None,
            vpc_id: Optional[str] = None,
            vpc_type: Optional[float] = None) -> ChdfsAccessGroup
    func GetChdfsAccessGroup(ctx *Context, name string, id IDInput, state *ChdfsAccessGroupState, opts ...ResourceOption) (*ChdfsAccessGroup, error)
    public static ChdfsAccessGroup Get(string name, Input<string> id, ChdfsAccessGroupState? state, CustomResourceOptions? opts = null)
    public static ChdfsAccessGroup get(String name, Output<String> id, ChdfsAccessGroupState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:ChdfsAccessGroup    get:      id: ${id}
    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:
    AccessGroupName string
    Permission group name.
    ChdfsAccessGroupId string
    ID of the resource.
    Description string
    Permission group description, default empty.
    VpcId string
    VPC ID.
    VpcType double
    vpc network type(1:CVM, 2:BM 1.0).
    AccessGroupName string
    Permission group name.
    ChdfsAccessGroupId string
    ID of the resource.
    Description string
    Permission group description, default empty.
    VpcId string
    VPC ID.
    VpcType float64
    vpc network type(1:CVM, 2:BM 1.0).
    accessGroupName String
    Permission group name.
    chdfsAccessGroupId String
    ID of the resource.
    description String
    Permission group description, default empty.
    vpcId String
    VPC ID.
    vpcType Double
    vpc network type(1:CVM, 2:BM 1.0).
    accessGroupName string
    Permission group name.
    chdfsAccessGroupId string
    ID of the resource.
    description string
    Permission group description, default empty.
    vpcId string
    VPC ID.
    vpcType number
    vpc network type(1:CVM, 2:BM 1.0).
    access_group_name str
    Permission group name.
    chdfs_access_group_id str
    ID of the resource.
    description str
    Permission group description, default empty.
    vpc_id str
    VPC ID.
    vpc_type float
    vpc network type(1:CVM, 2:BM 1.0).
    accessGroupName String
    Permission group name.
    chdfsAccessGroupId String
    ID of the resource.
    description String
    Permission group description, default empty.
    vpcId String
    VPC ID.
    vpcType Number
    vpc network type(1:CVM, 2:BM 1.0).

    Import

    chdfs access_group can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/chdfsAccessGroup:ChdfsAccessGroup access_group access_group_id
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack