1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cloudstoragegateway
  5. ExpressSyncShareAttachment
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.cloudstoragegateway.ExpressSyncShareAttachment

Explore with Pulumi AI

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.

NOTE: Available since v1.144.0.

Create ExpressSyncShareAttachment Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ExpressSyncShareAttachment(name: string, args: ExpressSyncShareAttachmentArgs, opts?: CustomResourceOptions);
@overload
def ExpressSyncShareAttachment(resource_name: str,
                               args: ExpressSyncShareAttachmentArgs,
                               opts: Optional[ResourceOptions] = None)

@overload
def ExpressSyncShareAttachment(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               express_sync_id: Optional[str] = None,
                               gateway_id: Optional[str] = None,
                               share_name: Optional[str] = None)
func NewExpressSyncShareAttachment(ctx *Context, name string, args ExpressSyncShareAttachmentArgs, opts ...ResourceOption) (*ExpressSyncShareAttachment, error)
public ExpressSyncShareAttachment(string name, ExpressSyncShareAttachmentArgs args, CustomResourceOptions? opts = null)
public ExpressSyncShareAttachment(String name, ExpressSyncShareAttachmentArgs args)
public ExpressSyncShareAttachment(String name, ExpressSyncShareAttachmentArgs args, CustomResourceOptions options)
type: alicloud:cloudstoragegateway:ExpressSyncShareAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ExpressSyncShareAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ExpressSyncShareAttachmentArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ExpressSyncShareAttachmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ExpressSyncShareAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ExpressSyncShareAttachmentArgs
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 expressSyncShareAttachmentResource = new AliCloud.CloudStorageGateway.ExpressSyncShareAttachment("expressSyncShareAttachmentResource", new()
{
    ExpressSyncId = "string",
    GatewayId = "string",
    ShareName = "string",
});
Copy
example, err := cloudstoragegateway.NewExpressSyncShareAttachment(ctx, "expressSyncShareAttachmentResource", &cloudstoragegateway.ExpressSyncShareAttachmentArgs{
	ExpressSyncId: pulumi.String("string"),
	GatewayId:     pulumi.String("string"),
	ShareName:     pulumi.String("string"),
})
Copy
var expressSyncShareAttachmentResource = new ExpressSyncShareAttachment("expressSyncShareAttachmentResource", ExpressSyncShareAttachmentArgs.builder()
    .expressSyncId("string")
    .gatewayId("string")
    .shareName("string")
    .build());
Copy
express_sync_share_attachment_resource = alicloud.cloudstoragegateway.ExpressSyncShareAttachment("expressSyncShareAttachmentResource",
    express_sync_id="string",
    gateway_id="string",
    share_name="string")
Copy
const expressSyncShareAttachmentResource = new alicloud.cloudstoragegateway.ExpressSyncShareAttachment("expressSyncShareAttachmentResource", {
    expressSyncId: "string",
    gatewayId: "string",
    shareName: "string",
});
Copy
type: alicloud:cloudstoragegateway:ExpressSyncShareAttachment
properties:
    expressSyncId: string
    gatewayId: string
    shareName: string
Copy

ExpressSyncShareAttachment Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ExpressSyncShareAttachment resource accepts the following input properties:

ExpressSyncId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the ExpressSync.
GatewayId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Gateway.
ShareName
This property is required.
Changes to this property will trigger replacement.
string
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.
ExpressSyncId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the ExpressSync.
GatewayId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Gateway.
ShareName
This property is required.
Changes to this property will trigger replacement.
string
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.
expressSyncId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the ExpressSync.
gatewayId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Gateway.
shareName
This property is required.
Changes to this property will trigger replacement.
String
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.
expressSyncId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the ExpressSync.
gatewayId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Gateway.
shareName
This property is required.
Changes to this property will trigger replacement.
string
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.
express_sync_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the ExpressSync.
gateway_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the Gateway.
share_name
This property is required.
Changes to this property will trigger replacement.
str
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.
expressSyncId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the ExpressSync.
gatewayId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Gateway.
shareName
This property is required.
Changes to this property will trigger replacement.
String
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.

Outputs

All input properties are implicitly available as output properties. Additionally, the ExpressSyncShareAttachment 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 ExpressSyncShareAttachment Resource

Get an existing ExpressSyncShareAttachment 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?: ExpressSyncShareAttachmentState, opts?: CustomResourceOptions): ExpressSyncShareAttachment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        express_sync_id: Optional[str] = None,
        gateway_id: Optional[str] = None,
        share_name: Optional[str] = None) -> ExpressSyncShareAttachment
func GetExpressSyncShareAttachment(ctx *Context, name string, id IDInput, state *ExpressSyncShareAttachmentState, opts ...ResourceOption) (*ExpressSyncShareAttachment, error)
public static ExpressSyncShareAttachment Get(string name, Input<string> id, ExpressSyncShareAttachmentState? state, CustomResourceOptions? opts = null)
public static ExpressSyncShareAttachment get(String name, Output<String> id, ExpressSyncShareAttachmentState state, CustomResourceOptions options)
resources:  _:    type: alicloud:cloudstoragegateway:ExpressSyncShareAttachment    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
ExpressSyncId Changes to this property will trigger replacement. string
The ID of the ExpressSync.
GatewayId Changes to this property will trigger replacement. string
The ID of the Gateway.
ShareName Changes to this property will trigger replacement. string
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.
ExpressSyncId Changes to this property will trigger replacement. string
The ID of the ExpressSync.
GatewayId Changes to this property will trigger replacement. string
The ID of the Gateway.
ShareName Changes to this property will trigger replacement. string
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.
expressSyncId Changes to this property will trigger replacement. String
The ID of the ExpressSync.
gatewayId Changes to this property will trigger replacement. String
The ID of the Gateway.
shareName Changes to this property will trigger replacement. String
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.
expressSyncId Changes to this property will trigger replacement. string
The ID of the ExpressSync.
gatewayId Changes to this property will trigger replacement. string
The ID of the Gateway.
shareName Changes to this property will trigger replacement. string
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.
express_sync_id Changes to this property will trigger replacement. str
The ID of the ExpressSync.
gateway_id Changes to this property will trigger replacement. str
The ID of the Gateway.
share_name Changes to this property will trigger replacement. str
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.
expressSyncId Changes to this property will trigger replacement. String
The ID of the ExpressSync.
gatewayId Changes to this property will trigger replacement. String
The ID of the Gateway.
shareName Changes to this property will trigger replacement. String
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.

Import

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

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

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.