tencentcloud.ChdfsMountPoint
Explore with Pulumi AI
Provides a resource to create a chdfs mount_point
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const mountPoint = new tencentcloud.ChdfsMountPoint("mountPoint", {
fileSystemId: "f14mpfy5lh4e",
mountPointName: "terraform-test",
mountPointStatus: 1,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
mount_point = tencentcloud.ChdfsMountPoint("mountPoint",
file_system_id="f14mpfy5lh4e",
mount_point_name="terraform-test",
mount_point_status=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.NewChdfsMountPoint(ctx, "mountPoint", &tencentcloud.ChdfsMountPointArgs{
FileSystemId: pulumi.String("f14mpfy5lh4e"),
MountPointName: pulumi.String("terraform-test"),
MountPointStatus: 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 mountPoint = new Tencentcloud.ChdfsMountPoint("mountPoint", new()
{
FileSystemId = "f14mpfy5lh4e",
MountPointName = "terraform-test",
MountPointStatus = 1,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ChdfsMountPoint;
import com.pulumi.tencentcloud.ChdfsMountPointArgs;
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 mountPoint = new ChdfsMountPoint("mountPoint", ChdfsMountPointArgs.builder()
.fileSystemId("f14mpfy5lh4e")
.mountPointName("terraform-test")
.mountPointStatus(1)
.build());
}
}
resources:
mountPoint:
type: tencentcloud:ChdfsMountPoint
properties:
fileSystemId: f14mpfy5lh4e
mountPointName: terraform-test
mountPointStatus: 1
Create ChdfsMountPoint Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ChdfsMountPoint(name: string, args: ChdfsMountPointArgs, opts?: CustomResourceOptions);
@overload
def ChdfsMountPoint(resource_name: str,
args: ChdfsMountPointArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ChdfsMountPoint(resource_name: str,
opts: Optional[ResourceOptions] = None,
file_system_id: Optional[str] = None,
mount_point_name: Optional[str] = None,
mount_point_status: Optional[float] = None,
chdfs_mount_point_id: Optional[str] = None)
func NewChdfsMountPoint(ctx *Context, name string, args ChdfsMountPointArgs, opts ...ResourceOption) (*ChdfsMountPoint, error)
public ChdfsMountPoint(string name, ChdfsMountPointArgs args, CustomResourceOptions? opts = null)
public ChdfsMountPoint(String name, ChdfsMountPointArgs args)
public ChdfsMountPoint(String name, ChdfsMountPointArgs args, CustomResourceOptions options)
type: tencentcloud:ChdfsMountPoint
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 ChdfsMountPointArgs
- 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 ChdfsMountPointArgs
- 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 ChdfsMountPointArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ChdfsMountPointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ChdfsMountPointArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ChdfsMountPoint 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 ChdfsMountPoint resource accepts the following input properties:
- File
System stringId - file system id you want to mount.
- Mount
Point stringName - mount point name.
- Mount
Point doubleStatus - mount status 1:open, 2:close.
- Chdfs
Mount stringPoint Id - ID of the resource.
- File
System stringId - file system id you want to mount.
- Mount
Point stringName - mount point name.
- Mount
Point float64Status - mount status 1:open, 2:close.
- Chdfs
Mount stringPoint Id - ID of the resource.
- file
System StringId - file system id you want to mount.
- mount
Point StringName - mount point name.
- mount
Point DoubleStatus - mount status 1:open, 2:close.
- chdfs
Mount StringPoint Id - ID of the resource.
- file
System stringId - file system id you want to mount.
- mount
Point stringName - mount point name.
- mount
Point numberStatus - mount status 1:open, 2:close.
- chdfs
Mount stringPoint Id - ID of the resource.
- file_
system_ strid - file system id you want to mount.
- mount_
point_ strname - mount point name.
- mount_
point_ floatstatus - mount status 1:open, 2:close.
- chdfs_
mount_ strpoint_ id - ID of the resource.
- file
System StringId - file system id you want to mount.
- mount
Point StringName - mount point name.
- mount
Point NumberStatus - mount status 1:open, 2:close.
- chdfs
Mount StringPoint Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ChdfsMountPoint 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 ChdfsMountPoint Resource
Get an existing ChdfsMountPoint 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?: ChdfsMountPointState, opts?: CustomResourceOptions): ChdfsMountPoint
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
chdfs_mount_point_id: Optional[str] = None,
file_system_id: Optional[str] = None,
mount_point_name: Optional[str] = None,
mount_point_status: Optional[float] = None) -> ChdfsMountPoint
func GetChdfsMountPoint(ctx *Context, name string, id IDInput, state *ChdfsMountPointState, opts ...ResourceOption) (*ChdfsMountPoint, error)
public static ChdfsMountPoint Get(string name, Input<string> id, ChdfsMountPointState? state, CustomResourceOptions? opts = null)
public static ChdfsMountPoint get(String name, Output<String> id, ChdfsMountPointState state, CustomResourceOptions options)
resources: _: type: tencentcloud:ChdfsMountPoint 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.
- Chdfs
Mount stringPoint Id - ID of the resource.
- File
System stringId - file system id you want to mount.
- Mount
Point stringName - mount point name.
- Mount
Point doubleStatus - mount status 1:open, 2:close.
- Chdfs
Mount stringPoint Id - ID of the resource.
- File
System stringId - file system id you want to mount.
- Mount
Point stringName - mount point name.
- Mount
Point float64Status - mount status 1:open, 2:close.
- chdfs
Mount StringPoint Id - ID of the resource.
- file
System StringId - file system id you want to mount.
- mount
Point StringName - mount point name.
- mount
Point DoubleStatus - mount status 1:open, 2:close.
- chdfs
Mount stringPoint Id - ID of the resource.
- file
System stringId - file system id you want to mount.
- mount
Point stringName - mount point name.
- mount
Point numberStatus - mount status 1:open, 2:close.
- chdfs_
mount_ strpoint_ id - ID of the resource.
- file_
system_ strid - file system id you want to mount.
- mount_
point_ strname - mount point name.
- mount_
point_ floatstatus - mount status 1:open, 2:close.
- chdfs
Mount StringPoint Id - ID of the resource.
- file
System StringId - file system id you want to mount.
- mount
Point StringName - mount point name.
- mount
Point NumberStatus - mount status 1:open, 2:close.
Import
chdfs mount_point can be imported using the id, e.g.
$ pulumi import tencentcloud:index/chdfsMountPoint:ChdfsMountPoint mount_point mount_point_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.