Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.27.0 published on Monday, Aug 8, 2022 by Pulumi

AccessGroup

Provides a DFS Access Group resource.

For information about DFS Access Group and how to use it, see What is Access Group.

NOTE: Available in v1.133.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new AliCloud.Dfs.AccessGroup("example", new AliCloud.Dfs.AccessGroupArgs
        {
            AccessGroupName = "example_value",
            NetworkType = "VPC",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dfs"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dfs.NewAccessGroup(ctx, "example", &dfs.AccessGroupArgs{
			AccessGroupName: pulumi.String("example_value"),
			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) {
        var example = new AccessGroup("example", AccessGroupArgs.builder()        
            .accessGroupName("example_value")
            .networkType("VPC")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.dfs.AccessGroup("example",
    access_group_name="example_value",
    network_type="VPC")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = new alicloud.dfs.AccessGroup("example", {
    accessGroupName: "example_value",
    networkType: "VPC",
});
resources:
  example:
    type: alicloud:dfs:AccessGroup
    properties:
      accessGroupName: example_value
      networkType: VPC

Create a 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:

AccessGroupName string

The Name of Access Group.The length of access_group_name does not exceed 100 bytes.

NetworkType 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.

AccessGroupName string

The Name of Access Group.The length of access_group_name does not exceed 100 bytes.

NetworkType 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.

accessGroupName String

The Name of Access Group.The length of access_group_name does not exceed 100 bytes.

networkType 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.

accessGroupName string

The Name of Access Group.The length of access_group_name does not exceed 100 bytes.

networkType 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_name str

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.

accessGroupName String

The Name of Access Group.The length of access_group_name does not exceed 100 bytes.

networkType 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 an 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.
The following state arguments are supported:
AccessGroupName string

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.

NetworkType string

The NetworkType of Access Group. Valid values: VPC.

AccessGroupName string

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.

NetworkType string

The NetworkType of Access Group. Valid values: VPC.

accessGroupName String

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.

networkType String

The NetworkType of Access Group. Valid values: VPC.

accessGroupName string

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.

networkType string

The NetworkType of Access Group. Valid values: VPC.

access_group_name str

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.

accessGroupName String

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.

networkType 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
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.