tencentcloud.ChdfsAccessGroup
Explore with Pulumi AI
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:
- Access
Group stringName - Permission group name.
- Vpc
Id string - VPC ID.
- Vpc
Type double - vpc network type(1:CVM, 2:BM 1.0).
- Chdfs
Access stringGroup Id - ID of the resource.
- Description string
- Permission group description, default empty.
- Access
Group stringName - Permission group name.
- Vpc
Id string - VPC ID.
- Vpc
Type float64 - vpc network type(1:CVM, 2:BM 1.0).
- Chdfs
Access stringGroup Id - ID of the resource.
- Description string
- Permission group description, default empty.
- access
Group StringName - Permission group name.
- vpc
Id String - VPC ID.
- vpc
Type Double - vpc network type(1:CVM, 2:BM 1.0).
- chdfs
Access StringGroup Id - ID of the resource.
- description String
- Permission group description, default empty.
- access
Group stringName - Permission group name.
- vpc
Id string - VPC ID.
- vpc
Type number - vpc network type(1:CVM, 2:BM 1.0).
- chdfs
Access stringGroup Id - ID of the resource.
- description string
- Permission group description, default empty.
- access_
group_ strname - Permission group name.
- vpc_
id str - VPC ID.
- vpc_
type float - vpc network type(1:CVM, 2:BM 1.0).
- chdfs_
access_ strgroup_ id - ID of the resource.
- description str
- Permission group description, default empty.
- access
Group StringName - Permission group name.
- vpc
Id String - VPC ID.
- vpc
Type Number - vpc network type(1:CVM, 2:BM 1.0).
- chdfs
Access StringGroup Id - 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.
- Access
Group stringName - Permission group name.
- Chdfs
Access stringGroup Id - ID of the resource.
- Description string
- Permission group description, default empty.
- Vpc
Id string - VPC ID.
- Vpc
Type double - vpc network type(1:CVM, 2:BM 1.0).
- Access
Group stringName - Permission group name.
- Chdfs
Access stringGroup Id - ID of the resource.
- Description string
- Permission group description, default empty.
- Vpc
Id string - VPC ID.
- Vpc
Type float64 - vpc network type(1:CVM, 2:BM 1.0).
- access
Group StringName - Permission group name.
- chdfs
Access StringGroup Id - ID of the resource.
- description String
- Permission group description, default empty.
- vpc
Id String - VPC ID.
- vpc
Type Double - vpc network type(1:CVM, 2:BM 1.0).
- access
Group stringName - Permission group name.
- chdfs
Access stringGroup Id - ID of the resource.
- description string
- Permission group description, default empty.
- vpc
Id string - VPC ID.
- vpc
Type number - vpc network type(1:CVM, 2:BM 1.0).
- access_
group_ strname - Permission group name.
- chdfs_
access_ strgroup_ id - 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).
- access
Group StringName - Permission group name.
- chdfs
Access StringGroup Id - ID of the resource.
- description String
- Permission group description, default empty.
- vpc
Id String - VPC ID.
- vpc
Type 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.