Alibaba Cloud

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

AccessGroup

Provides a NAS Access Group resource.

In NAS, the permission group acts as a whitelist that allows you to restrict file system access. You can allow specified IP addresses or CIDR blocks to access the file system, and assign different levels of access permission to different IP addresses or CIDR blocks by adding rules to the permission group. For information about NAS Access Group and how to use it, see What is NAS Access Group

NOTE: Available in v1.33.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = new AliCloud.Nas.AccessGroup("foo", new AliCloud.Nas.AccessGroupArgs
        {
            Description = "test_AccessG",
            Type = "Classic",
        });
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := nas.NewAccessGroup(ctx, "foo", &nas.AccessGroupArgs{
			Description: pulumi.String("test_AccessG"),
			Type:        pulumi.String("Classic"),
		})
		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.nas.AccessGroup;
import com.pulumi.alicloud.nas.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 foo = new AccessGroup("foo", AccessGroupArgs.builder()        
            .description("test_AccessG")
            .type("Classic")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

foo = alicloud.nas.AccessGroup("foo",
    description="test_AccessG",
    type="Classic")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const foo = new alicloud.nas.AccessGroup("foo", {
    description: "test_AccessG",
    type: "Classic",
});
resources:
  foo:
    type: alicloud:nas:AccessGroup
    properties:
      description: test_AccessG
      type: Classic

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,
                access_group_type: Optional[str] = None,
                description: Optional[str] = None,
                file_system_type: Optional[str] = None,
                name: Optional[str] = None,
                type: Optional[str] = None)
@overload
def AccessGroup(resource_name: str,
                args: Optional[AccessGroupArgs] = None,
                opts: Optional[ResourceOptions] = None)
func NewAccessGroup(ctx *Context, name string, args *AccessGroupArgs, opts ...ResourceOption) (*AccessGroup, error)
public AccessGroup(string name, AccessGroupArgs? args = null, CustomResourceOptions? opts = null)
public AccessGroup(String name, AccessGroupArgs args)
public AccessGroup(String name, AccessGroupArgs args, CustomResourceOptions options)
type: alicloud:nas: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

A Name of one Access Group.

AccessGroupType string

A Type of one Access Group. Valid values: Vpc and Classic.

Description string

The Access Group description.

FileSystemType string

The type of file system. Valid values: standard and extreme. Default to standard. Note that the extreme only support Vpc Network.

Name string

Replaced by access_group_name after version 1.92.0.

Type string

Replaced by access_group_type after version 1.92.0.

AccessGroupName string

A Name of one Access Group.

AccessGroupType string

A Type of one Access Group. Valid values: Vpc and Classic.

Description string

The Access Group description.

FileSystemType string

The type of file system. Valid values: standard and extreme. Default to standard. Note that the extreme only support Vpc Network.

Name string

Replaced by access_group_name after version 1.92.0.

Type string

Replaced by access_group_type after version 1.92.0.

accessGroupName String

A Name of one Access Group.

accessGroupType String

A Type of one Access Group. Valid values: Vpc and Classic.

description String

The Access Group description.

fileSystemType String

The type of file system. Valid values: standard and extreme. Default to standard. Note that the extreme only support Vpc Network.

name String

Replaced by access_group_name after version 1.92.0.

type String

Replaced by access_group_type after version 1.92.0.

accessGroupName string

A Name of one Access Group.

accessGroupType string

A Type of one Access Group. Valid values: Vpc and Classic.

description string

The Access Group description.

fileSystemType string

The type of file system. Valid values: standard and extreme. Default to standard. Note that the extreme only support Vpc Network.

name string

Replaced by access_group_name after version 1.92.0.

type string

Replaced by access_group_type after version 1.92.0.

access_group_name str

A Name of one Access Group.

access_group_type str

A Type of one Access Group. Valid values: Vpc and Classic.

description str

The Access Group description.

file_system_type str

The type of file system. Valid values: standard and extreme. Default to standard. Note that the extreme only support Vpc Network.

name str

Replaced by access_group_name after version 1.92.0.

type str

Replaced by access_group_type after version 1.92.0.

accessGroupName String

A Name of one Access Group.

accessGroupType String

A Type of one Access Group. Valid values: Vpc and Classic.

description String

The Access Group description.

fileSystemType String

The type of file system. Valid values: standard and extreme. Default to standard. Note that the extreme only support Vpc Network.

name String

Replaced by access_group_name after version 1.92.0.

type String

Replaced by access_group_type after version 1.92.0.

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,
        access_group_type: Optional[str] = None,
        description: Optional[str] = None,
        file_system_type: Optional[str] = None,
        name: Optional[str] = None,
        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

A Name of one Access Group.

AccessGroupType string

A Type of one Access Group. Valid values: Vpc and Classic.

Description string

The Access Group description.

FileSystemType string

The type of file system. Valid values: standard and extreme. Default to standard. Note that the extreme only support Vpc Network.

Name string

Replaced by access_group_name after version 1.92.0.

Type string

Replaced by access_group_type after version 1.92.0.

AccessGroupName string

A Name of one Access Group.

AccessGroupType string

A Type of one Access Group. Valid values: Vpc and Classic.

Description string

The Access Group description.

FileSystemType string

The type of file system. Valid values: standard and extreme. Default to standard. Note that the extreme only support Vpc Network.

Name string

Replaced by access_group_name after version 1.92.0.

Type string

Replaced by access_group_type after version 1.92.0.

accessGroupName String

A Name of one Access Group.

accessGroupType String

A Type of one Access Group. Valid values: Vpc and Classic.

description String

The Access Group description.

fileSystemType String

The type of file system. Valid values: standard and extreme. Default to standard. Note that the extreme only support Vpc Network.

name String

Replaced by access_group_name after version 1.92.0.

type String

Replaced by access_group_type after version 1.92.0.

accessGroupName string

A Name of one Access Group.

accessGroupType string

A Type of one Access Group. Valid values: Vpc and Classic.

description string

The Access Group description.

fileSystemType string

The type of file system. Valid values: standard and extreme. Default to standard. Note that the extreme only support Vpc Network.

name string

Replaced by access_group_name after version 1.92.0.

type string

Replaced by access_group_type after version 1.92.0.

access_group_name str

A Name of one Access Group.

access_group_type str

A Type of one Access Group. Valid values: Vpc and Classic.

description str

The Access Group description.

file_system_type str

The type of file system. Valid values: standard and extreme. Default to standard. Note that the extreme only support Vpc Network.

name str

Replaced by access_group_name after version 1.92.0.

type str

Replaced by access_group_type after version 1.92.0.

accessGroupName String

A Name of one Access Group.

accessGroupType String

A Type of one Access Group. Valid values: Vpc and Classic.

description String

The Access Group description.

fileSystemType String

The type of file system. Valid values: standard and extreme. Default to standard. Note that the extreme only support Vpc Network.

name String

Replaced by access_group_name after version 1.92.0.

type String

Replaced by access_group_type after version 1.92.0.

Import

NAS Access Group can be imported using the id, e.g.

 $ pulumi import alicloud:nas/accessGroup:AccessGroup foo tf_testAccNasConfig:standard

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.