tencentcloud.ChdfsFileSystem
Explore with Pulumi AI
Provides a resource to create a chdfs file_system
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const fileSystem = new tencentcloud.ChdfsFileSystem("fileSystem", {
capacityQuota: 10995116277760,
description: "file system for terraform test",
enableRanger: true,
fileSystemName: "terraform-test",
posixAcl: false,
rangerServiceAddresses: [
"127.0.0.1:80",
"127.0.0.1:8000",
],
superUsers: [
"terraform",
"iac",
],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
file_system = tencentcloud.ChdfsFileSystem("fileSystem",
capacity_quota=10995116277760,
description="file system for terraform test",
enable_ranger=True,
file_system_name="terraform-test",
posix_acl=False,
ranger_service_addresses=[
"127.0.0.1:80",
"127.0.0.1:8000",
],
super_users=[
"terraform",
"iac",
])
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.NewChdfsFileSystem(ctx, "fileSystem", &tencentcloud.ChdfsFileSystemArgs{
CapacityQuota: pulumi.Float64(10995116277760),
Description: pulumi.String("file system for terraform test"),
EnableRanger: pulumi.Bool(true),
FileSystemName: pulumi.String("terraform-test"),
PosixAcl: pulumi.Bool(false),
RangerServiceAddresses: pulumi.StringArray{
pulumi.String("127.0.0.1:80"),
pulumi.String("127.0.0.1:8000"),
},
SuperUsers: pulumi.StringArray{
pulumi.String("terraform"),
pulumi.String("iac"),
},
})
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 fileSystem = new Tencentcloud.ChdfsFileSystem("fileSystem", new()
{
CapacityQuota = 10995116277760,
Description = "file system for terraform test",
EnableRanger = true,
FileSystemName = "terraform-test",
PosixAcl = false,
RangerServiceAddresses = new[]
{
"127.0.0.1:80",
"127.0.0.1:8000",
},
SuperUsers = new[]
{
"terraform",
"iac",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ChdfsFileSystem;
import com.pulumi.tencentcloud.ChdfsFileSystemArgs;
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 fileSystem = new ChdfsFileSystem("fileSystem", ChdfsFileSystemArgs.builder()
.capacityQuota(10995116277760)
.description("file system for terraform test")
.enableRanger(true)
.fileSystemName("terraform-test")
.posixAcl(false)
.rangerServiceAddresses(
"127.0.0.1:80",
"127.0.0.1:8000")
.superUsers(
"terraform",
"iac")
.build());
}
}
resources:
fileSystem:
type: tencentcloud:ChdfsFileSystem
properties:
capacityQuota: 1.099511627776e+13
description: file system for terraform test
enableRanger: true
fileSystemName: terraform-test
posixAcl: false
rangerServiceAddresses:
- 127.0.0.1:80
- 127.0.0.1:8000
superUsers:
- terraform
- iac
Create ChdfsFileSystem Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ChdfsFileSystem(name: string, args: ChdfsFileSystemArgs, opts?: CustomResourceOptions);
@overload
def ChdfsFileSystem(resource_name: str,
args: ChdfsFileSystemArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ChdfsFileSystem(resource_name: str,
opts: Optional[ResourceOptions] = None,
capacity_quota: Optional[float] = None,
file_system_name: Optional[str] = None,
posix_acl: Optional[bool] = None,
chdfs_file_system_id: Optional[str] = None,
description: Optional[str] = None,
enable_ranger: Optional[bool] = None,
ranger_service_addresses: Optional[Sequence[str]] = None,
super_users: Optional[Sequence[str]] = None)
func NewChdfsFileSystem(ctx *Context, name string, args ChdfsFileSystemArgs, opts ...ResourceOption) (*ChdfsFileSystem, error)
public ChdfsFileSystem(string name, ChdfsFileSystemArgs args, CustomResourceOptions? opts = null)
public ChdfsFileSystem(String name, ChdfsFileSystemArgs args)
public ChdfsFileSystem(String name, ChdfsFileSystemArgs args, CustomResourceOptions options)
type: tencentcloud:ChdfsFileSystem
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 ChdfsFileSystemArgs
- 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 ChdfsFileSystemArgs
- 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 ChdfsFileSystemArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ChdfsFileSystemArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ChdfsFileSystemArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ChdfsFileSystem 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 ChdfsFileSystem resource accepts the following input properties:
- Capacity
Quota double - file system capacity. min 1GB, max 1PB, CapacityQuota is N * 1073741824.
- File
System stringName - file system name.
- Posix
Acl bool - check POSIX ACL or not.
- Chdfs
File stringSystem Id - ID of the resource.
- Description string
- desc of the file system.
- Enable
Ranger bool - check the ranger address or not.
- Ranger
Service List<string>Addresses - ranger address list, default empty.
- Super
Users List<string> - super users of the file system, default empty.
- Capacity
Quota float64 - file system capacity. min 1GB, max 1PB, CapacityQuota is N * 1073741824.
- File
System stringName - file system name.
- Posix
Acl bool - check POSIX ACL or not.
- Chdfs
File stringSystem Id - ID of the resource.
- Description string
- desc of the file system.
- Enable
Ranger bool - check the ranger address or not.
- Ranger
Service []stringAddresses - ranger address list, default empty.
- Super
Users []string - super users of the file system, default empty.
- capacity
Quota Double - file system capacity. min 1GB, max 1PB, CapacityQuota is N * 1073741824.
- file
System StringName - file system name.
- posix
Acl Boolean - check POSIX ACL or not.
- chdfs
File StringSystem Id - ID of the resource.
- description String
- desc of the file system.
- enable
Ranger Boolean - check the ranger address or not.
- ranger
Service List<String>Addresses - ranger address list, default empty.
- super
Users List<String> - super users of the file system, default empty.
- capacity
Quota number - file system capacity. min 1GB, max 1PB, CapacityQuota is N * 1073741824.
- file
System stringName - file system name.
- posix
Acl boolean - check POSIX ACL or not.
- chdfs
File stringSystem Id - ID of the resource.
- description string
- desc of the file system.
- enable
Ranger boolean - check the ranger address or not.
- ranger
Service string[]Addresses - ranger address list, default empty.
- super
Users string[] - super users of the file system, default empty.
- capacity_
quota float - file system capacity. min 1GB, max 1PB, CapacityQuota is N * 1073741824.
- file_
system_ strname - file system name.
- posix_
acl bool - check POSIX ACL or not.
- chdfs_
file_ strsystem_ id - ID of the resource.
- description str
- desc of the file system.
- enable_
ranger bool - check the ranger address or not.
- ranger_
service_ Sequence[str]addresses - ranger address list, default empty.
- super_
users Sequence[str] - super users of the file system, default empty.
- capacity
Quota Number - file system capacity. min 1GB, max 1PB, CapacityQuota is N * 1073741824.
- file
System StringName - file system name.
- posix
Acl Boolean - check POSIX ACL or not.
- chdfs
File StringSystem Id - ID of the resource.
- description String
- desc of the file system.
- enable
Ranger Boolean - check the ranger address or not.
- ranger
Service List<String>Addresses - ranger address list, default empty.
- super
Users List<String> - super users of the file system, default empty.
Outputs
All input properties are implicitly available as output properties. Additionally, the ChdfsFileSystem 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 ChdfsFileSystem Resource
Get an existing ChdfsFileSystem 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?: ChdfsFileSystemState, opts?: CustomResourceOptions): ChdfsFileSystem
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
capacity_quota: Optional[float] = None,
chdfs_file_system_id: Optional[str] = None,
description: Optional[str] = None,
enable_ranger: Optional[bool] = None,
file_system_name: Optional[str] = None,
posix_acl: Optional[bool] = None,
ranger_service_addresses: Optional[Sequence[str]] = None,
super_users: Optional[Sequence[str]] = None) -> ChdfsFileSystem
func GetChdfsFileSystem(ctx *Context, name string, id IDInput, state *ChdfsFileSystemState, opts ...ResourceOption) (*ChdfsFileSystem, error)
public static ChdfsFileSystem Get(string name, Input<string> id, ChdfsFileSystemState? state, CustomResourceOptions? opts = null)
public static ChdfsFileSystem get(String name, Output<String> id, ChdfsFileSystemState state, CustomResourceOptions options)
resources: _: type: tencentcloud:ChdfsFileSystem 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.
- Capacity
Quota double - file system capacity. min 1GB, max 1PB, CapacityQuota is N * 1073741824.
- Chdfs
File stringSystem Id - ID of the resource.
- Description string
- desc of the file system.
- Enable
Ranger bool - check the ranger address or not.
- File
System stringName - file system name.
- Posix
Acl bool - check POSIX ACL or not.
- Ranger
Service List<string>Addresses - ranger address list, default empty.
- Super
Users List<string> - super users of the file system, default empty.
- Capacity
Quota float64 - file system capacity. min 1GB, max 1PB, CapacityQuota is N * 1073741824.
- Chdfs
File stringSystem Id - ID of the resource.
- Description string
- desc of the file system.
- Enable
Ranger bool - check the ranger address or not.
- File
System stringName - file system name.
- Posix
Acl bool - check POSIX ACL or not.
- Ranger
Service []stringAddresses - ranger address list, default empty.
- Super
Users []string - super users of the file system, default empty.
- capacity
Quota Double - file system capacity. min 1GB, max 1PB, CapacityQuota is N * 1073741824.
- chdfs
File StringSystem Id - ID of the resource.
- description String
- desc of the file system.
- enable
Ranger Boolean - check the ranger address or not.
- file
System StringName - file system name.
- posix
Acl Boolean - check POSIX ACL or not.
- ranger
Service List<String>Addresses - ranger address list, default empty.
- super
Users List<String> - super users of the file system, default empty.
- capacity
Quota number - file system capacity. min 1GB, max 1PB, CapacityQuota is N * 1073741824.
- chdfs
File stringSystem Id - ID of the resource.
- description string
- desc of the file system.
- enable
Ranger boolean - check the ranger address or not.
- file
System stringName - file system name.
- posix
Acl boolean - check POSIX ACL or not.
- ranger
Service string[]Addresses - ranger address list, default empty.
- super
Users string[] - super users of the file system, default empty.
- capacity_
quota float - file system capacity. min 1GB, max 1PB, CapacityQuota is N * 1073741824.
- chdfs_
file_ strsystem_ id - ID of the resource.
- description str
- desc of the file system.
- enable_
ranger bool - check the ranger address or not.
- file_
system_ strname - file system name.
- posix_
acl bool - check POSIX ACL or not.
- ranger_
service_ Sequence[str]addresses - ranger address list, default empty.
- super_
users Sequence[str] - super users of the file system, default empty.
- capacity
Quota Number - file system capacity. min 1GB, max 1PB, CapacityQuota is N * 1073741824.
- chdfs
File StringSystem Id - ID of the resource.
- description String
- desc of the file system.
- enable
Ranger Boolean - check the ranger address or not.
- file
System StringName - file system name.
- posix
Acl Boolean - check POSIX ACL or not.
- ranger
Service List<String>Addresses - ranger address list, default empty.
- super
Users List<String> - super users of the file system, default empty.
Import
chdfs file_system can be imported using the id, e.g.
$ pulumi import tencentcloud:index/chdfsFileSystem:ChdfsFileSystem file_system file_system_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.