cloudstoragegateway

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.1

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type ExpressSync

type ExpressSync struct {
	pulumi.CustomResourceState

	// The name of the OSS Bucket.
	BucketName pulumi.StringOutput `pulumi:"bucketName"`
	// The prefix of the OSS Bucket.
	BucketPrefix pulumi.StringPtrOutput `pulumi:"bucketPrefix"`
	// The region of the OSS Bucket.
	BucketRegion pulumi.StringOutput `pulumi:"bucketRegion"`
	// The description of the Express Sync. The length of the name is limited to `1` to `255` characters.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The name of the ExpressSync. The length of the name is limited to `1` to `128` characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, English periods (.), underscores (_), or hyphens (-), and must start with  letters.
	ExpressSyncName pulumi.StringOutput `pulumi:"expressSyncName"`
}

Provides a Cloud Storage Gateway Express Sync resource.

For information about Cloud Storage Gateway Express Sync and how to use it, see [What is Express Sync](https://www.alibabacloud.com/help/en/doc-detail/53972.htm).

> **NOTE:** Available in v1.144.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/oss"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/vpc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "tftest"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		region := "cn-shanghai"
		if param := cfg.Get("region"); param != "" {
			region = param
		}
		defaultStocks, err := cloudstoragegateway.GetStocks(ctx, &cloudstoragegateway.GetStocksArgs{
			GatewayClass: pulumi.StringRef("Standard"),
		}, nil)
		if err != nil {
			return err
		}
		vpc, err := vpc.NewNetwork(ctx, "vpc", &vpc.NetworkArgs{
			VpcName:   pulumi.String(name),
			CidrBlock: pulumi.String("172.16.0.0/12"),
		})
		if err != nil {
			return err
		}
		defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
			VpcId:       vpc.ID(),
			CidrBlock:   pulumi.String("172.16.0.0/21"),
			ZoneId:      pulumi.String(defaultStocks.Stocks[0].ZoneId),
			VswitchName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultStorageBundle, err := cloudstoragegateway.NewStorageBundle(ctx, "defaultStorageBundle", &cloudstoragegateway.StorageBundleArgs{
			StorageBundleName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultGateway, err := cloudstoragegateway.NewGateway(ctx, "defaultGateway", &cloudstoragegateway.GatewayArgs{
			Description:            pulumi.String("tf-acctestDesalone"),
			GatewayClass:           pulumi.String("Standard"),
			Type:                   pulumi.String("File"),
			PaymentType:            pulumi.String("PayAsYouGo"),
			VswitchId:              defaultSwitch.ID(),
			ReleaseAfterExpiration: pulumi.Bool(true),
			PublicNetworkBandwidth: pulumi.Int(10),
			StorageBundleId:        defaultStorageBundle.ID(),
			Location:               pulumi.String("Cloud"),
			GatewayName:            pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultGatewayCacheDisk, err := cloudstoragegateway.NewGatewayCacheDisk(ctx, "defaultGatewayCacheDisk", &cloudstoragegateway.GatewayCacheDiskArgs{
			CacheDiskCategory: pulumi.String("cloud_efficiency"),
			GatewayId:         defaultGateway.ID(),
			CacheDiskSizeInGb: pulumi.Int(50),
		})
		if err != nil {
			return err
		}
		defaultBucket, err := oss.NewBucket(ctx, "defaultBucket", &oss.BucketArgs{
			Bucket: pulumi.String(name),
			Acl:    pulumi.String("public-read-write"),
		})
		if err != nil {
			return err
		}
		defaultGatewayFileShare, err := cloudstoragegateway.NewGatewayFileShare(ctx, "defaultGatewayFileShare", &cloudstoragegateway.GatewayFileShareArgs{
			GatewayFileShareName: pulumi.String(name),
			GatewayId:            defaultGateway.ID(),
			LocalPath:            defaultGatewayCacheDisk.LocalFilePath,
			OssBucketName:        defaultBucket.Bucket,
			OssEndpoint:          defaultBucket.ExtranetEndpoint,
			Protocol:             pulumi.String("NFS"),
			RemoteSync:           pulumi.Bool(true),
			PollingInterval:      pulumi.Int(4500),
			FeLimit:              pulumi.Int(0),
			BackendLimit:         pulumi.Int(0),
			CacheMode:            pulumi.String("Cache"),
			Squash:               pulumi.String("none"),
			LagPeriod:            pulumi.Int(5),
		})
		if err != nil {
			return err
		}
		_, err = cloudstoragegateway.NewExpressSync(ctx, "defaultExpressSync", &cloudstoragegateway.ExpressSyncArgs{
			BucketName:      defaultGatewayFileShare.OssBucketName,
			BucketRegion:    pulumi.String(region),
			Description:     pulumi.String(name),
			ExpressSyncName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Cloud Storage Gateway Express Sync can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cloudstoragegateway/expressSync:ExpressSync example <id>

```

func GetExpressSync

func GetExpressSync(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ExpressSyncState, opts ...pulumi.ResourceOption) (*ExpressSync, error)

GetExpressSync gets an existing ExpressSync resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewExpressSync

func NewExpressSync(ctx *pulumi.Context,
	name string, args *ExpressSyncArgs, opts ...pulumi.ResourceOption) (*ExpressSync, error)

NewExpressSync registers a new resource with the given unique name, arguments, and options.

func (*ExpressSync) ElementType

func (*ExpressSync) ElementType() reflect.Type

func (*ExpressSync) ToExpressSyncOutput

func (i *ExpressSync) ToExpressSyncOutput() ExpressSyncOutput

func (*ExpressSync) ToExpressSyncOutputWithContext

func (i *ExpressSync) ToExpressSyncOutputWithContext(ctx context.Context) ExpressSyncOutput

type ExpressSyncArgs

type ExpressSyncArgs struct {
	// The name of the OSS Bucket.
	BucketName pulumi.StringInput
	// The prefix of the OSS Bucket.
	BucketPrefix pulumi.StringPtrInput
	// The region of the OSS Bucket.
	BucketRegion pulumi.StringInput
	// The description of the Express Sync. The length of the name is limited to `1` to `255` characters.
	Description pulumi.StringPtrInput
	// The name of the ExpressSync. The length of the name is limited to `1` to `128` characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, English periods (.), underscores (_), or hyphens (-), and must start with  letters.
	ExpressSyncName pulumi.StringInput
}

The set of arguments for constructing a ExpressSync resource.

func (ExpressSyncArgs) ElementType

func (ExpressSyncArgs) ElementType() reflect.Type

type ExpressSyncArray

type ExpressSyncArray []ExpressSyncInput

func (ExpressSyncArray) ElementType

func (ExpressSyncArray) ElementType() reflect.Type

func (ExpressSyncArray) ToExpressSyncArrayOutput

func (i ExpressSyncArray) ToExpressSyncArrayOutput() ExpressSyncArrayOutput

func (ExpressSyncArray) ToExpressSyncArrayOutputWithContext

func (i ExpressSyncArray) ToExpressSyncArrayOutputWithContext(ctx context.Context) ExpressSyncArrayOutput

type ExpressSyncArrayInput

type ExpressSyncArrayInput interface {
	pulumi.Input

	ToExpressSyncArrayOutput() ExpressSyncArrayOutput
	ToExpressSyncArrayOutputWithContext(context.Context) ExpressSyncArrayOutput
}

ExpressSyncArrayInput is an input type that accepts ExpressSyncArray and ExpressSyncArrayOutput values. You can construct a concrete instance of `ExpressSyncArrayInput` via:

ExpressSyncArray{ ExpressSyncArgs{...} }

type ExpressSyncArrayOutput

type ExpressSyncArrayOutput struct{ *pulumi.OutputState }

func (ExpressSyncArrayOutput) ElementType

func (ExpressSyncArrayOutput) ElementType() reflect.Type

func (ExpressSyncArrayOutput) Index

func (ExpressSyncArrayOutput) ToExpressSyncArrayOutput

func (o ExpressSyncArrayOutput) ToExpressSyncArrayOutput() ExpressSyncArrayOutput

func (ExpressSyncArrayOutput) ToExpressSyncArrayOutputWithContext

func (o ExpressSyncArrayOutput) ToExpressSyncArrayOutputWithContext(ctx context.Context) ExpressSyncArrayOutput

type ExpressSyncInput

type ExpressSyncInput interface {
	pulumi.Input

	ToExpressSyncOutput() ExpressSyncOutput
	ToExpressSyncOutputWithContext(ctx context.Context) ExpressSyncOutput
}

type ExpressSyncMap

type ExpressSyncMap map[string]ExpressSyncInput

func (ExpressSyncMap) ElementType

func (ExpressSyncMap) ElementType() reflect.Type

func (ExpressSyncMap) ToExpressSyncMapOutput

func (i ExpressSyncMap) ToExpressSyncMapOutput() ExpressSyncMapOutput

func (ExpressSyncMap) ToExpressSyncMapOutputWithContext

func (i ExpressSyncMap) ToExpressSyncMapOutputWithContext(ctx context.Context) ExpressSyncMapOutput

type ExpressSyncMapInput

type ExpressSyncMapInput interface {
	pulumi.Input

	ToExpressSyncMapOutput() ExpressSyncMapOutput
	ToExpressSyncMapOutputWithContext(context.Context) ExpressSyncMapOutput
}

ExpressSyncMapInput is an input type that accepts ExpressSyncMap and ExpressSyncMapOutput values. You can construct a concrete instance of `ExpressSyncMapInput` via:

ExpressSyncMap{ "key": ExpressSyncArgs{...} }

type ExpressSyncMapOutput

type ExpressSyncMapOutput struct{ *pulumi.OutputState }

func (ExpressSyncMapOutput) ElementType

func (ExpressSyncMapOutput) ElementType() reflect.Type

func (ExpressSyncMapOutput) MapIndex

func (ExpressSyncMapOutput) ToExpressSyncMapOutput

func (o ExpressSyncMapOutput) ToExpressSyncMapOutput() ExpressSyncMapOutput

func (ExpressSyncMapOutput) ToExpressSyncMapOutputWithContext

func (o ExpressSyncMapOutput) ToExpressSyncMapOutputWithContext(ctx context.Context) ExpressSyncMapOutput

type ExpressSyncOutput

type ExpressSyncOutput struct{ *pulumi.OutputState }

func (ExpressSyncOutput) BucketName

func (o ExpressSyncOutput) BucketName() pulumi.StringOutput

The name of the OSS Bucket.

func (ExpressSyncOutput) BucketPrefix

func (o ExpressSyncOutput) BucketPrefix() pulumi.StringPtrOutput

The prefix of the OSS Bucket.

func (ExpressSyncOutput) BucketRegion

func (o ExpressSyncOutput) BucketRegion() pulumi.StringOutput

The region of the OSS Bucket.

func (ExpressSyncOutput) Description

func (o ExpressSyncOutput) Description() pulumi.StringPtrOutput

The description of the Express Sync. The length of the name is limited to `1` to `255` characters.

func (ExpressSyncOutput) ElementType

func (ExpressSyncOutput) ElementType() reflect.Type

func (ExpressSyncOutput) ExpressSyncName

func (o ExpressSyncOutput) ExpressSyncName() pulumi.StringOutput

The name of the ExpressSync. The length of the name is limited to `1` to `128` characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, English periods (.), underscores (_), or hyphens (-), and must start with letters.

func (ExpressSyncOutput) ToExpressSyncOutput

func (o ExpressSyncOutput) ToExpressSyncOutput() ExpressSyncOutput

func (ExpressSyncOutput) ToExpressSyncOutputWithContext

func (o ExpressSyncOutput) ToExpressSyncOutputWithContext(ctx context.Context) ExpressSyncOutput

type ExpressSyncShareAttachment

type ExpressSyncShareAttachment struct {
	pulumi.CustomResourceState

	// The ID of the ExpressSync.
	ExpressSyncId pulumi.StringOutput `pulumi:"expressSyncId"`
	// The ID of the Gateway.
	GatewayId pulumi.StringOutput `pulumi:"gatewayId"`
	// The name of the GatewayFileShare. **NOTE:** When GatewayFileShare is associated with a speed sync group, its reverse synchronization function will be turned off by default.
	ShareName pulumi.StringOutput `pulumi:"shareName"`
}

Provides a Cloud Storage Gateway Express Sync Share Attachment resource.

For information about Cloud Storage Gateway Express Sync Share Attachment and how to use it, see [What is Express Sync Share Attachment](https://www.alibabacloud.com/help/en/doc-detail/53972.htm).

> **NOTE:** Available in v1.144.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/oss"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/vpc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "tftest"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		region := "cn-shanghai"
		if param := cfg.Get("region"); param != "" {
			region = param
		}
		defaultStocks, err := cloudstoragegateway.GetStocks(ctx, &cloudstoragegateway.GetStocksArgs{
			GatewayClass: pulumi.StringRef("Standard"),
		}, nil)
		if err != nil {
			return err
		}
		vpc, err := vpc.NewNetwork(ctx, "vpc", &vpc.NetworkArgs{
			VpcName:   pulumi.String(name),
			CidrBlock: pulumi.String("192.16.0.0/12"),
		})
		if err != nil {
			return err
		}
		defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
			VpcId:       vpc.ID(),
			CidrBlock:   pulumi.String("192.16.0.0/21"),
			ZoneId:      pulumi.String(defaultStocks.Stocks[0].ZoneId),
			VswitchName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultStorageBundle, err := cloudstoragegateway.NewStorageBundle(ctx, "defaultStorageBundle", &cloudstoragegateway.StorageBundleArgs{
			StorageBundleName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultGateway, err := cloudstoragegateway.NewGateway(ctx, "defaultGateway", &cloudstoragegateway.GatewayArgs{
			Description:            pulumi.String("tf-acctestDesalone"),
			GatewayClass:           pulumi.String("Standard"),
			Type:                   pulumi.String("File"),
			PaymentType:            pulumi.String("PayAsYouGo"),
			VswitchId:              defaultSwitch.ID(),
			ReleaseAfterExpiration: pulumi.Bool(true),
			PublicNetworkBandwidth: pulumi.Int(10),
			StorageBundleId:        defaultStorageBundle.ID(),
			Location:               pulumi.String("Cloud"),
			GatewayName:            pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultGatewayCacheDisk, err := cloudstoragegateway.NewGatewayCacheDisk(ctx, "defaultGatewayCacheDisk", &cloudstoragegateway.GatewayCacheDiskArgs{
			CacheDiskCategory: pulumi.String("cloud_efficiency"),
			GatewayId:         defaultGateway.ID(),
			CacheDiskSizeInGb: pulumi.Int(50),
		})
		if err != nil {
			return err
		}
		defaultBucket, err := oss.NewBucket(ctx, "defaultBucket", &oss.BucketArgs{
			Bucket: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultGatewayFileShare, err := cloudstoragegateway.NewGatewayFileShare(ctx, "defaultGatewayFileShare", &cloudstoragegateway.GatewayFileShareArgs{
			GatewayFileShareName: pulumi.String(name),
			GatewayId:            defaultGateway.ID(),
			LocalPath:            defaultGatewayCacheDisk.LocalFilePath,
			OssBucketName:        defaultBucket.Bucket,
			OssEndpoint:          defaultBucket.ExtranetEndpoint,
			Protocol:             pulumi.String("NFS"),
			RemoteSync:           pulumi.Bool(false),
			FeLimit:              pulumi.Int(0),
			BackendLimit:         pulumi.Int(0),
			CacheMode:            pulumi.String("Cache"),
			Squash:               pulumi.String("none"),
			LagPeriod:            pulumi.Int(5),
		})
		if err != nil {
			return err
		}
		defaultExpressSync, err := cloudstoragegateway.NewExpressSync(ctx, "defaultExpressSync", &cloudstoragegateway.ExpressSyncArgs{
			BucketName:      defaultGatewayFileShare.OssBucketName,
			BucketRegion:    pulumi.String(region),
			Description:     pulumi.String(name),
			ExpressSyncName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		_, err = cloudstoragegateway.NewExpressSyncShareAttachment(ctx, "defaultExpressSyncShareAttachment", &cloudstoragegateway.ExpressSyncShareAttachmentArgs{
			ExpressSyncId: defaultExpressSync.ID(),
			GatewayId:     defaultGateway.ID(),
			ShareName:     defaultGatewayFileShare.GatewayFileShareName,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Cloud Storage Gateway Express Sync Share Attachment can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cloudstoragegateway/expressSyncShareAttachment:ExpressSyncShareAttachment example <express_sync_id>:<gateway_id>:<share_name>

```

func GetExpressSyncShareAttachment

func GetExpressSyncShareAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ExpressSyncShareAttachmentState, opts ...pulumi.ResourceOption) (*ExpressSyncShareAttachment, error)

GetExpressSyncShareAttachment gets an existing ExpressSyncShareAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewExpressSyncShareAttachment

func NewExpressSyncShareAttachment(ctx *pulumi.Context,
	name string, args *ExpressSyncShareAttachmentArgs, opts ...pulumi.ResourceOption) (*ExpressSyncShareAttachment, error)

NewExpressSyncShareAttachment registers a new resource with the given unique name, arguments, and options.

func (*ExpressSyncShareAttachment) ElementType

func (*ExpressSyncShareAttachment) ElementType() reflect.Type

func (*ExpressSyncShareAttachment) ToExpressSyncShareAttachmentOutput

func (i *ExpressSyncShareAttachment) ToExpressSyncShareAttachmentOutput() ExpressSyncShareAttachmentOutput

func (*ExpressSyncShareAttachment) ToExpressSyncShareAttachmentOutputWithContext

func (i *ExpressSyncShareAttachment) ToExpressSyncShareAttachmentOutputWithContext(ctx context.Context) ExpressSyncShareAttachmentOutput

type ExpressSyncShareAttachmentArgs

type ExpressSyncShareAttachmentArgs struct {
	// The ID of the ExpressSync.
	ExpressSyncId pulumi.StringInput
	// The ID of the Gateway.
	GatewayId pulumi.StringInput
	// The name of the GatewayFileShare. **NOTE:** When GatewayFileShare is associated with a speed sync group, its reverse synchronization function will be turned off by default.
	ShareName pulumi.StringInput
}

The set of arguments for constructing a ExpressSyncShareAttachment resource.

func (ExpressSyncShareAttachmentArgs) ElementType

type ExpressSyncShareAttachmentArray

type ExpressSyncShareAttachmentArray []ExpressSyncShareAttachmentInput

func (ExpressSyncShareAttachmentArray) ElementType

func (ExpressSyncShareAttachmentArray) ToExpressSyncShareAttachmentArrayOutput

func (i ExpressSyncShareAttachmentArray) ToExpressSyncShareAttachmentArrayOutput() ExpressSyncShareAttachmentArrayOutput

func (ExpressSyncShareAttachmentArray) ToExpressSyncShareAttachmentArrayOutputWithContext

func (i ExpressSyncShareAttachmentArray) ToExpressSyncShareAttachmentArrayOutputWithContext(ctx context.Context) ExpressSyncShareAttachmentArrayOutput

type ExpressSyncShareAttachmentArrayInput

type ExpressSyncShareAttachmentArrayInput interface {
	pulumi.Input

	ToExpressSyncShareAttachmentArrayOutput() ExpressSyncShareAttachmentArrayOutput
	ToExpressSyncShareAttachmentArrayOutputWithContext(context.Context) ExpressSyncShareAttachmentArrayOutput
}

ExpressSyncShareAttachmentArrayInput is an input type that accepts ExpressSyncShareAttachmentArray and ExpressSyncShareAttachmentArrayOutput values. You can construct a concrete instance of `ExpressSyncShareAttachmentArrayInput` via:

ExpressSyncShareAttachmentArray{ ExpressSyncShareAttachmentArgs{...} }

type ExpressSyncShareAttachmentArrayOutput

type ExpressSyncShareAttachmentArrayOutput struct{ *pulumi.OutputState }

func (ExpressSyncShareAttachmentArrayOutput) ElementType

func (ExpressSyncShareAttachmentArrayOutput) Index

func (ExpressSyncShareAttachmentArrayOutput) ToExpressSyncShareAttachmentArrayOutput

func (o ExpressSyncShareAttachmentArrayOutput) ToExpressSyncShareAttachmentArrayOutput() ExpressSyncShareAttachmentArrayOutput

func (ExpressSyncShareAttachmentArrayOutput) ToExpressSyncShareAttachmentArrayOutputWithContext

func (o ExpressSyncShareAttachmentArrayOutput) ToExpressSyncShareAttachmentArrayOutputWithContext(ctx context.Context) ExpressSyncShareAttachmentArrayOutput

type ExpressSyncShareAttachmentInput

type ExpressSyncShareAttachmentInput interface {
	pulumi.Input

	ToExpressSyncShareAttachmentOutput() ExpressSyncShareAttachmentOutput
	ToExpressSyncShareAttachmentOutputWithContext(ctx context.Context) ExpressSyncShareAttachmentOutput
}

type ExpressSyncShareAttachmentMap

type ExpressSyncShareAttachmentMap map[string]ExpressSyncShareAttachmentInput

func (ExpressSyncShareAttachmentMap) ElementType

func (ExpressSyncShareAttachmentMap) ToExpressSyncShareAttachmentMapOutput

func (i ExpressSyncShareAttachmentMap) ToExpressSyncShareAttachmentMapOutput() ExpressSyncShareAttachmentMapOutput

func (ExpressSyncShareAttachmentMap) ToExpressSyncShareAttachmentMapOutputWithContext

func (i ExpressSyncShareAttachmentMap) ToExpressSyncShareAttachmentMapOutputWithContext(ctx context.Context) ExpressSyncShareAttachmentMapOutput

type ExpressSyncShareAttachmentMapInput

type ExpressSyncShareAttachmentMapInput interface {
	pulumi.Input

	ToExpressSyncShareAttachmentMapOutput() ExpressSyncShareAttachmentMapOutput
	ToExpressSyncShareAttachmentMapOutputWithContext(context.Context) ExpressSyncShareAttachmentMapOutput
}

ExpressSyncShareAttachmentMapInput is an input type that accepts ExpressSyncShareAttachmentMap and ExpressSyncShareAttachmentMapOutput values. You can construct a concrete instance of `ExpressSyncShareAttachmentMapInput` via:

ExpressSyncShareAttachmentMap{ "key": ExpressSyncShareAttachmentArgs{...} }

type ExpressSyncShareAttachmentMapOutput

type ExpressSyncShareAttachmentMapOutput struct{ *pulumi.OutputState }

func (ExpressSyncShareAttachmentMapOutput) ElementType

func (ExpressSyncShareAttachmentMapOutput) MapIndex

func (ExpressSyncShareAttachmentMapOutput) ToExpressSyncShareAttachmentMapOutput

func (o ExpressSyncShareAttachmentMapOutput) ToExpressSyncShareAttachmentMapOutput() ExpressSyncShareAttachmentMapOutput

func (ExpressSyncShareAttachmentMapOutput) ToExpressSyncShareAttachmentMapOutputWithContext

func (o ExpressSyncShareAttachmentMapOutput) ToExpressSyncShareAttachmentMapOutputWithContext(ctx context.Context) ExpressSyncShareAttachmentMapOutput

type ExpressSyncShareAttachmentOutput

type ExpressSyncShareAttachmentOutput struct{ *pulumi.OutputState }

func (ExpressSyncShareAttachmentOutput) ElementType

func (ExpressSyncShareAttachmentOutput) ExpressSyncId

The ID of the ExpressSync.

func (ExpressSyncShareAttachmentOutput) GatewayId

The ID of the Gateway.

func (ExpressSyncShareAttachmentOutput) ShareName

The name of the GatewayFileShare. **NOTE:** When GatewayFileShare is associated with a speed sync group, its reverse synchronization function will be turned off by default.

func (ExpressSyncShareAttachmentOutput) ToExpressSyncShareAttachmentOutput

func (o ExpressSyncShareAttachmentOutput) ToExpressSyncShareAttachmentOutput() ExpressSyncShareAttachmentOutput

func (ExpressSyncShareAttachmentOutput) ToExpressSyncShareAttachmentOutputWithContext

func (o ExpressSyncShareAttachmentOutput) ToExpressSyncShareAttachmentOutputWithContext(ctx context.Context) ExpressSyncShareAttachmentOutput

type ExpressSyncShareAttachmentState

type ExpressSyncShareAttachmentState struct {
	// The ID of the ExpressSync.
	ExpressSyncId pulumi.StringPtrInput
	// The ID of the Gateway.
	GatewayId pulumi.StringPtrInput
	// The name of the GatewayFileShare. **NOTE:** When GatewayFileShare is associated with a speed sync group, its reverse synchronization function will be turned off by default.
	ShareName pulumi.StringPtrInput
}

func (ExpressSyncShareAttachmentState) ElementType

type ExpressSyncState

type ExpressSyncState struct {
	// The name of the OSS Bucket.
	BucketName pulumi.StringPtrInput
	// The prefix of the OSS Bucket.
	BucketPrefix pulumi.StringPtrInput
	// The region of the OSS Bucket.
	BucketRegion pulumi.StringPtrInput
	// The description of the Express Sync. The length of the name is limited to `1` to `255` characters.
	Description pulumi.StringPtrInput
	// The name of the ExpressSync. The length of the name is limited to `1` to `128` characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, English periods (.), underscores (_), or hyphens (-), and must start with  letters.
	ExpressSyncName pulumi.StringPtrInput
}

func (ExpressSyncState) ElementType

func (ExpressSyncState) ElementType() reflect.Type

type Gateway

type Gateway struct {
	pulumi.CustomResourceState

	// the description of gateway.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// the gateway class. the valid values: `Basic`, `Standard`,`Enhanced`,`Advanced`
	GatewayClass pulumi.StringPtrOutput `pulumi:"gatewayClass"`
	// the name of gateway.
	GatewayName pulumi.StringOutput `pulumi:"gatewayName"`
	// gateway location. the valid values: `Cloud`, `On_Premise`.
	Location pulumi.StringOutput `pulumi:"location"`
	// The Payment type of gateway. The valid value: `PayAsYouGo`.
	PaymentType pulumi.StringPtrOutput `pulumi:"paymentType"`
	// The public network bandwidth of gateway. Valid values between `5` and `200`. Defaults to `5`.
	PublicNetworkBandwidth pulumi.IntOutput `pulumi:"publicNetworkBandwidth"`
	// The reason detail of gateway.
	ReasonDetail pulumi.StringPtrOutput `pulumi:"reasonDetail"`
	// The reason type when user deletes the gateway.
	ReasonType pulumi.StringPtrOutput `pulumi:"reasonType"`
	// Whether to release the gateway due to expiration.
	ReleaseAfterExpiration pulumi.BoolPtrOutput `pulumi:"releaseAfterExpiration"`
	// gateway status.
	Status pulumi.StringOutput `pulumi:"status"`
	// storage bundle id.
	StorageBundleId pulumi.StringOutput `pulumi:"storageBundleId"`
	// gateway type. the valid values: `Type`, `Iscsi`.
	Type pulumi.StringOutput `pulumi:"type"`
	// The vswitch id of gateway.
	VswitchId pulumi.StringPtrOutput `pulumi:"vswitchId"`
}

Provides a Cloud Storage Gateway: Gateway resource.

For information about Cloud Storage Gateway Gateway and how to use it, see [What is Gateway](https://www.alibabacloud.com/help/en/doc-detail/53972.htm).

> **NOTE:** Available in v1.132.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/vpc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		vpc, err := vpc.NewNetwork(ctx, "vpc", &vpc.NetworkArgs{
			VpcName:   pulumi.String("tf_test_foo"),
			CidrBlock: pulumi.String("172.16.0.0/12"),
		})
		if err != nil {
			return err
		}
		defaultZones, err := alicloud.GetZones(ctx, &GetZonesArgs{
			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
		}, nil)
		if err != nil {
			return err
		}
		defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
			VpcId:       vpc.ID(),
			CidrBlock:   pulumi.String("172.16.0.0/21"),
			ZoneId:      pulumi.String(defaultZones.Zones[0].Id),
			VswitchName: pulumi.String("tf-testAccCsgName"),
		})
		if err != nil {
			return err
		}
		example, err := cloudstoragegateway.NewStorageBundle(ctx, "example", &cloudstoragegateway.StorageBundleArgs{
			StorageBundleName: pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		_, err = cloudstoragegateway.NewGateway(ctx, "defaultGateway", &cloudstoragegateway.GatewayArgs{
			Description:            pulumi.String("tf-acctestDesalone"),
			GatewayClass:           pulumi.String("Standard"),
			Type:                   pulumi.String("File"),
			PaymentType:            pulumi.String("PayAsYouGo"),
			VswitchId:              defaultSwitch.ID(),
			ReleaseAfterExpiration: pulumi.Bool(false),
			PublicNetworkBandwidth: pulumi.Int(40),
			StorageBundleId:        example.ID(),
			Location:               pulumi.String("Cloud"),
			GatewayName:            pulumi.String("tf-acctestGatewayName"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Cloud Storage Gateway Gateway can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cloudstoragegateway/gateway:Gateway example <id>

```

func GetGateway

func GetGateway(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *GatewayState, opts ...pulumi.ResourceOption) (*Gateway, error)

GetGateway gets an existing Gateway resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewGateway

func NewGateway(ctx *pulumi.Context,
	name string, args *GatewayArgs, opts ...pulumi.ResourceOption) (*Gateway, error)

NewGateway registers a new resource with the given unique name, arguments, and options.

func (*Gateway) ElementType

func (*Gateway) ElementType() reflect.Type

func (*Gateway) ToGatewayOutput

func (i *Gateway) ToGatewayOutput() GatewayOutput

func (*Gateway) ToGatewayOutputWithContext

func (i *Gateway) ToGatewayOutputWithContext(ctx context.Context) GatewayOutput

type GatewayArgs

type GatewayArgs struct {
	// the description of gateway.
	Description pulumi.StringPtrInput
	// the gateway class. the valid values: `Basic`, `Standard`,`Enhanced`,`Advanced`
	GatewayClass pulumi.StringPtrInput
	// the name of gateway.
	GatewayName pulumi.StringInput
	// gateway location. the valid values: `Cloud`, `On_Premise`.
	Location pulumi.StringInput
	// The Payment type of gateway. The valid value: `PayAsYouGo`.
	PaymentType pulumi.StringPtrInput
	// The public network bandwidth of gateway. Valid values between `5` and `200`. Defaults to `5`.
	PublicNetworkBandwidth pulumi.IntPtrInput
	// The reason detail of gateway.
	ReasonDetail pulumi.StringPtrInput
	// The reason type when user deletes the gateway.
	ReasonType pulumi.StringPtrInput
	// Whether to release the gateway due to expiration.
	ReleaseAfterExpiration pulumi.BoolPtrInput
	// storage bundle id.
	StorageBundleId pulumi.StringInput
	// gateway type. the valid values: `Type`, `Iscsi`.
	Type pulumi.StringInput
	// The vswitch id of gateway.
	VswitchId pulumi.StringPtrInput
}

The set of arguments for constructing a Gateway resource.

func (GatewayArgs) ElementType

func (GatewayArgs) ElementType() reflect.Type

type GatewayArray

type GatewayArray []GatewayInput

func (GatewayArray) ElementType

func (GatewayArray) ElementType() reflect.Type

func (GatewayArray) ToGatewayArrayOutput

func (i GatewayArray) ToGatewayArrayOutput() GatewayArrayOutput

func (GatewayArray) ToGatewayArrayOutputWithContext

func (i GatewayArray) ToGatewayArrayOutputWithContext(ctx context.Context) GatewayArrayOutput

type GatewayArrayInput

type GatewayArrayInput interface {
	pulumi.Input

	ToGatewayArrayOutput() GatewayArrayOutput
	ToGatewayArrayOutputWithContext(context.Context) GatewayArrayOutput
}

GatewayArrayInput is an input type that accepts GatewayArray and GatewayArrayOutput values. You can construct a concrete instance of `GatewayArrayInput` via:

GatewayArray{ GatewayArgs{...} }

type GatewayArrayOutput

type GatewayArrayOutput struct{ *pulumi.OutputState }

func (GatewayArrayOutput) ElementType

func (GatewayArrayOutput) ElementType() reflect.Type

func (GatewayArrayOutput) Index

func (GatewayArrayOutput) ToGatewayArrayOutput

func (o GatewayArrayOutput) ToGatewayArrayOutput() GatewayArrayOutput

func (GatewayArrayOutput) ToGatewayArrayOutputWithContext

func (o GatewayArrayOutput) ToGatewayArrayOutputWithContext(ctx context.Context) GatewayArrayOutput

type GatewayBlockVolume

type GatewayBlockVolume struct {
	pulumi.CustomResourceState

	// The Block volume set mode to cache mode. Valid values: `Cache`, `WriteThrough`.
	CacheMode pulumi.StringOutput `pulumi:"cacheMode"`
	// Whether to enable iSCSI access of CHAP authentication, which currently supports both CHAP inbound authentication.  Default value: `false`.
	ChapEnabled pulumi.BoolOutput `pulumi:"chapEnabled"`
	// The password for inbound authentication when the block volume enables iSCSI access to CHAP authentication. **NOTE:** When the `chapEnabled` is  `true` is,The `chapInPassword` is valid.
	ChapInPassword pulumi.StringPtrOutput `pulumi:"chapInPassword"`
	// The Inbound CHAP user. The `chapInUser` must be 1 to 32 characters in length, and can contain letters and digits. **NOTE:** When the `chapEnabled` is  `true` is,The `chapInPassword` is valid.
	ChapInUser pulumi.StringPtrOutput `pulumi:"chapInUser"`
	// The Block volume storage allocation unit.  Valid values: `8192`, `16384`, `32768`, `65536`, `131072`. Default value: `32768`. Unit: `Byte`.
	ChunkSize pulumi.IntOutput `pulumi:"chunkSize"`
	// The Block volume name. The name must be 1 to 32 characters in length, and can contain lower case letters and digits.
	GatewayBlockVolumeName pulumi.StringOutput `pulumi:"gatewayBlockVolumeName"`
	// The Gateway ID.
	GatewayId pulumi.StringOutput `pulumi:"gatewayId"`
	// The ID of the index.
	IndexId pulumi.StringOutput `pulumi:"indexId"`
	// Whether to delete the source data. Default value `true`. **NOTE:** When `isSourceDeletion` is `true`, the data in the OSS Bucket on the cloud is also deleted when deleting the block gateway volume. Please operate with caution.
	IsSourceDeletion pulumi.BoolPtrOutput `pulumi:"isSourceDeletion"`
	// The Cache disk to local path. **NOTE:**  When the `cacheMode` is  `Cache` is,The `chapInPassword` is valid.
	LocalPath pulumi.StringPtrOutput `pulumi:"localPath"`
	// The name of the OSS Bucket.
	OssBucketName pulumi.StringOutput `pulumi:"ossBucketName"`
	// Whether to enable SSL access your OSS Buckets. Default value: `true`.
	OssBucketSsl pulumi.BoolOutput `pulumi:"ossBucketSsl"`
	// The endpoint of the OSS Bucket.
	OssEndpoint pulumi.StringOutput `pulumi:"ossEndpoint"`
	// The Protocol. Valid values: `iSCSI`.
	Protocol pulumi.StringOutput `pulumi:"protocol"`
	// The recovery.
	Recovery pulumi.BoolPtrOutput `pulumi:"recovery"`
	// The Volume size. Valid values: `1` to `262144`. Unit: `Byte`.
	Size pulumi.IntOutput `pulumi:"size"`
	// The status of volume. Valid values:
	// - `0`: Normal condition.
	// - `1`: Failed to create volume.
	// - `2`: Failed to delete volume.
	// - `3`: Failed to enable target.
	// - `4`: Failed to disable target.
	// - `5`: Database error.
	// - `6`: Failed to enable cache.
	// - `7`: Failed to disable cache.
	// - `8`: System error.
	Status pulumi.StringOutput `pulumi:"status"`
}

Provides a Cloud Storage Gateway Gateway Block Volume resource.

For information about Cloud Storage Gateway Gateway Block Volume and how to use it, see [What is Gateway Block Volume](https://www.alibabacloud.com/help/en/doc-detail/53972.htm).

> **NOTE:** Available in v1.144.0+.

## Import

Cloud Storage Gateway Gateway Block Volume can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cloudstoragegateway/gatewayBlockVolume:GatewayBlockVolume example <gateway_id>:<index_id>

```

func GetGatewayBlockVolume

func GetGatewayBlockVolume(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *GatewayBlockVolumeState, opts ...pulumi.ResourceOption) (*GatewayBlockVolume, error)

GetGatewayBlockVolume gets an existing GatewayBlockVolume resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewGatewayBlockVolume

func NewGatewayBlockVolume(ctx *pulumi.Context,
	name string, args *GatewayBlockVolumeArgs, opts ...pulumi.ResourceOption) (*GatewayBlockVolume, error)

NewGatewayBlockVolume registers a new resource with the given unique name, arguments, and options.

func (*GatewayBlockVolume) ElementType

func (*GatewayBlockVolume) ElementType() reflect.Type

func (*GatewayBlockVolume) ToGatewayBlockVolumeOutput

func (i *GatewayBlockVolume) ToGatewayBlockVolumeOutput() GatewayBlockVolumeOutput

func (*GatewayBlockVolume) ToGatewayBlockVolumeOutputWithContext

func (i *GatewayBlockVolume) ToGatewayBlockVolumeOutputWithContext(ctx context.Context) GatewayBlockVolumeOutput

type GatewayBlockVolumeArgs

type GatewayBlockVolumeArgs struct {
	// The Block volume set mode to cache mode. Valid values: `Cache`, `WriteThrough`.
	CacheMode pulumi.StringPtrInput
	// Whether to enable iSCSI access of CHAP authentication, which currently supports both CHAP inbound authentication.  Default value: `false`.
	ChapEnabled pulumi.BoolPtrInput
	// The password for inbound authentication when the block volume enables iSCSI access to CHAP authentication. **NOTE:** When the `chapEnabled` is  `true` is,The `chapInPassword` is valid.
	ChapInPassword pulumi.StringPtrInput
	// The Inbound CHAP user. The `chapInUser` must be 1 to 32 characters in length, and can contain letters and digits. **NOTE:** When the `chapEnabled` is  `true` is,The `chapInPassword` is valid.
	ChapInUser pulumi.StringPtrInput
	// The Block volume storage allocation unit.  Valid values: `8192`, `16384`, `32768`, `65536`, `131072`. Default value: `32768`. Unit: `Byte`.
	ChunkSize pulumi.IntPtrInput
	// The Block volume name. The name must be 1 to 32 characters in length, and can contain lower case letters and digits.
	GatewayBlockVolumeName pulumi.StringInput
	// The Gateway ID.
	GatewayId pulumi.StringInput
	// Whether to delete the source data. Default value `true`. **NOTE:** When `isSourceDeletion` is `true`, the data in the OSS Bucket on the cloud is also deleted when deleting the block gateway volume. Please operate with caution.
	IsSourceDeletion pulumi.BoolPtrInput
	// The Cache disk to local path. **NOTE:**  When the `cacheMode` is  `Cache` is,The `chapInPassword` is valid.
	LocalPath pulumi.StringPtrInput
	// The name of the OSS Bucket.
	OssBucketName pulumi.StringInput
	// Whether to enable SSL access your OSS Buckets. Default value: `true`.
	OssBucketSsl pulumi.BoolPtrInput
	// The endpoint of the OSS Bucket.
	OssEndpoint pulumi.StringInput
	// The Protocol. Valid values: `iSCSI`.
	Protocol pulumi.StringInput
	// The recovery.
	Recovery pulumi.BoolPtrInput
	// The Volume size. Valid values: `1` to `262144`. Unit: `Byte`.
	Size pulumi.IntPtrInput
}

The set of arguments for constructing a GatewayBlockVolume resource.

func (GatewayBlockVolumeArgs) ElementType

func (GatewayBlockVolumeArgs) ElementType() reflect.Type

type GatewayBlockVolumeArray

type GatewayBlockVolumeArray []GatewayBlockVolumeInput

func (GatewayBlockVolumeArray) ElementType

func (GatewayBlockVolumeArray) ElementType() reflect.Type

func (GatewayBlockVolumeArray) ToGatewayBlockVolumeArrayOutput

func (i GatewayBlockVolumeArray) ToGatewayBlockVolumeArrayOutput() GatewayBlockVolumeArrayOutput

func (GatewayBlockVolumeArray) ToGatewayBlockVolumeArrayOutputWithContext

func (i GatewayBlockVolumeArray) ToGatewayBlockVolumeArrayOutputWithContext(ctx context.Context) GatewayBlockVolumeArrayOutput

type GatewayBlockVolumeArrayInput

type GatewayBlockVolumeArrayInput interface {
	pulumi.Input

	ToGatewayBlockVolumeArrayOutput() GatewayBlockVolumeArrayOutput
	ToGatewayBlockVolumeArrayOutputWithContext(context.Context) GatewayBlockVolumeArrayOutput
}

GatewayBlockVolumeArrayInput is an input type that accepts GatewayBlockVolumeArray and GatewayBlockVolumeArrayOutput values. You can construct a concrete instance of `GatewayBlockVolumeArrayInput` via:

GatewayBlockVolumeArray{ GatewayBlockVolumeArgs{...} }

type GatewayBlockVolumeArrayOutput

type GatewayBlockVolumeArrayOutput struct{ *pulumi.OutputState }

func (GatewayBlockVolumeArrayOutput) ElementType

func (GatewayBlockVolumeArrayOutput) Index

func (GatewayBlockVolumeArrayOutput) ToGatewayBlockVolumeArrayOutput

func (o GatewayBlockVolumeArrayOutput) ToGatewayBlockVolumeArrayOutput() GatewayBlockVolumeArrayOutput

func (GatewayBlockVolumeArrayOutput) ToGatewayBlockVolumeArrayOutputWithContext

func (o GatewayBlockVolumeArrayOutput) ToGatewayBlockVolumeArrayOutputWithContext(ctx context.Context) GatewayBlockVolumeArrayOutput

type GatewayBlockVolumeInput

type GatewayBlockVolumeInput interface {
	pulumi.Input

	ToGatewayBlockVolumeOutput() GatewayBlockVolumeOutput
	ToGatewayBlockVolumeOutputWithContext(ctx context.Context) GatewayBlockVolumeOutput
}

type GatewayBlockVolumeMap

type GatewayBlockVolumeMap map[string]GatewayBlockVolumeInput

func (GatewayBlockVolumeMap) ElementType

func (GatewayBlockVolumeMap) ElementType() reflect.Type

func (GatewayBlockVolumeMap) ToGatewayBlockVolumeMapOutput

func (i GatewayBlockVolumeMap) ToGatewayBlockVolumeMapOutput() GatewayBlockVolumeMapOutput

func (GatewayBlockVolumeMap) ToGatewayBlockVolumeMapOutputWithContext

func (i GatewayBlockVolumeMap) ToGatewayBlockVolumeMapOutputWithContext(ctx context.Context) GatewayBlockVolumeMapOutput

type GatewayBlockVolumeMapInput

type GatewayBlockVolumeMapInput interface {
	pulumi.Input

	ToGatewayBlockVolumeMapOutput() GatewayBlockVolumeMapOutput
	ToGatewayBlockVolumeMapOutputWithContext(context.Context) GatewayBlockVolumeMapOutput
}

GatewayBlockVolumeMapInput is an input type that accepts GatewayBlockVolumeMap and GatewayBlockVolumeMapOutput values. You can construct a concrete instance of `GatewayBlockVolumeMapInput` via:

GatewayBlockVolumeMap{ "key": GatewayBlockVolumeArgs{...} }

type GatewayBlockVolumeMapOutput

type GatewayBlockVolumeMapOutput struct{ *pulumi.OutputState }

func (GatewayBlockVolumeMapOutput) ElementType

func (GatewayBlockVolumeMapOutput) MapIndex

func (GatewayBlockVolumeMapOutput) ToGatewayBlockVolumeMapOutput

func (o GatewayBlockVolumeMapOutput) ToGatewayBlockVolumeMapOutput() GatewayBlockVolumeMapOutput

func (GatewayBlockVolumeMapOutput) ToGatewayBlockVolumeMapOutputWithContext

func (o GatewayBlockVolumeMapOutput) ToGatewayBlockVolumeMapOutputWithContext(ctx context.Context) GatewayBlockVolumeMapOutput

type GatewayBlockVolumeOutput

type GatewayBlockVolumeOutput struct{ *pulumi.OutputState }

func (GatewayBlockVolumeOutput) CacheMode

The Block volume set mode to cache mode. Valid values: `Cache`, `WriteThrough`.

func (GatewayBlockVolumeOutput) ChapEnabled

func (o GatewayBlockVolumeOutput) ChapEnabled() pulumi.BoolOutput

Whether to enable iSCSI access of CHAP authentication, which currently supports both CHAP inbound authentication. Default value: `false`.

func (GatewayBlockVolumeOutput) ChapInPassword

func (o GatewayBlockVolumeOutput) ChapInPassword() pulumi.StringPtrOutput

The password for inbound authentication when the block volume enables iSCSI access to CHAP authentication. **NOTE:** When the `chapEnabled` is `true` is,The `chapInPassword` is valid.

func (GatewayBlockVolumeOutput) ChapInUser

The Inbound CHAP user. The `chapInUser` must be 1 to 32 characters in length, and can contain letters and digits. **NOTE:** When the `chapEnabled` is `true` is,The `chapInPassword` is valid.

func (GatewayBlockVolumeOutput) ChunkSize

The Block volume storage allocation unit. Valid values: `8192`, `16384`, `32768`, `65536`, `131072`. Default value: `32768`. Unit: `Byte`.

func (GatewayBlockVolumeOutput) ElementType

func (GatewayBlockVolumeOutput) ElementType() reflect.Type

func (GatewayBlockVolumeOutput) GatewayBlockVolumeName

func (o GatewayBlockVolumeOutput) GatewayBlockVolumeName() pulumi.StringOutput

The Block volume name. The name must be 1 to 32 characters in length, and can contain lower case letters and digits.

func (GatewayBlockVolumeOutput) GatewayId

The Gateway ID.

func (GatewayBlockVolumeOutput) IndexId

The ID of the index.

func (GatewayBlockVolumeOutput) IsSourceDeletion

func (o GatewayBlockVolumeOutput) IsSourceDeletion() pulumi.BoolPtrOutput

Whether to delete the source data. Default value `true`. **NOTE:** When `isSourceDeletion` is `true`, the data in the OSS Bucket on the cloud is also deleted when deleting the block gateway volume. Please operate with caution.

func (GatewayBlockVolumeOutput) LocalPath

The Cache disk to local path. **NOTE:** When the `cacheMode` is `Cache` is,The `chapInPassword` is valid.

func (GatewayBlockVolumeOutput) OssBucketName

func (o GatewayBlockVolumeOutput) OssBucketName() pulumi.StringOutput

The name of the OSS Bucket.

func (GatewayBlockVolumeOutput) OssBucketSsl

func (o GatewayBlockVolumeOutput) OssBucketSsl() pulumi.BoolOutput

Whether to enable SSL access your OSS Buckets. Default value: `true`.

func (GatewayBlockVolumeOutput) OssEndpoint

The endpoint of the OSS Bucket.

func (GatewayBlockVolumeOutput) Protocol

The Protocol. Valid values: `iSCSI`.

func (GatewayBlockVolumeOutput) Recovery

The recovery.

func (GatewayBlockVolumeOutput) Size

The Volume size. Valid values: `1` to `262144`. Unit: `Byte`.

func (GatewayBlockVolumeOutput) Status

The status of volume. Valid values: - `0`: Normal condition. - `1`: Failed to create volume. - `2`: Failed to delete volume. - `3`: Failed to enable target. - `4`: Failed to disable target. - `5`: Database error. - `6`: Failed to enable cache. - `7`: Failed to disable cache. - `8`: System error.

func (GatewayBlockVolumeOutput) ToGatewayBlockVolumeOutput

func (o GatewayBlockVolumeOutput) ToGatewayBlockVolumeOutput() GatewayBlockVolumeOutput

func (GatewayBlockVolumeOutput) ToGatewayBlockVolumeOutputWithContext

func (o GatewayBlockVolumeOutput) ToGatewayBlockVolumeOutputWithContext(ctx context.Context) GatewayBlockVolumeOutput

type GatewayBlockVolumeState

type GatewayBlockVolumeState struct {
	// The Block volume set mode to cache mode. Valid values: `Cache`, `WriteThrough`.
	CacheMode pulumi.StringPtrInput
	// Whether to enable iSCSI access of CHAP authentication, which currently supports both CHAP inbound authentication.  Default value: `false`.
	ChapEnabled pulumi.BoolPtrInput
	// The password for inbound authentication when the block volume enables iSCSI access to CHAP authentication. **NOTE:** When the `chapEnabled` is  `true` is,The `chapInPassword` is valid.
	ChapInPassword pulumi.StringPtrInput
	// The Inbound CHAP user. The `chapInUser` must be 1 to 32 characters in length, and can contain letters and digits. **NOTE:** When the `chapEnabled` is  `true` is,The `chapInPassword` is valid.
	ChapInUser pulumi.StringPtrInput
	// The Block volume storage allocation unit.  Valid values: `8192`, `16384`, `32768`, `65536`, `131072`. Default value: `32768`. Unit: `Byte`.
	ChunkSize pulumi.IntPtrInput
	// The Block volume name. The name must be 1 to 32 characters in length, and can contain lower case letters and digits.
	GatewayBlockVolumeName pulumi.StringPtrInput
	// The Gateway ID.
	GatewayId pulumi.StringPtrInput
	// The ID of the index.
	IndexId pulumi.StringPtrInput
	// Whether to delete the source data. Default value `true`. **NOTE:** When `isSourceDeletion` is `true`, the data in the OSS Bucket on the cloud is also deleted when deleting the block gateway volume. Please operate with caution.
	IsSourceDeletion pulumi.BoolPtrInput
	// The Cache disk to local path. **NOTE:**  When the `cacheMode` is  `Cache` is,The `chapInPassword` is valid.
	LocalPath pulumi.StringPtrInput
	// The name of the OSS Bucket.
	OssBucketName pulumi.StringPtrInput
	// Whether to enable SSL access your OSS Buckets. Default value: `true`.
	OssBucketSsl pulumi.BoolPtrInput
	// The endpoint of the OSS Bucket.
	OssEndpoint pulumi.StringPtrInput
	// The Protocol. Valid values: `iSCSI`.
	Protocol pulumi.StringPtrInput
	// The recovery.
	Recovery pulumi.BoolPtrInput
	// The Volume size. Valid values: `1` to `262144`. Unit: `Byte`.
	Size pulumi.IntPtrInput
	// The status of volume. Valid values:
	// - `0`: Normal condition.
	// - `1`: Failed to create volume.
	// - `2`: Failed to delete volume.
	// - `3`: Failed to enable target.
	// - `4`: Failed to disable target.
	// - `5`: Database error.
	// - `6`: Failed to enable cache.
	// - `7`: Failed to disable cache.
	// - `8`: System error.
	Status pulumi.StringPtrInput
}

func (GatewayBlockVolumeState) ElementType

func (GatewayBlockVolumeState) ElementType() reflect.Type

type GatewayCacheDisk

type GatewayCacheDisk struct {
	pulumi.CustomResourceState

	// The cache disk type. Valid values: `cloudEfficiency`, `cloudSsd`.
	CacheDiskCategory pulumi.StringOutput `pulumi:"cacheDiskCategory"`
	// size of the cache disk. Unit: `GB`. The upper limit of the basic gateway cache disk is `1` TB (`1024` GB), that of the standard gateway is `2` TB (`2048` GB), and that of other gateway cache disks is `32` TB (`32768` GB). The lower limit for the file gateway cache disk capacity is `40` GB, and the lower limit for the block gateway cache disk capacity is `20` GB.
	CacheDiskSizeInGb pulumi.IntOutput `pulumi:"cacheDiskSizeInGb"`
	// The ID of the cache.
	CacheId pulumi.StringOutput `pulumi:"cacheId"`
	// The ID of the gateway.
	GatewayId pulumi.StringOutput `pulumi:"gatewayId"`
	// The cache disk inside the device name.
	LocalFilePath pulumi.StringOutput `pulumi:"localFilePath"`
	// The status of the resource. Valid values: `0`, `1`, `2`. `0`: Normal. `1`: Is about to expire. `2`: Has expired.
	Status pulumi.IntOutput `pulumi:"status"`
}

Provides a Cloud Storage Gateway Gateway Cache Disk resource.

For information about Cloud Storage Gateway Gateway Cache Disk and how to use it, see [What is Gateway Cache Disk](https://www.alibabacloud.com/help/zh/doc-detail/170294.htm).

> **NOTE:** Available in v1.144.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/vpc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleStocks, err := cloudstoragegateway.GetStocks(ctx, &cloudstoragegateway.GetStocksArgs{
			GatewayClass: pulumi.StringRef("Standard"),
		}, nil)
		if err != nil {
			return err
		}
		vpc, err := vpc.NewNetwork(ctx, "vpc", &vpc.NetworkArgs{
			VpcName:   pulumi.String("example_value"),
			CidrBlock: pulumi.String("172.16.0.0/12"),
		})
		if err != nil {
			return err
		}
		exampleSwitch, err := vpc.NewSwitch(ctx, "exampleSwitch", &vpc.SwitchArgs{
			VpcId:       vpc.ID(),
			CidrBlock:   pulumi.String("172.16.0.0/21"),
			ZoneId:      pulumi.String(exampleStocks.Stocks[0].ZoneId),
			VswitchName: pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		exampleStorageBundle, err := cloudstoragegateway.NewStorageBundle(ctx, "exampleStorageBundle", &cloudstoragegateway.StorageBundleArgs{
			StorageBundleName: pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		_, err = cloudstoragegateway.NewGateway(ctx, "exampleGateway", &cloudstoragegateway.GatewayArgs{
			Description:            pulumi.String("tf-acctestDesalone"),
			GatewayClass:           pulumi.String("Standard"),
			Type:                   pulumi.String("File"),
			PaymentType:            pulumi.String("PayAsYouGo"),
			VswitchId:              exampleSwitch.ID(),
			ReleaseAfterExpiration: pulumi.Bool(true),
			PublicNetworkBandwidth: pulumi.Int(10),
			StorageBundleId:        exampleStorageBundle.ID(),
			Location:               pulumi.String("Cloud"),
			GatewayName:            pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		_, err = cloudstoragegateway.NewGatewayCacheDisk(ctx, "exampleGatewayCacheDisk", &cloudstoragegateway.GatewayCacheDiskArgs{
			CacheDiskCategory: pulumi.String("cloud_efficiency"),
			GatewayId:         pulumi.Any(alicloud_cloud_storage_gateway_gateways.Example.Id),
			CacheDiskSizeInGb: pulumi.Int(50),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Cloud Storage Gateway Gateway Cache Disk can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cloudstoragegateway/gatewayCacheDisk:GatewayCacheDisk example <gateway_id>:<cache_id>:<local_file_path>

```

func GetGatewayCacheDisk

func GetGatewayCacheDisk(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *GatewayCacheDiskState, opts ...pulumi.ResourceOption) (*GatewayCacheDisk, error)

GetGatewayCacheDisk gets an existing GatewayCacheDisk resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewGatewayCacheDisk

func NewGatewayCacheDisk(ctx *pulumi.Context,
	name string, args *GatewayCacheDiskArgs, opts ...pulumi.ResourceOption) (*GatewayCacheDisk, error)

NewGatewayCacheDisk registers a new resource with the given unique name, arguments, and options.

func (*GatewayCacheDisk) ElementType

func (*GatewayCacheDisk) ElementType() reflect.Type

func (*GatewayCacheDisk) ToGatewayCacheDiskOutput

func (i *GatewayCacheDisk) ToGatewayCacheDiskOutput() GatewayCacheDiskOutput

func (*GatewayCacheDisk) ToGatewayCacheDiskOutputWithContext

func (i *GatewayCacheDisk) ToGatewayCacheDiskOutputWithContext(ctx context.Context) GatewayCacheDiskOutput

type GatewayCacheDiskArgs

type GatewayCacheDiskArgs struct {
	// The cache disk type. Valid values: `cloudEfficiency`, `cloudSsd`.
	CacheDiskCategory pulumi.StringPtrInput
	// size of the cache disk. Unit: `GB`. The upper limit of the basic gateway cache disk is `1` TB (`1024` GB), that of the standard gateway is `2` TB (`2048` GB), and that of other gateway cache disks is `32` TB (`32768` GB). The lower limit for the file gateway cache disk capacity is `40` GB, and the lower limit for the block gateway cache disk capacity is `20` GB.
	CacheDiskSizeInGb pulumi.IntInput
	// The ID of the gateway.
	GatewayId pulumi.StringInput
}

The set of arguments for constructing a GatewayCacheDisk resource.

func (GatewayCacheDiskArgs) ElementType

func (GatewayCacheDiskArgs) ElementType() reflect.Type

type GatewayCacheDiskArray

type GatewayCacheDiskArray []GatewayCacheDiskInput

func (GatewayCacheDiskArray) ElementType

func (GatewayCacheDiskArray) ElementType() reflect.Type

func (GatewayCacheDiskArray) ToGatewayCacheDiskArrayOutput

func (i GatewayCacheDiskArray) ToGatewayCacheDiskArrayOutput() GatewayCacheDiskArrayOutput

func (GatewayCacheDiskArray) ToGatewayCacheDiskArrayOutputWithContext

func (i GatewayCacheDiskArray) ToGatewayCacheDiskArrayOutputWithContext(ctx context.Context) GatewayCacheDiskArrayOutput

type GatewayCacheDiskArrayInput

type GatewayCacheDiskArrayInput interface {
	pulumi.Input

	ToGatewayCacheDiskArrayOutput() GatewayCacheDiskArrayOutput
	ToGatewayCacheDiskArrayOutputWithContext(context.Context) GatewayCacheDiskArrayOutput
}

GatewayCacheDiskArrayInput is an input type that accepts GatewayCacheDiskArray and GatewayCacheDiskArrayOutput values. You can construct a concrete instance of `GatewayCacheDiskArrayInput` via:

GatewayCacheDiskArray{ GatewayCacheDiskArgs{...} }

type GatewayCacheDiskArrayOutput

type GatewayCacheDiskArrayOutput struct{ *pulumi.OutputState }

func (GatewayCacheDiskArrayOutput) ElementType

func (GatewayCacheDiskArrayOutput) Index

func (GatewayCacheDiskArrayOutput) ToGatewayCacheDiskArrayOutput

func (o GatewayCacheDiskArrayOutput) ToGatewayCacheDiskArrayOutput() GatewayCacheDiskArrayOutput

func (GatewayCacheDiskArrayOutput) ToGatewayCacheDiskArrayOutputWithContext

func (o GatewayCacheDiskArrayOutput) ToGatewayCacheDiskArrayOutputWithContext(ctx context.Context) GatewayCacheDiskArrayOutput

type GatewayCacheDiskInput

type GatewayCacheDiskInput interface {
	pulumi.Input

	ToGatewayCacheDiskOutput() GatewayCacheDiskOutput
	ToGatewayCacheDiskOutputWithContext(ctx context.Context) GatewayCacheDiskOutput
}

type GatewayCacheDiskMap

type GatewayCacheDiskMap map[string]GatewayCacheDiskInput

func (GatewayCacheDiskMap) ElementType

func (GatewayCacheDiskMap) ElementType() reflect.Type

func (GatewayCacheDiskMap) ToGatewayCacheDiskMapOutput

func (i GatewayCacheDiskMap) ToGatewayCacheDiskMapOutput() GatewayCacheDiskMapOutput

func (GatewayCacheDiskMap) ToGatewayCacheDiskMapOutputWithContext

func (i GatewayCacheDiskMap) ToGatewayCacheDiskMapOutputWithContext(ctx context.Context) GatewayCacheDiskMapOutput

type GatewayCacheDiskMapInput

type GatewayCacheDiskMapInput interface {
	pulumi.Input

	ToGatewayCacheDiskMapOutput() GatewayCacheDiskMapOutput
	ToGatewayCacheDiskMapOutputWithContext(context.Context) GatewayCacheDiskMapOutput
}

GatewayCacheDiskMapInput is an input type that accepts GatewayCacheDiskMap and GatewayCacheDiskMapOutput values. You can construct a concrete instance of `GatewayCacheDiskMapInput` via:

GatewayCacheDiskMap{ "key": GatewayCacheDiskArgs{...} }

type GatewayCacheDiskMapOutput

type GatewayCacheDiskMapOutput struct{ *pulumi.OutputState }

func (GatewayCacheDiskMapOutput) ElementType

func (GatewayCacheDiskMapOutput) ElementType() reflect.Type

func (GatewayCacheDiskMapOutput) MapIndex

func (GatewayCacheDiskMapOutput) ToGatewayCacheDiskMapOutput

func (o GatewayCacheDiskMapOutput) ToGatewayCacheDiskMapOutput() GatewayCacheDiskMapOutput

func (GatewayCacheDiskMapOutput) ToGatewayCacheDiskMapOutputWithContext

func (o GatewayCacheDiskMapOutput) ToGatewayCacheDiskMapOutputWithContext(ctx context.Context) GatewayCacheDiskMapOutput

type GatewayCacheDiskOutput

type GatewayCacheDiskOutput struct{ *pulumi.OutputState }

func (GatewayCacheDiskOutput) CacheDiskCategory

func (o GatewayCacheDiskOutput) CacheDiskCategory() pulumi.StringOutput

The cache disk type. Valid values: `cloudEfficiency`, `cloudSsd`.

func (GatewayCacheDiskOutput) CacheDiskSizeInGb

func (o GatewayCacheDiskOutput) CacheDiskSizeInGb() pulumi.IntOutput

size of the cache disk. Unit: `GB`. The upper limit of the basic gateway cache disk is `1` TB (`1024` GB), that of the standard gateway is `2` TB (`2048` GB), and that of other gateway cache disks is `32` TB (`32768` GB). The lower limit for the file gateway cache disk capacity is `40` GB, and the lower limit for the block gateway cache disk capacity is `20` GB.

func (GatewayCacheDiskOutput) CacheId

The ID of the cache.

func (GatewayCacheDiskOutput) ElementType

func (GatewayCacheDiskOutput) ElementType() reflect.Type

func (GatewayCacheDiskOutput) GatewayId

The ID of the gateway.

func (GatewayCacheDiskOutput) LocalFilePath

func (o GatewayCacheDiskOutput) LocalFilePath() pulumi.StringOutput

The cache disk inside the device name.

func (GatewayCacheDiskOutput) Status

The status of the resource. Valid values: `0`, `1`, `2`. `0`: Normal. `1`: Is about to expire. `2`: Has expired.

func (GatewayCacheDiskOutput) ToGatewayCacheDiskOutput

func (o GatewayCacheDiskOutput) ToGatewayCacheDiskOutput() GatewayCacheDiskOutput

func (GatewayCacheDiskOutput) ToGatewayCacheDiskOutputWithContext

func (o GatewayCacheDiskOutput) ToGatewayCacheDiskOutputWithContext(ctx context.Context) GatewayCacheDiskOutput

type GatewayCacheDiskState

type GatewayCacheDiskState struct {
	// The cache disk type. Valid values: `cloudEfficiency`, `cloudSsd`.
	CacheDiskCategory pulumi.StringPtrInput
	// size of the cache disk. Unit: `GB`. The upper limit of the basic gateway cache disk is `1` TB (`1024` GB), that of the standard gateway is `2` TB (`2048` GB), and that of other gateway cache disks is `32` TB (`32768` GB). The lower limit for the file gateway cache disk capacity is `40` GB, and the lower limit for the block gateway cache disk capacity is `20` GB.
	CacheDiskSizeInGb pulumi.IntPtrInput
	// The ID of the cache.
	CacheId pulumi.StringPtrInput
	// The ID of the gateway.
	GatewayId pulumi.StringPtrInput
	// The cache disk inside the device name.
	LocalFilePath pulumi.StringPtrInput
	// The status of the resource. Valid values: `0`, `1`, `2`. `0`: Normal. `1`: Is about to expire. `2`: Has expired.
	Status pulumi.IntPtrInput
}

func (GatewayCacheDiskState) ElementType

func (GatewayCacheDiskState) ElementType() reflect.Type

type GatewayFileShare

type GatewayFileShare struct {
	pulumi.CustomResourceState

	// Whether to enable Windows ABE, the prime minister, need windowsAcl parameter is set to true in the entry into force of. Default value: `false`. **NOTE:** The attribute is valid when the attribute `protocol` is `SMB`. Gateway version >= 1.0.45 above support.
	AccessBasedEnumeration pulumi.BoolOutput `pulumi:"accessBasedEnumeration"`
	// The Max upload speed of the gateway file share. Unit: `MB/s`, 0 means unlimited. Value range: `0` ~ `1280`. Default value: `0`. **NOTE:** at the same time if you have to limit the maximum write speed, maximum upload speed is no less than the maximum write speed.
	BackendLimit pulumi.IntOutput `pulumi:"backendLimit"`
	// The whether browsable of the gateway file share (that is, in the network neighborhood of whether you can find). The attribute is valid when the attribute `protocol` is `SMB`. Default value: `true`.
	Browsable pulumi.BoolOutput `pulumi:"browsable"`
	// Direct reading OSS of the gateway file share.
	BypassCacheRead pulumi.BoolOutput `pulumi:"bypassCacheRead"`
	// The set up gateway file share cache mode. Valid values: `Cache` or `Sync`. `Cache`: cached mode. `Sync`: replication mode are available. Default value: `Cache`.
	CacheMode pulumi.StringOutput `pulumi:"cacheMode"`
	// File sharing Whether to enable DirectIO (direct I/O mode for data transmission). Default value: `false`.
	DirectIo pulumi.BoolOutput `pulumi:"directIo"`
	// The maximum download speed of the gateway file share. Unit: `MB/s`. `0` means unlimited. Value range: `0` ~ `1280`. **NOTE:** only in copy mode and enable download file data can be set. only when the shared opens the reverse synchronization or acceded to by the speed synchronization Group when, this parameter will not take effect. Gateway version >= 1.3.0 above support.
	DownloadLimit pulumi.IntOutput `pulumi:"downloadLimit"`
	// The whether to enable Upload optimization of the gateway file share, which is suitable for data pure backup migration scenarios. Default value: `false`. **NOTE:** Gateway version >= 1.0.39 above support.
	FastReclaim pulumi.BoolOutput `pulumi:"fastReclaim"`
	// The maximum write speed of the gateway file share. Unit: `MB/s`, `0` means unlimited. Value range: `0` ~ `1280`. Default value: `0`.
	FeLimit pulumi.IntOutput `pulumi:"feLimit"`
	// The name of the file share. Length from `1` to `255` characters can contain lowercase letters, digits, (.), (_) Or (-), at the same time, must start with a lowercase letter.
	GatewayFileShareName pulumi.StringOutput `pulumi:"gatewayFileShareName"`
	// The ID of the gateway.
	GatewayId pulumi.StringOutput `pulumi:"gatewayId"`
	// The whether to ignore deleted of the gateway file share. After the opening of the Gateway side delete file or delete cloud (OSS) corresponding to the file. Default value: `false`. **NOTE:** `ignoreDelete` and `remoteSync` cannot be enabled simultaneously. Gateway version >= 1.0.40 above support.
	IgnoreDelete pulumi.BoolOutput `pulumi:"ignoreDelete"`
	// The whether debris optimization of the gateway file share. Default value: `false`.
	InPlace pulumi.BoolOutput `pulumi:"inPlace"`
	// The ID of the file share.
	IndexId pulumi.StringOutput `pulumi:"indexId"`
	// The synchronization delay, I.e. gateway local cache sync to Alibaba Cloud Object Storage Service (oss) of the delay time. Unit: `Seconds`. Value range: `5` ~ `120`. Default value: `5`. **NOTE:** Gateway version >= 1.0.40 above support.
	LagPeriod pulumi.IntOutput `pulumi:"lagPeriod"`
	// The cache disk inside the device name.
	LocalPath pulumi.StringOutput `pulumi:"localPath"`
	// The set up gateway file share NFS protocol, whether to enable NFS v4 optimization improve Mount Upload efficiency. Default value: `false`. **NOTE:** If it is enabled, NFS V3 cannot be mounted. The attribute is valid when the attribute `protocol` is `NFS`. Gateway version >= 1.2.0 above support.
	NfsV4Optimization pulumi.BoolOutput `pulumi:"nfsV4Optimization"`
	// The name of the OSS Bucket.
	OssBucketName pulumi.StringOutput `pulumi:"ossBucketName"`
	// Whether they are using SSL connect to OSS Bucket.
	OssBucketSsl pulumi.BoolOutput `pulumi:"ossBucketSsl"`
	// The gateway file share corresponds to the Object Storage SERVICE (OSS), Bucket Endpoint. **NOTE:** distinguish between intranet and internet Endpoint. We recommend that if the OSS Bucket and the gateway is in the same Region is use the RDS intranet IP Endpoint: `oss-cn-hangzhou-internal.aliyuncs.com`.
	OssEndpoint pulumi.StringOutput `pulumi:"ossEndpoint"`
	// In part mode, the directory path group JSON format.
	PartialSyncPaths pulumi.StringPtrOutput `pulumi:"partialSyncPaths"`
	// The subdirectory path under the object storage (OSS) bucket corresponding to the file share. If it is blank, it means the root directory of the bucket.
	PathPrefix pulumi.StringPtrOutput `pulumi:"pathPrefix"`
	// The reverse synchronization time intervals of the gateway file share. Value range: `15` ~ `36000`. **NOTE:** in copy mode + reverse synchronization is enabled Download file data, value range: `3600` ~ `36000`.
	PollingInterval pulumi.IntPtrOutput `pulumi:"pollingInterval"`
	// Share types. Valid values: `SMB`, `NFS`.
	Protocol pulumi.StringOutput `pulumi:"protocol"`
	// Whether to enable reverse synchronization of the gateway file share. Default value: `false`.
	RemoteSync pulumi.BoolOutput `pulumi:"remoteSync"`
	// Copy mode, whether to download the file data. Default value: `false`. **NOTE:** only when the attribute `remoteSync` is `true` or acceded to by the speed synchronization group, this parameter will not take effect.
	RemoteSyncDownload pulumi.BoolOutput `pulumi:"remoteSyncDownload"`
	// File sharing NFS read-only client list (IP address or IP address range). Use commas (,) to separate multiple clients.
	RoClientList pulumi.StringPtrOutput `pulumi:"roClientList"`
	// The read-only client list. When Protocol for Server Message Block (SMB) to go back to.
	RoUserList pulumi.StringPtrOutput `pulumi:"roUserList"`
	// Read and write the client list. When Protocol NFS is returned when the status is.
	RwClientList pulumi.StringPtrOutput `pulumi:"rwClientList"`
	// Read-write user list. When Protocol for Server Message Block (SMB) to go back to.
	RwUserList pulumi.StringPtrOutput `pulumi:"rwUserList"`
	// The NFS protocol user mapping of the gateway file share. Valid values: `none`, `rootSquash`, `allSquash`, `allAnonymous`. Default value: `none`. **NOTE:** The attribute is valid when the attribute `protocol` is `NFS`.
	Squash pulumi.StringOutput `pulumi:"squash"`
	// Whether to support the archive transparent read.
	SupportArchive pulumi.BoolOutput `pulumi:"supportArchive"`
	// The set up gateway file share whether to enable transmission acceleration needs corresponding OSS Bucket enabled transport acceleration. **NOTE:** Gateway version >= 1.3.0 above support.
	TransferAcceleration pulumi.BoolOutput `pulumi:"transferAcceleration"`
	// Whether to enable by Windows access list (requires AD domain) the permissions control. Default value: `false`. **NOTE:** The attribute is valid when the attribute `protocol` is `SMB`. Gateway version >= 1.0.45 above support.
	WindowsAcl pulumi.BoolOutput `pulumi:"windowsAcl"`
}

Provides a Cloud Storage Gateway Gateway File Share resource.

For information about Cloud Storage Gateway Gateway File Share and how to use it, see [What is Gateway File Share](https://www.alibabacloud.com/help/zh/doc-detail/170298.htm).

> **NOTE:** Available in v1.144.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/oss"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/vpc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultStocks, err := cloudstoragegateway.GetStocks(ctx, &cloudstoragegateway.GetStocksArgs{
			GatewayClass: pulumi.StringRef("Standard"),
		}, nil)
		if err != nil {
			return err
		}
		vpc, err := vpc.NewNetwork(ctx, "vpc", &vpc.NetworkArgs{
			VpcName:   pulumi.String("example_value"),
			CidrBlock: pulumi.String("172.16.0.0/12"),
		})
		if err != nil {
			return err
		}
		defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
			VpcId:       vpc.ID(),
			CidrBlock:   pulumi.String("172.16.0.0/21"),
			ZoneId:      pulumi.String(defaultStocks.Stocks[0].ZoneId),
			VswitchName: pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		defaultStorageBundle, err := cloudstoragegateway.NewStorageBundle(ctx, "defaultStorageBundle", &cloudstoragegateway.StorageBundleArgs{
			StorageBundleName: pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		defaultGateway, err := cloudstoragegateway.NewGateway(ctx, "defaultGateway", &cloudstoragegateway.GatewayArgs{
			Description:            pulumi.String("tf-acctestDesalone"),
			GatewayClass:           pulumi.String("Standard"),
			Type:                   pulumi.String("File"),
			PaymentType:            pulumi.String("PayAsYouGo"),
			VswitchId:              defaultSwitch.ID(),
			ReleaseAfterExpiration: pulumi.Bool(true),
			PublicNetworkBandwidth: pulumi.Int(10),
			StorageBundleId:        defaultStorageBundle.ID(),
			Location:               pulumi.String("Cloud"),
			GatewayName:            pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		defaultGatewayCacheDisk, err := cloudstoragegateway.NewGatewayCacheDisk(ctx, "defaultGatewayCacheDisk", &cloudstoragegateway.GatewayCacheDiskArgs{
			CacheDiskCategory: pulumi.String("cloud_efficiency"),
			GatewayId:         defaultGateway.ID(),
			CacheDiskSizeInGb: pulumi.Int(50),
		})
		if err != nil {
			return err
		}
		defaultBucket, err := oss.NewBucket(ctx, "defaultBucket", &oss.BucketArgs{
			Bucket: pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		_, err = cloudstoragegateway.NewGatewayFileShare(ctx, "defaultGatewayFileShare", &cloudstoragegateway.GatewayFileShareArgs{
			GatewayFileShareName: pulumi.String("example_value"),
			GatewayId:            defaultGateway.ID(),
			LocalPath:            defaultGatewayCacheDisk.LocalFilePath,
			OssBucketName:        defaultBucket.Bucket,
			OssEndpoint:          defaultBucket.ExtranetEndpoint,
			Protocol:             pulumi.String("NFS"),
			RemoteSync:           pulumi.Bool(true),
			PollingInterval:      pulumi.Int(4500),
			FeLimit:              pulumi.Int(0),
			BackendLimit:         pulumi.Int(0),
			CacheMode:            pulumi.String("Cache"),
			Squash:               pulumi.String("none"),
			LagPeriod:            pulumi.Int(5),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Cloud Storage Gateway Gateway File Share can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cloudstoragegateway/gatewayFileShare:GatewayFileShare example <gateway_id>:<index_id>

```

func GetGatewayFileShare

func GetGatewayFileShare(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *GatewayFileShareState, opts ...pulumi.ResourceOption) (*GatewayFileShare, error)

GetGatewayFileShare gets an existing GatewayFileShare resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewGatewayFileShare

func NewGatewayFileShare(ctx *pulumi.Context,
	name string, args *GatewayFileShareArgs, opts ...pulumi.ResourceOption) (*GatewayFileShare, error)

NewGatewayFileShare registers a new resource with the given unique name, arguments, and options.

func (*GatewayFileShare) ElementType

func (*GatewayFileShare) ElementType() reflect.Type

func (*GatewayFileShare) ToGatewayFileShareOutput

func (i *GatewayFileShare) ToGatewayFileShareOutput() GatewayFileShareOutput

func (*GatewayFileShare) ToGatewayFileShareOutputWithContext

func (i *GatewayFileShare) ToGatewayFileShareOutputWithContext(ctx context.Context) GatewayFileShareOutput

type GatewayFileShareArgs

type GatewayFileShareArgs struct {
	// Whether to enable Windows ABE, the prime minister, need windowsAcl parameter is set to true in the entry into force of. Default value: `false`. **NOTE:** The attribute is valid when the attribute `protocol` is `SMB`. Gateway version >= 1.0.45 above support.
	AccessBasedEnumeration pulumi.BoolPtrInput
	// The Max upload speed of the gateway file share. Unit: `MB/s`, 0 means unlimited. Value range: `0` ~ `1280`. Default value: `0`. **NOTE:** at the same time if you have to limit the maximum write speed, maximum upload speed is no less than the maximum write speed.
	BackendLimit pulumi.IntPtrInput
	// The whether browsable of the gateway file share (that is, in the network neighborhood of whether you can find). The attribute is valid when the attribute `protocol` is `SMB`. Default value: `true`.
	Browsable pulumi.BoolPtrInput
	// Direct reading OSS of the gateway file share.
	BypassCacheRead pulumi.BoolPtrInput
	// The set up gateway file share cache mode. Valid values: `Cache` or `Sync`. `Cache`: cached mode. `Sync`: replication mode are available. Default value: `Cache`.
	CacheMode pulumi.StringPtrInput
	// File sharing Whether to enable DirectIO (direct I/O mode for data transmission). Default value: `false`.
	DirectIo pulumi.BoolPtrInput
	// The maximum download speed of the gateway file share. Unit: `MB/s`. `0` means unlimited. Value range: `0` ~ `1280`. **NOTE:** only in copy mode and enable download file data can be set. only when the shared opens the reverse synchronization or acceded to by the speed synchronization Group when, this parameter will not take effect. Gateway version >= 1.3.0 above support.
	DownloadLimit pulumi.IntPtrInput
	// The whether to enable Upload optimization of the gateway file share, which is suitable for data pure backup migration scenarios. Default value: `false`. **NOTE:** Gateway version >= 1.0.39 above support.
	FastReclaim pulumi.BoolPtrInput
	// The maximum write speed of the gateway file share. Unit: `MB/s`, `0` means unlimited. Value range: `0` ~ `1280`. Default value: `0`.
	FeLimit pulumi.IntPtrInput
	// The name of the file share. Length from `1` to `255` characters can contain lowercase letters, digits, (.), (_) Or (-), at the same time, must start with a lowercase letter.
	GatewayFileShareName pulumi.StringInput
	// The ID of the gateway.
	GatewayId pulumi.StringInput
	// The whether to ignore deleted of the gateway file share. After the opening of the Gateway side delete file or delete cloud (OSS) corresponding to the file. Default value: `false`. **NOTE:** `ignoreDelete` and `remoteSync` cannot be enabled simultaneously. Gateway version >= 1.0.40 above support.
	IgnoreDelete pulumi.BoolPtrInput
	// The whether debris optimization of the gateway file share. Default value: `false`.
	InPlace pulumi.BoolPtrInput
	// The synchronization delay, I.e. gateway local cache sync to Alibaba Cloud Object Storage Service (oss) of the delay time. Unit: `Seconds`. Value range: `5` ~ `120`. Default value: `5`. **NOTE:** Gateway version >= 1.0.40 above support.
	LagPeriod pulumi.IntPtrInput
	// The cache disk inside the device name.
	LocalPath pulumi.StringInput
	// The set up gateway file share NFS protocol, whether to enable NFS v4 optimization improve Mount Upload efficiency. Default value: `false`. **NOTE:** If it is enabled, NFS V3 cannot be mounted. The attribute is valid when the attribute `protocol` is `NFS`. Gateway version >= 1.2.0 above support.
	NfsV4Optimization pulumi.BoolPtrInput
	// The name of the OSS Bucket.
	OssBucketName pulumi.StringInput
	// Whether they are using SSL connect to OSS Bucket.
	OssBucketSsl pulumi.BoolPtrInput
	// The gateway file share corresponds to the Object Storage SERVICE (OSS), Bucket Endpoint. **NOTE:** distinguish between intranet and internet Endpoint. We recommend that if the OSS Bucket and the gateway is in the same Region is use the RDS intranet IP Endpoint: `oss-cn-hangzhou-internal.aliyuncs.com`.
	OssEndpoint pulumi.StringInput
	// In part mode, the directory path group JSON format.
	PartialSyncPaths pulumi.StringPtrInput
	// The subdirectory path under the object storage (OSS) bucket corresponding to the file share. If it is blank, it means the root directory of the bucket.
	PathPrefix pulumi.StringPtrInput
	// The reverse synchronization time intervals of the gateway file share. Value range: `15` ~ `36000`. **NOTE:** in copy mode + reverse synchronization is enabled Download file data, value range: `3600` ~ `36000`.
	PollingInterval pulumi.IntPtrInput
	// Share types. Valid values: `SMB`, `NFS`.
	Protocol pulumi.StringInput
	// Whether to enable reverse synchronization of the gateway file share. Default value: `false`.
	RemoteSync pulumi.BoolPtrInput
	// Copy mode, whether to download the file data. Default value: `false`. **NOTE:** only when the attribute `remoteSync` is `true` or acceded to by the speed synchronization group, this parameter will not take effect.
	RemoteSyncDownload pulumi.BoolPtrInput
	// File sharing NFS read-only client list (IP address or IP address range). Use commas (,) to separate multiple clients.
	RoClientList pulumi.StringPtrInput
	// The read-only client list. When Protocol for Server Message Block (SMB) to go back to.
	RoUserList pulumi.StringPtrInput
	// Read and write the client list. When Protocol NFS is returned when the status is.
	RwClientList pulumi.StringPtrInput
	// Read-write user list. When Protocol for Server Message Block (SMB) to go back to.
	RwUserList pulumi.StringPtrInput
	// The NFS protocol user mapping of the gateway file share. Valid values: `none`, `rootSquash`, `allSquash`, `allAnonymous`. Default value: `none`. **NOTE:** The attribute is valid when the attribute `protocol` is `NFS`.
	Squash pulumi.StringPtrInput
	// Whether to support the archive transparent read.
	SupportArchive pulumi.BoolPtrInput
	// The set up gateway file share whether to enable transmission acceleration needs corresponding OSS Bucket enabled transport acceleration. **NOTE:** Gateway version >= 1.3.0 above support.
	TransferAcceleration pulumi.BoolPtrInput
	// Whether to enable by Windows access list (requires AD domain) the permissions control. Default value: `false`. **NOTE:** The attribute is valid when the attribute `protocol` is `SMB`. Gateway version >= 1.0.45 above support.
	WindowsAcl pulumi.BoolPtrInput
}

The set of arguments for constructing a GatewayFileShare resource.

func (GatewayFileShareArgs) ElementType

func (GatewayFileShareArgs) ElementType() reflect.Type

type GatewayFileShareArray

type GatewayFileShareArray []GatewayFileShareInput

func (GatewayFileShareArray) ElementType

func (GatewayFileShareArray) ElementType() reflect.Type

func (GatewayFileShareArray) ToGatewayFileShareArrayOutput

func (i GatewayFileShareArray) ToGatewayFileShareArrayOutput() GatewayFileShareArrayOutput

func (GatewayFileShareArray) ToGatewayFileShareArrayOutputWithContext

func (i GatewayFileShareArray) ToGatewayFileShareArrayOutputWithContext(ctx context.Context) GatewayFileShareArrayOutput

type GatewayFileShareArrayInput

type GatewayFileShareArrayInput interface {
	pulumi.Input

	ToGatewayFileShareArrayOutput() GatewayFileShareArrayOutput
	ToGatewayFileShareArrayOutputWithContext(context.Context) GatewayFileShareArrayOutput
}

GatewayFileShareArrayInput is an input type that accepts GatewayFileShareArray and GatewayFileShareArrayOutput values. You can construct a concrete instance of `GatewayFileShareArrayInput` via:

GatewayFileShareArray{ GatewayFileShareArgs{...} }

type GatewayFileShareArrayOutput

type GatewayFileShareArrayOutput struct{ *pulumi.OutputState }

func (GatewayFileShareArrayOutput) ElementType

func (GatewayFileShareArrayOutput) Index

func (GatewayFileShareArrayOutput) ToGatewayFileShareArrayOutput

func (o GatewayFileShareArrayOutput) ToGatewayFileShareArrayOutput() GatewayFileShareArrayOutput

func (GatewayFileShareArrayOutput) ToGatewayFileShareArrayOutputWithContext

func (o GatewayFileShareArrayOutput) ToGatewayFileShareArrayOutputWithContext(ctx context.Context) GatewayFileShareArrayOutput

type GatewayFileShareInput

type GatewayFileShareInput interface {
	pulumi.Input

	ToGatewayFileShareOutput() GatewayFileShareOutput
	ToGatewayFileShareOutputWithContext(ctx context.Context) GatewayFileShareOutput
}

type GatewayFileShareMap

type GatewayFileShareMap map[string]GatewayFileShareInput

func (GatewayFileShareMap) ElementType

func (GatewayFileShareMap) ElementType() reflect.Type

func (GatewayFileShareMap) ToGatewayFileShareMapOutput

func (i GatewayFileShareMap) ToGatewayFileShareMapOutput() GatewayFileShareMapOutput

func (GatewayFileShareMap) ToGatewayFileShareMapOutputWithContext

func (i GatewayFileShareMap) ToGatewayFileShareMapOutputWithContext(ctx context.Context) GatewayFileShareMapOutput

type GatewayFileShareMapInput

type GatewayFileShareMapInput interface {
	pulumi.Input

	ToGatewayFileShareMapOutput() GatewayFileShareMapOutput
	ToGatewayFileShareMapOutputWithContext(context.Context) GatewayFileShareMapOutput
}

GatewayFileShareMapInput is an input type that accepts GatewayFileShareMap and GatewayFileShareMapOutput values. You can construct a concrete instance of `GatewayFileShareMapInput` via:

GatewayFileShareMap{ "key": GatewayFileShareArgs{...} }

type GatewayFileShareMapOutput

type GatewayFileShareMapOutput struct{ *pulumi.OutputState }

func (GatewayFileShareMapOutput) ElementType

func (GatewayFileShareMapOutput) ElementType() reflect.Type

func (GatewayFileShareMapOutput) MapIndex

func (GatewayFileShareMapOutput) ToGatewayFileShareMapOutput

func (o GatewayFileShareMapOutput) ToGatewayFileShareMapOutput() GatewayFileShareMapOutput

func (GatewayFileShareMapOutput) ToGatewayFileShareMapOutputWithContext

func (o GatewayFileShareMapOutput) ToGatewayFileShareMapOutputWithContext(ctx context.Context) GatewayFileShareMapOutput

type GatewayFileShareOutput

type GatewayFileShareOutput struct{ *pulumi.OutputState }

func (GatewayFileShareOutput) AccessBasedEnumeration

func (o GatewayFileShareOutput) AccessBasedEnumeration() pulumi.BoolOutput

Whether to enable Windows ABE, the prime minister, need windowsAcl parameter is set to true in the entry into force of. Default value: `false`. **NOTE:** The attribute is valid when the attribute `protocol` is `SMB`. Gateway version >= 1.0.45 above support.

func (GatewayFileShareOutput) BackendLimit

func (o GatewayFileShareOutput) BackendLimit() pulumi.IntOutput

The Max upload speed of the gateway file share. Unit: `MB/s`, 0 means unlimited. Value range: `0` ~ `1280`. Default value: `0`. **NOTE:** at the same time if you have to limit the maximum write speed, maximum upload speed is no less than the maximum write speed.

func (GatewayFileShareOutput) Browsable

The whether browsable of the gateway file share (that is, in the network neighborhood of whether you can find). The attribute is valid when the attribute `protocol` is `SMB`. Default value: `true`.

func (GatewayFileShareOutput) BypassCacheRead

func (o GatewayFileShareOutput) BypassCacheRead() pulumi.BoolOutput

Direct reading OSS of the gateway file share.

func (GatewayFileShareOutput) CacheMode

The set up gateway file share cache mode. Valid values: `Cache` or `Sync`. `Cache`: cached mode. `Sync`: replication mode are available. Default value: `Cache`.

func (GatewayFileShareOutput) DirectIo

File sharing Whether to enable DirectIO (direct I/O mode for data transmission). Default value: `false`.

func (GatewayFileShareOutput) DownloadLimit

func (o GatewayFileShareOutput) DownloadLimit() pulumi.IntOutput

The maximum download speed of the gateway file share. Unit: `MB/s`. `0` means unlimited. Value range: `0` ~ `1280`. **NOTE:** only in copy mode and enable download file data can be set. only when the shared opens the reverse synchronization or acceded to by the speed synchronization Group when, this parameter will not take effect. Gateway version >= 1.3.0 above support.

func (GatewayFileShareOutput) ElementType

func (GatewayFileShareOutput) ElementType() reflect.Type

func (GatewayFileShareOutput) FastReclaim

func (o GatewayFileShareOutput) FastReclaim() pulumi.BoolOutput

The whether to enable Upload optimization of the gateway file share, which is suitable for data pure backup migration scenarios. Default value: `false`. **NOTE:** Gateway version >= 1.0.39 above support.

func (GatewayFileShareOutput) FeLimit

The maximum write speed of the gateway file share. Unit: `MB/s`, `0` means unlimited. Value range: `0` ~ `1280`. Default value: `0`.

func (GatewayFileShareOutput) GatewayFileShareName

func (o GatewayFileShareOutput) GatewayFileShareName() pulumi.StringOutput

The name of the file share. Length from `1` to `255` characters can contain lowercase letters, digits, (.), (_) Or (-), at the same time, must start with a lowercase letter.

func (GatewayFileShareOutput) GatewayId

The ID of the gateway.

func (GatewayFileShareOutput) IgnoreDelete

func (o GatewayFileShareOutput) IgnoreDelete() pulumi.BoolOutput

The whether to ignore deleted of the gateway file share. After the opening of the Gateway side delete file or delete cloud (OSS) corresponding to the file. Default value: `false`. **NOTE:** `ignoreDelete` and `remoteSync` cannot be enabled simultaneously. Gateway version >= 1.0.40 above support.

func (GatewayFileShareOutput) InPlace

The whether debris optimization of the gateway file share. Default value: `false`.

func (GatewayFileShareOutput) IndexId

The ID of the file share.

func (GatewayFileShareOutput) LagPeriod

func (o GatewayFileShareOutput) LagPeriod() pulumi.IntOutput

The synchronization delay, I.e. gateway local cache sync to Alibaba Cloud Object Storage Service (oss) of the delay time. Unit: `Seconds`. Value range: `5` ~ `120`. Default value: `5`. **NOTE:** Gateway version >= 1.0.40 above support.

func (GatewayFileShareOutput) LocalPath

The cache disk inside the device name.

func (GatewayFileShareOutput) NfsV4Optimization

func (o GatewayFileShareOutput) NfsV4Optimization() pulumi.BoolOutput

The set up gateway file share NFS protocol, whether to enable NFS v4 optimization improve Mount Upload efficiency. Default value: `false`. **NOTE:** If it is enabled, NFS V3 cannot be mounted. The attribute is valid when the attribute `protocol` is `NFS`. Gateway version >= 1.2.0 above support.

func (GatewayFileShareOutput) OssBucketName

func (o GatewayFileShareOutput) OssBucketName() pulumi.StringOutput

The name of the OSS Bucket.

func (GatewayFileShareOutput) OssBucketSsl

func (o GatewayFileShareOutput) OssBucketSsl() pulumi.BoolOutput

Whether they are using SSL connect to OSS Bucket.

func (GatewayFileShareOutput) OssEndpoint

func (o GatewayFileShareOutput) OssEndpoint() pulumi.StringOutput

The gateway file share corresponds to the Object Storage SERVICE (OSS), Bucket Endpoint. **NOTE:** distinguish between intranet and internet Endpoint. We recommend that if the OSS Bucket and the gateway is in the same Region is use the RDS intranet IP Endpoint: `oss-cn-hangzhou-internal.aliyuncs.com`.

func (GatewayFileShareOutput) PartialSyncPaths

func (o GatewayFileShareOutput) PartialSyncPaths() pulumi.StringPtrOutput

In part mode, the directory path group JSON format.

func (GatewayFileShareOutput) PathPrefix

The subdirectory path under the object storage (OSS) bucket corresponding to the file share. If it is blank, it means the root directory of the bucket.

func (GatewayFileShareOutput) PollingInterval

func (o GatewayFileShareOutput) PollingInterval() pulumi.IntPtrOutput

The reverse synchronization time intervals of the gateway file share. Value range: `15` ~ `36000`. **NOTE:** in copy mode + reverse synchronization is enabled Download file data, value range: `3600` ~ `36000`.

func (GatewayFileShareOutput) Protocol

Share types. Valid values: `SMB`, `NFS`.

func (GatewayFileShareOutput) RemoteSync

func (o GatewayFileShareOutput) RemoteSync() pulumi.BoolOutput

Whether to enable reverse synchronization of the gateway file share. Default value: `false`.

func (GatewayFileShareOutput) RemoteSyncDownload

func (o GatewayFileShareOutput) RemoteSyncDownload() pulumi.BoolOutput

Copy mode, whether to download the file data. Default value: `false`. **NOTE:** only when the attribute `remoteSync` is `true` or acceded to by the speed synchronization group, this parameter will not take effect.

func (GatewayFileShareOutput) RoClientList

File sharing NFS read-only client list (IP address or IP address range). Use commas (,) to separate multiple clients.

func (GatewayFileShareOutput) RoUserList

The read-only client list. When Protocol for Server Message Block (SMB) to go back to.

func (GatewayFileShareOutput) RwClientList

Read and write the client list. When Protocol NFS is returned when the status is.

func (GatewayFileShareOutput) RwUserList

Read-write user list. When Protocol for Server Message Block (SMB) to go back to.

func (GatewayFileShareOutput) Squash

The NFS protocol user mapping of the gateway file share. Valid values: `none`, `rootSquash`, `allSquash`, `allAnonymous`. Default value: `none`. **NOTE:** The attribute is valid when the attribute `protocol` is `NFS`.

func (GatewayFileShareOutput) SupportArchive

func (o GatewayFileShareOutput) SupportArchive() pulumi.BoolOutput

Whether to support the archive transparent read.

func (GatewayFileShareOutput) ToGatewayFileShareOutput

func (o GatewayFileShareOutput) ToGatewayFileShareOutput() GatewayFileShareOutput

func (GatewayFileShareOutput) ToGatewayFileShareOutputWithContext

func (o GatewayFileShareOutput) ToGatewayFileShareOutputWithContext(ctx context.Context) GatewayFileShareOutput

func (GatewayFileShareOutput) TransferAcceleration

func (o GatewayFileShareOutput) TransferAcceleration() pulumi.BoolOutput

The set up gateway file share whether to enable transmission acceleration needs corresponding OSS Bucket enabled transport acceleration. **NOTE:** Gateway version >= 1.3.0 above support.

func (GatewayFileShareOutput) WindowsAcl

func (o GatewayFileShareOutput) WindowsAcl() pulumi.BoolOutput

Whether to enable by Windows access list (requires AD domain) the permissions control. Default value: `false`. **NOTE:** The attribute is valid when the attribute `protocol` is `SMB`. Gateway version >= 1.0.45 above support.

type GatewayFileShareState

type GatewayFileShareState struct {
	// Whether to enable Windows ABE, the prime minister, need windowsAcl parameter is set to true in the entry into force of. Default value: `false`. **NOTE:** The attribute is valid when the attribute `protocol` is `SMB`. Gateway version >= 1.0.45 above support.
	AccessBasedEnumeration pulumi.BoolPtrInput
	// The Max upload speed of the gateway file share. Unit: `MB/s`, 0 means unlimited. Value range: `0` ~ `1280`. Default value: `0`. **NOTE:** at the same time if you have to limit the maximum write speed, maximum upload speed is no less than the maximum write speed.
	BackendLimit pulumi.IntPtrInput
	// The whether browsable of the gateway file share (that is, in the network neighborhood of whether you can find). The attribute is valid when the attribute `protocol` is `SMB`. Default value: `true`.
	Browsable pulumi.BoolPtrInput
	// Direct reading OSS of the gateway file share.
	BypassCacheRead pulumi.BoolPtrInput
	// The set up gateway file share cache mode. Valid values: `Cache` or `Sync`. `Cache`: cached mode. `Sync`: replication mode are available. Default value: `Cache`.
	CacheMode pulumi.StringPtrInput
	// File sharing Whether to enable DirectIO (direct I/O mode for data transmission). Default value: `false`.
	DirectIo pulumi.BoolPtrInput
	// The maximum download speed of the gateway file share. Unit: `MB/s`. `0` means unlimited. Value range: `0` ~ `1280`. **NOTE:** only in copy mode and enable download file data can be set. only when the shared opens the reverse synchronization or acceded to by the speed synchronization Group when, this parameter will not take effect. Gateway version >= 1.3.0 above support.
	DownloadLimit pulumi.IntPtrInput
	// The whether to enable Upload optimization of the gateway file share, which is suitable for data pure backup migration scenarios. Default value: `false`. **NOTE:** Gateway version >= 1.0.39 above support.
	FastReclaim pulumi.BoolPtrInput
	// The maximum write speed of the gateway file share. Unit: `MB/s`, `0` means unlimited. Value range: `0` ~ `1280`. Default value: `0`.
	FeLimit pulumi.IntPtrInput
	// The name of the file share. Length from `1` to `255` characters can contain lowercase letters, digits, (.), (_) Or (-), at the same time, must start with a lowercase letter.
	GatewayFileShareName pulumi.StringPtrInput
	// The ID of the gateway.
	GatewayId pulumi.StringPtrInput
	// The whether to ignore deleted of the gateway file share. After the opening of the Gateway side delete file or delete cloud (OSS) corresponding to the file. Default value: `false`. **NOTE:** `ignoreDelete` and `remoteSync` cannot be enabled simultaneously. Gateway version >= 1.0.40 above support.
	IgnoreDelete pulumi.BoolPtrInput
	// The whether debris optimization of the gateway file share. Default value: `false`.
	InPlace pulumi.BoolPtrInput
	// The ID of the file share.
	IndexId pulumi.StringPtrInput
	// The synchronization delay, I.e. gateway local cache sync to Alibaba Cloud Object Storage Service (oss) of the delay time. Unit: `Seconds`. Value range: `5` ~ `120`. Default value: `5`. **NOTE:** Gateway version >= 1.0.40 above support.
	LagPeriod pulumi.IntPtrInput
	// The cache disk inside the device name.
	LocalPath pulumi.StringPtrInput
	// The set up gateway file share NFS protocol, whether to enable NFS v4 optimization improve Mount Upload efficiency. Default value: `false`. **NOTE:** If it is enabled, NFS V3 cannot be mounted. The attribute is valid when the attribute `protocol` is `NFS`. Gateway version >= 1.2.0 above support.
	NfsV4Optimization pulumi.BoolPtrInput
	// The name of the OSS Bucket.
	OssBucketName pulumi.StringPtrInput
	// Whether they are using SSL connect to OSS Bucket.
	OssBucketSsl pulumi.BoolPtrInput
	// The gateway file share corresponds to the Object Storage SERVICE (OSS), Bucket Endpoint. **NOTE:** distinguish between intranet and internet Endpoint. We recommend that if the OSS Bucket and the gateway is in the same Region is use the RDS intranet IP Endpoint: `oss-cn-hangzhou-internal.aliyuncs.com`.
	OssEndpoint pulumi.StringPtrInput
	// In part mode, the directory path group JSON format.
	PartialSyncPaths pulumi.StringPtrInput
	// The subdirectory path under the object storage (OSS) bucket corresponding to the file share. If it is blank, it means the root directory of the bucket.
	PathPrefix pulumi.StringPtrInput
	// The reverse synchronization time intervals of the gateway file share. Value range: `15` ~ `36000`. **NOTE:** in copy mode + reverse synchronization is enabled Download file data, value range: `3600` ~ `36000`.
	PollingInterval pulumi.IntPtrInput
	// Share types. Valid values: `SMB`, `NFS`.
	Protocol pulumi.StringPtrInput
	// Whether to enable reverse synchronization of the gateway file share. Default value: `false`.
	RemoteSync pulumi.BoolPtrInput
	// Copy mode, whether to download the file data. Default value: `false`. **NOTE:** only when the attribute `remoteSync` is `true` or acceded to by the speed synchronization group, this parameter will not take effect.
	RemoteSyncDownload pulumi.BoolPtrInput
	// File sharing NFS read-only client list (IP address or IP address range). Use commas (,) to separate multiple clients.
	RoClientList pulumi.StringPtrInput
	// The read-only client list. When Protocol for Server Message Block (SMB) to go back to.
	RoUserList pulumi.StringPtrInput
	// Read and write the client list. When Protocol NFS is returned when the status is.
	RwClientList pulumi.StringPtrInput
	// Read-write user list. When Protocol for Server Message Block (SMB) to go back to.
	RwUserList pulumi.StringPtrInput
	// The NFS protocol user mapping of the gateway file share. Valid values: `none`, `rootSquash`, `allSquash`, `allAnonymous`. Default value: `none`. **NOTE:** The attribute is valid when the attribute `protocol` is `NFS`.
	Squash pulumi.StringPtrInput
	// Whether to support the archive transparent read.
	SupportArchive pulumi.BoolPtrInput
	// The set up gateway file share whether to enable transmission acceleration needs corresponding OSS Bucket enabled transport acceleration. **NOTE:** Gateway version >= 1.3.0 above support.
	TransferAcceleration pulumi.BoolPtrInput
	// Whether to enable by Windows access list (requires AD domain) the permissions control. Default value: `false`. **NOTE:** The attribute is valid when the attribute `protocol` is `SMB`. Gateway version >= 1.0.45 above support.
	WindowsAcl pulumi.BoolPtrInput
}

func (GatewayFileShareState) ElementType

func (GatewayFileShareState) ElementType() reflect.Type

type GatewayInput

type GatewayInput interface {
	pulumi.Input

	ToGatewayOutput() GatewayOutput
	ToGatewayOutputWithContext(ctx context.Context) GatewayOutput
}

type GatewayLogging

type GatewayLogging struct {
	pulumi.CustomResourceState

	// The ID of the Gateway.
	GatewayId pulumi.StringOutput `pulumi:"gatewayId"`
	// The name of the Log Store.
	SlsLogstore pulumi.StringOutput `pulumi:"slsLogstore"`
	// The name of the Project.
	SlsProject pulumi.StringOutput `pulumi:"slsProject"`
	// The status of the resource. Valid values: `Enabled`, `Disable`.
	Status pulumi.StringOutput `pulumi:"status"`
}

Provides a Cloud Storage Gateway Gateway Logging resource.

For information about Cloud Storage Gateway Gateway Logging and how to use it, see [What is Gateway Logging](https://www.alibabacloud.com/help/en/doc-detail/108299.htm).

> **NOTE:** Available in v1.144.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/log"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/vpc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
			VpcName:   pulumi.String(name),
			CidrBlock: pulumi.String("172.16.0.0/12"),
		})
		if err != nil {
			return err
		}
		defaultZones, err := alicloud.GetZones(ctx, &GetZonesArgs{
			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
		}, nil)
		if err != nil {
			return err
		}
		defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
			VpcId:       defaultNetwork.ID(),
			CidrBlock:   pulumi.String("172.16.0.0/21"),
			ZoneId:      pulumi.String(defaultZones.Zones[0].Id),
			VswitchName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultStorageBundle, err := cloudstoragegateway.NewStorageBundle(ctx, "defaultStorageBundle", &cloudstoragegateway.StorageBundleArgs{
			StorageBundleName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultGateway, err := cloudstoragegateway.NewGateway(ctx, "defaultGateway", &cloudstoragegateway.GatewayArgs{
			Description:            pulumi.String("tf-acctestDesalone"),
			GatewayClass:           pulumi.String("Basic"),
			Type:                   pulumi.String("File"),
			PaymentType:            pulumi.String("PayAsYouGo"),
			VswitchId:              defaultSwitch.ID(),
			ReleaseAfterExpiration: pulumi.Bool(true),
			PublicNetworkBandwidth: pulumi.Int(10),
			StorageBundleId:        defaultStorageBundle.ID(),
			Location:               pulumi.String("Cloud"),
			GatewayName:            pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultProject, err := log.NewProject(ctx, "defaultProject", &log.ProjectArgs{
			Description: pulumi.String("created by terraform"),
		})
		if err != nil {
			return err
		}
		defaultStore, err := log.NewStore(ctx, "defaultStore", &log.StoreArgs{
			Project:            defaultProject.Name,
			ShardCount:         pulumi.Int(3),
			AutoSplit:          pulumi.Bool(true),
			MaxSplitShardCount: pulumi.Int(60),
			AppendMeta:         pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = cloudstoragegateway.NewGatewayLogging(ctx, "defaultGatewayLogging", &cloudstoragegateway.GatewayLoggingArgs{
			GatewayId:   defaultGateway.ID(),
			SlsLogstore: defaultStore.Name,
			SlsProject:  defaultProject.Name,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Cloud Storage Gateway Gateway Logging can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cloudstoragegateway/gatewayLogging:GatewayLogging example <gateway_id>

```

func GetGatewayLogging

func GetGatewayLogging(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *GatewayLoggingState, opts ...pulumi.ResourceOption) (*GatewayLogging, error)

GetGatewayLogging gets an existing GatewayLogging resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewGatewayLogging

func NewGatewayLogging(ctx *pulumi.Context,
	name string, args *GatewayLoggingArgs, opts ...pulumi.ResourceOption) (*GatewayLogging, error)

NewGatewayLogging registers a new resource with the given unique name, arguments, and options.

func (*GatewayLogging) ElementType

func (*GatewayLogging) ElementType() reflect.Type

func (*GatewayLogging) ToGatewayLoggingOutput

func (i *GatewayLogging) ToGatewayLoggingOutput() GatewayLoggingOutput

func (*GatewayLogging) ToGatewayLoggingOutputWithContext

func (i *GatewayLogging) ToGatewayLoggingOutputWithContext(ctx context.Context) GatewayLoggingOutput

type GatewayLoggingArgs

type GatewayLoggingArgs struct {
	// The ID of the Gateway.
	GatewayId pulumi.StringInput
	// The name of the Log Store.
	SlsLogstore pulumi.StringInput
	// The name of the Project.
	SlsProject pulumi.StringInput
	// The status of the resource. Valid values: `Enabled`, `Disable`.
	Status pulumi.StringPtrInput
}

The set of arguments for constructing a GatewayLogging resource.

func (GatewayLoggingArgs) ElementType

func (GatewayLoggingArgs) ElementType() reflect.Type

type GatewayLoggingArray

type GatewayLoggingArray []GatewayLoggingInput

func (GatewayLoggingArray) ElementType

func (GatewayLoggingArray) ElementType() reflect.Type

func (GatewayLoggingArray) ToGatewayLoggingArrayOutput

func (i GatewayLoggingArray) ToGatewayLoggingArrayOutput() GatewayLoggingArrayOutput

func (GatewayLoggingArray) ToGatewayLoggingArrayOutputWithContext

func (i GatewayLoggingArray) ToGatewayLoggingArrayOutputWithContext(ctx context.Context) GatewayLoggingArrayOutput

type GatewayLoggingArrayInput

type GatewayLoggingArrayInput interface {
	pulumi.Input

	ToGatewayLoggingArrayOutput() GatewayLoggingArrayOutput
	ToGatewayLoggingArrayOutputWithContext(context.Context) GatewayLoggingArrayOutput
}

GatewayLoggingArrayInput is an input type that accepts GatewayLoggingArray and GatewayLoggingArrayOutput values. You can construct a concrete instance of `GatewayLoggingArrayInput` via:

GatewayLoggingArray{ GatewayLoggingArgs{...} }

type GatewayLoggingArrayOutput

type GatewayLoggingArrayOutput struct{ *pulumi.OutputState }

func (GatewayLoggingArrayOutput) ElementType

func (GatewayLoggingArrayOutput) ElementType() reflect.Type

func (GatewayLoggingArrayOutput) Index

func (GatewayLoggingArrayOutput) ToGatewayLoggingArrayOutput

func (o GatewayLoggingArrayOutput) ToGatewayLoggingArrayOutput() GatewayLoggingArrayOutput

func (GatewayLoggingArrayOutput) ToGatewayLoggingArrayOutputWithContext

func (o GatewayLoggingArrayOutput) ToGatewayLoggingArrayOutputWithContext(ctx context.Context) GatewayLoggingArrayOutput

type GatewayLoggingInput

type GatewayLoggingInput interface {
	pulumi.Input

	ToGatewayLoggingOutput() GatewayLoggingOutput
	ToGatewayLoggingOutputWithContext(ctx context.Context) GatewayLoggingOutput
}

type GatewayLoggingMap

type GatewayLoggingMap map[string]GatewayLoggingInput

func (GatewayLoggingMap) ElementType

func (GatewayLoggingMap) ElementType() reflect.Type

func (GatewayLoggingMap) ToGatewayLoggingMapOutput

func (i GatewayLoggingMap) ToGatewayLoggingMapOutput() GatewayLoggingMapOutput

func (GatewayLoggingMap) ToGatewayLoggingMapOutputWithContext

func (i GatewayLoggingMap) ToGatewayLoggingMapOutputWithContext(ctx context.Context) GatewayLoggingMapOutput

type GatewayLoggingMapInput

type GatewayLoggingMapInput interface {
	pulumi.Input

	ToGatewayLoggingMapOutput() GatewayLoggingMapOutput
	ToGatewayLoggingMapOutputWithContext(context.Context) GatewayLoggingMapOutput
}

GatewayLoggingMapInput is an input type that accepts GatewayLoggingMap and GatewayLoggingMapOutput values. You can construct a concrete instance of `GatewayLoggingMapInput` via:

GatewayLoggingMap{ "key": GatewayLoggingArgs{...} }

type GatewayLoggingMapOutput

type GatewayLoggingMapOutput struct{ *pulumi.OutputState }

func (GatewayLoggingMapOutput) ElementType

func (GatewayLoggingMapOutput) ElementType() reflect.Type

func (GatewayLoggingMapOutput) MapIndex

func (GatewayLoggingMapOutput) ToGatewayLoggingMapOutput

func (o GatewayLoggingMapOutput) ToGatewayLoggingMapOutput() GatewayLoggingMapOutput

func (GatewayLoggingMapOutput) ToGatewayLoggingMapOutputWithContext

func (o GatewayLoggingMapOutput) ToGatewayLoggingMapOutputWithContext(ctx context.Context) GatewayLoggingMapOutput

type GatewayLoggingOutput

type GatewayLoggingOutput struct{ *pulumi.OutputState }

func (GatewayLoggingOutput) ElementType

func (GatewayLoggingOutput) ElementType() reflect.Type

func (GatewayLoggingOutput) GatewayId

The ID of the Gateway.

func (GatewayLoggingOutput) SlsLogstore

func (o GatewayLoggingOutput) SlsLogstore() pulumi.StringOutput

The name of the Log Store.

func (GatewayLoggingOutput) SlsProject

func (o GatewayLoggingOutput) SlsProject() pulumi.StringOutput

The name of the Project.

func (GatewayLoggingOutput) Status

The status of the resource. Valid values: `Enabled`, `Disable`.

func (GatewayLoggingOutput) ToGatewayLoggingOutput

func (o GatewayLoggingOutput) ToGatewayLoggingOutput() GatewayLoggingOutput

func (GatewayLoggingOutput) ToGatewayLoggingOutputWithContext

func (o GatewayLoggingOutput) ToGatewayLoggingOutputWithContext(ctx context.Context) GatewayLoggingOutput

type GatewayLoggingState

type GatewayLoggingState struct {
	// The ID of the Gateway.
	GatewayId pulumi.StringPtrInput
	// The name of the Log Store.
	SlsLogstore pulumi.StringPtrInput
	// The name of the Project.
	SlsProject pulumi.StringPtrInput
	// The status of the resource. Valid values: `Enabled`, `Disable`.
	Status pulumi.StringPtrInput
}

func (GatewayLoggingState) ElementType

func (GatewayLoggingState) ElementType() reflect.Type

type GatewayMap

type GatewayMap map[string]GatewayInput

func (GatewayMap) ElementType

func (GatewayMap) ElementType() reflect.Type

func (GatewayMap) ToGatewayMapOutput

func (i GatewayMap) ToGatewayMapOutput() GatewayMapOutput

func (GatewayMap) ToGatewayMapOutputWithContext

func (i GatewayMap) ToGatewayMapOutputWithContext(ctx context.Context) GatewayMapOutput

type GatewayMapInput

type GatewayMapInput interface {
	pulumi.Input

	ToGatewayMapOutput() GatewayMapOutput
	ToGatewayMapOutputWithContext(context.Context) GatewayMapOutput
}

GatewayMapInput is an input type that accepts GatewayMap and GatewayMapOutput values. You can construct a concrete instance of `GatewayMapInput` via:

GatewayMap{ "key": GatewayArgs{...} }

type GatewayMapOutput

type GatewayMapOutput struct{ *pulumi.OutputState }

func (GatewayMapOutput) ElementType

func (GatewayMapOutput) ElementType() reflect.Type

func (GatewayMapOutput) MapIndex

func (GatewayMapOutput) ToGatewayMapOutput

func (o GatewayMapOutput) ToGatewayMapOutput() GatewayMapOutput

func (GatewayMapOutput) ToGatewayMapOutputWithContext

func (o GatewayMapOutput) ToGatewayMapOutputWithContext(ctx context.Context) GatewayMapOutput

type GatewayOutput

type GatewayOutput struct{ *pulumi.OutputState }

func (GatewayOutput) Description

func (o GatewayOutput) Description() pulumi.StringPtrOutput

the description of gateway.

func (GatewayOutput) ElementType

func (GatewayOutput) ElementType() reflect.Type

func (GatewayOutput) GatewayClass

func (o GatewayOutput) GatewayClass() pulumi.StringPtrOutput

the gateway class. the valid values: `Basic`, `Standard`,`Enhanced`,`Advanced`

func (GatewayOutput) GatewayName

func (o GatewayOutput) GatewayName() pulumi.StringOutput

the name of gateway.

func (GatewayOutput) Location

func (o GatewayOutput) Location() pulumi.StringOutput

gateway location. the valid values: `Cloud`, `On_Premise`.

func (GatewayOutput) PaymentType

func (o GatewayOutput) PaymentType() pulumi.StringPtrOutput

The Payment type of gateway. The valid value: `PayAsYouGo`.

func (GatewayOutput) PublicNetworkBandwidth

func (o GatewayOutput) PublicNetworkBandwidth() pulumi.IntOutput

The public network bandwidth of gateway. Valid values between `5` and `200`. Defaults to `5`.

func (GatewayOutput) ReasonDetail

func (o GatewayOutput) ReasonDetail() pulumi.StringPtrOutput

The reason detail of gateway.

func (GatewayOutput) ReasonType

func (o GatewayOutput) ReasonType() pulumi.StringPtrOutput

The reason type when user deletes the gateway.

func (GatewayOutput) ReleaseAfterExpiration

func (o GatewayOutput) ReleaseAfterExpiration() pulumi.BoolPtrOutput

Whether to release the gateway due to expiration.

func (GatewayOutput) Status

func (o GatewayOutput) Status() pulumi.StringOutput

gateway status.

func (GatewayOutput) StorageBundleId

func (o GatewayOutput) StorageBundleId() pulumi.StringOutput

storage bundle id.

func (GatewayOutput) ToGatewayOutput

func (o GatewayOutput) ToGatewayOutput() GatewayOutput

func (GatewayOutput) ToGatewayOutputWithContext

func (o GatewayOutput) ToGatewayOutputWithContext(ctx context.Context) GatewayOutput

func (GatewayOutput) Type

gateway type. the valid values: `Type`, `Iscsi`.

func (GatewayOutput) VswitchId

func (o GatewayOutput) VswitchId() pulumi.StringPtrOutput

The vswitch id of gateway.

type GatewaySmbUser

type GatewaySmbUser struct {
	pulumi.CustomResourceState

	// The Gateway ID of the Gateway SMB User.
	GatewayId pulumi.StringOutput `pulumi:"gatewayId"`
	// The password of the Gateway SMB User.
	Password pulumi.StringOutput `pulumi:"password"`
	// The username of the Gateway SMB User.
	Username pulumi.StringOutput `pulumi:"username"`
}

Provides a Cloud Storage Gateway Gateway SMB User resource.

For information about Cloud Storage Gateway Gateway SMB User and how to use it, see [What is Gateway SMB User](https://www.alibabacloud.com/help/en/doc-detail/53972.htm).

> **NOTE:** Available in v1.142.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/vpc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
			NameRegex: pulumi.StringRef("default-NODELETING"),
		}, nil)
		if err != nil {
			return err
		}
		defaultSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
			VpcId: pulumi.StringRef(defaultNetworks.Ids[0]),
		}, nil)
		if err != nil {
			return err
		}
		example, err := cloudstoragegateway.NewStorageBundle(ctx, "example", &cloudstoragegateway.StorageBundleArgs{
			StorageBundleName: pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		defaultGateway, err := cloudstoragegateway.NewGateway(ctx, "defaultGateway", &cloudstoragegateway.GatewayArgs{
			Description:            pulumi.String("tf-acctestDesalone"),
			GatewayClass:           pulumi.String("Standard"),
			Type:                   pulumi.String("File"),
			PaymentType:            pulumi.String("PayAsYouGo"),
			VswitchId:              pulumi.String(defaultSwitches.Ids[0]),
			ReleaseAfterExpiration: pulumi.Bool(false),
			PublicNetworkBandwidth: pulumi.Int(40),
			StorageBundleId:        example.ID(),
			Location:               pulumi.String("Cloud"),
			GatewayName:            pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		_, err = cloudstoragegateway.NewGatewaySmbUser(ctx, "defaultGatewaySmbUser", &cloudstoragegateway.GatewaySmbUserArgs{
			Username:  pulumi.String("your_username"),
			Password:  pulumi.String("password"),
			GatewayId: defaultGateway.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Cloud Storage Gateway Gateway SMB User can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cloudstoragegateway/gatewaySmbUser:GatewaySmbUser example <gateway_id>:<username>

```

func GetGatewaySmbUser

func GetGatewaySmbUser(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *GatewaySmbUserState, opts ...pulumi.ResourceOption) (*GatewaySmbUser, error)

GetGatewaySmbUser gets an existing GatewaySmbUser resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewGatewaySmbUser

func NewGatewaySmbUser(ctx *pulumi.Context,
	name string, args *GatewaySmbUserArgs, opts ...pulumi.ResourceOption) (*GatewaySmbUser, error)

NewGatewaySmbUser registers a new resource with the given unique name, arguments, and options.

func (*GatewaySmbUser) ElementType

func (*GatewaySmbUser) ElementType() reflect.Type

func (*GatewaySmbUser) ToGatewaySmbUserOutput

func (i *GatewaySmbUser) ToGatewaySmbUserOutput() GatewaySmbUserOutput

func (*GatewaySmbUser) ToGatewaySmbUserOutputWithContext

func (i *GatewaySmbUser) ToGatewaySmbUserOutputWithContext(ctx context.Context) GatewaySmbUserOutput

type GatewaySmbUserArgs

type GatewaySmbUserArgs struct {
	// The Gateway ID of the Gateway SMB User.
	GatewayId pulumi.StringInput
	// The password of the Gateway SMB User.
	Password pulumi.StringInput
	// The username of the Gateway SMB User.
	Username pulumi.StringInput
}

The set of arguments for constructing a GatewaySmbUser resource.

func (GatewaySmbUserArgs) ElementType

func (GatewaySmbUserArgs) ElementType() reflect.Type

type GatewaySmbUserArray

type GatewaySmbUserArray []GatewaySmbUserInput

func (GatewaySmbUserArray) ElementType

func (GatewaySmbUserArray) ElementType() reflect.Type

func (GatewaySmbUserArray) ToGatewaySmbUserArrayOutput

func (i GatewaySmbUserArray) ToGatewaySmbUserArrayOutput() GatewaySmbUserArrayOutput

func (GatewaySmbUserArray) ToGatewaySmbUserArrayOutputWithContext

func (i GatewaySmbUserArray) ToGatewaySmbUserArrayOutputWithContext(ctx context.Context) GatewaySmbUserArrayOutput

type GatewaySmbUserArrayInput

type GatewaySmbUserArrayInput interface {
	pulumi.Input

	ToGatewaySmbUserArrayOutput() GatewaySmbUserArrayOutput
	ToGatewaySmbUserArrayOutputWithContext(context.Context) GatewaySmbUserArrayOutput
}

GatewaySmbUserArrayInput is an input type that accepts GatewaySmbUserArray and GatewaySmbUserArrayOutput values. You can construct a concrete instance of `GatewaySmbUserArrayInput` via:

GatewaySmbUserArray{ GatewaySmbUserArgs{...} }

type GatewaySmbUserArrayOutput

type GatewaySmbUserArrayOutput struct{ *pulumi.OutputState }

func (GatewaySmbUserArrayOutput) ElementType

func (GatewaySmbUserArrayOutput) ElementType() reflect.Type

func (GatewaySmbUserArrayOutput) Index

func (GatewaySmbUserArrayOutput) ToGatewaySmbUserArrayOutput

func (o GatewaySmbUserArrayOutput) ToGatewaySmbUserArrayOutput() GatewaySmbUserArrayOutput

func (GatewaySmbUserArrayOutput) ToGatewaySmbUserArrayOutputWithContext

func (o GatewaySmbUserArrayOutput) ToGatewaySmbUserArrayOutputWithContext(ctx context.Context) GatewaySmbUserArrayOutput

type GatewaySmbUserInput

type GatewaySmbUserInput interface {
	pulumi.Input

	ToGatewaySmbUserOutput() GatewaySmbUserOutput
	ToGatewaySmbUserOutputWithContext(ctx context.Context) GatewaySmbUserOutput
}

type GatewaySmbUserMap

type GatewaySmbUserMap map[string]GatewaySmbUserInput

func (GatewaySmbUserMap) ElementType

func (GatewaySmbUserMap) ElementType() reflect.Type

func (GatewaySmbUserMap) ToGatewaySmbUserMapOutput

func (i GatewaySmbUserMap) ToGatewaySmbUserMapOutput() GatewaySmbUserMapOutput

func (GatewaySmbUserMap) ToGatewaySmbUserMapOutputWithContext

func (i GatewaySmbUserMap) ToGatewaySmbUserMapOutputWithContext(ctx context.Context) GatewaySmbUserMapOutput

type GatewaySmbUserMapInput

type GatewaySmbUserMapInput interface {
	pulumi.Input

	ToGatewaySmbUserMapOutput() GatewaySmbUserMapOutput
	ToGatewaySmbUserMapOutputWithContext(context.Context) GatewaySmbUserMapOutput
}

GatewaySmbUserMapInput is an input type that accepts GatewaySmbUserMap and GatewaySmbUserMapOutput values. You can construct a concrete instance of `GatewaySmbUserMapInput` via:

GatewaySmbUserMap{ "key": GatewaySmbUserArgs{...} }

type GatewaySmbUserMapOutput

type GatewaySmbUserMapOutput struct{ *pulumi.OutputState }

func (GatewaySmbUserMapOutput) ElementType

func (GatewaySmbUserMapOutput) ElementType() reflect.Type

func (GatewaySmbUserMapOutput) MapIndex

func (GatewaySmbUserMapOutput) ToGatewaySmbUserMapOutput

func (o GatewaySmbUserMapOutput) ToGatewaySmbUserMapOutput() GatewaySmbUserMapOutput

func (GatewaySmbUserMapOutput) ToGatewaySmbUserMapOutputWithContext

func (o GatewaySmbUserMapOutput) ToGatewaySmbUserMapOutputWithContext(ctx context.Context) GatewaySmbUserMapOutput

type GatewaySmbUserOutput

type GatewaySmbUserOutput struct{ *pulumi.OutputState }

func (GatewaySmbUserOutput) ElementType

func (GatewaySmbUserOutput) ElementType() reflect.Type

func (GatewaySmbUserOutput) GatewayId

The Gateway ID of the Gateway SMB User.

func (GatewaySmbUserOutput) Password

The password of the Gateway SMB User.

func (GatewaySmbUserOutput) ToGatewaySmbUserOutput

func (o GatewaySmbUserOutput) ToGatewaySmbUserOutput() GatewaySmbUserOutput

func (GatewaySmbUserOutput) ToGatewaySmbUserOutputWithContext

func (o GatewaySmbUserOutput) ToGatewaySmbUserOutputWithContext(ctx context.Context) GatewaySmbUserOutput

func (GatewaySmbUserOutput) Username

The username of the Gateway SMB User.

type GatewaySmbUserState

type GatewaySmbUserState struct {
	// The Gateway ID of the Gateway SMB User.
	GatewayId pulumi.StringPtrInput
	// The password of the Gateway SMB User.
	Password pulumi.StringPtrInput
	// The username of the Gateway SMB User.
	Username pulumi.StringPtrInput
}

func (GatewaySmbUserState) ElementType

func (GatewaySmbUserState) ElementType() reflect.Type

type GatewayState

type GatewayState struct {
	// the description of gateway.
	Description pulumi.StringPtrInput
	// the gateway class. the valid values: `Basic`, `Standard`,`Enhanced`,`Advanced`
	GatewayClass pulumi.StringPtrInput
	// the name of gateway.
	GatewayName pulumi.StringPtrInput
	// gateway location. the valid values: `Cloud`, `On_Premise`.
	Location pulumi.StringPtrInput
	// The Payment type of gateway. The valid value: `PayAsYouGo`.
	PaymentType pulumi.StringPtrInput
	// The public network bandwidth of gateway. Valid values between `5` and `200`. Defaults to `5`.
	PublicNetworkBandwidth pulumi.IntPtrInput
	// The reason detail of gateway.
	ReasonDetail pulumi.StringPtrInput
	// The reason type when user deletes the gateway.
	ReasonType pulumi.StringPtrInput
	// Whether to release the gateway due to expiration.
	ReleaseAfterExpiration pulumi.BoolPtrInput
	// gateway status.
	Status pulumi.StringPtrInput
	// storage bundle id.
	StorageBundleId pulumi.StringPtrInput
	// gateway type. the valid values: `Type`, `Iscsi`.
	Type pulumi.StringPtrInput
	// The vswitch id of gateway.
	VswitchId pulumi.StringPtrInput
}

func (GatewayState) ElementType

func (GatewayState) ElementType() reflect.Type

type GetExpressSyncsArgs

type GetExpressSyncsArgs struct {
	// A list of Express Sync IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Express Sync name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getExpressSyncs.

type GetExpressSyncsOutputArgs

type GetExpressSyncsOutputArgs struct {
	// A list of Express Sync IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Express Sync name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getExpressSyncs.

func (GetExpressSyncsOutputArgs) ElementType

func (GetExpressSyncsOutputArgs) ElementType() reflect.Type

type GetExpressSyncsResult

type GetExpressSyncsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string                `pulumi:"id"`
	Ids        []string              `pulumi:"ids"`
	NameRegex  *string               `pulumi:"nameRegex"`
	Names      []string              `pulumi:"names"`
	OutputFile *string               `pulumi:"outputFile"`
	Syncs      []GetExpressSyncsSync `pulumi:"syncs"`
}

A collection of values returned by getExpressSyncs.

func GetExpressSyncs

func GetExpressSyncs(ctx *pulumi.Context, args *GetExpressSyncsArgs, opts ...pulumi.InvokeOption) (*GetExpressSyncsResult, error)

This data source provides the Cloud Storage Gateway Express Syncs of the current Alibaba Cloud user.

> **NOTE:** Available in v1.144.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := cloudstoragegateway.GetExpressSyncs(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("cloudStorageGatewayExpressSyncId1", ids.Syncs[0].Id)
		nameRegex, err := cloudstoragegateway.GetExpressSyncs(ctx, &cloudstoragegateway.GetExpressSyncsArgs{
			NameRegex: pulumi.StringRef("^my-ExpressSync"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("cloudStorageGatewayExpressSyncId2", nameRegex.Syncs[0].Id)
		return nil
	})
}

```

type GetExpressSyncsResultOutput

type GetExpressSyncsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getExpressSyncs.

func (GetExpressSyncsResultOutput) ElementType

func (GetExpressSyncsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetExpressSyncsResultOutput) Ids

func (GetExpressSyncsResultOutput) NameRegex

func (GetExpressSyncsResultOutput) Names

func (GetExpressSyncsResultOutput) OutputFile

func (GetExpressSyncsResultOutput) Syncs

func (GetExpressSyncsResultOutput) ToGetExpressSyncsResultOutput

func (o GetExpressSyncsResultOutput) ToGetExpressSyncsResultOutput() GetExpressSyncsResultOutput

func (GetExpressSyncsResultOutput) ToGetExpressSyncsResultOutputWithContext

func (o GetExpressSyncsResultOutput) ToGetExpressSyncsResultOutputWithContext(ctx context.Context) GetExpressSyncsResultOutput

type GetExpressSyncsSync

type GetExpressSyncsSync struct {
	// The name of the OSS Bucket.
	BucketName string `pulumi:"bucketName"`
	// The prefix of the OSS Bucket.
	BucketPrefix string `pulumi:"bucketPrefix"`
	// The region of the OSS Bucket.
	BucketRegion string `pulumi:"bucketRegion"`
	// The description of the Express Sync.
	Description string `pulumi:"description"`
	// The ID of the Express Sync.
	ExpressSyncId string `pulumi:"expressSyncId"`
	// The name of the Express Sync.
	ExpressSyncName string `pulumi:"expressSyncName"`
	Id              string `pulumi:"id"`
	// The name of the message topic (Topic) corresponding to the Express Sync in the Alibaba Cloud Message Service MNS.
	MnsTopic string `pulumi:"mnsTopic"`
}

type GetExpressSyncsSyncArgs

type GetExpressSyncsSyncArgs struct {
	// The name of the OSS Bucket.
	BucketName pulumi.StringInput `pulumi:"bucketName"`
	// The prefix of the OSS Bucket.
	BucketPrefix pulumi.StringInput `pulumi:"bucketPrefix"`
	// The region of the OSS Bucket.
	BucketRegion pulumi.StringInput `pulumi:"bucketRegion"`
	// The description of the Express Sync.
	Description pulumi.StringInput `pulumi:"description"`
	// The ID of the Express Sync.
	ExpressSyncId pulumi.StringInput `pulumi:"expressSyncId"`
	// The name of the Express Sync.
	ExpressSyncName pulumi.StringInput `pulumi:"expressSyncName"`
	Id              pulumi.StringInput `pulumi:"id"`
	// The name of the message topic (Topic) corresponding to the Express Sync in the Alibaba Cloud Message Service MNS.
	MnsTopic pulumi.StringInput `pulumi:"mnsTopic"`
}

func (GetExpressSyncsSyncArgs) ElementType

func (GetExpressSyncsSyncArgs) ElementType() reflect.Type

func (GetExpressSyncsSyncArgs) ToGetExpressSyncsSyncOutput

func (i GetExpressSyncsSyncArgs) ToGetExpressSyncsSyncOutput() GetExpressSyncsSyncOutput

func (GetExpressSyncsSyncArgs) ToGetExpressSyncsSyncOutputWithContext

func (i GetExpressSyncsSyncArgs) ToGetExpressSyncsSyncOutputWithContext(ctx context.Context) GetExpressSyncsSyncOutput

type GetExpressSyncsSyncArray

type GetExpressSyncsSyncArray []GetExpressSyncsSyncInput

func (GetExpressSyncsSyncArray) ElementType

func (GetExpressSyncsSyncArray) ElementType() reflect.Type

func (GetExpressSyncsSyncArray) ToGetExpressSyncsSyncArrayOutput

func (i GetExpressSyncsSyncArray) ToGetExpressSyncsSyncArrayOutput() GetExpressSyncsSyncArrayOutput

func (GetExpressSyncsSyncArray) ToGetExpressSyncsSyncArrayOutputWithContext

func (i GetExpressSyncsSyncArray) ToGetExpressSyncsSyncArrayOutputWithContext(ctx context.Context) GetExpressSyncsSyncArrayOutput

type GetExpressSyncsSyncArrayInput

type GetExpressSyncsSyncArrayInput interface {
	pulumi.Input

	ToGetExpressSyncsSyncArrayOutput() GetExpressSyncsSyncArrayOutput
	ToGetExpressSyncsSyncArrayOutputWithContext(context.Context) GetExpressSyncsSyncArrayOutput
}

GetExpressSyncsSyncArrayInput is an input type that accepts GetExpressSyncsSyncArray and GetExpressSyncsSyncArrayOutput values. You can construct a concrete instance of `GetExpressSyncsSyncArrayInput` via:

GetExpressSyncsSyncArray{ GetExpressSyncsSyncArgs{...} }

type GetExpressSyncsSyncArrayOutput

type GetExpressSyncsSyncArrayOutput struct{ *pulumi.OutputState }

func (GetExpressSyncsSyncArrayOutput) ElementType

func (GetExpressSyncsSyncArrayOutput) Index

func (GetExpressSyncsSyncArrayOutput) ToGetExpressSyncsSyncArrayOutput

func (o GetExpressSyncsSyncArrayOutput) ToGetExpressSyncsSyncArrayOutput() GetExpressSyncsSyncArrayOutput

func (GetExpressSyncsSyncArrayOutput) ToGetExpressSyncsSyncArrayOutputWithContext

func (o GetExpressSyncsSyncArrayOutput) ToGetExpressSyncsSyncArrayOutputWithContext(ctx context.Context) GetExpressSyncsSyncArrayOutput

type GetExpressSyncsSyncInput

type GetExpressSyncsSyncInput interface {
	pulumi.Input

	ToGetExpressSyncsSyncOutput() GetExpressSyncsSyncOutput
	ToGetExpressSyncsSyncOutputWithContext(context.Context) GetExpressSyncsSyncOutput
}

GetExpressSyncsSyncInput is an input type that accepts GetExpressSyncsSyncArgs and GetExpressSyncsSyncOutput values. You can construct a concrete instance of `GetExpressSyncsSyncInput` via:

GetExpressSyncsSyncArgs{...}

type GetExpressSyncsSyncOutput

type GetExpressSyncsSyncOutput struct{ *pulumi.OutputState }

func (GetExpressSyncsSyncOutput) BucketName

The name of the OSS Bucket.

func (GetExpressSyncsSyncOutput) BucketPrefix

The prefix of the OSS Bucket.

func (GetExpressSyncsSyncOutput) BucketRegion

The region of the OSS Bucket.

func (GetExpressSyncsSyncOutput) Description

The description of the Express Sync.

func (GetExpressSyncsSyncOutput) ElementType

func (GetExpressSyncsSyncOutput) ElementType() reflect.Type

func (GetExpressSyncsSyncOutput) ExpressSyncId

func (o GetExpressSyncsSyncOutput) ExpressSyncId() pulumi.StringOutput

The ID of the Express Sync.

func (GetExpressSyncsSyncOutput) ExpressSyncName

func (o GetExpressSyncsSyncOutput) ExpressSyncName() pulumi.StringOutput

The name of the Express Sync.

func (GetExpressSyncsSyncOutput) Id

func (GetExpressSyncsSyncOutput) MnsTopic

The name of the message topic (Topic) corresponding to the Express Sync in the Alibaba Cloud Message Service MNS.

func (GetExpressSyncsSyncOutput) ToGetExpressSyncsSyncOutput

func (o GetExpressSyncsSyncOutput) ToGetExpressSyncsSyncOutput() GetExpressSyncsSyncOutput

func (GetExpressSyncsSyncOutput) ToGetExpressSyncsSyncOutputWithContext

func (o GetExpressSyncsSyncOutput) ToGetExpressSyncsSyncOutputWithContext(ctx context.Context) GetExpressSyncsSyncOutput

type GetGatewayBlockVolumesArgs

type GetGatewayBlockVolumesArgs struct {
	// The Gateway ID.
	GatewayId string `pulumi:"gatewayId"`
	// A list of Gateway Block Volume IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Gateway Block Volume name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The status of volume.
	Status *int `pulumi:"status"`
}

A collection of arguments for invoking getGatewayBlockVolumes.

type GetGatewayBlockVolumesOutputArgs

type GetGatewayBlockVolumesOutputArgs struct {
	// The Gateway ID.
	GatewayId pulumi.StringInput `pulumi:"gatewayId"`
	// A list of Gateway Block Volume IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Gateway Block Volume name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The status of volume.
	Status pulumi.IntPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getGatewayBlockVolumes.

func (GetGatewayBlockVolumesOutputArgs) ElementType

type GetGatewayBlockVolumesResult

type GetGatewayBlockVolumesResult struct {
	GatewayId string `pulumi:"gatewayId"`
	// The provider-assigned unique ID for this managed resource.
	Id         string                         `pulumi:"id"`
	Ids        []string                       `pulumi:"ids"`
	NameRegex  *string                        `pulumi:"nameRegex"`
	Names      []string                       `pulumi:"names"`
	OutputFile *string                        `pulumi:"outputFile"`
	Status     *int                           `pulumi:"status"`
	Volumes    []GetGatewayBlockVolumesVolume `pulumi:"volumes"`
}

A collection of values returned by getGatewayBlockVolumes.

func GetGatewayBlockVolumes

func GetGatewayBlockVolumes(ctx *pulumi.Context, args *GetGatewayBlockVolumesArgs, opts ...pulumi.InvokeOption) (*GetGatewayBlockVolumesResult, error)

This data source provides the Cloud Storage Gateway Gateway Block Volumes of the current Alibaba Cloud user.

> **NOTE:** Available in v1.144.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := cloudstoragegateway.GetGatewayBlockVolumes(ctx, &cloudstoragegateway.GetGatewayBlockVolumesArgs{
			GatewayId: "example_value",
			Ids: []string{
				"example_value-1",
				"example_value-2",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("cloudStorageGatewayGatewayBlockVolumeId1", ids.Volumes[0].Id)
		nameRegex, err := cloudstoragegateway.GetGatewayBlockVolumes(ctx, &cloudstoragegateway.GetGatewayBlockVolumesArgs{
			GatewayId: "example_value",
			NameRegex: pulumi.StringRef("^my-GatewayBlockVolume"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("cloudStorageGatewayGatewayBlockVolumeId2", nameRegex.Volumes[0].Id)
		return nil
	})
}

```

type GetGatewayBlockVolumesResultOutput

type GetGatewayBlockVolumesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getGatewayBlockVolumes.

func (GetGatewayBlockVolumesResultOutput) ElementType

func (GetGatewayBlockVolumesResultOutput) GatewayId

func (GetGatewayBlockVolumesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetGatewayBlockVolumesResultOutput) Ids

func (GetGatewayBlockVolumesResultOutput) NameRegex

func (GetGatewayBlockVolumesResultOutput) Names

func (GetGatewayBlockVolumesResultOutput) OutputFile

func (GetGatewayBlockVolumesResultOutput) Status

func (GetGatewayBlockVolumesResultOutput) ToGetGatewayBlockVolumesResultOutput

func (o GetGatewayBlockVolumesResultOutput) ToGetGatewayBlockVolumesResultOutput() GetGatewayBlockVolumesResultOutput

func (GetGatewayBlockVolumesResultOutput) ToGetGatewayBlockVolumesResultOutputWithContext

func (o GetGatewayBlockVolumesResultOutput) ToGetGatewayBlockVolumesResultOutputWithContext(ctx context.Context) GetGatewayBlockVolumesResultOutput

func (GetGatewayBlockVolumesResultOutput) Volumes

type GetGatewayBlockVolumesVolume

type GetGatewayBlockVolumesVolume struct {
	// The IP ADDRESS.
	Address string `pulumi:"address"`
	// The Block volume set mode to cache mode. Valid values: `Cache`, `WriteThrough`.
	CacheMode string `pulumi:"cacheMode"`
	// Whether to enable iSCSI access of CHAP authentication, which currently supports both CHAP inbound authentication.  Default value: `false`.
	ChapEnabled bool `pulumi:"chapEnabled"`
	// The Inbound CHAP user.**NOTE:** When the `chapEnabled` is  `true` is,The `chapInPassword` is valid.
	ChapInUser string `pulumi:"chapInUser"`
	// The Block volume storage allocation unit.  Valid values: `8192`, `16384`, `32768`, `65536`, `131072`. Default value: `32768`. Unit: `Byte`.
	ChunkSize int `pulumi:"chunkSize"`
	// The cache disk ID.
	DiskId string `pulumi:"diskId"`
	// The cache disk type.
	DiskType string `pulumi:"diskType"`
	// Whether to enable Volume.
	Enabled bool `pulumi:"enabled"`
	// The Block volume name.  The name must be 1 to 32 characters in length, and can contain lowercase letters, numbers.
	GatewayBlockVolumeName string `pulumi:"gatewayBlockVolumeName"`
	// The Gateway ID.
	GatewayId string `pulumi:"gatewayId"`
	// The ID of the Gateway Block Volume. The value formats as `<gateway_id>:<index_id>`.
	Id string `pulumi:"id"`
	// The ID of the index.
	IndexId string `pulumi:"indexId"`
	// CThe Cache disk to local path. **NOTE:**  When the `cacheMode` is  `Cache` is,The `chapInPassword` is valid.
	LocalPath string `pulumi:"localPath"`
	// The Lun identifier.
	LunId int `pulumi:"lunId"`
	// The name of the OSS Bucket.
	OssBucketName string `pulumi:"ossBucketName"`
	// Whether to enable SSL access your OSS Buckets. Default value: `true`.
	OssBucketSsl bool `pulumi:"ossBucketSsl"`
	// The endpoint of the OSS Bucket.
	OssEndpoint string `pulumi:"ossEndpoint"`
	// The Port.
	Port int `pulumi:"port"`
	// The Protocol.
	Protocol string `pulumi:"protocol"`
	// The Volume size.
	Size int `pulumi:"size"`
	// The Buffer status.
	State string `pulumi:"state"`
	// The status of volume.
	Status int `pulumi:"status"`
	// The target.
	Target string `pulumi:"target"`
	// The total amount of downloaded data. Unit: `B`.
	TotalDownload int `pulumi:"totalDownload"`
	// The total amount of uploaded data. Unit: `B`.
	TotalUpload int `pulumi:"totalUpload"`
	VolumeState int `pulumi:"volumeState"`
}

type GetGatewayBlockVolumesVolumeArgs

type GetGatewayBlockVolumesVolumeArgs struct {
	// The IP ADDRESS.
	Address pulumi.StringInput `pulumi:"address"`
	// The Block volume set mode to cache mode. Valid values: `Cache`, `WriteThrough`.
	CacheMode pulumi.StringInput `pulumi:"cacheMode"`
	// Whether to enable iSCSI access of CHAP authentication, which currently supports both CHAP inbound authentication.  Default value: `false`.
	ChapEnabled pulumi.BoolInput `pulumi:"chapEnabled"`
	// The Inbound CHAP user.**NOTE:** When the `chapEnabled` is  `true` is,The `chapInPassword` is valid.
	ChapInUser pulumi.StringInput `pulumi:"chapInUser"`
	// The Block volume storage allocation unit.  Valid values: `8192`, `16384`, `32768`, `65536`, `131072`. Default value: `32768`. Unit: `Byte`.
	ChunkSize pulumi.IntInput `pulumi:"chunkSize"`
	// The cache disk ID.
	DiskId pulumi.StringInput `pulumi:"diskId"`
	// The cache disk type.
	DiskType pulumi.StringInput `pulumi:"diskType"`
	// Whether to enable Volume.
	Enabled pulumi.BoolInput `pulumi:"enabled"`
	// The Block volume name.  The name must be 1 to 32 characters in length, and can contain lowercase letters, numbers.
	GatewayBlockVolumeName pulumi.StringInput `pulumi:"gatewayBlockVolumeName"`
	// The Gateway ID.
	GatewayId pulumi.StringInput `pulumi:"gatewayId"`
	// The ID of the Gateway Block Volume. The value formats as `<gateway_id>:<index_id>`.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of the index.
	IndexId pulumi.StringInput `pulumi:"indexId"`
	// CThe Cache disk to local path. **NOTE:**  When the `cacheMode` is  `Cache` is,The `chapInPassword` is valid.
	LocalPath pulumi.StringInput `pulumi:"localPath"`
	// The Lun identifier.
	LunId pulumi.IntInput `pulumi:"lunId"`
	// The name of the OSS Bucket.
	OssBucketName pulumi.StringInput `pulumi:"ossBucketName"`
	// Whether to enable SSL access your OSS Buckets. Default value: `true`.
	OssBucketSsl pulumi.BoolInput `pulumi:"ossBucketSsl"`
	// The endpoint of the OSS Bucket.
	OssEndpoint pulumi.StringInput `pulumi:"ossEndpoint"`
	// The Port.
	Port pulumi.IntInput `pulumi:"port"`
	// The Protocol.
	Protocol pulumi.StringInput `pulumi:"protocol"`
	// The Volume size.
	Size pulumi.IntInput `pulumi:"size"`
	// The Buffer status.
	State pulumi.StringInput `pulumi:"state"`
	// The status of volume.
	Status pulumi.IntInput `pulumi:"status"`
	// The target.
	Target pulumi.StringInput `pulumi:"target"`
	// The total amount of downloaded data. Unit: `B`.
	TotalDownload pulumi.IntInput `pulumi:"totalDownload"`
	// The total amount of uploaded data. Unit: `B`.
	TotalUpload pulumi.IntInput `pulumi:"totalUpload"`
	VolumeState pulumi.IntInput `pulumi:"volumeState"`
}

func (GetGatewayBlockVolumesVolumeArgs) ElementType

func (GetGatewayBlockVolumesVolumeArgs) ToGetGatewayBlockVolumesVolumeOutput

func (i GetGatewayBlockVolumesVolumeArgs) ToGetGatewayBlockVolumesVolumeOutput() GetGatewayBlockVolumesVolumeOutput

func (GetGatewayBlockVolumesVolumeArgs) ToGetGatewayBlockVolumesVolumeOutputWithContext

func (i GetGatewayBlockVolumesVolumeArgs) ToGetGatewayBlockVolumesVolumeOutputWithContext(ctx context.Context) GetGatewayBlockVolumesVolumeOutput

type GetGatewayBlockVolumesVolumeArray

type GetGatewayBlockVolumesVolumeArray []GetGatewayBlockVolumesVolumeInput

func (GetGatewayBlockVolumesVolumeArray) ElementType

func (GetGatewayBlockVolumesVolumeArray) ToGetGatewayBlockVolumesVolumeArrayOutput

func (i GetGatewayBlockVolumesVolumeArray) ToGetGatewayBlockVolumesVolumeArrayOutput() GetGatewayBlockVolumesVolumeArrayOutput

func (GetGatewayBlockVolumesVolumeArray) ToGetGatewayBlockVolumesVolumeArrayOutputWithContext

func (i GetGatewayBlockVolumesVolumeArray) ToGetGatewayBlockVolumesVolumeArrayOutputWithContext(ctx context.Context) GetGatewayBlockVolumesVolumeArrayOutput

type GetGatewayBlockVolumesVolumeArrayInput

type GetGatewayBlockVolumesVolumeArrayInput interface {
	pulumi.Input

	ToGetGatewayBlockVolumesVolumeArrayOutput() GetGatewayBlockVolumesVolumeArrayOutput
	ToGetGatewayBlockVolumesVolumeArrayOutputWithContext(context.Context) GetGatewayBlockVolumesVolumeArrayOutput
}

GetGatewayBlockVolumesVolumeArrayInput is an input type that accepts GetGatewayBlockVolumesVolumeArray and GetGatewayBlockVolumesVolumeArrayOutput values. You can construct a concrete instance of `GetGatewayBlockVolumesVolumeArrayInput` via:

GetGatewayBlockVolumesVolumeArray{ GetGatewayBlockVolumesVolumeArgs{...} }

type GetGatewayBlockVolumesVolumeArrayOutput

type GetGatewayBlockVolumesVolumeArrayOutput struct{ *pulumi.OutputState }

func (GetGatewayBlockVolumesVolumeArrayOutput) ElementType

func (GetGatewayBlockVolumesVolumeArrayOutput) Index

func (GetGatewayBlockVolumesVolumeArrayOutput) ToGetGatewayBlockVolumesVolumeArrayOutput

func (o GetGatewayBlockVolumesVolumeArrayOutput) ToGetGatewayBlockVolumesVolumeArrayOutput() GetGatewayBlockVolumesVolumeArrayOutput

func (GetGatewayBlockVolumesVolumeArrayOutput) ToGetGatewayBlockVolumesVolumeArrayOutputWithContext

func (o GetGatewayBlockVolumesVolumeArrayOutput) ToGetGatewayBlockVolumesVolumeArrayOutputWithContext(ctx context.Context) GetGatewayBlockVolumesVolumeArrayOutput

type GetGatewayBlockVolumesVolumeInput

type GetGatewayBlockVolumesVolumeInput interface {
	pulumi.Input

	ToGetGatewayBlockVolumesVolumeOutput() GetGatewayBlockVolumesVolumeOutput
	ToGetGatewayBlockVolumesVolumeOutputWithContext(context.Context) GetGatewayBlockVolumesVolumeOutput
}

GetGatewayBlockVolumesVolumeInput is an input type that accepts GetGatewayBlockVolumesVolumeArgs and GetGatewayBlockVolumesVolumeOutput values. You can construct a concrete instance of `GetGatewayBlockVolumesVolumeInput` via:

GetGatewayBlockVolumesVolumeArgs{...}

type GetGatewayBlockVolumesVolumeOutput

type GetGatewayBlockVolumesVolumeOutput struct{ *pulumi.OutputState }

func (GetGatewayBlockVolumesVolumeOutput) Address

The IP ADDRESS.

func (GetGatewayBlockVolumesVolumeOutput) CacheMode

The Block volume set mode to cache mode. Valid values: `Cache`, `WriteThrough`.

func (GetGatewayBlockVolumesVolumeOutput) ChapEnabled

Whether to enable iSCSI access of CHAP authentication, which currently supports both CHAP inbound authentication. Default value: `false`.

func (GetGatewayBlockVolumesVolumeOutput) ChapInUser

The Inbound CHAP user.**NOTE:** When the `chapEnabled` is `true` is,The `chapInPassword` is valid.

func (GetGatewayBlockVolumesVolumeOutput) ChunkSize

The Block volume storage allocation unit. Valid values: `8192`, `16384`, `32768`, `65536`, `131072`. Default value: `32768`. Unit: `Byte`.

func (GetGatewayBlockVolumesVolumeOutput) DiskId

The cache disk ID.

func (GetGatewayBlockVolumesVolumeOutput) DiskType

The cache disk type.

func (GetGatewayBlockVolumesVolumeOutput) ElementType

func (GetGatewayBlockVolumesVolumeOutput) Enabled

Whether to enable Volume.

func (GetGatewayBlockVolumesVolumeOutput) GatewayBlockVolumeName

func (o GetGatewayBlockVolumesVolumeOutput) GatewayBlockVolumeName() pulumi.StringOutput

The Block volume name. The name must be 1 to 32 characters in length, and can contain lowercase letters, numbers.

func (GetGatewayBlockVolumesVolumeOutput) GatewayId

The Gateway ID.

func (GetGatewayBlockVolumesVolumeOutput) Id

The ID of the Gateway Block Volume. The value formats as `<gateway_id>:<index_id>`.

func (GetGatewayBlockVolumesVolumeOutput) IndexId

The ID of the index.

func (GetGatewayBlockVolumesVolumeOutput) LocalPath

CThe Cache disk to local path. **NOTE:** When the `cacheMode` is `Cache` is,The `chapInPassword` is valid.

func (GetGatewayBlockVolumesVolumeOutput) LunId

The Lun identifier.

func (GetGatewayBlockVolumesVolumeOutput) OssBucketName

The name of the OSS Bucket.

func (GetGatewayBlockVolumesVolumeOutput) OssBucketSsl

Whether to enable SSL access your OSS Buckets. Default value: `true`.

func (GetGatewayBlockVolumesVolumeOutput) OssEndpoint

The endpoint of the OSS Bucket.

func (GetGatewayBlockVolumesVolumeOutput) Port

The Port.

func (GetGatewayBlockVolumesVolumeOutput) Protocol

The Protocol.

func (GetGatewayBlockVolumesVolumeOutput) Size

The Volume size.

func (GetGatewayBlockVolumesVolumeOutput) State

The Buffer status.

func (GetGatewayBlockVolumesVolumeOutput) Status

The status of volume.

func (GetGatewayBlockVolumesVolumeOutput) Target

The target.

func (GetGatewayBlockVolumesVolumeOutput) ToGetGatewayBlockVolumesVolumeOutput

func (o GetGatewayBlockVolumesVolumeOutput) ToGetGatewayBlockVolumesVolumeOutput() GetGatewayBlockVolumesVolumeOutput

func (GetGatewayBlockVolumesVolumeOutput) ToGetGatewayBlockVolumesVolumeOutputWithContext

func (o GetGatewayBlockVolumesVolumeOutput) ToGetGatewayBlockVolumesVolumeOutputWithContext(ctx context.Context) GetGatewayBlockVolumesVolumeOutput

func (GetGatewayBlockVolumesVolumeOutput) TotalDownload

The total amount of downloaded data. Unit: `B`.

func (GetGatewayBlockVolumesVolumeOutput) TotalUpload

The total amount of uploaded data. Unit: `B`.

func (GetGatewayBlockVolumesVolumeOutput) VolumeState

type GetGatewayCacheDisksArgs

type GetGatewayCacheDisksArgs struct {
	// The ID of the gateway.
	GatewayId string `pulumi:"gatewayId"`
	// A list of Gateway Cache Disk IDs.
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	// The status of the resource.
	Status *int `pulumi:"status"`
}

A collection of arguments for invoking getGatewayCacheDisks.

type GetGatewayCacheDisksDisk

type GetGatewayCacheDisksDisk struct {
	// The category of eht cache disk.
	CacheDiskCategory string `pulumi:"cacheDiskCategory"`
	// The size of the cache disk.
	CacheDiskSizeInGb int `pulumi:"cacheDiskSizeInGb"`
	// The ID of the cache disk.
	CacheId string `pulumi:"cacheId"`
	// The expiration time. Time stamp in seconds (s).
	ExpiredTime int `pulumi:"expiredTime"`
	// The ID of the gateway.
	GatewayId string `pulumi:"gatewayId"`
	// The ID of the Gateway Cache Disk.
	Id string `pulumi:"id"`
	// Per second of the input output.
	Iops int `pulumi:"iops"`
	// Whether it is used.
	IsUsed bool `pulumi:"isUsed"`
	// The cache disk inside the device name.
	LocalFilePath string `pulumi:"localFilePath"`
	// A renewal link of the cache disk.
	RenewUrl string `pulumi:"renewUrl"`
	// The status of the resource.
	Status int `pulumi:"status"`
}

type GetGatewayCacheDisksDiskArgs

type GetGatewayCacheDisksDiskArgs struct {
	// The category of eht cache disk.
	CacheDiskCategory pulumi.StringInput `pulumi:"cacheDiskCategory"`
	// The size of the cache disk.
	CacheDiskSizeInGb pulumi.IntInput `pulumi:"cacheDiskSizeInGb"`
	// The ID of the cache disk.
	CacheId pulumi.StringInput `pulumi:"cacheId"`
	// The expiration time. Time stamp in seconds (s).
	ExpiredTime pulumi.IntInput `pulumi:"expiredTime"`
	// The ID of the gateway.
	GatewayId pulumi.StringInput `pulumi:"gatewayId"`
	// The ID of the Gateway Cache Disk.
	Id pulumi.StringInput `pulumi:"id"`
	// Per second of the input output.
	Iops pulumi.IntInput `pulumi:"iops"`
	// Whether it is used.
	IsUsed pulumi.BoolInput `pulumi:"isUsed"`
	// The cache disk inside the device name.
	LocalFilePath pulumi.StringInput `pulumi:"localFilePath"`
	// A renewal link of the cache disk.
	RenewUrl pulumi.StringInput `pulumi:"renewUrl"`
	// The status of the resource.
	Status pulumi.IntInput `pulumi:"status"`
}

func (GetGatewayCacheDisksDiskArgs) ElementType

func (GetGatewayCacheDisksDiskArgs) ToGetGatewayCacheDisksDiskOutput

func (i GetGatewayCacheDisksDiskArgs) ToGetGatewayCacheDisksDiskOutput() GetGatewayCacheDisksDiskOutput

func (GetGatewayCacheDisksDiskArgs) ToGetGatewayCacheDisksDiskOutputWithContext

func (i GetGatewayCacheDisksDiskArgs) ToGetGatewayCacheDisksDiskOutputWithContext(ctx context.Context) GetGatewayCacheDisksDiskOutput

type GetGatewayCacheDisksDiskArray

type GetGatewayCacheDisksDiskArray []GetGatewayCacheDisksDiskInput

func (GetGatewayCacheDisksDiskArray) ElementType

func (GetGatewayCacheDisksDiskArray) ToGetGatewayCacheDisksDiskArrayOutput

func (i GetGatewayCacheDisksDiskArray) ToGetGatewayCacheDisksDiskArrayOutput() GetGatewayCacheDisksDiskArrayOutput

func (GetGatewayCacheDisksDiskArray) ToGetGatewayCacheDisksDiskArrayOutputWithContext

func (i GetGatewayCacheDisksDiskArray) ToGetGatewayCacheDisksDiskArrayOutputWithContext(ctx context.Context) GetGatewayCacheDisksDiskArrayOutput

type GetGatewayCacheDisksDiskArrayInput

type GetGatewayCacheDisksDiskArrayInput interface {
	pulumi.Input

	ToGetGatewayCacheDisksDiskArrayOutput() GetGatewayCacheDisksDiskArrayOutput
	ToGetGatewayCacheDisksDiskArrayOutputWithContext(context.Context) GetGatewayCacheDisksDiskArrayOutput
}

GetGatewayCacheDisksDiskArrayInput is an input type that accepts GetGatewayCacheDisksDiskArray and GetGatewayCacheDisksDiskArrayOutput values. You can construct a concrete instance of `GetGatewayCacheDisksDiskArrayInput` via:

GetGatewayCacheDisksDiskArray{ GetGatewayCacheDisksDiskArgs{...} }

type GetGatewayCacheDisksDiskArrayOutput

type GetGatewayCacheDisksDiskArrayOutput struct{ *pulumi.OutputState }

func (GetGatewayCacheDisksDiskArrayOutput) ElementType

func (GetGatewayCacheDisksDiskArrayOutput) Index

func (GetGatewayCacheDisksDiskArrayOutput) ToGetGatewayCacheDisksDiskArrayOutput

func (o GetGatewayCacheDisksDiskArrayOutput) ToGetGatewayCacheDisksDiskArrayOutput() GetGatewayCacheDisksDiskArrayOutput

func (GetGatewayCacheDisksDiskArrayOutput) ToGetGatewayCacheDisksDiskArrayOutputWithContext

func (o GetGatewayCacheDisksDiskArrayOutput) ToGetGatewayCacheDisksDiskArrayOutputWithContext(ctx context.Context) GetGatewayCacheDisksDiskArrayOutput

type GetGatewayCacheDisksDiskInput

type GetGatewayCacheDisksDiskInput interface {
	pulumi.Input

	ToGetGatewayCacheDisksDiskOutput() GetGatewayCacheDisksDiskOutput
	ToGetGatewayCacheDisksDiskOutputWithContext(context.Context) GetGatewayCacheDisksDiskOutput
}

GetGatewayCacheDisksDiskInput is an input type that accepts GetGatewayCacheDisksDiskArgs and GetGatewayCacheDisksDiskOutput values. You can construct a concrete instance of `GetGatewayCacheDisksDiskInput` via:

GetGatewayCacheDisksDiskArgs{...}

type GetGatewayCacheDisksDiskOutput

type GetGatewayCacheDisksDiskOutput struct{ *pulumi.OutputState }

func (GetGatewayCacheDisksDiskOutput) CacheDiskCategory

func (o GetGatewayCacheDisksDiskOutput) CacheDiskCategory() pulumi.StringOutput

The category of eht cache disk.

func (GetGatewayCacheDisksDiskOutput) CacheDiskSizeInGb

func (o GetGatewayCacheDisksDiskOutput) CacheDiskSizeInGb() pulumi.IntOutput

The size of the cache disk.

func (GetGatewayCacheDisksDiskOutput) CacheId

The ID of the cache disk.

func (GetGatewayCacheDisksDiskOutput) ElementType

func (GetGatewayCacheDisksDiskOutput) ExpiredTime

The expiration time. Time stamp in seconds (s).

func (GetGatewayCacheDisksDiskOutput) GatewayId

The ID of the gateway.

func (GetGatewayCacheDisksDiskOutput) Id

The ID of the Gateway Cache Disk.

func (GetGatewayCacheDisksDiskOutput) Iops

Per second of the input output.

func (GetGatewayCacheDisksDiskOutput) IsUsed

Whether it is used.

func (GetGatewayCacheDisksDiskOutput) LocalFilePath

The cache disk inside the device name.

func (GetGatewayCacheDisksDiskOutput) RenewUrl

A renewal link of the cache disk.

func (GetGatewayCacheDisksDiskOutput) Status

The status of the resource.

func (GetGatewayCacheDisksDiskOutput) ToGetGatewayCacheDisksDiskOutput

func (o GetGatewayCacheDisksDiskOutput) ToGetGatewayCacheDisksDiskOutput() GetGatewayCacheDisksDiskOutput

func (GetGatewayCacheDisksDiskOutput) ToGetGatewayCacheDisksDiskOutputWithContext

func (o GetGatewayCacheDisksDiskOutput) ToGetGatewayCacheDisksDiskOutputWithContext(ctx context.Context) GetGatewayCacheDisksDiskOutput

type GetGatewayCacheDisksOutputArgs

type GetGatewayCacheDisksOutputArgs struct {
	// The ID of the gateway.
	GatewayId pulumi.StringInput `pulumi:"gatewayId"`
	// A list of Gateway Cache Disk IDs.
	Ids        pulumi.StringArrayInput `pulumi:"ids"`
	OutputFile pulumi.StringPtrInput   `pulumi:"outputFile"`
	// The status of the resource.
	Status pulumi.IntPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getGatewayCacheDisks.

func (GetGatewayCacheDisksOutputArgs) ElementType

type GetGatewayCacheDisksResult

type GetGatewayCacheDisksResult struct {
	Disks     []GetGatewayCacheDisksDisk `pulumi:"disks"`
	GatewayId string                     `pulumi:"gatewayId"`
	// The provider-assigned unique ID for this managed resource.
	Id         string   `pulumi:"id"`
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	Status     *int     `pulumi:"status"`
}

A collection of values returned by getGatewayCacheDisks.

func GetGatewayCacheDisks

func GetGatewayCacheDisks(ctx *pulumi.Context, args *GetGatewayCacheDisksArgs, opts ...pulumi.InvokeOption) (*GetGatewayCacheDisksResult, error)

This data source provides the Cloud Storage Gateway Gateway Cache Disks of the current Alibaba Cloud user.

> **NOTE:** Available in v1.144.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := cloudstoragegateway.GetGatewayCacheDisks(ctx, &cloudstoragegateway.GetGatewayCacheDisksArgs{
			GatewayId: "example_value",
			Ids: []string{
				"example_value-1",
				"example_value-2",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("cloudStorageGatewayGatewayCacheDiskId1", ids.Disks[0].Id)
		status, err := cloudstoragegateway.GetGatewayCacheDisks(ctx, &cloudstoragegateway.GetGatewayCacheDisksArgs{
			GatewayId: "example_value",
			Ids: []string{
				"example_value-1",
				"example_value-2",
			},
			Status: pulumi.IntRef(0),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("cloudStorageGatewayGatewayCacheDiskId2", status.Disks[0].Id)
		return nil
	})
}

```

type GetGatewayCacheDisksResultOutput

type GetGatewayCacheDisksResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getGatewayCacheDisks.

func (GetGatewayCacheDisksResultOutput) Disks

func (GetGatewayCacheDisksResultOutput) ElementType

func (GetGatewayCacheDisksResultOutput) GatewayId

func (GetGatewayCacheDisksResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetGatewayCacheDisksResultOutput) Ids

func (GetGatewayCacheDisksResultOutput) OutputFile

func (GetGatewayCacheDisksResultOutput) Status

func (GetGatewayCacheDisksResultOutput) ToGetGatewayCacheDisksResultOutput

func (o GetGatewayCacheDisksResultOutput) ToGetGatewayCacheDisksResultOutput() GetGatewayCacheDisksResultOutput

func (GetGatewayCacheDisksResultOutput) ToGetGatewayCacheDisksResultOutputWithContext

func (o GetGatewayCacheDisksResultOutput) ToGetGatewayCacheDisksResultOutputWithContext(ctx context.Context) GetGatewayCacheDisksResultOutput

type GetGatewayFileSharesArgs

type GetGatewayFileSharesArgs struct {
	// The ID of the gateway.
	GatewayId string `pulumi:"gatewayId"`
	// A list of Gateway File Share IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Gateway File Share name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getGatewayFileShares.

type GetGatewayFileSharesOutputArgs

type GetGatewayFileSharesOutputArgs struct {
	// The ID of the gateway.
	GatewayId pulumi.StringInput `pulumi:"gatewayId"`
	// A list of Gateway File Share IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Gateway File Share name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getGatewayFileShares.

func (GetGatewayFileSharesOutputArgs) ElementType

type GetGatewayFileSharesResult

type GetGatewayFileSharesResult struct {
	GatewayId string `pulumi:"gatewayId"`
	// The provider-assigned unique ID for this managed resource.
	Id         string                      `pulumi:"id"`
	Ids        []string                    `pulumi:"ids"`
	NameRegex  *string                     `pulumi:"nameRegex"`
	Names      []string                    `pulumi:"names"`
	OutputFile *string                     `pulumi:"outputFile"`
	Shares     []GetGatewayFileSharesShare `pulumi:"shares"`
}

A collection of values returned by getGatewayFileShares.

func GetGatewayFileShares

func GetGatewayFileShares(ctx *pulumi.Context, args *GetGatewayFileSharesArgs, opts ...pulumi.InvokeOption) (*GetGatewayFileSharesResult, error)

This data source provides the Cloud Storage Gateway Gateway File Shares of the current Alibaba Cloud user.

> **NOTE:** Available in v1.144.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := cloudstoragegateway.GetGatewayFileShares(ctx, &cloudstoragegateway.GetGatewayFileSharesArgs{
			GatewayId: "example_value",
			Ids: []string{
				"example_value-1",
				"example_value-2",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("cloudStorageGatewayGatewayFileShareId1", ids.Shares[0].Id)
		nameRegex, err := cloudstoragegateway.GetGatewayFileShares(ctx, &cloudstoragegateway.GetGatewayFileSharesArgs{
			GatewayId: "example_value",
			NameRegex: pulumi.StringRef("^my-GatewayFileShare"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("cloudStorageGatewayGatewayFileShareId2", nameRegex.Shares[0].Id)
		return nil
	})
}

```

type GetGatewayFileSharesResultOutput

type GetGatewayFileSharesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getGatewayFileShares.

func (GetGatewayFileSharesResultOutput) ElementType

func (GetGatewayFileSharesResultOutput) GatewayId

func (GetGatewayFileSharesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetGatewayFileSharesResultOutput) Ids

func (GetGatewayFileSharesResultOutput) NameRegex

func (GetGatewayFileSharesResultOutput) Names

func (GetGatewayFileSharesResultOutput) OutputFile

func (GetGatewayFileSharesResultOutput) Shares

func (GetGatewayFileSharesResultOutput) ToGetGatewayFileSharesResultOutput

func (o GetGatewayFileSharesResultOutput) ToGetGatewayFileSharesResultOutput() GetGatewayFileSharesResultOutput

func (GetGatewayFileSharesResultOutput) ToGetGatewayFileSharesResultOutputWithContext

func (o GetGatewayFileSharesResultOutput) ToGetGatewayFileSharesResultOutputWithContext(ctx context.Context) GetGatewayFileSharesResultOutput

type GetGatewayFileSharesShare

type GetGatewayFileSharesShare struct {
	// The set up gateway file share Server Message Block (SMB) protocol, whether to enable Windows ABE, the prime minister, need windowsAcl parameter is set to true in the entry into force of. Default value: `false`. **NOTE:** Gateway version >= 1.0.45 above support.
	AccessBasedEnumeration bool `pulumi:"accessBasedEnumeration"`
	// Share the private IP address of the RDS instance.
	Address string `pulumi:"address"`
	// The set up gateway file share Max upload speed. Unit: `MB/s`, `0` means unlimited. Value range: `0` ~ `1280`. Default value: `0`. **NOTE:** at the same time if you have to limit the maximum write speed, maximum upload speed is no less than the maximum write speed.
	BackendLimit int `pulumi:"backendLimit"`
	// The set up gateway file share Server Message Block (SMB) protocol whether browsable (that is, in the network neighborhood of whether you can find). The parameters in the NFS protocol not valid under. Default value: `true`.
	Browsable bool `pulumi:"browsable"`
	// Multi-Bucket information.
	BucketInfos string `pulumi:"bucketInfos"`
	// Whether there are multiple buckets.
	BucketsStub bool `pulumi:"bucketsStub"`
	// Direct reading OSS of the gateway file share.
	BypassCacheRead bool `pulumi:"bypassCacheRead"`
	// The cache mode of the gateway file share. Value range: Cache: cached mode. Sync: replication mode are available.
	CacheMode string `pulumi:"cacheMode"`
	// File share is enabled to client-side encryption, the encryption by the use of the KMS key. **NOTE:** note: This KMS key must be the gateway and is in the same Region.
	ClientSideCmk string `pulumi:"clientSideCmk"`
	// Whether to enabled to client-side encryption of the gateway file share. Default value: `false`. **NOTE:** need to contact us open whitelist before you can the settings, and only supports enhanced more than online gateway, at the same time, server-side encryption and to client-side encryption can not simultaneously configuration.
	ClientSideEncryption bool `pulumi:"clientSideEncryption"`
	// Whether directio (direct I/O data transfer) is enabled for file share. Default: `false`.
	DirectIo bool `pulumi:"directIo"`
	// The ID of the disk.
	DiskId string `pulumi:"diskId"`
	// The cache disk type. Valid values: `cloudEfficiency`: Ultra cloud disk. `cloudSsd`:SSD cloud disk.
	DiskType string `pulumi:"diskType"`
	// The set up gateway file share maximum download speed. Unit: `MB/s`. `0` means unlimited. Value range: `0` ~ `1280`. **NOTE:** only in copy mode and enable download file data can be set. only when the shared opens the reverse synchronization or acceded to by the speed synchronization Group when, this parameter will not take effect. Gateway version >= 1.3.0 above support.
	DownloadLimit int `pulumi:"downloadLimit"`
	// Shared whether the changes take effect.
	Enabled bool `pulumi:"enabled"`
	// Speed synchronization group ID.
	ExpressSyncId string `pulumi:"expressSyncId"`
	// The set up gateway file share whether to enable Upload optimization, which is suitable for data pure backup migration scenarios. Default value: `false`. **NOTE:** Gateway version >= 1.0.39 above support.
	FastReclaim bool `pulumi:"fastReclaim"`
	// The set up gateway file share and the maximum write speed. Unit: `MB/s`, `0` means unlimited. Value range: `0` ~ `1280`. Default value: `0`.
	FeLimit int `pulumi:"feLimit"`
	// Supported by the file system file number.
	FileNumLimit string `pulumi:"fileNumLimit"`
	// File system capacity. Unit: `B`.
	FsSizeLimit string `pulumi:"fsSizeLimit"`
	// The name of the file share. Length from `1` to `255` characters can contain lowercase letters, digits, (.), (_) Or (-), at the same time, must start with a lowercase letter.
	GatewayFileShareName string `pulumi:"gatewayFileShareName"`
	// The ID of the gateway.
	GatewayId string `pulumi:"gatewayId"`
	// The ID of the Gateway File Share.
	Id string `pulumi:"id"`
	// Whether to ignore deleted of the gateway file share. After the opening of the Gateway side delete file or delete cloud (OSS) corresponding to the file. Default value: `false`. **NOTE:** Gateway version >= 1.0.40 above support.
	IgnoreDelete bool `pulumi:"ignoreDelete"`
	// Whether debris optimization of the gateway file share. Default value: `false`.
	InPlace bool `pulumi:"inPlace"`
	// Cache growth. Unit: `B/s`.
	InRate string `pulumi:"inRate"`
	// The ID of the file share.
	IndexId string `pulumi:"indexId"`
	// File share is enabled to client-side encryption, key rotation period of time. Seconds. 0 represents no rotation. Rotation of the value range: `3600` ~ `86400`. Default value: `0`.
	KmsRotatePeriod int `pulumi:"kmsRotatePeriod"`
	// The synchronization delay, I.e. gateway local cache sync to Alibaba Cloud Object Storage Service (oss) of the delay time. Unit: `Seconds`. Value range: `5` ~ `120`. Default value: `5`. **NOTE:** Gateway version >= 1.0.40 above support.
	LagPeriod string `pulumi:"lagPeriod"`
	// The cache disk inside the device name.
	LocalPath string `pulumi:"localPath"`
	// The messages from the queue health types. Valid values: `TopicAndQueueFailure`: A Message Queuing message theme can be accessed during the black hole period. `TopicFailure`: a message theme can be accessed during the black hole period. `MNSFullSyncInit`: full synchronization wait. `MNSFullSyncing`: full synchronization in progress. `QueueFailure`: a message queue can be accessed during the black hole period. `MNSNotEnabled`: Top speed synchronization is not enabled. `MNSHealthy`: sync fine.
	MnsHealth string `pulumi:"mnsHealth"`
	// The set up gateway file share NFS protocol, whether to enable NFS v4 optimization improve Mount Upload efficiency. Default value: `false`. **NOTE:** turns on after I will not support NFS v3 mount the filesystem on a. Gateway version >= 1.2.0 above support.
	NfsV4Optimization bool `pulumi:"nfsV4Optimization"`
	// Multi-Bucket, removing the Bucket.
	ObsoleteBuckets string `pulumi:"obsoleteBuckets"`
	// The name of the Bucket.
	OssBucketName string `pulumi:"ossBucketName"`
	// Whether they are using SSL connect to OSS Bucket.
	OssBucketSsl bool `pulumi:"ossBucketSsl"`
	// The set up gateway file share corresponds to the Object Storage SERVICE (OSS), Bucket Endpoint. **NOTE:** distinguish between intranet and internet Endpoint. We recommend that if the OSS Bucket and the gateway is in the same Region is use the RDS intranet IP Endpoint:oss-cn-hangzhou-internal.aliyuncs.com.
	OssEndpoint string `pulumi:"ossEndpoint"`
	// The OSS Bucket of type. Valid values: `BucketHealthy`: OSS connectivity. `BucketAccessDenied`: OBJECT STORAGE Service (OSS) access to an exception. `BucketMiscFailure`: OBJECT STORAGE Service (OSS) access to additional exception. `BucketNetworkFailure`: OBJECT STORAGE Service (OSS) access network an exception. `BucketNotExist`: OSS Bucket does not exist. `Nothing returns`: We may not have ever known existed.
	OssHealth string `pulumi:"ossHealth"`
	// For a cloud-based data is. Unit: `B`.
	OssUsed string `pulumi:"ossUsed"`
	// Upload speed. Unit: `B/s`.
	OutRate string `pulumi:"outRate"`
	// In part mode, the directory path group JSON format.
	PartialSyncPaths string `pulumi:"partialSyncPaths"`
	// The prefix of the OSS.
	PathPrefix string `pulumi:"pathPrefix"`
	// The reverse synchronization time intervals of the gateway file share. Value range: `15` ~ `36000`. **NOTE:** in copy mode + reverse synchronization is enabled Download file data, value range: `3600` ~ `36000`.
	PollingInterval int `pulumi:"pollingInterval"`
	// Share types. Valid values: `SMB`, `NFS`.
	Protocol string `pulumi:"protocol"`
	// You can use the metadata space. Unit: `B`.
	RemainingMetaSpace string `pulumi:"remainingMetaSpace"`
	// Whether to enable reverse synchronization of the gateway file share. Default value: `false`.
	RemoteSync bool `pulumi:"remoteSync"`
	// Copy mode, whether to download the file data. Default value: `false`. **NOTE:** only when the shared opens the reverse synchronization or acceded to by the speed synchronization group, this parameter will not take effect.
	RemoteSyncDownload bool `pulumi:"remoteSyncDownload"`
	// The read-only client list. When Protocol NFS is returned when the status is.
	RoClientList string `pulumi:"roClientList"`
	// The read-only client list. When Protocol for Server Message Block (SMB) to go back to.
	RoUserList string `pulumi:"roUserList"`
	// Read and write the client list. When Protocol NFS is returned when the status is.
	RwClientList string `pulumi:"rwClientList"`
	// Read-write user list. When Protocol for Server Message Block (SMB) to go back to.
	RwUserList string `pulumi:"rwUserList"`
	// File share is enabled server-side encryption, encryption used by the KMS key.
	ServerSideCmk string `pulumi:"serverSideCmk"`
	// If the OSS Bucket side encryption.
	ServerSideEncryption bool `pulumi:"serverSideEncryption"`
	// The caching capacity. Unit: `B`.
	Size string `pulumi:"size"`
	// The set up gateway file share NFS protocol user mapping. Valid values: `none`, `rootSquash`, `allSquash`, `allAnonymous`. Default value: `none`.
	Squash string `pulumi:"squash"`
	// File synchronization types. Valid values: `clean`, `dirty`. `clean`: synchronization is complete. `dirty`: synchronization has not been completed.
	State string `pulumi:"state"`
	// Whether to support the archive transparent read.
	SupportArchive bool `pulumi:"supportArchive"`
	// Full synchronization progress. When the share has been added for a synchronization group, the return parameters are valid, that shared full synchronization progress (0~100). `-2`: indicates that share the Gateway version does not support this feature. `-1`: the share does not occur full synchronization.
	SyncProgress int `pulumi:"syncProgress"`
	// The OSS Bucket to the Gateway total downloads. Unit: `B`.
	TotalDownload string `pulumi:"totalDownload"`
	// The OSS Bucket to the Gateway total Upload amount. Unit: `B`.
	TotalUpload string `pulumi:"totalUpload"`
	// The set up gateway file share whether to enable transmission acceleration needs corresponding OSS Bucket enabled transport acceleration. **NOTE:** Gateway version >= 1.3.0 above support.
	TransferAcceleration bool `pulumi:"transferAcceleration"`
	// Used cache. Unit: `B`.
	Used string `pulumi:"used"`
	// The set up gateway file share Server Message Block (SMB) protocol, whether to enable by Windows access list (requires AD domain) the permissions control. Default value: `false`. **NOTE:** Gateway version >= 1.0.45 above support.
	WindowsAcl bool `pulumi:"windowsAcl"`
}

type GetGatewayFileSharesShareArgs

type GetGatewayFileSharesShareArgs struct {
	// The set up gateway file share Server Message Block (SMB) protocol, whether to enable Windows ABE, the prime minister, need windowsAcl parameter is set to true in the entry into force of. Default value: `false`. **NOTE:** Gateway version >= 1.0.45 above support.
	AccessBasedEnumeration pulumi.BoolInput `pulumi:"accessBasedEnumeration"`
	// Share the private IP address of the RDS instance.
	Address pulumi.StringInput `pulumi:"address"`
	// The set up gateway file share Max upload speed. Unit: `MB/s`, `0` means unlimited. Value range: `0` ~ `1280`. Default value: `0`. **NOTE:** at the same time if you have to limit the maximum write speed, maximum upload speed is no less than the maximum write speed.
	BackendLimit pulumi.IntInput `pulumi:"backendLimit"`
	// The set up gateway file share Server Message Block (SMB) protocol whether browsable (that is, in the network neighborhood of whether you can find). The parameters in the NFS protocol not valid under. Default value: `true`.
	Browsable pulumi.BoolInput `pulumi:"browsable"`
	// Multi-Bucket information.
	BucketInfos pulumi.StringInput `pulumi:"bucketInfos"`
	// Whether there are multiple buckets.
	BucketsStub pulumi.BoolInput `pulumi:"bucketsStub"`
	// Direct reading OSS of the gateway file share.
	BypassCacheRead pulumi.BoolInput `pulumi:"bypassCacheRead"`
	// The cache mode of the gateway file share. Value range: Cache: cached mode. Sync: replication mode are available.
	CacheMode pulumi.StringInput `pulumi:"cacheMode"`
	// File share is enabled to client-side encryption, the encryption by the use of the KMS key. **NOTE:** note: This KMS key must be the gateway and is in the same Region.
	ClientSideCmk pulumi.StringInput `pulumi:"clientSideCmk"`
	// Whether to enabled to client-side encryption of the gateway file share. Default value: `false`. **NOTE:** need to contact us open whitelist before you can the settings, and only supports enhanced more than online gateway, at the same time, server-side encryption and to client-side encryption can not simultaneously configuration.
	ClientSideEncryption pulumi.BoolInput `pulumi:"clientSideEncryption"`
	// Whether directio (direct I/O data transfer) is enabled for file share. Default: `false`.
	DirectIo pulumi.BoolInput `pulumi:"directIo"`
	// The ID of the disk.
	DiskId pulumi.StringInput `pulumi:"diskId"`
	// The cache disk type. Valid values: `cloudEfficiency`: Ultra cloud disk. `cloudSsd`:SSD cloud disk.
	DiskType pulumi.StringInput `pulumi:"diskType"`
	// The set up gateway file share maximum download speed. Unit: `MB/s`. `0` means unlimited. Value range: `0` ~ `1280`. **NOTE:** only in copy mode and enable download file data can be set. only when the shared opens the reverse synchronization or acceded to by the speed synchronization Group when, this parameter will not take effect. Gateway version >= 1.3.0 above support.
	DownloadLimit pulumi.IntInput `pulumi:"downloadLimit"`
	// Shared whether the changes take effect.
	Enabled pulumi.BoolInput `pulumi:"enabled"`
	// Speed synchronization group ID.
	ExpressSyncId pulumi.StringInput `pulumi:"expressSyncId"`
	// The set up gateway file share whether to enable Upload optimization, which is suitable for data pure backup migration scenarios. Default value: `false`. **NOTE:** Gateway version >= 1.0.39 above support.
	FastReclaim pulumi.BoolInput `pulumi:"fastReclaim"`
	// The set up gateway file share and the maximum write speed. Unit: `MB/s`, `0` means unlimited. Value range: `0` ~ `1280`. Default value: `0`.
	FeLimit pulumi.IntInput `pulumi:"feLimit"`
	// Supported by the file system file number.
	FileNumLimit pulumi.StringInput `pulumi:"fileNumLimit"`
	// File system capacity. Unit: `B`.
	FsSizeLimit pulumi.StringInput `pulumi:"fsSizeLimit"`
	// The name of the file share. Length from `1` to `255` characters can contain lowercase letters, digits, (.), (_) Or (-), at the same time, must start with a lowercase letter.
	GatewayFileShareName pulumi.StringInput `pulumi:"gatewayFileShareName"`
	// The ID of the gateway.
	GatewayId pulumi.StringInput `pulumi:"gatewayId"`
	// The ID of the Gateway File Share.
	Id pulumi.StringInput `pulumi:"id"`
	// Whether to ignore deleted of the gateway file share. After the opening of the Gateway side delete file or delete cloud (OSS) corresponding to the file. Default value: `false`. **NOTE:** Gateway version >= 1.0.40 above support.
	IgnoreDelete pulumi.BoolInput `pulumi:"ignoreDelete"`
	// Whether debris optimization of the gateway file share. Default value: `false`.
	InPlace pulumi.BoolInput `pulumi:"inPlace"`
	// Cache growth. Unit: `B/s`.
	InRate pulumi.StringInput `pulumi:"inRate"`
	// The ID of the file share.
	IndexId pulumi.StringInput `pulumi:"indexId"`
	// File share is enabled to client-side encryption, key rotation period of time. Seconds. 0 represents no rotation. Rotation of the value range: `3600` ~ `86400`. Default value: `0`.
	KmsRotatePeriod pulumi.IntInput `pulumi:"kmsRotatePeriod"`
	// The synchronization delay, I.e. gateway local cache sync to Alibaba Cloud Object Storage Service (oss) of the delay time. Unit: `Seconds`. Value range: `5` ~ `120`. Default value: `5`. **NOTE:** Gateway version >= 1.0.40 above support.
	LagPeriod pulumi.StringInput `pulumi:"lagPeriod"`
	// The cache disk inside the device name.
	LocalPath pulumi.StringInput `pulumi:"localPath"`
	// The messages from the queue health types. Valid values: `TopicAndQueueFailure`: A Message Queuing message theme can be accessed during the black hole period. `TopicFailure`: a message theme can be accessed during the black hole period. `MNSFullSyncInit`: full synchronization wait. `MNSFullSyncing`: full synchronization in progress. `QueueFailure`: a message queue can be accessed during the black hole period. `MNSNotEnabled`: Top speed synchronization is not enabled. `MNSHealthy`: sync fine.
	MnsHealth pulumi.StringInput `pulumi:"mnsHealth"`
	// The set up gateway file share NFS protocol, whether to enable NFS v4 optimization improve Mount Upload efficiency. Default value: `false`. **NOTE:** turns on after I will not support NFS v3 mount the filesystem on a. Gateway version >= 1.2.0 above support.
	NfsV4Optimization pulumi.BoolInput `pulumi:"nfsV4Optimization"`
	// Multi-Bucket, removing the Bucket.
	ObsoleteBuckets pulumi.StringInput `pulumi:"obsoleteBuckets"`
	// The name of the Bucket.
	OssBucketName pulumi.StringInput `pulumi:"ossBucketName"`
	// Whether they are using SSL connect to OSS Bucket.
	OssBucketSsl pulumi.BoolInput `pulumi:"ossBucketSsl"`
	// The set up gateway file share corresponds to the Object Storage SERVICE (OSS), Bucket Endpoint. **NOTE:** distinguish between intranet and internet Endpoint. We recommend that if the OSS Bucket and the gateway is in the same Region is use the RDS intranet IP Endpoint:oss-cn-hangzhou-internal.aliyuncs.com.
	OssEndpoint pulumi.StringInput `pulumi:"ossEndpoint"`
	// The OSS Bucket of type. Valid values: `BucketHealthy`: OSS connectivity. `BucketAccessDenied`: OBJECT STORAGE Service (OSS) access to an exception. `BucketMiscFailure`: OBJECT STORAGE Service (OSS) access to additional exception. `BucketNetworkFailure`: OBJECT STORAGE Service (OSS) access network an exception. `BucketNotExist`: OSS Bucket does not exist. `Nothing returns`: We may not have ever known existed.
	OssHealth pulumi.StringInput `pulumi:"ossHealth"`
	// For a cloud-based data is. Unit: `B`.
	OssUsed pulumi.StringInput `pulumi:"ossUsed"`
	// Upload speed. Unit: `B/s`.
	OutRate pulumi.StringInput `pulumi:"outRate"`
	// In part mode, the directory path group JSON format.
	PartialSyncPaths pulumi.StringInput `pulumi:"partialSyncPaths"`
	// The prefix of the OSS.
	PathPrefix pulumi.StringInput `pulumi:"pathPrefix"`
	// The reverse synchronization time intervals of the gateway file share. Value range: `15` ~ `36000`. **NOTE:** in copy mode + reverse synchronization is enabled Download file data, value range: `3600` ~ `36000`.
	PollingInterval pulumi.IntInput `pulumi:"pollingInterval"`
	// Share types. Valid values: `SMB`, `NFS`.
	Protocol pulumi.StringInput `pulumi:"protocol"`
	// You can use the metadata space. Unit: `B`.
	RemainingMetaSpace pulumi.StringInput `pulumi:"remainingMetaSpace"`
	// Whether to enable reverse synchronization of the gateway file share. Default value: `false`.
	RemoteSync pulumi.BoolInput `pulumi:"remoteSync"`
	// Copy mode, whether to download the file data. Default value: `false`. **NOTE:** only when the shared opens the reverse synchronization or acceded to by the speed synchronization group, this parameter will not take effect.
	RemoteSyncDownload pulumi.BoolInput `pulumi:"remoteSyncDownload"`
	// The read-only client list. When Protocol NFS is returned when the status is.
	RoClientList pulumi.StringInput `pulumi:"roClientList"`
	// The read-only client list. When Protocol for Server Message Block (SMB) to go back to.
	RoUserList pulumi.StringInput `pulumi:"roUserList"`
	// Read and write the client list. When Protocol NFS is returned when the status is.
	RwClientList pulumi.StringInput `pulumi:"rwClientList"`
	// Read-write user list. When Protocol for Server Message Block (SMB) to go back to.
	RwUserList pulumi.StringInput `pulumi:"rwUserList"`
	// File share is enabled server-side encryption, encryption used by the KMS key.
	ServerSideCmk pulumi.StringInput `pulumi:"serverSideCmk"`
	// If the OSS Bucket side encryption.
	ServerSideEncryption pulumi.BoolInput `pulumi:"serverSideEncryption"`
	// The caching capacity. Unit: `B`.
	Size pulumi.StringInput `pulumi:"size"`
	// The set up gateway file share NFS protocol user mapping. Valid values: `none`, `rootSquash`, `allSquash`, `allAnonymous`. Default value: `none`.
	Squash pulumi.StringInput `pulumi:"squash"`
	// File synchronization types. Valid values: `clean`, `dirty`. `clean`: synchronization is complete. `dirty`: synchronization has not been completed.
	State pulumi.StringInput `pulumi:"state"`
	// Whether to support the archive transparent read.
	SupportArchive pulumi.BoolInput `pulumi:"supportArchive"`
	// Full synchronization progress. When the share has been added for a synchronization group, the return parameters are valid, that shared full synchronization progress (0~100). `-2`: indicates that share the Gateway version does not support this feature. `-1`: the share does not occur full synchronization.
	SyncProgress pulumi.IntInput `pulumi:"syncProgress"`
	// The OSS Bucket to the Gateway total downloads. Unit: `B`.
	TotalDownload pulumi.StringInput `pulumi:"totalDownload"`
	// The OSS Bucket to the Gateway total Upload amount. Unit: `B`.
	TotalUpload pulumi.StringInput `pulumi:"totalUpload"`
	// The set up gateway file share whether to enable transmission acceleration needs corresponding OSS Bucket enabled transport acceleration. **NOTE:** Gateway version >= 1.3.0 above support.
	TransferAcceleration pulumi.BoolInput `pulumi:"transferAcceleration"`
	// Used cache. Unit: `B`.
	Used pulumi.StringInput `pulumi:"used"`
	// The set up gateway file share Server Message Block (SMB) protocol, whether to enable by Windows access list (requires AD domain) the permissions control. Default value: `false`. **NOTE:** Gateway version >= 1.0.45 above support.
	WindowsAcl pulumi.BoolInput `pulumi:"windowsAcl"`
}

func (GetGatewayFileSharesShareArgs) ElementType

func (GetGatewayFileSharesShareArgs) ToGetGatewayFileSharesShareOutput

func (i GetGatewayFileSharesShareArgs) ToGetGatewayFileSharesShareOutput() GetGatewayFileSharesShareOutput

func (GetGatewayFileSharesShareArgs) ToGetGatewayFileSharesShareOutputWithContext

func (i GetGatewayFileSharesShareArgs) ToGetGatewayFileSharesShareOutputWithContext(ctx context.Context) GetGatewayFileSharesShareOutput

type GetGatewayFileSharesShareArray

type GetGatewayFileSharesShareArray []GetGatewayFileSharesShareInput

func (GetGatewayFileSharesShareArray) ElementType

func (GetGatewayFileSharesShareArray) ToGetGatewayFileSharesShareArrayOutput

func (i GetGatewayFileSharesShareArray) ToGetGatewayFileSharesShareArrayOutput() GetGatewayFileSharesShareArrayOutput

func (GetGatewayFileSharesShareArray) ToGetGatewayFileSharesShareArrayOutputWithContext

func (i GetGatewayFileSharesShareArray) ToGetGatewayFileSharesShareArrayOutputWithContext(ctx context.Context) GetGatewayFileSharesShareArrayOutput

type GetGatewayFileSharesShareArrayInput

type GetGatewayFileSharesShareArrayInput interface {
	pulumi.Input

	ToGetGatewayFileSharesShareArrayOutput() GetGatewayFileSharesShareArrayOutput
	ToGetGatewayFileSharesShareArrayOutputWithContext(context.Context) GetGatewayFileSharesShareArrayOutput
}

GetGatewayFileSharesShareArrayInput is an input type that accepts GetGatewayFileSharesShareArray and GetGatewayFileSharesShareArrayOutput values. You can construct a concrete instance of `GetGatewayFileSharesShareArrayInput` via:

GetGatewayFileSharesShareArray{ GetGatewayFileSharesShareArgs{...} }

type GetGatewayFileSharesShareArrayOutput

type GetGatewayFileSharesShareArrayOutput struct{ *pulumi.OutputState }

func (GetGatewayFileSharesShareArrayOutput) ElementType

func (GetGatewayFileSharesShareArrayOutput) Index

func (GetGatewayFileSharesShareArrayOutput) ToGetGatewayFileSharesShareArrayOutput

func (o GetGatewayFileSharesShareArrayOutput) ToGetGatewayFileSharesShareArrayOutput() GetGatewayFileSharesShareArrayOutput

func (GetGatewayFileSharesShareArrayOutput) ToGetGatewayFileSharesShareArrayOutputWithContext

func (o GetGatewayFileSharesShareArrayOutput) ToGetGatewayFileSharesShareArrayOutputWithContext(ctx context.Context) GetGatewayFileSharesShareArrayOutput

type GetGatewayFileSharesShareInput

type GetGatewayFileSharesShareInput interface {
	pulumi.Input

	ToGetGatewayFileSharesShareOutput() GetGatewayFileSharesShareOutput
	ToGetGatewayFileSharesShareOutputWithContext(context.Context) GetGatewayFileSharesShareOutput
}

GetGatewayFileSharesShareInput is an input type that accepts GetGatewayFileSharesShareArgs and GetGatewayFileSharesShareOutput values. You can construct a concrete instance of `GetGatewayFileSharesShareInput` via:

GetGatewayFileSharesShareArgs{...}

type GetGatewayFileSharesShareOutput

type GetGatewayFileSharesShareOutput struct{ *pulumi.OutputState }

func (GetGatewayFileSharesShareOutput) AccessBasedEnumeration

func (o GetGatewayFileSharesShareOutput) AccessBasedEnumeration() pulumi.BoolOutput

The set up gateway file share Server Message Block (SMB) protocol, whether to enable Windows ABE, the prime minister, need windowsAcl parameter is set to true in the entry into force of. Default value: `false`. **NOTE:** Gateway version >= 1.0.45 above support.

func (GetGatewayFileSharesShareOutput) Address

Share the private IP address of the RDS instance.

func (GetGatewayFileSharesShareOutput) BackendLimit

The set up gateway file share Max upload speed. Unit: `MB/s`, `0` means unlimited. Value range: `0` ~ `1280`. Default value: `0`. **NOTE:** at the same time if you have to limit the maximum write speed, maximum upload speed is no less than the maximum write speed.

func (GetGatewayFileSharesShareOutput) Browsable

The set up gateway file share Server Message Block (SMB) protocol whether browsable (that is, in the network neighborhood of whether you can find). The parameters in the NFS protocol not valid under. Default value: `true`.

func (GetGatewayFileSharesShareOutput) BucketInfos

Multi-Bucket information.

func (GetGatewayFileSharesShareOutput) BucketsStub

Whether there are multiple buckets.

func (GetGatewayFileSharesShareOutput) BypassCacheRead

Direct reading OSS of the gateway file share.

func (GetGatewayFileSharesShareOutput) CacheMode

The cache mode of the gateway file share. Value range: Cache: cached mode. Sync: replication mode are available.

func (GetGatewayFileSharesShareOutput) ClientSideCmk

File share is enabled to client-side encryption, the encryption by the use of the KMS key. **NOTE:** note: This KMS key must be the gateway and is in the same Region.

func (GetGatewayFileSharesShareOutput) ClientSideEncryption

func (o GetGatewayFileSharesShareOutput) ClientSideEncryption() pulumi.BoolOutput

Whether to enabled to client-side encryption of the gateway file share. Default value: `false`. **NOTE:** need to contact us open whitelist before you can the settings, and only supports enhanced more than online gateway, at the same time, server-side encryption and to client-side encryption can not simultaneously configuration.

func (GetGatewayFileSharesShareOutput) DirectIo

Whether directio (direct I/O data transfer) is enabled for file share. Default: `false`.

func (GetGatewayFileSharesShareOutput) DiskId

The ID of the disk.

func (GetGatewayFileSharesShareOutput) DiskType

The cache disk type. Valid values: `cloudEfficiency`: Ultra cloud disk. `cloudSsd`:SSD cloud disk.

func (GetGatewayFileSharesShareOutput) DownloadLimit

The set up gateway file share maximum download speed. Unit: `MB/s`. `0` means unlimited. Value range: `0` ~ `1280`. **NOTE:** only in copy mode and enable download file data can be set. only when the shared opens the reverse synchronization or acceded to by the speed synchronization Group when, this parameter will not take effect. Gateway version >= 1.3.0 above support.

func (GetGatewayFileSharesShareOutput) ElementType

func (GetGatewayFileSharesShareOutput) Enabled

Shared whether the changes take effect.

func (GetGatewayFileSharesShareOutput) ExpressSyncId

Speed synchronization group ID.

func (GetGatewayFileSharesShareOutput) FastReclaim

The set up gateway file share whether to enable Upload optimization, which is suitable for data pure backup migration scenarios. Default value: `false`. **NOTE:** Gateway version >= 1.0.39 above support.

func (GetGatewayFileSharesShareOutput) FeLimit

The set up gateway file share and the maximum write speed. Unit: `MB/s`, `0` means unlimited. Value range: `0` ~ `1280`. Default value: `0`.

func (GetGatewayFileSharesShareOutput) FileNumLimit

Supported by the file system file number.

func (GetGatewayFileSharesShareOutput) FsSizeLimit

File system capacity. Unit: `B`.

func (GetGatewayFileSharesShareOutput) GatewayFileShareName

func (o GetGatewayFileSharesShareOutput) GatewayFileShareName() pulumi.StringOutput

The name of the file share. Length from `1` to `255` characters can contain lowercase letters, digits, (.), (_) Or (-), at the same time, must start with a lowercase letter.

func (GetGatewayFileSharesShareOutput) GatewayId

The ID of the gateway.

func (GetGatewayFileSharesShareOutput) Id

The ID of the Gateway File Share.

func (GetGatewayFileSharesShareOutput) IgnoreDelete

Whether to ignore deleted of the gateway file share. After the opening of the Gateway side delete file or delete cloud (OSS) corresponding to the file. Default value: `false`. **NOTE:** Gateway version >= 1.0.40 above support.

func (GetGatewayFileSharesShareOutput) InPlace

Whether debris optimization of the gateway file share. Default value: `false`.

func (GetGatewayFileSharesShareOutput) InRate

Cache growth. Unit: `B/s`.

func (GetGatewayFileSharesShareOutput) IndexId

The ID of the file share.

func (GetGatewayFileSharesShareOutput) KmsRotatePeriod

func (o GetGatewayFileSharesShareOutput) KmsRotatePeriod() pulumi.IntOutput

File share is enabled to client-side encryption, key rotation period of time. Seconds. 0 represents no rotation. Rotation of the value range: `3600` ~ `86400`. Default value: `0`.

func (GetGatewayFileSharesShareOutput) LagPeriod

The synchronization delay, I.e. gateway local cache sync to Alibaba Cloud Object Storage Service (oss) of the delay time. Unit: `Seconds`. Value range: `5` ~ `120`. Default value: `5`. **NOTE:** Gateway version >= 1.0.40 above support.

func (GetGatewayFileSharesShareOutput) LocalPath

The cache disk inside the device name.

func (GetGatewayFileSharesShareOutput) MnsHealth

The messages from the queue health types. Valid values: `TopicAndQueueFailure`: A Message Queuing message theme can be accessed during the black hole period. `TopicFailure`: a message theme can be accessed during the black hole period. `MNSFullSyncInit`: full synchronization wait. `MNSFullSyncing`: full synchronization in progress. `QueueFailure`: a message queue can be accessed during the black hole period. `MNSNotEnabled`: Top speed synchronization is not enabled. `MNSHealthy`: sync fine.

func (GetGatewayFileSharesShareOutput) NfsV4Optimization

func (o GetGatewayFileSharesShareOutput) NfsV4Optimization() pulumi.BoolOutput

The set up gateway file share NFS protocol, whether to enable NFS v4 optimization improve Mount Upload efficiency. Default value: `false`. **NOTE:** turns on after I will not support NFS v3 mount the filesystem on a. Gateway version >= 1.2.0 above support.

func (GetGatewayFileSharesShareOutput) ObsoleteBuckets

Multi-Bucket, removing the Bucket.

func (GetGatewayFileSharesShareOutput) OssBucketName

The name of the Bucket.

func (GetGatewayFileSharesShareOutput) OssBucketSsl

Whether they are using SSL connect to OSS Bucket.

func (GetGatewayFileSharesShareOutput) OssEndpoint

The set up gateway file share corresponds to the Object Storage SERVICE (OSS), Bucket Endpoint. **NOTE:** distinguish between intranet and internet Endpoint. We recommend that if the OSS Bucket and the gateway is in the same Region is use the RDS intranet IP Endpoint:oss-cn-hangzhou-internal.aliyuncs.com.

func (GetGatewayFileSharesShareOutput) OssHealth

The OSS Bucket of type. Valid values: `BucketHealthy`: OSS connectivity. `BucketAccessDenied`: OBJECT STORAGE Service (OSS) access to an exception. `BucketMiscFailure`: OBJECT STORAGE Service (OSS) access to additional exception. `BucketNetworkFailure`: OBJECT STORAGE Service (OSS) access network an exception. `BucketNotExist`: OSS Bucket does not exist. `Nothing returns`: We may not have ever known existed.

func (GetGatewayFileSharesShareOutput) OssUsed

For a cloud-based data is. Unit: `B`.

func (GetGatewayFileSharesShareOutput) OutRate

Upload speed. Unit: `B/s`.

func (GetGatewayFileSharesShareOutput) PartialSyncPaths

In part mode, the directory path group JSON format.

func (GetGatewayFileSharesShareOutput) PathPrefix

The prefix of the OSS.

func (GetGatewayFileSharesShareOutput) PollingInterval

func (o GetGatewayFileSharesShareOutput) PollingInterval() pulumi.IntOutput

The reverse synchronization time intervals of the gateway file share. Value range: `15` ~ `36000`. **NOTE:** in copy mode + reverse synchronization is enabled Download file data, value range: `3600` ~ `36000`.

func (GetGatewayFileSharesShareOutput) Protocol

Share types. Valid values: `SMB`, `NFS`.

func (GetGatewayFileSharesShareOutput) RemainingMetaSpace

func (o GetGatewayFileSharesShareOutput) RemainingMetaSpace() pulumi.StringOutput

You can use the metadata space. Unit: `B`.

func (GetGatewayFileSharesShareOutput) RemoteSync

Whether to enable reverse synchronization of the gateway file share. Default value: `false`.

func (GetGatewayFileSharesShareOutput) RemoteSyncDownload

func (o GetGatewayFileSharesShareOutput) RemoteSyncDownload() pulumi.BoolOutput

Copy mode, whether to download the file data. Default value: `false`. **NOTE:** only when the shared opens the reverse synchronization or acceded to by the speed synchronization group, this parameter will not take effect.

func (GetGatewayFileSharesShareOutput) RoClientList

The read-only client list. When Protocol NFS is returned when the status is.

func (GetGatewayFileSharesShareOutput) RoUserList

The read-only client list. When Protocol for Server Message Block (SMB) to go back to.

func (GetGatewayFileSharesShareOutput) RwClientList

Read and write the client list. When Protocol NFS is returned when the status is.

func (GetGatewayFileSharesShareOutput) RwUserList

Read-write user list. When Protocol for Server Message Block (SMB) to go back to.

func (GetGatewayFileSharesShareOutput) ServerSideCmk

File share is enabled server-side encryption, encryption used by the KMS key.

func (GetGatewayFileSharesShareOutput) ServerSideEncryption

func (o GetGatewayFileSharesShareOutput) ServerSideEncryption() pulumi.BoolOutput

If the OSS Bucket side encryption.

func (GetGatewayFileSharesShareOutput) Size

The caching capacity. Unit: `B`.

func (GetGatewayFileSharesShareOutput) Squash

The set up gateway file share NFS protocol user mapping. Valid values: `none`, `rootSquash`, `allSquash`, `allAnonymous`. Default value: `none`.

func (GetGatewayFileSharesShareOutput) State

File synchronization types. Valid values: `clean`, `dirty`. `clean`: synchronization is complete. `dirty`: synchronization has not been completed.

func (GetGatewayFileSharesShareOutput) SupportArchive

Whether to support the archive transparent read.

func (GetGatewayFileSharesShareOutput) SyncProgress

Full synchronization progress. When the share has been added for a synchronization group, the return parameters are valid, that shared full synchronization progress (0~100). `-2`: indicates that share the Gateway version does not support this feature. `-1`: the share does not occur full synchronization.

func (GetGatewayFileSharesShareOutput) ToGetGatewayFileSharesShareOutput

func (o GetGatewayFileSharesShareOutput) ToGetGatewayFileSharesShareOutput() GetGatewayFileSharesShareOutput

func (GetGatewayFileSharesShareOutput) ToGetGatewayFileSharesShareOutputWithContext

func (o GetGatewayFileSharesShareOutput) ToGetGatewayFileSharesShareOutputWithContext(ctx context.Context) GetGatewayFileSharesShareOutput

func (GetGatewayFileSharesShareOutput) TotalDownload

The OSS Bucket to the Gateway total downloads. Unit: `B`.

func (GetGatewayFileSharesShareOutput) TotalUpload

The OSS Bucket to the Gateway total Upload amount. Unit: `B`.

func (GetGatewayFileSharesShareOutput) TransferAcceleration

func (o GetGatewayFileSharesShareOutput) TransferAcceleration() pulumi.BoolOutput

The set up gateway file share whether to enable transmission acceleration needs corresponding OSS Bucket enabled transport acceleration. **NOTE:** Gateway version >= 1.3.0 above support.

func (GetGatewayFileSharesShareOutput) Used

Used cache. Unit: `B`.

func (GetGatewayFileSharesShareOutput) WindowsAcl

The set up gateway file share Server Message Block (SMB) protocol, whether to enable by Windows access list (requires AD domain) the permissions control. Default value: `false`. **NOTE:** Gateway version >= 1.0.45 above support.

type GetGatewaySmbUsersArgs

type GetGatewaySmbUsersArgs struct {
	// The Gateway ID.
	GatewayId string `pulumi:"gatewayId"`
	// A list of Gateway SMB User IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Gateway SMB username.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getGatewaySmbUsers.

type GetGatewaySmbUsersOutputArgs

type GetGatewaySmbUsersOutputArgs struct {
	// The Gateway ID.
	GatewayId pulumi.StringInput `pulumi:"gatewayId"`
	// A list of Gateway SMB User IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Gateway SMB username.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getGatewaySmbUsers.

func (GetGatewaySmbUsersOutputArgs) ElementType

type GetGatewaySmbUsersResult

type GetGatewaySmbUsersResult struct {
	GatewayId string `pulumi:"gatewayId"`
	// The provider-assigned unique ID for this managed resource.
	Id         string                   `pulumi:"id"`
	Ids        []string                 `pulumi:"ids"`
	NameRegex  *string                  `pulumi:"nameRegex"`
	OutputFile *string                  `pulumi:"outputFile"`
	Users      []GetGatewaySmbUsersUser `pulumi:"users"`
}

A collection of values returned by getGatewaySmbUsers.

func GetGatewaySmbUsers

func GetGatewaySmbUsers(ctx *pulumi.Context, args *GetGatewaySmbUsersArgs, opts ...pulumi.InvokeOption) (*GetGatewaySmbUsersResult, error)

This data source provides the Cloud Storage Gateway Gateway SMB Users of the current Alibaba Cloud user.

> **NOTE:** Available in v1.142.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"
"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/vpc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
			NameRegex: pulumi.StringRef("default-NODELETING"),
		}, nil)
		if err != nil {
			return err
		}
		defaultSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
			VpcId: pulumi.StringRef(defaultNetworks.Ids[0]),
		}, nil)
		if err != nil {
			return err
		}
		example, err := cloudstoragegateway.NewStorageBundle(ctx, "example", &cloudstoragegateway.StorageBundleArgs{
			StorageBundleName: pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		defaultGateway, err := cloudstoragegateway.NewGateway(ctx, "defaultGateway", &cloudstoragegateway.GatewayArgs{
			Description:            pulumi.String("tf-acctestDesalone"),
			GatewayClass:           pulumi.String("Standard"),
			Type:                   pulumi.String("File"),
			PaymentType:            pulumi.String("PayAsYouGo"),
			VswitchId:              pulumi.String(defaultSwitches.Ids[0]),
			ReleaseAfterExpiration: pulumi.Bool(false),
			PublicNetworkBandwidth: pulumi.Int(40),
			StorageBundleId:        example.ID(),
			Location:               pulumi.String("Cloud"),
			GatewayName:            pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		defaultGatewaySmbUser, err := cloudstoragegateway.NewGatewaySmbUser(ctx, "defaultGatewaySmbUser", &cloudstoragegateway.GatewaySmbUserArgs{
			Username:  pulumi.String("your_username"),
			Password:  pulumi.String("password"),
			GatewayId: defaultGateway.ID(),
		})
		if err != nil {
			return err
		}
		ids := cloudstoragegateway.GetGatewaySmbUsersOutput(ctx, cloudstoragegateway.GetGatewaySmbUsersOutputArgs{
			GatewayId: defaultGateway.ID(),
			Ids: pulumi.StringArray{
				defaultGatewaySmbUser.ID(),
			},
		}, nil)
		ctx.Export("cloudStorageGatewayGatewaySmbUserId1", ids.ApplyT(func(ids cloudstoragegateway.GetGatewaySmbUsersResult) (string, error) {
			return ids.Users[0].Id, nil
		}).(pulumi.StringOutput))
		return nil
	})
}

```

type GetGatewaySmbUsersResultOutput

type GetGatewaySmbUsersResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getGatewaySmbUsers.

func (GetGatewaySmbUsersResultOutput) ElementType

func (GetGatewaySmbUsersResultOutput) GatewayId

func (GetGatewaySmbUsersResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetGatewaySmbUsersResultOutput) Ids

func (GetGatewaySmbUsersResultOutput) NameRegex

func (GetGatewaySmbUsersResultOutput) OutputFile

func (GetGatewaySmbUsersResultOutput) ToGetGatewaySmbUsersResultOutput

func (o GetGatewaySmbUsersResultOutput) ToGetGatewaySmbUsersResultOutput() GetGatewaySmbUsersResultOutput

func (GetGatewaySmbUsersResultOutput) ToGetGatewaySmbUsersResultOutputWithContext

func (o GetGatewaySmbUsersResultOutput) ToGetGatewaySmbUsersResultOutputWithContext(ctx context.Context) GetGatewaySmbUsersResultOutput

func (GetGatewaySmbUsersResultOutput) Users

type GetGatewaySmbUsersUser

type GetGatewaySmbUsersUser struct {
	// The Gateway ID.
	GatewayId string `pulumi:"gatewayId"`
	// The ID of the Gateway SMB User.
	Id string `pulumi:"id"`
	// The username of the Gateway SMB User.
	Username string `pulumi:"username"`
}

type GetGatewaySmbUsersUserArgs

type GetGatewaySmbUsersUserArgs struct {
	// The Gateway ID.
	GatewayId pulumi.StringInput `pulumi:"gatewayId"`
	// The ID of the Gateway SMB User.
	Id pulumi.StringInput `pulumi:"id"`
	// The username of the Gateway SMB User.
	Username pulumi.StringInput `pulumi:"username"`
}

func (GetGatewaySmbUsersUserArgs) ElementType

func (GetGatewaySmbUsersUserArgs) ElementType() reflect.Type

func (GetGatewaySmbUsersUserArgs) ToGetGatewaySmbUsersUserOutput

func (i GetGatewaySmbUsersUserArgs) ToGetGatewaySmbUsersUserOutput() GetGatewaySmbUsersUserOutput

func (GetGatewaySmbUsersUserArgs) ToGetGatewaySmbUsersUserOutputWithContext

func (i GetGatewaySmbUsersUserArgs) ToGetGatewaySmbUsersUserOutputWithContext(ctx context.Context) GetGatewaySmbUsersUserOutput

type GetGatewaySmbUsersUserArray

type GetGatewaySmbUsersUserArray []GetGatewaySmbUsersUserInput

func (GetGatewaySmbUsersUserArray) ElementType

func (GetGatewaySmbUsersUserArray) ToGetGatewaySmbUsersUserArrayOutput

func (i GetGatewaySmbUsersUserArray) ToGetGatewaySmbUsersUserArrayOutput() GetGatewaySmbUsersUserArrayOutput

func (GetGatewaySmbUsersUserArray) ToGetGatewaySmbUsersUserArrayOutputWithContext

func (i GetGatewaySmbUsersUserArray) ToGetGatewaySmbUsersUserArrayOutputWithContext(ctx context.Context) GetGatewaySmbUsersUserArrayOutput

type GetGatewaySmbUsersUserArrayInput

type GetGatewaySmbUsersUserArrayInput interface {
	pulumi.Input

	ToGetGatewaySmbUsersUserArrayOutput() GetGatewaySmbUsersUserArrayOutput
	ToGetGatewaySmbUsersUserArrayOutputWithContext(context.Context) GetGatewaySmbUsersUserArrayOutput
}

GetGatewaySmbUsersUserArrayInput is an input type that accepts GetGatewaySmbUsersUserArray and GetGatewaySmbUsersUserArrayOutput values. You can construct a concrete instance of `GetGatewaySmbUsersUserArrayInput` via:

GetGatewaySmbUsersUserArray{ GetGatewaySmbUsersUserArgs{...} }

type GetGatewaySmbUsersUserArrayOutput

type GetGatewaySmbUsersUserArrayOutput struct{ *pulumi.OutputState }

func (GetGatewaySmbUsersUserArrayOutput) ElementType

func (GetGatewaySmbUsersUserArrayOutput) Index

func (GetGatewaySmbUsersUserArrayOutput) ToGetGatewaySmbUsersUserArrayOutput

func (o GetGatewaySmbUsersUserArrayOutput) ToGetGatewaySmbUsersUserArrayOutput() GetGatewaySmbUsersUserArrayOutput

func (GetGatewaySmbUsersUserArrayOutput) ToGetGatewaySmbUsersUserArrayOutputWithContext

func (o GetGatewaySmbUsersUserArrayOutput) ToGetGatewaySmbUsersUserArrayOutputWithContext(ctx context.Context) GetGatewaySmbUsersUserArrayOutput

type GetGatewaySmbUsersUserInput

type GetGatewaySmbUsersUserInput interface {
	pulumi.Input

	ToGetGatewaySmbUsersUserOutput() GetGatewaySmbUsersUserOutput
	ToGetGatewaySmbUsersUserOutputWithContext(context.Context) GetGatewaySmbUsersUserOutput
}

GetGatewaySmbUsersUserInput is an input type that accepts GetGatewaySmbUsersUserArgs and GetGatewaySmbUsersUserOutput values. You can construct a concrete instance of `GetGatewaySmbUsersUserInput` via:

GetGatewaySmbUsersUserArgs{...}

type GetGatewaySmbUsersUserOutput

type GetGatewaySmbUsersUserOutput struct{ *pulumi.OutputState }

func (GetGatewaySmbUsersUserOutput) ElementType

func (GetGatewaySmbUsersUserOutput) GatewayId

The Gateway ID.

func (GetGatewaySmbUsersUserOutput) Id

The ID of the Gateway SMB User.

func (GetGatewaySmbUsersUserOutput) ToGetGatewaySmbUsersUserOutput

func (o GetGatewaySmbUsersUserOutput) ToGetGatewaySmbUsersUserOutput() GetGatewaySmbUsersUserOutput

func (GetGatewaySmbUsersUserOutput) ToGetGatewaySmbUsersUserOutputWithContext

func (o GetGatewaySmbUsersUserOutput) ToGetGatewaySmbUsersUserOutputWithContext(ctx context.Context) GetGatewaySmbUsersUserOutput

func (GetGatewaySmbUsersUserOutput) Username

The username of the Gateway SMB User.

type GetGatewaysArgs

type GetGatewaysArgs struct {
	// A list of Gateway IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Gateway name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	PageNumber *int    `pulumi:"pageNumber"`
	PageSize   *int    `pulumi:"pageSize"`
	// gateway status.
	Status *string `pulumi:"status"`
	// storage bundle id.
	StorageBundleId string `pulumi:"storageBundleId"`
}

A collection of arguments for invoking getGateways.

type GetGatewaysGateway

type GetGatewaysGateway struct {
	// gateway .
	ActivatedTime string `pulumi:"activatedTime"`
	BuyUrl        string `pulumi:"buyUrl"`
	// gateway category.
	Category string `pulumi:"category"`
	// gateway created timestamp in second format.
	CreateTime string `pulumi:"createTime"`
	// gateway description.
	Description string `pulumi:"description"`
	// gateway ecs instance id.
	EcsInstanceId string `pulumi:"ecsInstanceId"`
	// gateway expiration status.
	ExpireStatus int `pulumi:"expireStatus"`
	// gateway expiration timestamp in second format.
	ExpiredTime string `pulumi:"expiredTime"`
	// gateway class.
	GatewayClass string `pulumi:"gatewayClass"`
	// gateway id.
	GatewayId string `pulumi:"gatewayId"`
	// gateway name.
	GatewayName string `pulumi:"gatewayName"`
	// gateway version.
	GatewayVersion string `pulumi:"gatewayVersion"`
	// The ID of the Gateway.
	Id string `pulumi:"id"`
	// gateway service ip.
	InnerIp string `pulumi:"innerIp"`
	// gateway public ip.
	Ip string `pulumi:"ip"`
	// whether subscription gateway is released after expiration or not.
	IsReleaseAfterExpiration bool `pulumi:"isReleaseAfterExpiration"`
	// gateway location.
	Location string `pulumi:"location"`
	// gateway payment type. The Payment type of gateway. The valid value: `PayAsYouGo`, `Subscription`.
	PaymentType string `pulumi:"paymentType"`
	// gateway public network bandwidth.
	PublicNetworkBandwidth int    `pulumi:"publicNetworkBandwidth"`
	RenewUrl               string `pulumi:"renewUrl"`
	// gateway status.
	Status string `pulumi:"status"`
	// storage bundle id.
	StorageBundleId string `pulumi:"storageBundleId"`
	// gateway task id.
	TaskId string `pulumi:"taskId"`
	// gateway type.
	Type string `pulumi:"type"`
	// gateway vpc id.
	VpcId string `pulumi:"vpcId"`
	// The vswitch id.
	VswitchId string `pulumi:"vswitchId"`
}

type GetGatewaysGatewayArgs

type GetGatewaysGatewayArgs struct {
	// gateway .
	ActivatedTime pulumi.StringInput `pulumi:"activatedTime"`
	BuyUrl        pulumi.StringInput `pulumi:"buyUrl"`
	// gateway category.
	Category pulumi.StringInput `pulumi:"category"`
	// gateway created timestamp in second format.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// gateway description.
	Description pulumi.StringInput `pulumi:"description"`
	// gateway ecs instance id.
	EcsInstanceId pulumi.StringInput `pulumi:"ecsInstanceId"`
	// gateway expiration status.
	ExpireStatus pulumi.IntInput `pulumi:"expireStatus"`
	// gateway expiration timestamp in second format.
	ExpiredTime pulumi.StringInput `pulumi:"expiredTime"`
	// gateway class.
	GatewayClass pulumi.StringInput `pulumi:"gatewayClass"`
	// gateway id.
	GatewayId pulumi.StringInput `pulumi:"gatewayId"`
	// gateway name.
	GatewayName pulumi.StringInput `pulumi:"gatewayName"`
	// gateway version.
	GatewayVersion pulumi.StringInput `pulumi:"gatewayVersion"`
	// The ID of the Gateway.
	Id pulumi.StringInput `pulumi:"id"`
	// gateway service ip.
	InnerIp pulumi.StringInput `pulumi:"innerIp"`
	// gateway public ip.
	Ip pulumi.StringInput `pulumi:"ip"`
	// whether subscription gateway is released after expiration or not.
	IsReleaseAfterExpiration pulumi.BoolInput `pulumi:"isReleaseAfterExpiration"`
	// gateway location.
	Location pulumi.StringInput `pulumi:"location"`
	// gateway payment type. The Payment type of gateway. The valid value: `PayAsYouGo`, `Subscription`.
	PaymentType pulumi.StringInput `pulumi:"paymentType"`
	// gateway public network bandwidth.
	PublicNetworkBandwidth pulumi.IntInput    `pulumi:"publicNetworkBandwidth"`
	RenewUrl               pulumi.StringInput `pulumi:"renewUrl"`
	// gateway status.
	Status pulumi.StringInput `pulumi:"status"`
	// storage bundle id.
	StorageBundleId pulumi.StringInput `pulumi:"storageBundleId"`
	// gateway task id.
	TaskId pulumi.StringInput `pulumi:"taskId"`
	// gateway type.
	Type pulumi.StringInput `pulumi:"type"`
	// gateway vpc id.
	VpcId pulumi.StringInput `pulumi:"vpcId"`
	// The vswitch id.
	VswitchId pulumi.StringInput `pulumi:"vswitchId"`
}

func (GetGatewaysGatewayArgs) ElementType

func (GetGatewaysGatewayArgs) ElementType() reflect.Type

func (GetGatewaysGatewayArgs) ToGetGatewaysGatewayOutput

func (i GetGatewaysGatewayArgs) ToGetGatewaysGatewayOutput() GetGatewaysGatewayOutput

func (GetGatewaysGatewayArgs) ToGetGatewaysGatewayOutputWithContext

func (i GetGatewaysGatewayArgs) ToGetGatewaysGatewayOutputWithContext(ctx context.Context) GetGatewaysGatewayOutput

type GetGatewaysGatewayArray

type GetGatewaysGatewayArray []GetGatewaysGatewayInput

func (GetGatewaysGatewayArray) ElementType

func (GetGatewaysGatewayArray) ElementType() reflect.Type

func (GetGatewaysGatewayArray) ToGetGatewaysGatewayArrayOutput

func (i GetGatewaysGatewayArray) ToGetGatewaysGatewayArrayOutput() GetGatewaysGatewayArrayOutput

func (GetGatewaysGatewayArray) ToGetGatewaysGatewayArrayOutputWithContext

func (i GetGatewaysGatewayArray) ToGetGatewaysGatewayArrayOutputWithContext(ctx context.Context) GetGatewaysGatewayArrayOutput

type GetGatewaysGatewayArrayInput

type GetGatewaysGatewayArrayInput interface {
	pulumi.Input

	ToGetGatewaysGatewayArrayOutput() GetGatewaysGatewayArrayOutput
	ToGetGatewaysGatewayArrayOutputWithContext(context.Context) GetGatewaysGatewayArrayOutput
}

GetGatewaysGatewayArrayInput is an input type that accepts GetGatewaysGatewayArray and GetGatewaysGatewayArrayOutput values. You can construct a concrete instance of `GetGatewaysGatewayArrayInput` via:

GetGatewaysGatewayArray{ GetGatewaysGatewayArgs{...} }

type GetGatewaysGatewayArrayOutput

type GetGatewaysGatewayArrayOutput struct{ *pulumi.OutputState }

func (GetGatewaysGatewayArrayOutput) ElementType

func (GetGatewaysGatewayArrayOutput) Index

func (GetGatewaysGatewayArrayOutput) ToGetGatewaysGatewayArrayOutput

func (o GetGatewaysGatewayArrayOutput) ToGetGatewaysGatewayArrayOutput() GetGatewaysGatewayArrayOutput

func (GetGatewaysGatewayArrayOutput) ToGetGatewaysGatewayArrayOutputWithContext

func (o GetGatewaysGatewayArrayOutput) ToGetGatewaysGatewayArrayOutputWithContext(ctx context.Context) GetGatewaysGatewayArrayOutput

type GetGatewaysGatewayInput

type GetGatewaysGatewayInput interface {
	pulumi.Input

	ToGetGatewaysGatewayOutput() GetGatewaysGatewayOutput
	ToGetGatewaysGatewayOutputWithContext(context.Context) GetGatewaysGatewayOutput
}

GetGatewaysGatewayInput is an input type that accepts GetGatewaysGatewayArgs and GetGatewaysGatewayOutput values. You can construct a concrete instance of `GetGatewaysGatewayInput` via:

GetGatewaysGatewayArgs{...}

type GetGatewaysGatewayOutput

type GetGatewaysGatewayOutput struct{ *pulumi.OutputState }

func (GetGatewaysGatewayOutput) ActivatedTime

func (o GetGatewaysGatewayOutput) ActivatedTime() pulumi.StringOutput

gateway .

func (GetGatewaysGatewayOutput) BuyUrl

func (GetGatewaysGatewayOutput) Category

gateway category.

func (GetGatewaysGatewayOutput) CreateTime

gateway created timestamp in second format.

func (GetGatewaysGatewayOutput) Description

gateway description.

func (GetGatewaysGatewayOutput) EcsInstanceId

func (o GetGatewaysGatewayOutput) EcsInstanceId() pulumi.StringOutput

gateway ecs instance id.

func (GetGatewaysGatewayOutput) ElementType

func (GetGatewaysGatewayOutput) ElementType() reflect.Type

func (GetGatewaysGatewayOutput) ExpireStatus

func (o GetGatewaysGatewayOutput) ExpireStatus() pulumi.IntOutput

gateway expiration status.

func (GetGatewaysGatewayOutput) ExpiredTime

gateway expiration timestamp in second format.

func (GetGatewaysGatewayOutput) GatewayClass

func (o GetGatewaysGatewayOutput) GatewayClass() pulumi.StringOutput

gateway class.

func (GetGatewaysGatewayOutput) GatewayId

gateway id.

func (GetGatewaysGatewayOutput) GatewayName

gateway name.

func (GetGatewaysGatewayOutput) GatewayVersion

func (o GetGatewaysGatewayOutput) GatewayVersion() pulumi.StringOutput

gateway version.

func (GetGatewaysGatewayOutput) Id

The ID of the Gateway.

func (GetGatewaysGatewayOutput) InnerIp

gateway service ip.

func (GetGatewaysGatewayOutput) Ip

gateway public ip.

func (GetGatewaysGatewayOutput) IsReleaseAfterExpiration

func (o GetGatewaysGatewayOutput) IsReleaseAfterExpiration() pulumi.BoolOutput

whether subscription gateway is released after expiration or not.

func (GetGatewaysGatewayOutput) Location

gateway location.

func (GetGatewaysGatewayOutput) PaymentType

gateway payment type. The Payment type of gateway. The valid value: `PayAsYouGo`, `Subscription`.

func (GetGatewaysGatewayOutput) PublicNetworkBandwidth

func (o GetGatewaysGatewayOutput) PublicNetworkBandwidth() pulumi.IntOutput

gateway public network bandwidth.

func (GetGatewaysGatewayOutput) RenewUrl

func (GetGatewaysGatewayOutput) Status

gateway status.

func (GetGatewaysGatewayOutput) StorageBundleId

func (o GetGatewaysGatewayOutput) StorageBundleId() pulumi.StringOutput

storage bundle id.

func (GetGatewaysGatewayOutput) TaskId

gateway task id.

func (GetGatewaysGatewayOutput) ToGetGatewaysGatewayOutput

func (o GetGatewaysGatewayOutput) ToGetGatewaysGatewayOutput() GetGatewaysGatewayOutput

func (GetGatewaysGatewayOutput) ToGetGatewaysGatewayOutputWithContext

func (o GetGatewaysGatewayOutput) ToGetGatewaysGatewayOutputWithContext(ctx context.Context) GetGatewaysGatewayOutput

func (GetGatewaysGatewayOutput) Type

gateway type.

func (GetGatewaysGatewayOutput) VpcId

gateway vpc id.

func (GetGatewaysGatewayOutput) VswitchId

The vswitch id.

type GetGatewaysOutputArgs

type GetGatewaysOutputArgs struct {
	// A list of Gateway IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Gateway name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	PageNumber pulumi.IntPtrInput    `pulumi:"pageNumber"`
	PageSize   pulumi.IntPtrInput    `pulumi:"pageSize"`
	// gateway status.
	Status pulumi.StringPtrInput `pulumi:"status"`
	// storage bundle id.
	StorageBundleId pulumi.StringInput `pulumi:"storageBundleId"`
}

A collection of arguments for invoking getGateways.

func (GetGatewaysOutputArgs) ElementType

func (GetGatewaysOutputArgs) ElementType() reflect.Type

type GetGatewaysResult

type GetGatewaysResult struct {
	Gateways []GetGatewaysGateway `pulumi:"gateways"`
	// The provider-assigned unique ID for this managed resource.
	Id              string   `pulumi:"id"`
	Ids             []string `pulumi:"ids"`
	NameRegex       *string  `pulumi:"nameRegex"`
	Names           []string `pulumi:"names"`
	OutputFile      *string  `pulumi:"outputFile"`
	PageNumber      *int     `pulumi:"pageNumber"`
	PageSize        *int     `pulumi:"pageSize"`
	Status          *string  `pulumi:"status"`
	StorageBundleId string   `pulumi:"storageBundleId"`
	TotalCount      int      `pulumi:"totalCount"`
}

A collection of values returned by getGateways.

func GetGateways

func GetGateways(ctx *pulumi.Context, args *GetGatewaysArgs, opts ...pulumi.InvokeOption) (*GetGatewaysResult, error)

This data source provides the Cloud Storage Gateway Gateways of the current Alibaba Cloud user.

> **NOTE:** Available in v1.132.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := cloudstoragegateway.NewStorageBundle(ctx, "example", &cloudstoragegateway.StorageBundleArgs{
			StorageBundleName: pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		nameRegex := cloudstoragegateway.GetGatewaysOutput(ctx, cloudstoragegateway.GetGatewaysOutputArgs{
			StorageBundleId: example.ID(),
			NameRegex:       pulumi.String("^my-Gateway"),
		}, nil)
		ctx.Export("cloudStorageGatewayGatewayId", nameRegex.ApplyT(func(nameRegex cloudstoragegateway.GetGatewaysResult) (string, error) {
			return nameRegex.Gateways[0].Id, nil
		}).(pulumi.StringOutput))
		return nil
	})
}

```

type GetGatewaysResultOutput

type GetGatewaysResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getGateways.

func (GetGatewaysResultOutput) ElementType

func (GetGatewaysResultOutput) ElementType() reflect.Type

func (GetGatewaysResultOutput) Gateways

func (GetGatewaysResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetGatewaysResultOutput) Ids

func (GetGatewaysResultOutput) NameRegex

func (GetGatewaysResultOutput) Names

func (GetGatewaysResultOutput) OutputFile

func (GetGatewaysResultOutput) PageNumber

func (GetGatewaysResultOutput) PageSize

func (GetGatewaysResultOutput) Status

func (GetGatewaysResultOutput) StorageBundleId

func (o GetGatewaysResultOutput) StorageBundleId() pulumi.StringOutput

func (GetGatewaysResultOutput) ToGetGatewaysResultOutput

func (o GetGatewaysResultOutput) ToGetGatewaysResultOutput() GetGatewaysResultOutput

func (GetGatewaysResultOutput) ToGetGatewaysResultOutputWithContext

func (o GetGatewaysResultOutput) ToGetGatewaysResultOutputWithContext(ctx context.Context) GetGatewaysResultOutput

func (GetGatewaysResultOutput) TotalCount

func (o GetGatewaysResultOutput) TotalCount() pulumi.IntOutput

type GetServiceArgs

type GetServiceArgs struct {
	// Setting the value to `On` to enable the service. If has been enabled, return the result. Valid values: "On" or "Off". Default to "Off".
	Enable *string `pulumi:"enable"`
}

A collection of arguments for invoking getService.

type GetServiceOutputArgs

type GetServiceOutputArgs struct {
	// Setting the value to `On` to enable the service. If has been enabled, return the result. Valid values: "On" or "Off". Default to "Off".
	Enable pulumi.StringPtrInput `pulumi:"enable"`
}

A collection of arguments for invoking getService.

func (GetServiceOutputArgs) ElementType

func (GetServiceOutputArgs) ElementType() reflect.Type

type GetServiceResult

type GetServiceResult struct {
	Enable *string `pulumi:"enable"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The current service enable status.
	Status string `pulumi:"status"`
}

A collection of values returned by getService.

func GetService

func GetService(ctx *pulumi.Context, args *GetServiceArgs, opts ...pulumi.InvokeOption) (*GetServiceResult, error)

Using this data source can open Cloud Storage Gateway service automatically. If the service has been opened, it will return opened.

For information about Cloud Storage Gateway and how to use it, see [What is Cloud Storage Gateway](https://www.alibabacloud.com/help/en/product/53923.htm).

> **NOTE:** Available in v1.117.0+

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudstoragegateway.GetService(ctx, &cloudstoragegateway.GetServiceArgs{
			Enable: pulumi.StringRef("On"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetServiceResultOutput

type GetServiceResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getService.

func (GetServiceResultOutput) ElementType

func (GetServiceResultOutput) ElementType() reflect.Type

func (GetServiceResultOutput) Enable

func (GetServiceResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetServiceResultOutput) Status

The current service enable status.

func (GetServiceResultOutput) ToGetServiceResultOutput

func (o GetServiceResultOutput) ToGetServiceResultOutput() GetServiceResultOutput

func (GetServiceResultOutput) ToGetServiceResultOutputWithContext

func (o GetServiceResultOutput) ToGetServiceResultOutputWithContext(ctx context.Context) GetServiceResultOutput

type GetStocksArgs

type GetStocksArgs struct {
	// The gateway class. Valid values: `Basic`, `Standard`,`Enhanced`,`Advanced`.
	GatewayClass *string `pulumi:"gatewayClass"`
	OutputFile   *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getStocks.

type GetStocksOutputArgs

type GetStocksOutputArgs struct {
	// The gateway class. Valid values: `Basic`, `Standard`,`Enhanced`,`Advanced`.
	GatewayClass pulumi.StringPtrInput `pulumi:"gatewayClass"`
	OutputFile   pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getStocks.

func (GetStocksOutputArgs) ElementType

func (GetStocksOutputArgs) ElementType() reflect.Type

type GetStocksResult

type GetStocksResult struct {
	GatewayClass *string `pulumi:"gatewayClass"`
	// The provider-assigned unique ID for this managed resource.
	Id         string           `pulumi:"id"`
	OutputFile *string          `pulumi:"outputFile"`
	Stocks     []GetStocksStock `pulumi:"stocks"`
}

A collection of values returned by getStocks.

func GetStocks

func GetStocks(ctx *pulumi.Context, args *GetStocksArgs, opts ...pulumi.InvokeOption) (*GetStocksResult, error)

This data source provides the Cloud Storage Gateway Stocks of the current Alibaba Cloud user.

> **NOTE:** Available in v1.144.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := cloudstoragegateway.GetStocks(ctx, &cloudstoragegateway.GetStocksArgs{
			GatewayClass: pulumi.StringRef("Advanced"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("zoneId", _default.Stocks[0].ZoneId)
		return nil
	})
}

```

type GetStocksResultOutput

type GetStocksResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getStocks.

func (GetStocksResultOutput) ElementType

func (GetStocksResultOutput) ElementType() reflect.Type

func (GetStocksResultOutput) GatewayClass

func (o GetStocksResultOutput) GatewayClass() pulumi.StringPtrOutput

func (GetStocksResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetStocksResultOutput) OutputFile

func (GetStocksResultOutput) Stocks

func (GetStocksResultOutput) ToGetStocksResultOutput

func (o GetStocksResultOutput) ToGetStocksResultOutput() GetStocksResultOutput

func (GetStocksResultOutput) ToGetStocksResultOutputWithContext

func (o GetStocksResultOutput) ToGetStocksResultOutputWithContext(ctx context.Context) GetStocksResultOutput

type GetStocksStock

type GetStocksStock struct {
	// A list of available gateway class in this Zone ID.
	AvailableGatewayClasses []string `pulumi:"availableGatewayClasses"`
	// The Zone ID.
	ZoneId string `pulumi:"zoneId"`
}

type GetStocksStockArgs

type GetStocksStockArgs struct {
	// A list of available gateway class in this Zone ID.
	AvailableGatewayClasses pulumi.StringArrayInput `pulumi:"availableGatewayClasses"`
	// The Zone ID.
	ZoneId pulumi.StringInput `pulumi:"zoneId"`
}

func (GetStocksStockArgs) ElementType

func (GetStocksStockArgs) ElementType() reflect.Type

func (GetStocksStockArgs) ToGetStocksStockOutput

func (i GetStocksStockArgs) ToGetStocksStockOutput() GetStocksStockOutput

func (GetStocksStockArgs) ToGetStocksStockOutputWithContext

func (i GetStocksStockArgs) ToGetStocksStockOutputWithContext(ctx context.Context) GetStocksStockOutput

type GetStocksStockArray

type GetStocksStockArray []GetStocksStockInput

func (GetStocksStockArray) ElementType

func (GetStocksStockArray) ElementType() reflect.Type

func (GetStocksStockArray) ToGetStocksStockArrayOutput

func (i GetStocksStockArray) ToGetStocksStockArrayOutput() GetStocksStockArrayOutput

func (GetStocksStockArray) ToGetStocksStockArrayOutputWithContext

func (i GetStocksStockArray) ToGetStocksStockArrayOutputWithContext(ctx context.Context) GetStocksStockArrayOutput

type GetStocksStockArrayInput

type GetStocksStockArrayInput interface {
	pulumi.Input

	ToGetStocksStockArrayOutput() GetStocksStockArrayOutput
	ToGetStocksStockArrayOutputWithContext(context.Context) GetStocksStockArrayOutput
}

GetStocksStockArrayInput is an input type that accepts GetStocksStockArray and GetStocksStockArrayOutput values. You can construct a concrete instance of `GetStocksStockArrayInput` via:

GetStocksStockArray{ GetStocksStockArgs{...} }

type GetStocksStockArrayOutput

type GetStocksStockArrayOutput struct{ *pulumi.OutputState }

func (GetStocksStockArrayOutput) ElementType

func (GetStocksStockArrayOutput) ElementType() reflect.Type

func (GetStocksStockArrayOutput) Index

func (GetStocksStockArrayOutput) ToGetStocksStockArrayOutput

func (o GetStocksStockArrayOutput) ToGetStocksStockArrayOutput() GetStocksStockArrayOutput

func (GetStocksStockArrayOutput) ToGetStocksStockArrayOutputWithContext

func (o GetStocksStockArrayOutput) ToGetStocksStockArrayOutputWithContext(ctx context.Context) GetStocksStockArrayOutput

type GetStocksStockInput

type GetStocksStockInput interface {
	pulumi.Input

	ToGetStocksStockOutput() GetStocksStockOutput
	ToGetStocksStockOutputWithContext(context.Context) GetStocksStockOutput
}

GetStocksStockInput is an input type that accepts GetStocksStockArgs and GetStocksStockOutput values. You can construct a concrete instance of `GetStocksStockInput` via:

GetStocksStockArgs{...}

type GetStocksStockOutput

type GetStocksStockOutput struct{ *pulumi.OutputState }

func (GetStocksStockOutput) AvailableGatewayClasses

func (o GetStocksStockOutput) AvailableGatewayClasses() pulumi.StringArrayOutput

A list of available gateway class in this Zone ID.

func (GetStocksStockOutput) ElementType

func (GetStocksStockOutput) ElementType() reflect.Type

func (GetStocksStockOutput) ToGetStocksStockOutput

func (o GetStocksStockOutput) ToGetStocksStockOutput() GetStocksStockOutput

func (GetStocksStockOutput) ToGetStocksStockOutputWithContext

func (o GetStocksStockOutput) ToGetStocksStockOutputWithContext(ctx context.Context) GetStocksStockOutput

func (GetStocksStockOutput) ZoneId

The Zone ID.

type GetStorageBundlesArgs

type GetStorageBundlesArgs struct {
	BackendBucketRegionId string   `pulumi:"backendBucketRegionId"`
	Ids                   []string `pulumi:"ids"`
	NameRegex             *string  `pulumi:"nameRegex"`
	OutputFile            *string  `pulumi:"outputFile"`
	PageNumber            *int     `pulumi:"pageNumber"`
	PageSize              *int     `pulumi:"pageSize"`
}

A collection of arguments for invoking getStorageBundles.

type GetStorageBundlesBundle

type GetStorageBundlesBundle struct {
	CreateTime        string `pulumi:"createTime"`
	Description       string `pulumi:"description"`
	Id                string `pulumi:"id"`
	Location          string `pulumi:"location"`
	StorageBundleId   string `pulumi:"storageBundleId"`
	StorageBundleName string `pulumi:"storageBundleName"`
}

type GetStorageBundlesBundleArgs

type GetStorageBundlesBundleArgs struct {
	CreateTime        pulumi.StringInput `pulumi:"createTime"`
	Description       pulumi.StringInput `pulumi:"description"`
	Id                pulumi.StringInput `pulumi:"id"`
	Location          pulumi.StringInput `pulumi:"location"`
	StorageBundleId   pulumi.StringInput `pulumi:"storageBundleId"`
	StorageBundleName pulumi.StringInput `pulumi:"storageBundleName"`
}

func (GetStorageBundlesBundleArgs) ElementType

func (GetStorageBundlesBundleArgs) ToGetStorageBundlesBundleOutput

func (i GetStorageBundlesBundleArgs) ToGetStorageBundlesBundleOutput() GetStorageBundlesBundleOutput

func (GetStorageBundlesBundleArgs) ToGetStorageBundlesBundleOutputWithContext

func (i GetStorageBundlesBundleArgs) ToGetStorageBundlesBundleOutputWithContext(ctx context.Context) GetStorageBundlesBundleOutput

type GetStorageBundlesBundleArray

type GetStorageBundlesBundleArray []GetStorageBundlesBundleInput

func (GetStorageBundlesBundleArray) ElementType

func (GetStorageBundlesBundleArray) ToGetStorageBundlesBundleArrayOutput

func (i GetStorageBundlesBundleArray) ToGetStorageBundlesBundleArrayOutput() GetStorageBundlesBundleArrayOutput

func (GetStorageBundlesBundleArray) ToGetStorageBundlesBundleArrayOutputWithContext

func (i GetStorageBundlesBundleArray) ToGetStorageBundlesBundleArrayOutputWithContext(ctx context.Context) GetStorageBundlesBundleArrayOutput

type GetStorageBundlesBundleArrayInput

type GetStorageBundlesBundleArrayInput interface {
	pulumi.Input

	ToGetStorageBundlesBundleArrayOutput() GetStorageBundlesBundleArrayOutput
	ToGetStorageBundlesBundleArrayOutputWithContext(context.Context) GetStorageBundlesBundleArrayOutput
}

GetStorageBundlesBundleArrayInput is an input type that accepts GetStorageBundlesBundleArray and GetStorageBundlesBundleArrayOutput values. You can construct a concrete instance of `GetStorageBundlesBundleArrayInput` via:

GetStorageBundlesBundleArray{ GetStorageBundlesBundleArgs{...} }

type GetStorageBundlesBundleArrayOutput

type GetStorageBundlesBundleArrayOutput struct{ *pulumi.OutputState }

func (GetStorageBundlesBundleArrayOutput) ElementType

func (GetStorageBundlesBundleArrayOutput) Index

func (GetStorageBundlesBundleArrayOutput) ToGetStorageBundlesBundleArrayOutput

func (o GetStorageBundlesBundleArrayOutput) ToGetStorageBundlesBundleArrayOutput() GetStorageBundlesBundleArrayOutput

func (GetStorageBundlesBundleArrayOutput) ToGetStorageBundlesBundleArrayOutputWithContext

func (o GetStorageBundlesBundleArrayOutput) ToGetStorageBundlesBundleArrayOutputWithContext(ctx context.Context) GetStorageBundlesBundleArrayOutput

type GetStorageBundlesBundleInput

type GetStorageBundlesBundleInput interface {
	pulumi.Input

	ToGetStorageBundlesBundleOutput() GetStorageBundlesBundleOutput
	ToGetStorageBundlesBundleOutputWithContext(context.Context) GetStorageBundlesBundleOutput
}

GetStorageBundlesBundleInput is an input type that accepts GetStorageBundlesBundleArgs and GetStorageBundlesBundleOutput values. You can construct a concrete instance of `GetStorageBundlesBundleInput` via:

GetStorageBundlesBundleArgs{...}

type GetStorageBundlesBundleOutput

type GetStorageBundlesBundleOutput struct{ *pulumi.OutputState }

func (GetStorageBundlesBundleOutput) CreateTime

func (GetStorageBundlesBundleOutput) Description

func (GetStorageBundlesBundleOutput) ElementType

func (GetStorageBundlesBundleOutput) Id

func (GetStorageBundlesBundleOutput) Location

func (GetStorageBundlesBundleOutput) StorageBundleId

func (GetStorageBundlesBundleOutput) StorageBundleName

func (o GetStorageBundlesBundleOutput) StorageBundleName() pulumi.StringOutput

func (GetStorageBundlesBundleOutput) ToGetStorageBundlesBundleOutput

func (o GetStorageBundlesBundleOutput) ToGetStorageBundlesBundleOutput() GetStorageBundlesBundleOutput

func (GetStorageBundlesBundleOutput) ToGetStorageBundlesBundleOutputWithContext

func (o GetStorageBundlesBundleOutput) ToGetStorageBundlesBundleOutputWithContext(ctx context.Context) GetStorageBundlesBundleOutput

type GetStorageBundlesOutputArgs

type GetStorageBundlesOutputArgs struct {
	BackendBucketRegionId pulumi.StringInput      `pulumi:"backendBucketRegionId"`
	Ids                   pulumi.StringArrayInput `pulumi:"ids"`
	NameRegex             pulumi.StringPtrInput   `pulumi:"nameRegex"`
	OutputFile            pulumi.StringPtrInput   `pulumi:"outputFile"`
	PageNumber            pulumi.IntPtrInput      `pulumi:"pageNumber"`
	PageSize              pulumi.IntPtrInput      `pulumi:"pageSize"`
}

A collection of arguments for invoking getStorageBundles.

func (GetStorageBundlesOutputArgs) ElementType

type GetStorageBundlesResult

type GetStorageBundlesResult struct {
	BackendBucketRegionId string                    `pulumi:"backendBucketRegionId"`
	Bundles               []GetStorageBundlesBundle `pulumi:"bundles"`
	// The provider-assigned unique ID for this managed resource.
	Id         string   `pulumi:"id"`
	Ids        []string `pulumi:"ids"`
	NameRegex  *string  `pulumi:"nameRegex"`
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	PageNumber *int     `pulumi:"pageNumber"`
	PageSize   *int     `pulumi:"pageSize"`
	TotalCount int      `pulumi:"totalCount"`
}

A collection of values returned by getStorageBundles.

type GetStorageBundlesResultOutput

type GetStorageBundlesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getStorageBundles.

func (GetStorageBundlesResultOutput) BackendBucketRegionId

func (o GetStorageBundlesResultOutput) BackendBucketRegionId() pulumi.StringOutput

func (GetStorageBundlesResultOutput) Bundles

func (GetStorageBundlesResultOutput) ElementType

func (GetStorageBundlesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetStorageBundlesResultOutput) Ids

func (GetStorageBundlesResultOutput) NameRegex

func (GetStorageBundlesResultOutput) Names

func (GetStorageBundlesResultOutput) OutputFile

func (GetStorageBundlesResultOutput) PageNumber

func (GetStorageBundlesResultOutput) PageSize

func (GetStorageBundlesResultOutput) ToGetStorageBundlesResultOutput

func (o GetStorageBundlesResultOutput) ToGetStorageBundlesResultOutput() GetStorageBundlesResultOutput

func (GetStorageBundlesResultOutput) ToGetStorageBundlesResultOutputWithContext

func (o GetStorageBundlesResultOutput) ToGetStorageBundlesResultOutputWithContext(ctx context.Context) GetStorageBundlesResultOutput

func (GetStorageBundlesResultOutput) TotalCount

type StorageBundle

type StorageBundle struct {
	pulumi.CustomResourceState

	// The description of storage bundle.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The name of storage bundle.
	StorageBundleName pulumi.StringOutput `pulumi:"storageBundleName"`
}

Provides a Cloud Storage Gateway Storage Bundle resource.

For information about Cloud Storage Gateway Storage Bundle and how to use it, see [What is Storage Bundle](https://www.alibabacloud.com/help/en/doc-detail/53972.htm).

> **NOTE:** Available in v1.116.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cloudstoragegateway"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudstoragegateway.NewStorageBundle(ctx, "example", &cloudstoragegateway.StorageBundleArgs{
			StorageBundleName: pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Cloud Storage Gateway Storage Bundle can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cloudstoragegateway/storageBundle:StorageBundle example <id>

```

func GetStorageBundle

func GetStorageBundle(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *StorageBundleState, opts ...pulumi.ResourceOption) (*StorageBundle, error)

GetStorageBundle gets an existing StorageBundle resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewStorageBundle

func NewStorageBundle(ctx *pulumi.Context,
	name string, args *StorageBundleArgs, opts ...pulumi.ResourceOption) (*StorageBundle, error)

NewStorageBundle registers a new resource with the given unique name, arguments, and options.

func (*StorageBundle) ElementType

func (*StorageBundle) ElementType() reflect.Type

func (*StorageBundle) ToStorageBundleOutput

func (i *StorageBundle) ToStorageBundleOutput() StorageBundleOutput

func (*StorageBundle) ToStorageBundleOutputWithContext

func (i *StorageBundle) ToStorageBundleOutputWithContext(ctx context.Context) StorageBundleOutput

type StorageBundleArgs

type StorageBundleArgs struct {
	// The description of storage bundle.
	Description pulumi.StringPtrInput
	// The name of storage bundle.
	StorageBundleName pulumi.StringInput
}

The set of arguments for constructing a StorageBundle resource.

func (StorageBundleArgs) ElementType

func (StorageBundleArgs) ElementType() reflect.Type

type StorageBundleArray

type StorageBundleArray []StorageBundleInput

func (StorageBundleArray) ElementType

func (StorageBundleArray) ElementType() reflect.Type

func (StorageBundleArray) ToStorageBundleArrayOutput

func (i StorageBundleArray) ToStorageBundleArrayOutput() StorageBundleArrayOutput

func (StorageBundleArray) ToStorageBundleArrayOutputWithContext

func (i StorageBundleArray) ToStorageBundleArrayOutputWithContext(ctx context.Context) StorageBundleArrayOutput

type StorageBundleArrayInput

type StorageBundleArrayInput interface {
	pulumi.Input

	ToStorageBundleArrayOutput() StorageBundleArrayOutput
	ToStorageBundleArrayOutputWithContext(context.Context) StorageBundleArrayOutput
}

StorageBundleArrayInput is an input type that accepts StorageBundleArray and StorageBundleArrayOutput values. You can construct a concrete instance of `StorageBundleArrayInput` via:

StorageBundleArray{ StorageBundleArgs{...} }

type StorageBundleArrayOutput

type StorageBundleArrayOutput struct{ *pulumi.OutputState }

func (StorageBundleArrayOutput) ElementType

func (StorageBundleArrayOutput) ElementType() reflect.Type

func (StorageBundleArrayOutput) Index

func (StorageBundleArrayOutput) ToStorageBundleArrayOutput

func (o StorageBundleArrayOutput) ToStorageBundleArrayOutput() StorageBundleArrayOutput

func (StorageBundleArrayOutput) ToStorageBundleArrayOutputWithContext

func (o StorageBundleArrayOutput) ToStorageBundleArrayOutputWithContext(ctx context.Context) StorageBundleArrayOutput

type StorageBundleInput

type StorageBundleInput interface {
	pulumi.Input

	ToStorageBundleOutput() StorageBundleOutput
	ToStorageBundleOutputWithContext(ctx context.Context) StorageBundleOutput
}

type StorageBundleMap

type StorageBundleMap map[string]StorageBundleInput

func (StorageBundleMap) ElementType

func (StorageBundleMap) ElementType() reflect.Type

func (StorageBundleMap) ToStorageBundleMapOutput

func (i StorageBundleMap) ToStorageBundleMapOutput() StorageBundleMapOutput

func (StorageBundleMap) ToStorageBundleMapOutputWithContext

func (i StorageBundleMap) ToStorageBundleMapOutputWithContext(ctx context.Context) StorageBundleMapOutput

type StorageBundleMapInput

type StorageBundleMapInput interface {
	pulumi.Input

	ToStorageBundleMapOutput() StorageBundleMapOutput
	ToStorageBundleMapOutputWithContext(context.Context) StorageBundleMapOutput
}

StorageBundleMapInput is an input type that accepts StorageBundleMap and StorageBundleMapOutput values. You can construct a concrete instance of `StorageBundleMapInput` via:

StorageBundleMap{ "key": StorageBundleArgs{...} }

type StorageBundleMapOutput

type StorageBundleMapOutput struct{ *pulumi.OutputState }

func (StorageBundleMapOutput) ElementType

func (StorageBundleMapOutput) ElementType() reflect.Type

func (StorageBundleMapOutput) MapIndex

func (StorageBundleMapOutput) ToStorageBundleMapOutput

func (o StorageBundleMapOutput) ToStorageBundleMapOutput() StorageBundleMapOutput

func (StorageBundleMapOutput) ToStorageBundleMapOutputWithContext

func (o StorageBundleMapOutput) ToStorageBundleMapOutputWithContext(ctx context.Context) StorageBundleMapOutput

type StorageBundleOutput

type StorageBundleOutput struct{ *pulumi.OutputState }

func (StorageBundleOutput) Description

func (o StorageBundleOutput) Description() pulumi.StringPtrOutput

The description of storage bundle.

func (StorageBundleOutput) ElementType

func (StorageBundleOutput) ElementType() reflect.Type

func (StorageBundleOutput) StorageBundleName

func (o StorageBundleOutput) StorageBundleName() pulumi.StringOutput

The name of storage bundle.

func (StorageBundleOutput) ToStorageBundleOutput

func (o StorageBundleOutput) ToStorageBundleOutput() StorageBundleOutput

func (StorageBundleOutput) ToStorageBundleOutputWithContext

func (o StorageBundleOutput) ToStorageBundleOutputWithContext(ctx context.Context) StorageBundleOutput

type StorageBundleState

type StorageBundleState struct {
	// The description of storage bundle.
	Description pulumi.StringPtrInput
	// The name of storage bundle.
	StorageBundleName pulumi.StringPtrInput
}

func (StorageBundleState) ElementType

func (StorageBundleState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL