@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 4.98 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* The subscription diagnostic setting resource.
*
* Uses Azure REST API version 2021-05-01-preview.
*/
export declare class SubscriptionDiagnosticSetting extends pulumi.CustomResource {
/**
* Get an existing SubscriptionDiagnosticSetting 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): SubscriptionDiagnosticSetting;
/**
* Returns true if the given object is an instance of SubscriptionDiagnosticSetting. 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 SubscriptionDiagnosticSetting;
/**
* 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.monitor.SubscriptionLogSettingsResponse[] | undefined>;
/**
* The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
*/
readonly marketplacePartnerId: pulumi.Output<string | undefined>;
/**
* The name of the resource
*/
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>;
/**
* The system metadata related to this resource.
*/
readonly systemData: pulumi.Output<outputs.monitor.SystemDataResponse>;
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: pulumi.Output<string>;
/**
* The full ARM resource ID of the 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 SubscriptionDiagnosticSetting 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?: SubscriptionDiagnosticSettingArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* The set of arguments for constructing a SubscriptionDiagnosticSetting resource.
*/
export interface SubscriptionDiagnosticSettingArgs {
/**
* 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.monitor.SubscriptionLogSettingsArgs>[]>;
/**
* The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
*/
marketplacePartnerId?: pulumi.Input<string>;
/**
* 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 full ARM resource ID of the 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>;
}