@pulumi/azure-native 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,113 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
4
+ /**
5
+ * The autoscale setting resource.
6
+ *
7
+ * Uses Azure REST API version 2021-05-01-preview.
8
+ */
9
+ export declare class AutoscaleSetting extends pulumi.CustomResource {
10
+ /**
11
+ * Get an existing AutoscaleSetting resource's state with the given name, ID, and optional extra
12
+ * properties used to qualify the lookup.
13
+ *
14
+ * @param name The _unique_ name of the resulting resource.
15
+ * @param id The _unique_ provider ID of the resource to lookup.
16
+ * @param opts Optional settings to control the behavior of the CustomResource.
17
+ */
18
+ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): AutoscaleSetting;
19
+ /**
20
+ * Returns true if the given object is an instance of AutoscaleSetting. This is designed to work even
21
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
22
+ */
23
+ static isInstance(obj: any): obj is AutoscaleSetting;
24
+ /**
25
+ * The Azure API version of the resource.
26
+ */
27
+ readonly azureApiVersion: pulumi.Output<string>;
28
+ /**
29
+ * Resource location
30
+ */
31
+ readonly location: pulumi.Output<string>;
32
+ /**
33
+ * Azure resource name
34
+ */
35
+ readonly name: pulumi.Output<string>;
36
+ /**
37
+ * The autoscale setting of the resource.
38
+ */
39
+ readonly properties: pulumi.Output<outputs.monitor.AutoscaleSettingResponse>;
40
+ /**
41
+ * The system metadata related to the response.
42
+ */
43
+ readonly systemData: pulumi.Output<outputs.monitor.SystemDataResponse>;
44
+ /**
45
+ * Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters.
46
+ */
47
+ readonly tags: pulumi.Output<{
48
+ [key: string]: string;
49
+ } | undefined>;
50
+ /**
51
+ * Azure resource type
52
+ */
53
+ readonly type: pulumi.Output<string>;
54
+ /**
55
+ * Create a AutoscaleSetting resource with the given unique name, arguments, and options.
56
+ *
57
+ * @param name The _unique_ name of the resource.
58
+ * @param args The arguments to use to populate this resource's properties.
59
+ * @param opts A bag of options that control this resource's behavior.
60
+ */
61
+ constructor(name: string, args: AutoscaleSettingArgs, opts?: pulumi.CustomResourceOptions);
62
+ }
63
+ /**
64
+ * The set of arguments for constructing a AutoscaleSetting resource.
65
+ */
66
+ export interface AutoscaleSettingArgs {
67
+ /**
68
+ * The autoscale setting name.
69
+ */
70
+ autoscaleSettingName?: pulumi.Input<string>;
71
+ /**
72
+ * the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'false'.
73
+ */
74
+ enabled?: pulumi.Input<boolean>;
75
+ /**
76
+ * Resource location
77
+ */
78
+ location?: pulumi.Input<string>;
79
+ /**
80
+ * the name of the autoscale setting.
81
+ */
82
+ name?: pulumi.Input<string>;
83
+ /**
84
+ * the collection of notifications.
85
+ */
86
+ notifications?: pulumi.Input<pulumi.Input<inputs.monitor.AutoscaleNotificationArgs>[]>;
87
+ /**
88
+ * the predictive autoscale policy mode.
89
+ */
90
+ predictiveAutoscalePolicy?: pulumi.Input<inputs.monitor.PredictiveAutoscalePolicyArgs>;
91
+ /**
92
+ * the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified.
93
+ */
94
+ profiles: pulumi.Input<pulumi.Input<inputs.monitor.AutoscaleProfileArgs>[]>;
95
+ /**
96
+ * The name of the resource group. The name is case insensitive.
97
+ */
98
+ resourceGroupName: pulumi.Input<string>;
99
+ /**
100
+ * Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters.
101
+ */
102
+ tags?: pulumi.Input<{
103
+ [key: string]: pulumi.Input<string>;
104
+ }>;
105
+ /**
106
+ * the location of the resource that the autoscale setting should be added to.
107
+ */
108
+ targetResourceLocation?: pulumi.Input<string>;
109
+ /**
110
+ * the resource identifier of the resource that the autoscale setting should be added to.
111
+ */
112
+ targetResourceUri?: pulumi.Input<string>;
113
+ }
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.AutoscaleSetting = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * The autoscale setting resource.
10
+ *
11
+ * Uses Azure REST API version 2021-05-01-preview.
12
+ */
13
+ class AutoscaleSetting extends pulumi.CustomResource {
14
+ /**
15
+ * Get an existing AutoscaleSetting resource's state with the given name, ID, and optional extra
16
+ * properties used to qualify the lookup.
17
+ *
18
+ * @param name The _unique_ name of the resulting resource.
19
+ * @param id The _unique_ provider ID of the resource to lookup.
20
+ * @param opts Optional settings to control the behavior of the CustomResource.
21
+ */
22
+ static get(name, id, opts) {
23
+ return new AutoscaleSetting(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
24
+ }
25
+ /**
26
+ * Returns true if the given object is an instance of AutoscaleSetting. This is designed to work even
27
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
28
+ */
29
+ static isInstance(obj) {
30
+ if (obj === undefined || obj === null) {
31
+ return false;
32
+ }
33
+ return obj['__pulumiType'] === AutoscaleSetting.__pulumiType;
34
+ }
35
+ /**
36
+ * Create a AutoscaleSetting resource with the given unique name, arguments, and options.
37
+ *
38
+ * @param name The _unique_ name of the resource.
39
+ * @param args The arguments to use to populate this resource's properties.
40
+ * @param opts A bag of options that control this resource's behavior.
41
+ */
42
+ constructor(name, args, opts) {
43
+ var _a;
44
+ let resourceInputs = {};
45
+ opts = opts || {};
46
+ if (!opts.id) {
47
+ if ((!args || args.profiles === undefined) && !opts.urn) {
48
+ throw new Error("Missing required property 'profiles'");
49
+ }
50
+ if ((!args || args.resourceGroupName === undefined) && !opts.urn) {
51
+ throw new Error("Missing required property 'resourceGroupName'");
52
+ }
53
+ resourceInputs["autoscaleSettingName"] = args ? args.autoscaleSettingName : undefined;
54
+ resourceInputs["enabled"] = (_a = (args ? args.enabled : undefined)) !== null && _a !== void 0 ? _a : false;
55
+ resourceInputs["location"] = args ? args.location : undefined;
56
+ resourceInputs["name"] = args ? args.name : undefined;
57
+ resourceInputs["notifications"] = args ? args.notifications : undefined;
58
+ resourceInputs["predictiveAutoscalePolicy"] = args ? args.predictiveAutoscalePolicy : undefined;
59
+ resourceInputs["profiles"] = args ? args.profiles : undefined;
60
+ resourceInputs["resourceGroupName"] = args ? args.resourceGroupName : undefined;
61
+ resourceInputs["tags"] = args ? args.tags : undefined;
62
+ resourceInputs["targetResourceLocation"] = args ? args.targetResourceLocation : undefined;
63
+ resourceInputs["targetResourceUri"] = args ? args.targetResourceUri : undefined;
64
+ resourceInputs["azureApiVersion"] = undefined /*out*/;
65
+ resourceInputs["properties"] = undefined /*out*/;
66
+ resourceInputs["systemData"] = undefined /*out*/;
67
+ resourceInputs["type"] = undefined /*out*/;
68
+ }
69
+ else {
70
+ resourceInputs["azureApiVersion"] = undefined /*out*/;
71
+ resourceInputs["location"] = undefined /*out*/;
72
+ resourceInputs["name"] = undefined /*out*/;
73
+ resourceInputs["properties"] = undefined /*out*/;
74
+ resourceInputs["systemData"] = undefined /*out*/;
75
+ resourceInputs["tags"] = undefined /*out*/;
76
+ resourceInputs["type"] = undefined /*out*/;
77
+ }
78
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
79
+ const aliasOpts = { aliases: [{ type: "azure-native:insights/v20221001:AutoscaleSetting" }, { type: "azure-native:insights:AutoscaleSetting" }, { type: "azure-native:monitor/v20140401:AutoscaleSetting" }, { type: "azure-native:monitor/v20150401:AutoscaleSetting" }, { type: "azure-native:monitor/v20210501preview:AutoscaleSetting" }, { type: "azure-native:monitor/v20221001:AutoscaleSetting" }] };
80
+ opts = pulumi.mergeOptions(opts, aliasOpts);
81
+ super(AutoscaleSetting.__pulumiType, name, resourceInputs, opts);
82
+ }
83
+ }
84
+ exports.AutoscaleSetting = AutoscaleSetting;
85
+ /** @internal */
86
+ AutoscaleSetting.__pulumiType = 'azure-native:monitor:AutoscaleSetting';
87
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0b3NjYWxlU2V0dGluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL21vbml0b3IvYXV0b3NjYWxlU2V0dGluZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsc0VBQXNFO0FBQ3RFLGlGQUFpRjs7O0FBRWpGLHlDQUF5QztBQUl6QywwQ0FBMEM7QUFFMUM7Ozs7R0FJRztBQUNILE1BQWEsZ0JBQWlCLFNBQVEsTUFBTSxDQUFDLGNBQWM7SUFDdkQ7Ozs7Ozs7T0FPRztJQUNJLE1BQU0sQ0FBQyxHQUFHLENBQUMsSUFBWSxFQUFFLEVBQTJCLEVBQUUsSUFBbUM7UUFDNUYsT0FBTyxJQUFJLGdCQUFnQixDQUFDLElBQUksRUFBRSxTQUFnQixrQ0FBTyxJQUFJLEtBQUUsRUFBRSxFQUFFLEVBQUUsSUFBRyxDQUFDO0lBQzdFLENBQUM7SUFLRDs7O09BR0c7SUFDSSxNQUFNLENBQUMsVUFBVSxDQUFDLEdBQVE7UUFDN0IsSUFBSSxHQUFHLEtBQUssU0FBUyxJQUFJLEdBQUcsS0FBSyxJQUFJLEVBQUU7WUFDbkMsT0FBTyxLQUFLLENBQUM7U0FDaEI7UUFDRCxPQUFPLEdBQUcsQ0FBQyxjQUFjLENBQUMsS0FBSyxnQkFBZ0IsQ0FBQyxZQUFZLENBQUM7SUFDakUsQ0FBQztJQStCRDs7Ozs7O09BTUc7SUFDSCxZQ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MsRUFBRSxDQUFDO1FBQzdZLElBQUksR0FBRyxNQUFNLENBQUMsWUFBWSxDQUFDLElBQUksRUFBRSxTQUFTLENBQUMsQ0FBQztRQUM1QyxLQUFLLENBQUMsZ0JBQWdCLENBQUMsWUFBWSxFQUFFLElBQUksRUFBRSxjQUFjLEVBQUUsSUFBSSxDQUFDLENBQUM7SUFDckUsQ0FBQzs7QUFyR0wsNENBc0dDO0FBekZHLGdCQUFnQjtBQUNPLDZCQUFZLEdBQUcsdUNBQXVDLENBQUMifQ==
@@ -0,0 +1,133 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
4
+ /**
5
+ * The diagnostic setting resource.
6
+ *
7
+ * Uses Azure REST API version 2021-05-01-preview.
8
+ */
9
+ export declare class DiagnosticSetting extends pulumi.CustomResource {
10
+ /**
11
+ * Get an existing DiagnosticSetting resource's state with the given name, ID, and optional extra
12
+ * properties used to qualify the lookup.
13
+ *
14
+ * @param name The _unique_ name of the resulting resource.
15
+ * @param id The _unique_ provider ID of the resource to lookup.
16
+ * @param opts Optional settings to control the behavior of the CustomResource.
17
+ */
18
+ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): DiagnosticSetting;
19
+ /**
20
+ * Returns true if the given object is an instance of DiagnosticSetting. This is designed to work even
21
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
22
+ */
23
+ static isInstance(obj: any): obj is DiagnosticSetting;
24
+ /**
25
+ * The Azure API version of the resource.
26
+ */
27
+ readonly azureApiVersion: pulumi.Output<string>;
28
+ /**
29
+ * The resource Id for the event hub authorization rule.
30
+ */
31
+ readonly eventHubAuthorizationRuleId: pulumi.Output<string | undefined>;
32
+ /**
33
+ * The name of the event hub. If none is specified, the default event hub will be selected.
34
+ */
35
+ readonly eventHubName: pulumi.Output<string | undefined>;
36
+ /**
37
+ * A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: <normalized service identity>_<normalized category name>. Possible values are: Dedicated and null (null is default.)
38
+ */
39
+ readonly logAnalyticsDestinationType: pulumi.Output<string | undefined>;
40
+ /**
41
+ * The list of logs settings.
42
+ */
43
+ readonly logs: pulumi.Output<outputs.monitor.LogSettingsResponse[] | undefined>;
44
+ /**
45
+ * The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
46
+ */
47
+ readonly marketplacePartnerId: pulumi.Output<string | undefined>;
48
+ /**
49
+ * The list of metric settings.
50
+ */
51
+ readonly metrics: pulumi.Output<outputs.monitor.MetricSettingsResponse[] | undefined>;
52
+ /**
53
+ * The name of the resource
54
+ */
55
+ readonly name: pulumi.Output<string>;
56
+ /**
57
+ * The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
58
+ */
59
+ readonly serviceBusRuleId: pulumi.Output<string | undefined>;
60
+ /**
61
+ * The resource ID of the storage account to which you would like to send Diagnostic Logs.
62
+ */
63
+ readonly storageAccountId: pulumi.Output<string | undefined>;
64
+ /**
65
+ * The system metadata related to this resource.
66
+ */
67
+ readonly systemData: pulumi.Output<outputs.monitor.SystemDataResponse>;
68
+ /**
69
+ * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
70
+ */
71
+ readonly type: pulumi.Output<string>;
72
+ /**
73
+ * 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
74
+ */
75
+ readonly workspaceId: pulumi.Output<string | undefined>;
76
+ /**
77
+ * Create a DiagnosticSetting resource with the given unique name, arguments, and options.
78
+ *
79
+ * @param name The _unique_ name of the resource.
80
+ * @param args The arguments to use to populate this resource's properties.
81
+ * @param opts A bag of options that control this resource's behavior.
82
+ */
83
+ constructor(name: string, args: DiagnosticSettingArgs, opts?: pulumi.CustomResourceOptions);
84
+ }
85
+ /**
86
+ * The set of arguments for constructing a DiagnosticSetting resource.
87
+ */
88
+ export interface DiagnosticSettingArgs {
89
+ /**
90
+ * The resource Id for the event hub authorization rule.
91
+ */
92
+ eventHubAuthorizationRuleId?: pulumi.Input<string>;
93
+ /**
94
+ * The name of the event hub. If none is specified, the default event hub will be selected.
95
+ */
96
+ eventHubName?: pulumi.Input<string>;
97
+ /**
98
+ * A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: <normalized service identity>_<normalized category name>. Possible values are: Dedicated and null (null is default.)
99
+ */
100
+ logAnalyticsDestinationType?: pulumi.Input<string>;
101
+ /**
102
+ * The list of logs settings.
103
+ */
104
+ logs?: pulumi.Input<pulumi.Input<inputs.monitor.LogSettingsArgs>[]>;
105
+ /**
106
+ * The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
107
+ */
108
+ marketplacePartnerId?: pulumi.Input<string>;
109
+ /**
110
+ * The list of metric settings.
111
+ */
112
+ metrics?: pulumi.Input<pulumi.Input<inputs.monitor.MetricSettingsArgs>[]>;
113
+ /**
114
+ * The name of the diagnostic setting.
115
+ */
116
+ name?: pulumi.Input<string>;
117
+ /**
118
+ * The identifier of the resource.
119
+ */
120
+ resourceUri: pulumi.Input<string>;
121
+ /**
122
+ * The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
123
+ */
124
+ serviceBusRuleId?: pulumi.Input<string>;
125
+ /**
126
+ * The resource ID of the storage account to which you would like to send Diagnostic Logs.
127
+ */
128
+ storageAccountId?: pulumi.Input<string>;
129
+ /**
130
+ * 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
131
+ */
132
+ workspaceId?: pulumi.Input<string>;
133
+ }
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.DiagnosticSetting = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * The diagnostic setting resource.
10
+ *
11
+ * Uses Azure REST API version 2021-05-01-preview.
12
+ */
13
+ class DiagnosticSetting extends pulumi.CustomResource {
14
+ /**
15
+ * Get an existing DiagnosticSetting resource's state with the given name, ID, and optional extra
16
+ * properties used to qualify the lookup.
17
+ *
18
+ * @param name The _unique_ name of the resulting resource.
19
+ * @param id The _unique_ provider ID of the resource to lookup.
20
+ * @param opts Optional settings to control the behavior of the CustomResource.
21
+ */
22
+ static get(name, id, opts) {
23
+ return new DiagnosticSetting(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
24
+ }
25
+ /**
26
+ * Returns true if the given object is an instance of DiagnosticSetting. This is designed to work even
27
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
28
+ */
29
+ static isInstance(obj) {
30
+ if (obj === undefined || obj === null) {
31
+ return false;
32
+ }
33
+ return obj['__pulumiType'] === DiagnosticSetting.__pulumiType;
34
+ }
35
+ /**
36
+ * Create a DiagnosticSetting resource with the given unique name, arguments, and options.
37
+ *
38
+ * @param name The _unique_ name of the resource.
39
+ * @param args The arguments to use to populate this resource's properties.
40
+ * @param opts A bag of options that control this resource's behavior.
41
+ */
42
+ constructor(name, args, opts) {
43
+ let resourceInputs = {};
44
+ opts = opts || {};
45
+ if (!opts.id) {
46
+ if ((!args || args.resourceUri === undefined) && !opts.urn) {
47
+ throw new Error("Missing required property 'resourceUri'");
48
+ }
49
+ resourceInputs["eventHubAuthorizationRuleId"] = args ? args.eventHubAuthorizationRuleId : undefined;
50
+ resourceInputs["eventHubName"] = args ? args.eventHubName : undefined;
51
+ resourceInputs["logAnalyticsDestinationType"] = args ? args.logAnalyticsDestinationType : undefined;
52
+ resourceInputs["logs"] = args ? args.logs : undefined;
53
+ resourceInputs["marketplacePartnerId"] = args ? args.marketplacePartnerId : undefined;
54
+ resourceInputs["metrics"] = args ? args.metrics : undefined;
55
+ resourceInputs["name"] = args ? args.name : undefined;
56
+ resourceInputs["resourceUri"] = args ? args.resourceUri : undefined;
57
+ resourceInputs["serviceBusRuleId"] = args ? args.serviceBusRuleId : undefined;
58
+ resourceInputs["storageAccountId"] = args ? args.storageAccountId : undefined;
59
+ resourceInputs["workspaceId"] = args ? args.workspaceId : undefined;
60
+ resourceInputs["azureApiVersion"] = undefined /*out*/;
61
+ resourceInputs["systemData"] = undefined /*out*/;
62
+ resourceInputs["type"] = undefined /*out*/;
63
+ }
64
+ else {
65
+ resourceInputs["azureApiVersion"] = undefined /*out*/;
66
+ resourceInputs["eventHubAuthorizationRuleId"] = undefined /*out*/;
67
+ resourceInputs["eventHubName"] = undefined /*out*/;
68
+ resourceInputs["logAnalyticsDestinationType"] = undefined /*out*/;
69
+ resourceInputs["logs"] = undefined /*out*/;
70
+ resourceInputs["marketplacePartnerId"] = undefined /*out*/;
71
+ resourceInputs["metrics"] = undefined /*out*/;
72
+ resourceInputs["name"] = undefined /*out*/;
73
+ resourceInputs["serviceBusRuleId"] = undefined /*out*/;
74
+ resourceInputs["storageAccountId"] = undefined /*out*/;
75
+ resourceInputs["systemData"] = undefined /*out*/;
76
+ resourceInputs["type"] = undefined /*out*/;
77
+ resourceInputs["workspaceId"] = undefined /*out*/;
78
+ }
79
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
80
+ const aliasOpts = { aliases: [{ type: "azure-native:insights/v20210501preview:DiagnosticSetting" }, { type: "azure-native:insights:DiagnosticSetting" }, { type: "azure-native:monitor/v20170501preview:DiagnosticSetting" }, { type: "azure-native:monitor/v20210501preview:DiagnosticSetting" }] };
81
+ opts = pulumi.mergeOptions(opts, aliasOpts);
82
+ super(DiagnosticSetting.__pulumiType, name, resourceInputs, opts);
83
+ }
84
+ }
85
+ exports.DiagnosticSetting = DiagnosticSetting;
86
+ /** @internal */
87
+ DiagnosticSetting.__pulumiType = 'azure-native:monitor:DiagnosticSetting';
88
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlhZ25vc3RpY1NldHRpbmcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9tb25pdG9yL2RpYWdub3N0aWNTZXR0aW5nLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxzRUFBc0U7QUFDdEUsaUZBQWlGOzs7QUFFakYseUNBQXlDO0FBSXpDLDBDQUEwQztBQUUxQzs7OztHQUlHO0FBQ0gsTUFBYSxpQkFBa0IsU0FBUSxNQUFNLENBQUMsY0FBYztJQUN4RDs7Ozs7OztPQU9HO0lBQ0ksTUFBTSxDQUFDLEdBQUcsQ0FBQyxJQUFZLEVBQUUsRUFBMkIsRUFBRSxJQUFtQztRQUM1RixPQUFPLElBQUksaUJBQWlCLENBQUMsSUFBSSxFQUFFLFNBQWdCLGtDQUFPLElBQUksS0FBRSxFQUFFLEVBQUUsRUFBRSxJQUFHLENBQUM7SUFDOUUsQ0FBQztJQUtEOzs7T0FHRztJQUNJLE1BQU0sQ0FBQyxVQUFVLENBQUMsR0FBUTtRQUM3QixJQUFJLEdBQUcsS0FBSyxTQUFTLElBQUksR0FBRyxLQUFLLElBQUksRUFBRTtZQUNuQyxPQUFPLEtBQUssQ0FBQztTQUNoQjtRQUNELE9BQU8sR0FBRyxDQUFDLGNBQWMsQ0FBQyxLQUFLLGlCQUFpQixDQUFDLFlBQVksQ0FBQztJQUNsRSxDQUFDO0lBdUREOzs7Ozs7T0FNRztJQUNILFlBQVksSUFBWSxFQUFFLElBQTJCLEVBQUUsSUFBbUM7UUFDdEYsSUFBSSxjQUFjLEdBQWtCLEVBQUUsQ0FBQztRQUN2QyxJQUFJLEdBQUcsSUFBSSxJQUFJLEVBQUUsQ0FBQztRQUNsQixJQUFJLENBQUMsS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xDQUFDLENBQUM7UUFDNUMsS0FBSyxDQUFDLGlCQUFpQixDQUFDLFlBQVksRUFBRSxJQUFJLEVBQUUsY0FBYyxFQUFFLElBQUksQ0FBQyxDQUFDO0lBQ3RFLENBQUM7O0FBL0hMLDhDQWdJQztBQW5IRyxnQkFBZ0I7QUFDTyw4QkFBWSxHQUFHLHdDQUF3QyxDQUFDIn0=
@@ -0,0 +1,73 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "../types/output";
3
+ /**
4
+ * Gets an autoscale setting
5
+ *
6
+ * Uses Azure REST API version 2021-05-01-preview.
7
+ */
8
+ export declare function getAutoscaleSetting(args: GetAutoscaleSettingArgs, opts?: pulumi.InvokeOptions): Promise<GetAutoscaleSettingResult>;
9
+ export interface GetAutoscaleSettingArgs {
10
+ /**
11
+ * The autoscale setting name.
12
+ */
13
+ autoscaleSettingName: string;
14
+ /**
15
+ * The name of the resource group. The name is case insensitive.
16
+ */
17
+ resourceGroupName: string;
18
+ }
19
+ /**
20
+ * The autoscale setting resource.
21
+ */
22
+ export interface GetAutoscaleSettingResult {
23
+ /**
24
+ * The Azure API version of the resource.
25
+ */
26
+ readonly azureApiVersion: string;
27
+ /**
28
+ * Azure resource Id
29
+ */
30
+ readonly id: string;
31
+ /**
32
+ * Resource location
33
+ */
34
+ readonly location: string;
35
+ /**
36
+ * Azure resource name
37
+ */
38
+ readonly name: string;
39
+ /**
40
+ * The autoscale setting of the resource.
41
+ */
42
+ readonly properties: outputs.monitor.AutoscaleSettingResponse;
43
+ /**
44
+ * The system metadata related to the response.
45
+ */
46
+ readonly systemData: outputs.monitor.SystemDataResponse;
47
+ /**
48
+ * Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters.
49
+ */
50
+ readonly tags?: {
51
+ [key: string]: string;
52
+ };
53
+ /**
54
+ * Azure resource type
55
+ */
56
+ readonly type: string;
57
+ }
58
+ /**
59
+ * Gets an autoscale setting
60
+ *
61
+ * Uses Azure REST API version 2021-05-01-preview.
62
+ */
63
+ export declare function getAutoscaleSettingOutput(args: GetAutoscaleSettingOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAutoscaleSettingResult>;
64
+ export interface GetAutoscaleSettingOutputArgs {
65
+ /**
66
+ * The autoscale setting name.
67
+ */
68
+ autoscaleSettingName: pulumi.Input<string>;
69
+ /**
70
+ * The name of the resource group. The name is case insensitive.
71
+ */
72
+ resourceGroupName: pulumi.Input<string>;
73
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getAutoscaleSettingOutput = exports.getAutoscaleSetting = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Gets an autoscale setting
10
+ *
11
+ * Uses Azure REST API version 2021-05-01-preview.
12
+ */
13
+ function getAutoscaleSetting(args, opts) {
14
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
15
+ return pulumi.runtime.invoke("azure-native:monitor:getAutoscaleSetting", {
16
+ "autoscaleSettingName": args.autoscaleSettingName,
17
+ "resourceGroupName": args.resourceGroupName,
18
+ }, opts);
19
+ }
20
+ exports.getAutoscaleSetting = getAutoscaleSetting;
21
+ /**
22
+ * Gets an autoscale setting
23
+ *
24
+ * Uses Azure REST API version 2021-05-01-preview.
25
+ */
26
+ function getAutoscaleSettingOutput(args, opts) {
27
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
28
+ return pulumi.runtime.invokeOutput("azure-native:monitor:getAutoscaleSetting", {
29
+ "autoscaleSettingName": args.autoscaleSettingName,
30
+ "resourceGroupName": args.resourceGroupName,
31
+ }, opts);
32
+ }
33
+ exports.getAut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bUIsRUFBRSxJQUFJLENBQUMsaUJBQWlCO0tBQzlDLEVBQUUsSUFBSSxDQUFDLENBQUM7QUFDYixDQUFDO0FBTkQsOERBTUMifQ==
@@ -0,0 +1,95 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "../types/output";
3
+ /**
4
+ * Gets the active diagnostic settings for the specified resource.
5
+ *
6
+ * Uses Azure REST API version 2021-05-01-preview.
7
+ */
8
+ export declare function getDiagnosticSetting(args: GetDiagnosticSettingArgs, opts?: pulumi.InvokeOptions): Promise<GetDiagnosticSettingResult>;
9
+ export interface GetDiagnosticSettingArgs {
10
+ /**
11
+ * The name of the diagnostic setting.
12
+ */
13
+ name: string;
14
+ /**
15
+ * The identifier of the resource.
16
+ */
17
+ resourceUri: string;
18
+ }
19
+ /**
20
+ * The diagnostic setting resource.
21
+ */
22
+ export interface GetDiagnosticSettingResult {
23
+ /**
24
+ * The Azure API version of the resource.
25
+ */
26
+ readonly azureApiVersion: string;
27
+ /**
28
+ * The resource Id for the event hub authorization rule.
29
+ */
30
+ readonly eventHubAuthorizationRuleId?: string;
31
+ /**
32
+ * The name of the event hub. If none is specified, the default event hub will be selected.
33
+ */
34
+ readonly eventHubName?: string;
35
+ /**
36
+ * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
37
+ */
38
+ readonly id: string;
39
+ /**
40
+ * A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: <normalized service identity>_<normalized category name>. Possible values are: Dedicated and null (null is default.)
41
+ */
42
+ readonly logAnalyticsDestinationType?: string;
43
+ /**
44
+ * The list of logs settings.
45
+ */
46
+ readonly logs?: outputs.monitor.LogSettingsResponse[];
47
+ /**
48
+ * The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
49
+ */
50
+ readonly marketplacePartnerId?: string;
51
+ /**
52
+ * The list of metric settings.
53
+ */
54
+ readonly metrics?: outputs.monitor.MetricSettingsResponse[];
55
+ /**
56
+ * The name of the resource
57
+ */
58
+ readonly name: string;
59
+ /**
60
+ * The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
61
+ */
62
+ readonly serviceBusRuleId?: string;
63
+ /**
64
+ * The resource ID of the storage account to which you would like to send Diagnostic Logs.
65
+ */
66
+ readonly storageAccountId?: string;
67
+ /**
68
+ * The system metadata related to this resource.
69
+ */
70
+ readonly systemData: outputs.monitor.SystemDataResponse;
71
+ /**
72
+ * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
73
+ */
74
+ readonly type: string;
75
+ /**
76
+ * 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
77
+ */
78
+ readonly workspaceId?: string;
79
+ }
80
+ /**
81
+ * Gets the active diagnostic settings for the specified resource.
82
+ *
83
+ * Uses Azure REST API version 2021-05-01-preview.
84
+ */
85
+ export declare function getDiagnosticSettingOutput(args: GetDiagnosticSettingOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDiagnosticSettingResult>;
86
+ export interface GetDiagnosticSettingOutputArgs {
87
+ /**
88
+ * The name of the diagnostic setting.
89
+ */
90
+ name: pulumi.Input<string>;
91
+ /**
92
+ * The identifier of the resource.
93
+ */
94
+ resourceUri: pulumi.Input<string>;
95
+ }