import * as pulumi from "@pulumi/pulumi"; /** * Manages a Storage Sync Cloud Endpoint. * * > **Note:** Please ensure Azure File Sync has access to the storage account in your subscription, which indicates that `Microsoft.StorageSync` is assigned role `Reader and Data Access` ( refer to details [here](https://docs.microsoft.com/azure/storage/files/storage-sync-files-troubleshoot?tabs=portal1%2Cazure-portal#common-troubleshooting-steps)). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleSync = new azure.storage.Sync("example", { * name: "example-ss", * resourceGroupName: example.name, * location: example.location, * }); * const exampleSyncGroup = new azure.storage.SyncGroup("example", { * name: "example-ss-group", * storageSyncId: exampleSync.id, * }); * const exampleAccount = new azure.storage.Account("example", { * name: "example", * resourceGroupName: example.name, * location: example.location, * accountTier: "Standard", * accountReplicationType: "LRS", * }); * const exampleShare = new azure.storage.Share("example", { * name: "example-share", * storageAccountName: exampleAccount.name, * quota: 50, * acls: [{ * id: "GhostedRecall", * accessPolicies: [{ * permissions: "r", * }], * }], * }); * const exampleSyncCloudEndpoint = new azure.storage.SyncCloudEndpoint("example", { * name: "example-ss-ce", * storageSyncGroupId: exampleSyncGroup.id, * fileShareName: exampleShare.name, * storageAccountId: exampleAccount.id, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.StorageSync` - 2020-03-01 * * ## Import * * Storage Sync Cloud Endpoints can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:storage/syncCloudEndpoint:SyncCloudEndpoint example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.StorageSync/storageSyncServices/sync1/syncGroups/syncgroup1/cloudEndpoints/cloudEndpoint1 * ``` */ export declare class SyncCloudEndpoint extends pulumi.CustomResource { /** * Get an existing SyncCloudEndpoint resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: SyncCloudEndpointState, opts?: pulumi.CustomResourceOptions): SyncCloudEndpoint; /** * Returns true if the given object is an instance of SyncCloudEndpoint. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is SyncCloudEndpoint; /** * The Storage Share name to be synchronized in this Storage Sync Cloud Endpoint. Changing this forces a new Storage Sync Cloud Endpoint to be created. */ readonly fileShareName: pulumi.Output; /** * The name which should be used for this Storage Sync Cloud Endpoint. Changing this forces a new Storage Sync Cloud Endpoint to be created. */ readonly name: pulumi.Output; /** * The ID of the Storage Account where the Storage Share exists. Changing this forces a new Storage Sync Cloud Endpoint to be created. */ readonly storageAccountId: pulumi.Output; /** * The Tenant ID of the Storage Account where the Storage Share exists. Changing this forces a new Storage Sync Cloud Endpoint to be created. Defaults to the current tenant id. */ readonly storageAccountTenantId: pulumi.Output; /** * The ID of the Storage Sync Group where this Cloud Endpoint should be created. Changing this forces a new Storage Sync Cloud Endpoint to be created. */ readonly storageSyncGroupId: pulumi.Output; /** * Create a SyncCloudEndpoint resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: SyncCloudEndpointArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SyncCloudEndpoint resources. */ export interface SyncCloudEndpointState { /** * The Storage Share name to be synchronized in this Storage Sync Cloud Endpoint. Changing this forces a new Storage Sync Cloud Endpoint to be created. */ fileShareName?: pulumi.Input; /** * The name which should be used for this Storage Sync Cloud Endpoint. Changing this forces a new Storage Sync Cloud Endpoint to be created. */ name?: pulumi.Input; /** * The ID of the Storage Account where the Storage Share exists. Changing this forces a new Storage Sync Cloud Endpoint to be created. */ storageAccountId?: pulumi.Input; /** * The Tenant ID of the Storage Account where the Storage Share exists. Changing this forces a new Storage Sync Cloud Endpoint to be created. Defaults to the current tenant id. */ storageAccountTenantId?: pulumi.Input; /** * The ID of the Storage Sync Group where this Cloud Endpoint should be created. Changing this forces a new Storage Sync Cloud Endpoint to be created. */ storageSyncGroupId?: pulumi.Input; } /** * The set of arguments for constructing a SyncCloudEndpoint resource. */ export interface SyncCloudEndpointArgs { /** * The Storage Share name to be synchronized in this Storage Sync Cloud Endpoint. Changing this forces a new Storage Sync Cloud Endpoint to be created. */ fileShareName: pulumi.Input; /** * The name which should be used for this Storage Sync Cloud Endpoint. Changing this forces a new Storage Sync Cloud Endpoint to be created. */ name?: pulumi.Input; /** * The ID of the Storage Account where the Storage Share exists. Changing this forces a new Storage Sync Cloud Endpoint to be created. */ storageAccountId: pulumi.Input; /** * The Tenant ID of the Storage Account where the Storage Share exists. Changing this forces a new Storage Sync Cloud Endpoint to be created. Defaults to the current tenant id. */ storageAccountTenantId?: pulumi.Input; /** * The ID of the Storage Sync Group where this Cloud Endpoint should be created. Changing this forces a new Storage Sync Cloud Endpoint to be created. */ storageSyncGroupId: pulumi.Input; }