alicloud.cloudstoragegateway.ExpressSync
Explore with Pulumi AI
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 since v1.144.0.
Create ExpressSync Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ExpressSync(name: string, args: ExpressSyncArgs, opts?: CustomResourceOptions);
@overload
def ExpressSync(resource_name: str,
args: ExpressSyncArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ExpressSync(resource_name: str,
opts: Optional[ResourceOptions] = None,
bucket_name: Optional[str] = None,
bucket_region: Optional[str] = None,
express_sync_name: Optional[str] = None,
bucket_prefix: Optional[str] = None,
description: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var expressSyncResource = new AliCloud.CloudStorageGateway.ExpressSync("expressSyncResource", new()
{
BucketName = "string",
BucketRegion = "string",
ExpressSyncName = "string",
BucketPrefix = "string",
Description = "string",
});
example, err := cloudstoragegateway.NewExpressSync(ctx, "expressSyncResource", &cloudstoragegateway.ExpressSyncArgs{
BucketName: pulumi.String("string"),
BucketRegion: pulumi.String("string"),
ExpressSyncName: pulumi.String("string"),
BucketPrefix: pulumi.String("string"),
Description: pulumi.String("string"),
})
var expressSyncResource = new ExpressSync("expressSyncResource", ExpressSyncArgs.builder()
.bucketName("string")
.bucketRegion("string")
.expressSyncName("string")
.bucketPrefix("string")
.description("string")
.build());
express_sync_resource = alicloud.cloudstoragegateway.ExpressSync("expressSyncResource",
bucket_name="string",
bucket_region="string",
express_sync_name="string",
bucket_prefix="string",
description="string")
const expressSyncResource = new alicloud.cloudstoragegateway.ExpressSync("expressSyncResource", {
bucketName: "string",
bucketRegion: "string",
expressSyncName: "string",
bucketPrefix: "string",
description: "string",
});
type: alicloud:cloudstoragegateway:ExpressSync
properties:
bucketName: string
bucketPrefix: string
bucketRegion: string
description: string
expressSyncName: string
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:
- Bucket
Name string - The name of the OSS Bucket.
- Bucket
Region string - The region of the OSS Bucket.
- Express
Sync stringName - The name of the ExpressSync. The length of the name is limited to
1
to128
characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, English periods (.), underscores (_), or hyphens (-), and must start with letters. - Bucket
Prefix string - The prefix of the OSS Bucket.
- Description string
- The description of the Express Sync. The length of the name is limited to
1
to255
characters.
- Bucket
Name string - The name of the OSS Bucket.
- Bucket
Region string - The region of the OSS Bucket.
- Express
Sync stringName - The name of the ExpressSync. The length of the name is limited to
1
to128
characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, English periods (.), underscores (_), or hyphens (-), and must start with letters. - Bucket
Prefix string - The prefix of the OSS Bucket.
- Description string
- The description of the Express Sync. The length of the name is limited to
1
to255
characters.
- bucket
Name String - The name of the OSS Bucket.
- bucket
Region String - The region of the OSS Bucket.
- express
Sync StringName - The name of the ExpressSync. The length of the name is limited to
1
to128
characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, English periods (.), underscores (_), or hyphens (-), and must start with letters. - bucket
Prefix String - The prefix of the OSS Bucket.
- description String
- The description of the Express Sync. The length of the name is limited to
1
to255
characters.
- bucket
Name string - The name of the OSS Bucket.
- bucket
Region string - The region of the OSS Bucket.
- express
Sync stringName - The name of the ExpressSync. The length of the name is limited to
1
to128
characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, English periods (.), underscores (_), or hyphens (-), and must start with letters. - bucket
Prefix string - The prefix of the OSS Bucket.
- description string
- The description of the Express Sync. The length of the name is limited to
1
to255
characters.
- bucket_
name str - The name of the OSS Bucket.
- bucket_
region str - The region of the OSS Bucket.
- express_
sync_ strname - The name of the ExpressSync. The length of the name is limited to
1
to128
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
to255
characters.
- bucket
Name String - The name of the OSS Bucket.
- bucket
Region String - The region of the OSS Bucket.
- express
Sync StringName - The name of the ExpressSync. The length of the name is limited to
1
to128
characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, English periods (.), underscores (_), or hyphens (-), and must start with letters. - bucket
Prefix String - The prefix of the OSS Bucket.
- description String
- The description of the Express Sync. The length of the name is limited to
1
to255
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.
- Bucket
Name string - The name of the OSS Bucket.
- Bucket
Prefix string - The prefix of the OSS Bucket.
- Bucket
Region string - The region of the OSS Bucket.
- Description string
- The description of the Express Sync. The length of the name is limited to
1
to255
characters. - Express
Sync stringName - The name of the ExpressSync. The length of the name is limited to
1
to128
characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, English periods (.), underscores (_), or hyphens (-), and must start with letters.
- Bucket
Name string - The name of the OSS Bucket.
- Bucket
Prefix string - The prefix of the OSS Bucket.
- Bucket
Region string - The region of the OSS Bucket.
- Description string
- The description of the Express Sync. The length of the name is limited to
1
to255
characters. - Express
Sync stringName - The name of the ExpressSync. The length of the name is limited to
1
to128
characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, English periods (.), underscores (_), or hyphens (-), and must start with letters.
- bucket
Name String - The name of the OSS Bucket.
- bucket
Prefix String - The prefix of the OSS Bucket.
- bucket
Region String - The region of the OSS Bucket.
- description String
- The description of the Express Sync. The length of the name is limited to
1
to255
characters. - express
Sync StringName - The name of the ExpressSync. The length of the name is limited to
1
to128
characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, English periods (.), underscores (_), or hyphens (-), and must start with letters.
- bucket
Name string - The name of the OSS Bucket.
- bucket
Prefix string - The prefix of the OSS Bucket.
- bucket
Region string - The region of the OSS Bucket.
- description string
- The description of the Express Sync. The length of the name is limited to
1
to255
characters. - express
Sync stringName - The name of the ExpressSync. The length of the name is limited to
1
to128
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
to255
characters. - express_
sync_ strname - The name of the ExpressSync. The length of the name is limited to
1
to128
characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, English periods (.), underscores (_), or hyphens (-), and must start with letters.
- bucket
Name String - The name of the OSS Bucket.
- bucket
Prefix String - The prefix of the OSS Bucket.
- bucket
Region String - The region of the OSS Bucket.
- description String
- The description of the Express Sync. The length of the name is limited to
1
to255
characters. - express
Sync StringName - The name of the ExpressSync. The length of the name is limited to
1
to128
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>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.