-
Notifications
You must be signed in to change notification settings - Fork 33
/
getDiagnosticSetting.ts
83 lines (76 loc) · 2.6 KB
/
getDiagnosticSetting.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
import * as enums from "../types/enums";
import * as utilities from "../utilities";
/**
* The diagnostic setting resource.
* API Version: 2017-04-01.
*/
export function getDiagnosticSetting(args: GetDiagnosticSettingArgs, opts?: pulumi.InvokeOptions): Promise<GetDiagnosticSettingResult> {
if (!opts) {
opts = {}
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("azure-native:aadiam:getDiagnosticSetting", {
"name": args.name,
}, opts);
}
export interface GetDiagnosticSettingArgs {
/**
* The name of the diagnostic setting.
*/
name: string;
}
/**
* The diagnostic setting resource.
*/
export interface GetDiagnosticSettingResult {
/**
* The resource Id for the event hub authorization rule.
*/
readonly eventHubAuthorizationRuleId?: string;
/**
* The name of the event hub. If none is specified, the default event hub will be selected.
*/
readonly eventHubName?: string;
/**
* Azure resource Id
*/
readonly id: string;
/**
* The list of logs settings.
*/
readonly logs?: outputs.aadiam.LogSettingsResponse[];
/**
* Azure resource name
*/
readonly name: string;
/**
* The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
*/
readonly serviceBusRuleId?: string;
/**
* The resource ID of the storage account to which you would like to send Diagnostic Logs.
*/
readonly storageAccountId?: string;
/**
* Azure resource type
*/
readonly type: 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?: string;
}
export function getDiagnosticSettingOutput(args: GetDiagnosticSettingOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDiagnosticSettingResult> {
return pulumi.output(args).apply(a => getDiagnosticSetting(a, opts))
}
export interface GetDiagnosticSettingOutputArgs {
/**
* The name of the diagnostic setting.
*/
name: pulumi.Input<string>;
}