import * as pulumi from "@pulumi/pulumi"; /** * Manages a Communication Service. * * ## 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 exampleService = new azure.communication.Service("example", { * name: "example-communicationservice", * resourceGroupName: example.name, * dataLocation: "United States", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Communication` - 2023-03-31 * * ## Import * * Communication Services can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:communication/service:Service example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Communication/communicationServices/communicationService1 * ``` */ export declare class Service extends pulumi.CustomResource { /** * Get an existing Service 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?: ServiceState, opts?: pulumi.CustomResourceOptions): Service; /** * Returns true if the given object is an instance of Service. 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 Service; /** * The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. */ readonly dataLocation: pulumi.Output; /** * The hostname of the Communication Service */ readonly hostname: pulumi.Output; /** * The name of the Communication Service resource. Changing this forces a new Communication Service to be created. */ readonly name: pulumi.Output; /** * The primary connection string of the Communication Service. */ readonly primaryConnectionString: pulumi.Output; /** * The primary key of the Communication Service. */ readonly primaryKey: pulumi.Output; /** * The name of the Resource Group where the Communication Service should exist. Changing this forces a new Communication Service to be created. */ readonly resourceGroupName: pulumi.Output; /** * The secondary connection string of the Communication Service. */ readonly secondaryConnectionString: pulumi.Output; /** * The secondary key of the Communication Service. */ readonly secondaryKey: pulumi.Output; /** * A mapping of tags which should be assigned to the Communication Service. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a Service 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: ServiceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Service resources. */ export interface ServiceState { /** * The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. */ dataLocation?: pulumi.Input; /** * The hostname of the Communication Service */ hostname?: pulumi.Input; /** * The name of the Communication Service resource. Changing this forces a new Communication Service to be created. */ name?: pulumi.Input; /** * The primary connection string of the Communication Service. */ primaryConnectionString?: pulumi.Input; /** * The primary key of the Communication Service. */ primaryKey?: pulumi.Input; /** * The name of the Resource Group where the Communication Service should exist. Changing this forces a new Communication Service to be created. */ resourceGroupName?: pulumi.Input; /** * The secondary connection string of the Communication Service. */ secondaryConnectionString?: pulumi.Input; /** * The secondary key of the Communication Service. */ secondaryKey?: pulumi.Input; /** * A mapping of tags which should be assigned to the Communication Service. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a Service resource. */ export interface ServiceArgs { /** * The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. */ dataLocation?: pulumi.Input; /** * The name of the Communication Service resource. Changing this forces a new Communication Service to be created. */ name?: pulumi.Input; /** * The name of the Resource Group where the Communication Service should exist. Changing this forces a new Communication Service to be created. */ resourceGroupName: pulumi.Input; /** * A mapping of tags which should be assigned to the Communication Service. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }