@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 4.37 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* The diagnostic setting resource.
*
* Uses Azure REST API version 2017-04-01. In version 2.x of the Azure Native provider, it used API version 2017-04-01.
*/
export declare class DiagnosticSetting extends pulumi.CustomResource {
/**
* Get an existing DiagnosticSetting 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): DiagnosticSetting;
/**
* Returns true if the given object is an instance of DiagnosticSetting. 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 DiagnosticSetting;
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: pulumi.Output<string>;
/**
* The resource Id for the event hub authorization rule.
*/
readonly eventHubAuthorizationRuleId: pulumi.Output<string | undefined>;
/**
* The name of the event hub. If none is specified, the default event hub will be selected.
*/
readonly eventHubName: pulumi.Output<string | undefined>;
/**
* The list of logs settings.
*/
readonly logs: pulumi.Output<outputs.aadiam.LogSettingsResponse[] | undefined>;
/**
* Azure resource name
*/
readonly name: pulumi.Output<string>;
/**
* The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
*/
readonly serviceBusRuleId: pulumi.Output<string | undefined>;
/**
* The resource ID of the storage account to which you would like to send Diagnostic Logs.
*/
readonly storageAccountId: pulumi.Output<string | undefined>;
/**
* Azure resource type
*/
readonly type: pulumi.Output<string>;
/**
* The workspace ID (resource ID of a Log Analytics workspace) for a Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
*/
readonly workspaceId: pulumi.Output<string | undefined>;
/**
* Create a DiagnosticSetting 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?: DiagnosticSettingArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* The set of arguments for constructing a DiagnosticSetting resource.
*/
export interface DiagnosticSettingArgs {
/**
* The resource Id for the event hub authorization rule.
*/
eventHubAuthorizationRuleId?: pulumi.Input<string>;
/**
* The name of the event hub. If none is specified, the default event hub will be selected.
*/
eventHubName?: pulumi.Input<string>;
/**
* The list of logs settings.
*/
logs?: pulumi.Input<pulumi.Input<inputs.aadiam.LogSettingsArgs>[]>;
/**
* The name of the diagnostic setting.
*/
name?: pulumi.Input<string>;
/**
* The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
*/
serviceBusRuleId?: pulumi.Input<string>;
/**
* The resource ID of the storage account to which you would like to send Diagnostic Logs.
*/
storageAccountId?: pulumi.Input<string>;
/**
* The workspace ID (resource ID of a Log Analytics workspace) for a Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
*/
workspaceId?: pulumi.Input<string>;
}