Alibaba Cloud

v3.28.0 published on Tuesday, Aug 16, 2022 by Pulumi

ExpressSync

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.

NOTE: Available in v1.144.0+.

Example Usage

Basic Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var config = new Config();
        var name = config.Get("name") ?? "tftest";
        var region = config.Get("region") ?? "cn-shanghai";
        var defaultStocks = Output.Create(AliCloud.CloudStorageGateway.GetStocks.InvokeAsync(new AliCloud.CloudStorageGateway.GetStocksArgs
        {
            GatewayClass = "Standard",
        }));
        var vpc = new AliCloud.Vpc.Network("vpc", new AliCloud.Vpc.NetworkArgs
        {
            VpcName = name,
            CidrBlock = "172.16.0.0/12",
        });
        var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new AliCloud.Vpc.SwitchArgs
        {
            VpcId = vpc.Id,
            CidrBlock = "172.16.0.0/21",
            ZoneId = defaultStocks.Apply(defaultStocks => defaultStocks.Stocks?[0]?.ZoneId),
            VswitchName = name,
        });
        var defaultStorageBundle = new AliCloud.CloudStorageGateway.StorageBundle("defaultStorageBundle", new AliCloud.CloudStorageGateway.StorageBundleArgs
        {
            StorageBundleName = name,
        });
        var defaultGateway = new AliCloud.CloudStorageGateway.Gateway("defaultGateway", new AliCloud.CloudStorageGateway.GatewayArgs
        {
            Description = "tf-acctestDesalone",
            GatewayClass = "Standard",
            Type = "File",
            PaymentType = "PayAsYouGo",
            VswitchId = defaultSwitch.Id,
            ReleaseAfterExpiration = true,
            PublicNetworkBandwidth = 10,
            StorageBundleId = defaultStorageBundle.Id,
            Location = "Cloud",
            GatewayName = name,
        });
        var defaultGatewayCacheDisk = new AliCloud.CloudStorageGateway.GatewayCacheDisk("defaultGatewayCacheDisk", new AliCloud.CloudStorageGateway.GatewayCacheDiskArgs
        {
            CacheDiskCategory = "cloud_efficiency",
            GatewayId = defaultGateway.Id,
            CacheDiskSizeInGb = 50,
        });
        var defaultBucket = new AliCloud.Oss.Bucket("defaultBucket", new AliCloud.Oss.BucketArgs
        {
            BucketName = name,
            Acl = "public-read-write",
        });
        var defaultGatewayFileShare = new AliCloud.CloudStorageGateway.GatewayFileShare("defaultGatewayFileShare", new AliCloud.CloudStorageGateway.GatewayFileShareArgs
        {
            GatewayFileShareName = name,
            GatewayId = defaultGateway.Id,
            LocalPath = defaultGatewayCacheDisk.LocalFilePath,
            OssBucketName = defaultBucket.BucketName,
            OssEndpoint = defaultBucket.ExtranetEndpoint,
            Protocol = "NFS",
            RemoteSync = true,
            PollingInterval = 4500,
            FeLimit = 0,
            BackendLimit = 0,
            CacheMode = "Cache",
            Squash = "none",
            LagPeriod = 5,
        });
        var defaultExpressSync = new AliCloud.CloudStorageGateway.ExpressSync("defaultExpressSync", new AliCloud.CloudStorageGateway.ExpressSyncArgs
        {
            BucketName = defaultGatewayFileShare.OssBucketName,
            BucketRegion = region,
            Description = name,
            ExpressSyncName = name,
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cloudstoragegateway"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/oss"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "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
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cloudstoragegateway.CloudstoragegatewayFunctions;
import com.pulumi.alicloud.cloudstoragegateway.inputs.GetStocksArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.cloudstoragegateway.StorageBundle;
import com.pulumi.alicloud.cloudstoragegateway.StorageBundleArgs;
import com.pulumi.alicloud.cloudstoragegateway.Gateway;
import com.pulumi.alicloud.cloudstoragegateway.GatewayArgs;
import com.pulumi.alicloud.cloudstoragegateway.GatewayCacheDisk;
import com.pulumi.alicloud.cloudstoragegateway.GatewayCacheDiskArgs;
import com.pulumi.alicloud.oss.Bucket;
import com.pulumi.alicloud.oss.BucketArgs;
import com.pulumi.alicloud.cloudstoragegateway.GatewayFileShare;
import com.pulumi.alicloud.cloudstoragegateway.GatewayFileShareArgs;
import com.pulumi.alicloud.cloudstoragegateway.ExpressSync;
import com.pulumi.alicloud.cloudstoragegateway.ExpressSyncArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var config = ctx.config();
        final var name = config.get("name").orElse("tftest");
        final var region = config.get("region").orElse("cn-shanghai");
        final var defaultStocks = CloudstoragegatewayFunctions.getStocks(GetStocksArgs.builder()
            .gatewayClass("Standard")
            .build());

        var vpc = new Network("vpc", NetworkArgs.builder()        
            .vpcName(name)
            .cidrBlock("172.16.0.0/12")
            .build());

        var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()        
            .vpcId(vpc.id())
            .cidrBlock("172.16.0.0/21")
            .zoneId(defaultStocks.applyValue(getStocksResult -> getStocksResult.stocks()[0].zoneId()))
            .vswitchName(name)
            .build());

        var defaultStorageBundle = new StorageBundle("defaultStorageBundle", StorageBundleArgs.builder()        
            .storageBundleName(name)
            .build());

        var defaultGateway = new Gateway("defaultGateway", GatewayArgs.builder()        
            .description("tf-acctestDesalone")
            .gatewayClass("Standard")
            .type("File")
            .paymentType("PayAsYouGo")
            .vswitchId(defaultSwitch.id())
            .releaseAfterExpiration(true)
            .publicNetworkBandwidth(10)
            .storageBundleId(defaultStorageBundle.id())
            .location("Cloud")
            .gatewayName(name)
            .build());

        var defaultGatewayCacheDisk = new GatewayCacheDisk("defaultGatewayCacheDisk", GatewayCacheDiskArgs.builder()        
            .cacheDiskCategory("cloud_efficiency")
            .gatewayId(defaultGateway.id())
            .cacheDiskSizeInGb(50)
            .build());

        var defaultBucket = new Bucket("defaultBucket", BucketArgs.builder()        
            .bucket(name)
            .acl("public-read-write")
            .build());

        var defaultGatewayFileShare = new GatewayFileShare("defaultGatewayFileShare", GatewayFileShareArgs.builder()        
            .gatewayFileShareName(name)
            .gatewayId(defaultGateway.id())
            .localPath(defaultGatewayCacheDisk.localFilePath())
            .ossBucketName(defaultBucket.bucket())
            .ossEndpoint(defaultBucket.extranetEndpoint())
            .protocol("NFS")
            .remoteSync(true)
            .pollingInterval(4500)
            .feLimit(0)
            .backendLimit(0)
            .cacheMode("Cache")
            .squash("none")
            .lagPeriod(5)
            .build());

        var defaultExpressSync = new ExpressSync("defaultExpressSync", ExpressSyncArgs.builder()        
            .bucketName(defaultGatewayFileShare.ossBucketName())
            .bucketRegion(region)
            .description(name)
            .expressSyncName(name)
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "tftest"
region = config.get("region")
if region is None:
    region = "cn-shanghai"
default_stocks = alicloud.cloudstoragegateway.get_stocks(gateway_class="Standard")
vpc = alicloud.vpc.Network("vpc",
    vpc_name=name,
    cidr_block="172.16.0.0/12")
default_switch = alicloud.vpc.Switch("defaultSwitch",
    vpc_id=vpc.id,
    cidr_block="172.16.0.0/21",
    zone_id=default_stocks.stocks[0].zone_id,
    vswitch_name=name)
default_storage_bundle = alicloud.cloudstoragegateway.StorageBundle("defaultStorageBundle", storage_bundle_name=name)
default_gateway = alicloud.cloudstoragegateway.Gateway("defaultGateway",
    description="tf-acctestDesalone",
    gateway_class="Standard",
    type="File",
    payment_type="PayAsYouGo",
    vswitch_id=default_switch.id,
    release_after_expiration=True,
    public_network_bandwidth=10,
    storage_bundle_id=default_storage_bundle.id,
    location="Cloud",
    gateway_name=name)
default_gateway_cache_disk = alicloud.cloudstoragegateway.GatewayCacheDisk("defaultGatewayCacheDisk",
    cache_disk_category="cloud_efficiency",
    gateway_id=default_gateway.id,
    cache_disk_size_in_gb=50)
default_bucket = alicloud.oss.Bucket("defaultBucket",
    bucket=name,
    acl="public-read-write")
default_gateway_file_share = alicloud.cloudstoragegateway.GatewayFileShare("defaultGatewayFileShare",
    gateway_file_share_name=name,
    gateway_id=default_gateway.id,
    local_path=default_gateway_cache_disk.local_file_path,
    oss_bucket_name=default_bucket.bucket,
    oss_endpoint=default_bucket.extranet_endpoint,
    protocol="NFS",
    remote_sync=True,
    polling_interval=4500,
    fe_limit=0,
    backend_limit=0,
    cache_mode="Cache",
    squash="none",
    lag_period=5)
default_express_sync = alicloud.cloudstoragegateway.ExpressSync("defaultExpressSync",
    bucket_name=default_gateway_file_share.oss_bucket_name,
    bucket_region=region,
    description=name,
    express_sync_name=name)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const config = new pulumi.Config();
const name = config.get("name") || "tftest";
const region = config.get("region") || "cn-shanghai";
const defaultStocks = alicloud.cloudstoragegateway.getStocks({
    gatewayClass: "Standard",
});
const vpc = new alicloud.vpc.Network("vpc", {
    vpcName: name,
    cidrBlock: "172.16.0.0/12",
});
const defaultSwitch = new alicloud.vpc.Switch("defaultSwitch", {
    vpcId: vpc.id,
    cidrBlock: "172.16.0.0/21",
    zoneId: defaultStocks.then(defaultStocks => defaultStocks.stocks?[0]?.zoneId),
    vswitchName: name,
});
const defaultStorageBundle = new alicloud.cloudstoragegateway.StorageBundle("defaultStorageBundle", {storageBundleName: name});
const defaultGateway = new alicloud.cloudstoragegateway.Gateway("defaultGateway", {
    description: "tf-acctestDesalone",
    gatewayClass: "Standard",
    type: "File",
    paymentType: "PayAsYouGo",
    vswitchId: defaultSwitch.id,
    releaseAfterExpiration: true,
    publicNetworkBandwidth: 10,
    storageBundleId: defaultStorageBundle.id,
    location: "Cloud",
    gatewayName: name,
});
const defaultGatewayCacheDisk = new alicloud.cloudstoragegateway.GatewayCacheDisk("defaultGatewayCacheDisk", {
    cacheDiskCategory: "cloud_efficiency",
    gatewayId: defaultGateway.id,
    cacheDiskSizeInGb: 50,
});
const defaultBucket = new alicloud.oss.Bucket("defaultBucket", {
    bucket: name,
    acl: "public-read-write",
});
const defaultGatewayFileShare = new alicloud.cloudstoragegateway.GatewayFileShare("defaultGatewayFileShare", {
    gatewayFileShareName: name,
    gatewayId: defaultGateway.id,
    localPath: defaultGatewayCacheDisk.localFilePath,
    ossBucketName: defaultBucket.bucket,
    ossEndpoint: defaultBucket.extranetEndpoint,
    protocol: "NFS",
    remoteSync: true,
    pollingInterval: 4500,
    feLimit: 0,
    backendLimit: 0,
    cacheMode: "Cache",
    squash: "none",
    lagPeriod: 5,
});
const defaultExpressSync = new alicloud.cloudstoragegateway.ExpressSync("defaultExpressSync", {
    bucketName: defaultGatewayFileShare.ossBucketName,
    bucketRegion: region,
    description: name,
    expressSyncName: name,
});
configuration:
  name:
    type: string
    default: tftest
  region:
    type: string
    default: cn-shanghai
resources:
  vpc:
    type: alicloud:vpc:Network
    properties:
      vpcName: ${name}
      cidrBlock: 172.16.0.0/12
  defaultSwitch:
    type: alicloud:vpc:Switch
    properties:
      vpcId: ${vpc.id}
      cidrBlock: 172.16.0.0/21
      zoneId: ${defaultStocks.stocks[0].zoneId}
      vswitchName: ${name}
  defaultStorageBundle:
    type: alicloud:cloudstoragegateway:StorageBundle
    properties:
      storageBundleName: ${name}
  defaultGateway:
    type: alicloud:cloudstoragegateway:Gateway
    properties:
      description: tf-acctestDesalone
      gatewayClass: Standard
      type: File
      paymentType: PayAsYouGo
      vswitchId: ${defaultSwitch.id}
      releaseAfterExpiration: true
      publicNetworkBandwidth: 10
      storageBundleId: ${defaultStorageBundle.id}
      location: Cloud
      gatewayName: ${name}
  defaultGatewayCacheDisk:
    type: alicloud:cloudstoragegateway:GatewayCacheDisk
    properties:
      cacheDiskCategory: cloud_efficiency
      gatewayId: ${defaultGateway.id}
      cacheDiskSizeInGb: 50
  defaultBucket:
    type: alicloud:oss:Bucket
    properties:
      bucket: ${name}
      acl: public-read-write
  defaultGatewayFileShare:
    type: alicloud:cloudstoragegateway:GatewayFileShare
    properties:
      gatewayFileShareName: ${name}
      gatewayId: ${defaultGateway.id}
      localPath: ${defaultGatewayCacheDisk.localFilePath}
      ossBucketName: ${defaultBucket.bucket}
      ossEndpoint: ${defaultBucket.extranetEndpoint}
      protocol: NFS
      remoteSync: true
      pollingInterval: 4500
      feLimit: 0
      backendLimit: 0
      cacheMode: Cache
      squash: none
      lagPeriod: 5
  defaultExpressSync:
    type: alicloud:cloudstoragegateway:ExpressSync
    properties:
      bucketName: ${defaultGatewayFileShare.ossBucketName}
      bucketRegion: ${region}
      description: ${name}
      expressSyncName: ${name}
variables:
  defaultStocks:
    Fn::Invoke:
      Function: alicloud:cloudstoragegateway:getStocks
      Arguments:
        gatewayClass: Standard

Create ExpressSync Resource

new ExpressSync(name: string, args: ExpressSyncArgs, opts?: CustomResourceOptions);
@overload
def ExpressSync(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                bucket_name: Optional[str] = None,
                bucket_prefix: Optional[str] = None,
                bucket_region: Optional[str] = None,
                description: Optional[str] = None,
                express_sync_name: Optional[str] = None)
@overload
def ExpressSync(resource_name: str,
                args: ExpressSyncArgs,
                opts: Optional[ResourceOptions] = None)
func NewExpressSync(ctx *Context, name string, args ExpressSyncArgs, opts ...ResourceOption) (*ExpressSync, error)
public ExpressSync(string name, ExpressSyncArgs args, CustomResourceOptions? opts = null)
public ExpressSync(String name, ExpressSyncArgs args)
public ExpressSync(String name, ExpressSyncArgs args, CustomResourceOptions options)
type: alicloud:cloudstoragegateway:ExpressSync
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ExpressSyncArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args ExpressSyncArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ExpressSyncArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ExpressSyncArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ExpressSyncArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ExpressSync Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The ExpressSync resource accepts the following input properties:

BucketName string

The name of the OSS Bucket.

BucketRegion string

The region of the OSS Bucket.

ExpressSyncName string

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.

BucketPrefix string

The prefix of the OSS Bucket.

Description string

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

BucketName string

The name of the OSS Bucket.

BucketRegion string

The region of the OSS Bucket.

ExpressSyncName string

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.

BucketPrefix string

The prefix of the OSS Bucket.

Description string

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

bucketName String

The name of the OSS Bucket.

bucketRegion String

The region of the OSS Bucket.

expressSyncName String

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.

bucketPrefix String

The prefix of the OSS Bucket.

description String

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

bucketName string

The name of the OSS Bucket.

bucketRegion string

The region of the OSS Bucket.

expressSyncName string

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.

bucketPrefix string

The prefix of the OSS Bucket.

description string

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

bucket_name str

The name of the OSS Bucket.

bucket_region str

The region of the OSS Bucket.

express_sync_name str

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.

bucket_prefix str

The prefix of the OSS Bucket.

description str

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

bucketName String

The name of the OSS Bucket.

bucketRegion String

The region of the OSS Bucket.

expressSyncName String

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.

bucketPrefix String

The prefix of the OSS Bucket.

description String

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

Outputs

All input properties are implicitly available as output properties. Additionally, the ExpressSync resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing ExpressSync Resource

Get an existing ExpressSync resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ExpressSyncState, opts?: CustomResourceOptions): ExpressSync
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        bucket_name: Optional[str] = None,
        bucket_prefix: Optional[str] = None,
        bucket_region: Optional[str] = None,
        description: Optional[str] = None,
        express_sync_name: Optional[str] = None) -> ExpressSync
