import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Data Share. * * ## 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 exampleAccount = new azure.datashare.Account("example", { * name: "example-dsa", * location: example.location, * resourceGroupName: example.name, * identity: { * type: "SystemAssigned", * }, * tags: { * foo: "bar", * }, * }); * const exampleShare = new azure.datashare.Share("example", { * name: "example_dss", * accountId: exampleAccount.id, * kind: "CopyBased", * description: "example desc", * terms: "example terms", * snapshotSchedule: { * name: "example-ss", * recurrence: "Day", * startTime: "2020-04-17T04:47:52.9614956Z", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.DataShare` - 2019-11-01 * * ## Import * * Data Shares can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:datashare/share:Share example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DataShare/accounts/account1/shares/share1 * ``` */ export declare class Share extends pulumi.CustomResource { /** * Get an existing Share 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?: ShareState, opts?: pulumi.CustomResourceOptions): Share; /** * Returns true if the given object is an instance of Share. 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 Share; /** * The ID of the Data Share account in which the Data Share is created. Changing this forces a new Data Share to be created. */ readonly accountId: pulumi.Output; /** * The Data Share's description. */ readonly description: pulumi.Output; /** * The kind of the Data Share. Possible values are `CopyBased` and `InPlace`. Changing this forces a new Data Share to be created. */ readonly kind: pulumi.Output; /** * The name which should be used for this Data Share. Changing this forces a new Data Share to be created. */ readonly name: pulumi.Output; /** * A `snapshotSchedule` block as defined below. */ readonly snapshotSchedule: pulumi.Output; /** * The terms of the Data Share. */ readonly terms: pulumi.Output; /** * Create a Share 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: ShareArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Share resources. */ export interface ShareState { /** * The ID of the Data Share account in which the Data Share is created. Changing this forces a new Data Share to be created. */ accountId?: pulumi.Input; /** * The Data Share's description. */ description?: pulumi.Input; /** * The kind of the Data Share. Possible values are `CopyBased` and `InPlace`. Changing this forces a new Data Share to be created. */ kind?: pulumi.Input; /** * The name which should be used for this Data Share. Changing this forces a new Data Share to be created. */ name?: pulumi.Input; /** * A `snapshotSchedule` block as defined below. */ snapshotSchedule?: pulumi.Input; /** * The terms of the Data Share. */ terms?: pulumi.Input; } /** * The set of arguments for constructing a Share resource. */ export interface ShareArgs { /** * The ID of the Data Share account in which the Data Share is created. Changing this forces a new Data Share to be created. */ accountId: pulumi.Input; /** * The Data Share's description. */ description?: pulumi.Input; /** * The kind of the Data Share. Possible values are `CopyBased` and `InPlace`. Changing this forces a new Data Share to be created. */ kind: pulumi.Input; /** * The name which should be used for this Data Share. Changing this forces a new Data Share to be created. */ name?: pulumi.Input; /** * A `snapshotSchedule` block as defined below. */ snapshotSchedule?: pulumi.Input; /** * The terms of the Data Share. */ terms?: pulumi.Input; }