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

tencentcloud.CfsAccessGroup

Explore with Pulumi AI

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

    Provides a resource to create a CFS access group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.CfsAccessGroup("example", {description: "desc."});
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.CfsAccessGroup("example", description="desc.")
    
    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.NewCfsAccessGroup(ctx, "example", &tencentcloud.CfsAccessGroupArgs{
    			Description: pulumi.String("desc."),
    		})
    		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 example = new Tencentcloud.CfsAccessGroup("example", new()
        {
            Description = "desc.",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CfsAccessGroup;
    import com.pulumi.tencentcloud.CfsAccessGroupArgs;
    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 example = new CfsAccessGroup("example", CfsAccessGroupArgs.builder()
                .description("desc.")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:CfsAccessGroup
        properties:
          description: desc.
    

    Create CfsAccessGroup Resource

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

    Constructor syntax

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

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

    CfsAccessGroupId string
    ID of the resource.
    Description string
    Description of the access group, and max length is 255.
    Name string
    Name of the access group, and max length is 64.
    CfsAccessGroupId string
    ID of the resource.
    Description string
    Description of the access group, and max length is 255.
    Name string
    Name of the access group, and max length is 64.
    cfsAccessGroupId String
    ID of the resource.
    description String
    Description of the access group, and max length is 255.
    name String
    Name of the access group, and max length is 64.
    cfsAccessGroupId string
    ID of the resource.
    description string
    Description of the access group, and max length is 255.
    name string
    Name of the access group, and max length is 64.
    cfs_access_group_id str
    ID of the resource.
    description str
    Description of the access group, and max length is 255.
    name str
    Name of the access group, and max length is 64.
    cfsAccessGroupId String
    ID of the resource.
    description String
    Description of the access group, and max length is 255.
    name String
    Name of the access group, and max length is 64.

    Outputs

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

    CreateTime string
    Create time of the access group.
    Id string
    The provider-assigned unique ID for this managed resource.
    CreateTime string
    Create time of the access group.
    Id string
    The provider-assigned unique ID for this managed resource.
    createTime String
    Create time of the access group.
    id String
    The provider-assigned unique ID for this managed resource.
    createTime string
    Create time of the access group.
    id string
    The provider-assigned unique ID for this managed resource.
    create_time str
    Create time of the access group.
    id str
    The provider-assigned unique ID for this managed resource.
    createTime String
    Create time of the access group.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CfsAccessGroup Resource

    Get an existing CfsAccessGroup 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?: CfsAccessGroupState, opts?: CustomResourceOptions): CfsAccessGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cfs_access_group_id: Optional[str] = None,
            create_time: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None) -> CfsAccessGroup
    func GetCfsAccessGroup(ctx *Context, name string, id IDInput, state *CfsAccessGroupState, opts ...ResourceOption) (*CfsAccessGroup, error)
    public static CfsAccessGroup Get(string name, Input<string> id, CfsAccessGroupState? state, CustomResourceOptions? opts = null)
    public static CfsAccessGroup get(String name, Output<String> id, CfsAccessGroupState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CfsAccessGroup    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:
    CfsAccessGroupId string
    ID of the resource.
    CreateTime string
    Create time of the access group.
    Description string
    Description of the access group, and max length is 255.
    Name string
    Name of the access group, and max length is 64.
    CfsAccessGroupId string
    ID of the resource.
    CreateTime string
    Create time of the access group.
    Description string
    Description of the access group, and max length is 255.
    Name string
    Name of the access group, and max length is 64.
    cfsAccessGroupId String
    ID of the resource.
    createTime String
    Create time of the access group.
    description String
    Description of the access group, and max length is 255.
    name String
    Name of the access group, and max length is 64.
    cfsAccessGroupId string
    ID of the resource.
    createTime string
    Create time of the access group.
    description string
    Description of the access group, and max length is 255.
    name string
    Name of the access group, and max length is 64.
    cfs_access_group_id str
    ID of the resource.
    create_time str
    Create time of the access group.
    description str
    Description of the access group, and max length is 255.
    name str
    Name of the access group, and max length is 64.
    cfsAccessGroupId String
    ID of the resource.
    createTime String
    Create time of the access group.
    description String
    Description of the access group, and max length is 255.
    name String
    Name of the access group, and max length is 64.

    Import

    CFS access group can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/cfsAccessGroup:CfsAccessGroup example pgroup-7nx89k7l
    

    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