alicloud.dfs.AccessGroup
Explore with Pulumi AI
Provides a DFS Access Group resource.
For information about DFS Access Group and how to use it, see What is Access Group.
NOTE: Available since v1.133.0.
Example Usage
Basic Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf-example";
var @default = new AliCloud.Dfs.AccessGroup("default", new()
{
AccessGroupName = name,
NetworkType = "VPC",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dfs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "tf-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_, err := dfs.NewAccessGroup(ctx, "default", &dfs.AccessGroupArgs{
AccessGroupName: pulumi.String(name),
NetworkType: pulumi.String("VPC"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.dfs.AccessGroup;
import com.pulumi.alicloud.dfs.AccessGroupArgs;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf-example");
var default_ = new AccessGroup("default", AccessGroupArgs.builder()
.accessGroupName(name)
.networkType("VPC")
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf-example"
default = alicloud.dfs.AccessGroup("default",
access_group_name=name,
network_type="VPC")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf-example";
const _default = new alicloud.dfs.AccessGroup("default", {
accessGroupName: name,
networkType: "VPC",
});
configuration:
name:
type: string
default: tf-example
resources:
default:
type: alicloud:dfs:AccessGroup
properties:
accessGroupName: ${name}
networkType: VPC
Create AccessGroup Resource
new AccessGroup(name: string, args: AccessGroupArgs, opts?: CustomResourceOptions);
@overload
def AccessGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
access_group_name: Optional[str] = None,
description: Optional[str] = None,
network_type: Optional[str] = None)
@overload
def AccessGroup(resource_name: str,
args: AccessGroupArgs,
opts: Optional[ResourceOptions] = None)
func NewAccessGroup(ctx *Context, name string, args AccessGroupArgs, opts ...ResourceOption) (*AccessGroup, error)
public AccessGroup(string name, AccessGroupArgs args, CustomResourceOptions? opts = null)
public AccessGroup(String name, AccessGroupArgs args)
public AccessGroup(String name, AccessGroupArgs args, CustomResourceOptions options)
type: alicloud:dfs:AccessGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccessGroupArgs
- 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 AccessGroupArgs
- 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 AccessGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccessGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccessGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AccessGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The AccessGroup resource accepts the following input properties:
- Access
Group stringName The Name of Access Group.The length of
access_group_name
does not exceed 100 bytes.- Network
Type string The NetworkType of Access Group. Valid values:
VPC
.- Description string
The Description of Access Group. The length of
description
does not exceed 100 bytes.
- Access
Group stringName The Name of Access Group.The length of
access_group_name
does not exceed 100 bytes.- Network
Type string The NetworkType of Access Group. Valid values:
VPC
.- Description string
The Description of Access Group. The length of
description
does not exceed 100 bytes.
- access
Group StringName The Name of Access Group.The length of
access_group_name
does not exceed 100 bytes.- network
Type String The NetworkType of Access Group. Valid values:
VPC
.- description String
The Description of Access Group. The length of
description
does not exceed 100 bytes.
- access
Group stringName The Name of Access Group.The length of
access_group_name
does not exceed 100 bytes.- network
Type string The NetworkType of Access Group. Valid values:
VPC
.- description string
The Description of Access Group. The length of
description
does not exceed 100 bytes.
- access_
group_ strname The Name of Access Group.The length of
access_group_name
does not exceed 100 bytes.- network_
type str The NetworkType of Access Group. Valid values:
VPC
.- description str
The Description of Access Group. The length of
description
does not exceed 100 bytes.
- access
Group StringName The Name of Access Group.The length of
access_group_name
does not exceed 100 bytes.- network
Type String The NetworkType of Access Group. Valid values:
VPC
.- description String
The Description of Access Group. The length of
description
does not exceed 100 bytes.
Outputs
All input properties are implicitly available as output properties. Additionally, the AccessGroup 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 AccessGroup Resource
Get an existing AccessGroup 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?: AccessGroupState, opts?: CustomResourceOptions): AccessGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_group_name: Optional[str] = None,
description: Optional[str] = None,
network_type: Optional[str] = None) -> AccessGroup
func GetAccessGroup(ctx *Context, name string, id IDInput, state *AccessGroupState, opts ...ResourceOption) (*AccessGroup, error)
public static AccessGroup Get(string name, Input<string> id, AccessGroupState? state, CustomResourceOptions? opts = null)
public static AccessGroup get(String name, Output<String> id, AccessGroupState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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 The Name of Access Group.The length of
access_group_name
does not exceed 100 bytes.- Description string
The Description of Access Group. The length of
description
does not exceed 100 bytes.- Network
Type string The NetworkType of Access Group. Valid values:
VPC
.
- Access
Group stringName The Name of Access Group.The length of
access_group_name
does not exceed 100 bytes.- Description string
The Description of Access Group. The length of
description
does not exceed 100 bytes.- Network
Type string The NetworkType of Access Group. Valid values:
VPC
.
- access
Group StringName The Name of Access Group.The length of
access_group_name
does not exceed 100 bytes.- description String
The Description of Access Group. The length of
description
does not exceed 100 bytes.- network
Type String The NetworkType of Access Group. Valid values:
VPC
.
- access
Group stringName The Name of Access Group.The length of
access_group_name
does not exceed 100 bytes.- description string
The Description of Access Group. The length of
description
does not exceed 100 bytes.- network
Type string The NetworkType of Access Group. Valid values:
VPC
.
- access_
group_ strname The Name of Access Group.The length of
access_group_name
does not exceed 100 bytes.- description str
The Description of Access Group. The length of
description
does not exceed 100 bytes.- network_
type str The NetworkType of Access Group. Valid values:
VPC
.
- access
Group StringName The Name of Access Group.The length of
access_group_name
does not exceed 100 bytes.- description String
The Description of Access Group. The length of
description
does not exceed 100 bytes.- network
Type String The NetworkType of Access Group. Valid values:
VPC
.
Import
DFS Access Group can be imported using the id, e.g.
$ pulumi import alicloud:dfs/accessGroup:AccessGroup example <id>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.