UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

127 lines (126 loc) 5.02 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * An Azure Database Migration Service (classic) resource * * Uses Azure REST API version 2023-07-15-preview. In version 2.x of the Azure Native provider, it used API version 2021-06-30. * * Other available API versions: 2021-06-30, 2021-10-30-preview, 2022-01-30-preview, 2022-03-30-preview, 2025-03-15-preview, 2025-06-30, 2025-09-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native datamigration [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ 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 opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, 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 time delay before the service is auto-stopped when idle. */ readonly autoStopDelay: pulumi.Output<string | undefined>; /** * The Azure API version of the resource. */ readonly azureApiVersion: pulumi.Output<string>; /** * Whether service resources should be deleted when stopped. (Turned on by default) */ readonly deleteResourcesOnStop: pulumi.Output<boolean | undefined>; /** * HTTP strong entity tag value. Ignored if submitted */ readonly etag: pulumi.Output<string | undefined>; /** * The resource kind. Only 'vm' (the default) is supported. */ readonly kind: pulumi.Output<string | undefined>; readonly location: pulumi.Output<string | undefined>; readonly name: pulumi.Output<string>; /** * The resource's provisioning state */ readonly provisioningState: pulumi.Output<string>; /** * The public key of the service, used to encrypt secrets sent to the service */ readonly publicKey: pulumi.Output<string | undefined>; /** * Service SKU */ readonly sku: pulumi.Output<outputs.datamigration.ServiceSkuResponse | undefined>; readonly systemData: pulumi.Output<outputs.datamigration.SystemDataResponse>; readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; readonly type: pulumi.Output<string>; /** * The ID of the Microsoft.Network/networkInterfaces resource which the service have */ readonly virtualNicId: pulumi.Output<string | undefined>; /** * The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be joined */ readonly virtualSubnetId: pulumi.Output<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); } /** * The set of arguments for constructing a Service resource. */ export interface ServiceArgs { /** * The time delay before the service is auto-stopped when idle. */ autoStopDelay?: pulumi.Input<string>; /** * Whether service resources should be deleted when stopped. (Turned on by default) */ deleteResourcesOnStop?: pulumi.Input<boolean>; /** * Name of the resource group */ groupName: pulumi.Input<string>; /** * The resource kind. Only 'vm' (the default) is supported. */ kind?: pulumi.Input<string>; location?: pulumi.Input<string>; /** * The public key of the service, used to encrypt secrets sent to the service */ publicKey?: pulumi.Input<string>; /** * Name of the service */ serviceName?: pulumi.Input<string>; /** * Service SKU */ sku?: pulumi.Input<inputs.datamigration.ServiceSkuArgs>; tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * The ID of the Microsoft.Network/networkInterfaces resource which the service have */ virtualNicId?: pulumi.Input<string>; /** * The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be joined */ virtualSubnetId?: pulumi.Input<string>; }