tencentcloud.ChdfsMountPointAttachment
Explore with Pulumi AI
Provides a resource to create a chdfs mount_point_attachment
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const mountPointAttachment = new tencentcloud.ChdfsMountPointAttachment("mountPointAttachment", {
accessGroupIds: [
"ag-bvmzrbsm",
"ag-lairqrgr",
],
mountPointId: "f14mpfy5lh4e-KuiL",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
mount_point_attachment = tencentcloud.ChdfsMountPointAttachment("mountPointAttachment",
access_group_ids=[
"ag-bvmzrbsm",
"ag-lairqrgr",
],
mount_point_id="f14mpfy5lh4e-KuiL")
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.NewChdfsMountPointAttachment(ctx, "mountPointAttachment", &tencentcloud.ChdfsMountPointAttachmentArgs{
AccessGroupIds: pulumi.StringArray{
pulumi.String("ag-bvmzrbsm"),
pulumi.String("ag-lairqrgr"),
},
MountPointId: pulumi.String("f14mpfy5lh4e-KuiL"),
})
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 mountPointAttachment = new Tencentcloud.ChdfsMountPointAttachment("mountPointAttachment", new()
{
AccessGroupIds = new[]
{
"ag-bvmzrbsm",
"ag-lairqrgr",
},
MountPointId = "f14mpfy5lh4e-KuiL",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ChdfsMountPointAttachment;
import com.pulumi.tencentcloud.ChdfsMountPointAttachmentArgs;
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 mountPointAttachment = new ChdfsMountPointAttachment("mountPointAttachment", ChdfsMountPointAttachmentArgs.builder()
.accessGroupIds(
"ag-bvmzrbsm",
"ag-lairqrgr")
.mountPointId("f14mpfy5lh4e-KuiL")
.build());
}
}
resources:
mountPointAttachment:
type: tencentcloud:ChdfsMountPointAttachment
properties:
accessGroupIds:
- ag-bvmzrbsm
- ag-lairqrgr
mountPointId: f14mpfy5lh4e-KuiL
Create ChdfsMountPointAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ChdfsMountPointAttachment(name: string, args: ChdfsMountPointAttachmentArgs, opts?: CustomResourceOptions);
@overload
def ChdfsMountPointAttachment(resource_name: str,
args: ChdfsMountPointAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ChdfsMountPointAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
access_group_ids: Optional[Sequence[str]] = None,
mount_point_id: Optional[str] = None,
chdfs_mount_point_attachment_id: Optional[str] = None)
func NewChdfsMountPointAttachment(ctx *Context, name string, args ChdfsMountPointAttachmentArgs, opts ...ResourceOption) (*ChdfsMountPointAttachment, error)
public ChdfsMountPointAttachment(string name, ChdfsMountPointAttachmentArgs args, CustomResourceOptions? opts = null)
public ChdfsMountPointAttachment(String name, ChdfsMountPointAttachmentArgs args)
public ChdfsMountPointAttachment(String name, ChdfsMountPointAttachmentArgs args, CustomResourceOptions options)
type: tencentcloud:ChdfsMountPointAttachment
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 ChdfsMountPointAttachmentArgs
- 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 ChdfsMountPointAttachmentArgs
- 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 ChdfsMountPointAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ChdfsMountPointAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ChdfsMountPointAttachmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ChdfsMountPointAttachment 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 ChdfsMountPointAttachment resource accepts the following input properties:
- Access
Group List<string>Ids - associate access group id.
- Mount
Point stringId - associate mount point.
- Chdfs
Mount stringPoint Attachment Id - ID of the resource.
- Access
Group []stringIds - associate access group id.
- Mount
Point stringId - associate mount point.
- Chdfs
Mount stringPoint Attachment Id - ID of the resource.
- access
Group List<String>Ids - associate access group id.
- mount
Point StringId - associate mount point.
- chdfs
Mount StringPoint Attachment Id - ID of the resource.
- access
Group string[]Ids - associate access group id.
- mount
Point stringId - associate mount point.
- chdfs
Mount stringPoint Attachment Id - ID of the resource.
- access_
group_ Sequence[str]ids - associate access group id.
- mount_
point_ strid - associate mount point.
- chdfs_
mount_ strpoint_ attachment_ id - ID of the resource.
- access
Group List<String>Ids - associate access group id.
- mount
Point StringId - associate mount point.
- chdfs
Mount StringPoint Attachment Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ChdfsMountPointAttachment 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 ChdfsMountPointAttachment Resource
Get an existing ChdfsMountPointAttachment 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?: ChdfsMountPointAttachmentState, opts?: CustomResourceOptions): ChdfsMountPointAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_group_ids: Optional[Sequence[str]] = None,
chdfs_mount_point_attachment_id: Optional[str] = None,
mount_point_id: Optional[str] = None) -> ChdfsMountPointAttachment
func GetChdfsMountPointAttachment(ctx *Context, name string, id IDInput, state *ChdfsMountPointAttachmentState, opts ...ResourceOption) (*ChdfsMountPointAttachment, error)
public static ChdfsMountPointAttachment Get(string name, Input<string> id, ChdfsMountPointAttachmentState? state, CustomResourceOptions? opts = null)
public static ChdfsMountPointAttachment get(String name, Output<String> id, ChdfsMountPointAttachmentState state, CustomResourceOptions options)
resources: _: type: tencentcloud:ChdfsMountPointAttachment 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 List<string>Ids - associate access group id.
- Chdfs
Mount stringPoint Attachment Id - ID of the resource.
- Mount
Point stringId - associate mount point.
- Access
Group []stringIds - associate access group id.
- Chdfs
Mount stringPoint Attachment Id - ID of the resource.
- Mount
Point stringId - associate mount point.
- access
Group List<String>Ids - associate access group id.
- chdfs
Mount StringPoint Attachment Id - ID of the resource.
- mount
Point StringId - associate mount point.
- access
Group string[]Ids - associate access group id.
- chdfs
Mount stringPoint Attachment Id - ID of the resource.
- mount
Point stringId - associate mount point.
- access_
group_ Sequence[str]ids - associate access group id.
- chdfs_
mount_ strpoint_ attachment_ id - ID of the resource.
- mount_
point_ strid - associate mount point.
- access
Group List<String>Ids - associate access group id.
- chdfs
Mount StringPoint Attachment Id - ID of the resource.
- mount
Point StringId - associate mount point.
Import
chdfs mount_point_attachment can be imported using the id, e.g.
$ pulumi import tencentcloud:index/chdfsMountPointAttachment:ChdfsMountPointAttachment mount_point_attachment 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.