func GetExpressSync(ctx *Context, name string, id IDInput, state *ExpressSyncState, opts ...ResourceOption) (*ExpressSync, error)
public static ExpressSync Get(string name, Input<string> id, ExpressSyncState? state, CustomResourceOptions? opts = null)
public static ExpressSync get(String name, Output<String> id, ExpressSyncState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
BucketName string

The name of the OSS Bucket.

BucketPrefix string

The prefix of the OSS Bucket.

BucketRegion string

The region of the OSS Bucket.

Description string

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

ExpressSyncName string

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.

BucketName string

The name of the OSS Bucket.

BucketPrefix string

The prefix of the OSS Bucket.

BucketRegion string

The region of the OSS Bucket.

Description string

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

ExpressSyncName string

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.

bucketName String

The name of the OSS Bucket.

bucketPrefix String

The prefix of the OSS Bucket.

bucketRegion String

The region of the OSS Bucket.

description String

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

expressSyncName String

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.

bucketName string

The name of the OSS Bucket.

bucketPrefix string

The prefix of the OSS Bucket.

bucketRegion string

The region of the OSS Bucket.

description string

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

expressSyncName string

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.

bucket_name str

The name of the OSS Bucket.

bucket_prefix str

The prefix of the OSS Bucket.

bucket_region str

The region of the OSS Bucket.

description str

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

express_sync_name str

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.

bucketName String

The name of the OSS Bucket.

bucketPrefix String

The prefix of the OSS Bucket.

bucketRegion String

The region of the OSS Bucket.

description String

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

expressSyncName String

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.

Import

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

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

Package Details

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

This Pulumi package is based on the alicloud Terraform Provider.