@pulumi/azure 4.26.0 → 4.28.0
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.
- package/apimanagement/service.d.ts +3 -3
- package/appinsights/insights.d.ts +15 -0
- package/appinsights/insights.js +4 -0
- package/appinsights/insights.js.map +1 -1
- package/appservice/appService.d.ts +3 -3
- package/appservice/slot.d.ts +3 -3
- package/automation/index.d.ts +1 -0
- package/automation/index.js +5 -0
- package/automation/index.js.map +1 -1
- package/automation/webhook.d.ts +197 -0
- package/automation/webhook.js +126 -0
- package/automation/webhook.js.map +1 -0
- package/backup/protectedVM.d.ts +24 -0
- package/backup/protectedVM.js +4 -0
- package/backup/protectedVM.js.map +1 -1
- package/batch/getApplication.d.ts +81 -0
- package/batch/getApplication.js +43 -0
- package/batch/getApplication.js.map +1 -0
- package/batch/index.d.ts +1 -0
- package/batch/index.js +1 -0
- package/batch/index.js.map +1 -1
- package/blueprint/assignment.d.ts +9 -0
- package/blueprint/assignment.js.map +1 -1
- package/cognitive/account.d.ts +6 -6
- package/compute/diskEncryptionSet.d.ts +15 -3
- package/compute/diskEncryptionSet.js +2 -0
- package/compute/diskEncryptionSet.js.map +1 -1
- package/compute/linuxVirtualMachineScaleSet.d.ts +3 -3
- package/compute/managedDisk.d.ts +36 -0
- package/compute/managedDisk.js +6 -0
- package/compute/managedDisk.js.map +1 -1
- package/compute/orchestratedVirtualMachineScaleSet.d.ts +79 -11
- package/compute/orchestratedVirtualMachineScaleSet.js +44 -4
- package/compute/orchestratedVirtualMachineScaleSet.js.map +1 -1
- package/compute/virtualMachine.d.ts +27 -27
- package/compute/windowsVirtualMachine.d.ts +24 -0
- package/compute/windowsVirtualMachine.js +4 -0
- package/compute/windowsVirtualMachine.js.map +1 -1
- package/compute/windowsVirtualMachineScaleSet.d.ts +27 -3
- package/compute/windowsVirtualMachineScaleSet.js +4 -0
- package/compute/windowsVirtualMachineScaleSet.js.map +1 -1
- package/containerservice/group.d.ts +2 -2
- package/containerservice/group.js +2 -2
- package/containerservice/registry.d.ts +39 -3
- package/containerservice/registry.js +6 -0
- package/containerservice/registry.js.map +1 -1
- package/core/index.d.ts +2 -0
- package/core/index.js +10 -0
- package/core/index.js.map +1 -1
- package/core/resourceGroupCostManagementExport.d.ts +174 -0
- package/core/resourceGroupCostManagementExport.js +124 -0
- package/core/resourceGroupCostManagementExport.js.map +1 -0
- package/core/resourceGroupPolicyAssignment.d.ts +3 -3
- package/core/resourcePolicyAssignment.d.ts +3 -3
- package/core/resourceProviderRegistration.d.ts +28 -0
- package/core/resourceProviderRegistration.js +17 -0
- package/core/resourceProviderRegistration.js.map +1 -1
- package/core/subscriptionCostManagementExport.d.ts +166 -0
- package/core/subscriptionCostManagementExport.js +125 -0
- package/core/subscriptionCostManagementExport.js.map +1 -0
- package/core/subscriptionPolicyAssignment.d.ts +3 -3
- package/cosmosdb/cassandraDatacenter.d.ts +19 -6
- package/cosmosdb/cassandraDatacenter.js +3 -0
- package/cosmosdb/cassandraDatacenter.js.map +1 -1
- package/costmanagement/resourceGroupExport.d.ts +2 -0
- package/costmanagement/resourceGroupExport.js +2 -0
- package/costmanagement/resourceGroupExport.js.map +1 -1
- package/datafactory/linkedServiceCosmosDb.d.ts +24 -0
- package/datafactory/linkedServiceCosmosDb.js +24 -0
- package/datafactory/linkedServiceCosmosDb.js.map +1 -1
- package/dataprotection/backupVault.d.ts +3 -3
- package/desktopvirtualization/applicationGroup.d.ts +12 -0
- package/desktopvirtualization/applicationGroup.js +2 -0
- package/desktopvirtualization/applicationGroup.js.map +1 -1
- package/eventgrid/getSystemTopic.d.ts +1 -2
- package/eventgrid/getSystemTopic.js.map +1 -1
- package/eventgrid/systemTopic.d.ts +3 -6
- package/eventgrid/systemTopic.js.map +1 -1
- package/keyvault/certifiate.d.ts +4 -18
- package/keyvault/certifiate.js +0 -17
- package/keyvault/certifiate.js.map +1 -1
- package/keyvault/certificate.d.ts +4 -18
- package/keyvault/certificate.js +0 -17
- package/keyvault/certificate.js.map +1 -1
- package/kusto/cluster.d.ts +3 -3
- package/loganalytics/cluster.d.ts +3 -3
- package/machinelearning/computeCluster.d.ts +3 -3
- package/machinelearning/computeInstance.d.ts +3 -3
- package/machinelearning/inferenceCluster.d.ts +3 -3
- package/machinelearning/synapseSpark.d.ts +3 -3
- package/machinelearning/workspace.d.ts +78 -3
- package/machinelearning/workspace.js +74 -0
- package/machinelearning/workspace.js.map +1 -1
- package/management/groupPolicyAssignment.d.ts +3 -3
- package/media/serviceAccount.d.ts +6 -6
- package/mediaservices/account.d.ts +6 -6
- package/monitoring/index.d.ts +3 -0
- package/monitoring/index.js +15 -0
- package/monitoring/index.js.map +1 -1
- package/monitoring/logzTagRule.d.ts +151 -0
- package/monitoring/logzTagRule.js +116 -0
- package/monitoring/logzTagRule.js.map +1 -0
- package/monitoring/privateLinkScope.d.ts +99 -0
- package/monitoring/privateLinkScope.js +79 -0
- package/monitoring/privateLinkScope.js.map +1 -0
- package/monitoring/privateLinkScopedService.d.ts +115 -0
- package/monitoring/privateLinkScopedService.js +97 -0
- package/monitoring/privateLinkScopedService.js.map +1 -0
- package/mssql/server.d.ts +0 -12
- package/mssql/server.js +0 -6
- package/mssql/server.js.map +1 -1
- package/mysql/flexibleServerFirewallRule.d.ts +157 -0
- package/mysql/flexibleServerFirewallRule.js +132 -0
- package/mysql/flexibleServerFirewallRule.js.map +1 -0
- package/mysql/index.d.ts +1 -0
- package/mysql/index.js +5 -0
- package/mysql/index.js.map +1 -1
- package/network/applicationGateway.d.ts +3 -3
- package/network/expressRoutePort.d.ts +3 -3
- package/network/publicIpPrefix.d.ts +12 -0
- package/network/publicIpPrefix.js +2 -0
- package/network/publicIpPrefix.js.map +1 -1
- package/network/virtualNetwork.d.ts +12 -0
- package/network/virtualNetwork.js +2 -0
- package/network/virtualNetwork.js.map +1 -1
- package/network/virtualNetworkGateway.d.ts +12 -9
- package/network/virtualNetworkGateway.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +1 -1
- package/policy/assignment.d.ts +3 -3
- package/postgresql/flexibleServer.d.ts +5 -1
- package/postgresql/flexibleServer.js +1 -0
- package/postgresql/flexibleServer.js.map +1 -1
- package/purview/account.d.ts +12 -0
- package/purview/account.js +2 -0
- package/purview/account.js.map +1 -1
- package/search/service.d.ts +3 -3
- package/securitycenter/subscriptionPricing.d.ts +3 -3
- package/signalr/service.d.ts +1 -1
- package/signalr/service.js +1 -1
- package/signalr/serviceNetworkAcl.d.ts +1 -1
- package/signalr/serviceNetworkAcl.js +1 -1
- package/sql/activeDirectoryAdministrator.d.ts +12 -0
- package/sql/activeDirectoryAdministrator.js +2 -0
- package/sql/activeDirectoryAdministrator.js.map +1 -1
- package/sql/managedInstance.d.ts +13 -0
- package/sql/managedInstance.js +2 -0
- package/sql/managedInstance.js.map +1 -1
- package/sql/sqlServer.d.ts +0 -12
- package/sql/sqlServer.js +0 -6
- package/sql/sqlServer.js.map +1 -1
- package/storage/account.d.ts +27 -3
- package/storage/account.js +4 -0
- package/storage/account.js.map +1 -1
- package/storage/disksPool.d.ts +173 -0
- package/storage/disksPool.js +122 -0
- package/storage/disksPool.js.map +1 -0
- package/storage/getAccount.d.ts +8 -0
- package/storage/getAccount.js.map +1 -1
- package/storage/index.d.ts +1 -0
- package/storage/index.js +5 -0
- package/storage/index.js.map +1 -1
- package/streamanalytics/outputServicebusTopic.d.ts +16 -0
- package/streamanalytics/outputServicebusTopic.js +6 -0
- package/streamanalytics/outputServicebusTopic.js.map +1 -1
- package/synapse/index.d.ts +1 -0
- package/synapse/index.js +5 -0
- package/synapse/index.js.map +1 -1
- package/synapse/workspace.d.ts +93 -6
- package/synapse/workspace.js +87 -0
- package/synapse/workspace.js.map +1 -1
- package/synapse/workspaceAadAdmin.d.ts +159 -0
- package/synapse/workspaceAadAdmin.js +144 -0
- package/synapse/workspaceAadAdmin.js.map +1 -0
- package/types/input.d.ts +274 -36
- package/types/output.d.ts +277 -37
- package/videoanalyzer/analyzer.d.ts +6 -6
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Manages a Cost Management Export for a Resource Group.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as azure from "@pulumi/azure";
|
|
11
|
+
*
|
|
12
|
+
* const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
|
|
13
|
+
* const exampleAccount = new azure.storage.Account("exampleAccount", {
|
|
14
|
+
* resourceGroupName: exampleResourceGroup.name,
|
|
15
|
+
* location: exampleResourceGroup.location,
|
|
16
|
+
* accountTier: "Standard",
|
|
17
|
+
* accountReplicationType: "LRS",
|
|
18
|
+
* });
|
|
19
|
+
* const exampleContainer = new azure.storage.Container("exampleContainer", {storageAccountName: azurerm_storage_account.test.name});
|
|
20
|
+
* const exampleResourceGroupCostManagementExport = new azure.core.ResourceGroupCostManagementExport("exampleResourceGroupCostManagementExport", {
|
|
21
|
+
* resourceGroupId: exampleResourceGroup.id,
|
|
22
|
+
* recurrenceType: "Monthly",
|
|
23
|
+
* recurrencePeriodStartDate: "2020-08-18T00:00:00Z",
|
|
24
|
+
* recurrencePeriodEndDate: "2020-09-18T00:00:00Z",
|
|
25
|
+
* exportDataStorageLocation: {
|
|
26
|
+
* containerId: azurerm_storage_container.test.resource_manager_id,
|
|
27
|
+
* rootFolderPath: "/root/updated",
|
|
28
|
+
* },
|
|
29
|
+
* exportDataOptions: {
|
|
30
|
+
* type: "Usage",
|
|
31
|
+
* timeFrame: "WeekToDate",
|
|
32
|
+
* },
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* ## Import
|
|
37
|
+
*
|
|
38
|
+
* Cost Management Export for a Resource Group can be imported using the `resource id`, e.g.
|
|
39
|
+
*
|
|
40
|
+
* ```sh
|
|
41
|
+
* $ pulumi import azure:core/resourceGroupCostManagementExport:ResourceGroupCostManagementExport example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.CostManagement/exports/export1
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare class ResourceGroupCostManagementExport extends pulumi.CustomResource {
|
|
45
|
+
/**
|
|
46
|
+
* Get an existing ResourceGroupCostManagementExport resource's state with the given name, ID, and optional extra
|
|
47
|
+
* properties used to qualify the lookup.
|
|
48
|
+
*
|
|
49
|
+
* @param name The _unique_ name of the resulting resource.
|
|
50
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
51
|
+
* @param state Any extra arguments used during the lookup.
|
|
52
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
53
|
+
*/
|
|
54
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ResourceGroupCostManagementExportState, opts?: pulumi.CustomResourceOptions): ResourceGroupCostManagementExport;
|
|
55
|
+
/**
|
|
56
|
+
* Returns true if the given object is an instance of ResourceGroupCostManagementExport. This is designed to work even
|
|
57
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
58
|
+
*/
|
|
59
|
+
static isInstance(obj: any): obj is ResourceGroupCostManagementExport;
|
|
60
|
+
/**
|
|
61
|
+
* Is the cost management export active? Default is `true`.
|
|
62
|
+
*/
|
|
63
|
+
readonly active: pulumi.Output<boolean | undefined>;
|
|
64
|
+
/**
|
|
65
|
+
* A `exportDataOptions` block as defined below.
|
|
66
|
+
*/
|
|
67
|
+
readonly exportDataOptions: pulumi.Output<outputs.core.ResourceGroupCostManagementExportExportDataOptions>;
|
|
68
|
+
/**
|
|
69
|
+
* A `exportDataStorageLocation` block as defined below.
|
|
70
|
+
*/
|
|
71
|
+
readonly exportDataStorageLocation: pulumi.Output<outputs.core.ResourceGroupCostManagementExportExportDataStorageLocation>;
|
|
72
|
+
/**
|
|
73
|
+
* Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
|
|
74
|
+
*/
|
|
75
|
+
readonly name: pulumi.Output<string>;
|
|
76
|
+
/**
|
|
77
|
+
* The date the export will stop capturing information.
|
|
78
|
+
*/
|
|
79
|
+
readonly recurrencePeriodEndDate: pulumi.Output<string>;
|
|
80
|
+
/**
|
|
81
|
+
* The date the export will start capturing information.
|
|
82
|
+
*/
|
|
83
|
+
readonly recurrencePeriodStartDate: pulumi.Output<string>;
|
|
84
|
+
/**
|
|
85
|
+
* How often the requested information will be exported. Valid values include `Annually`, `Daily`, `Monthly`, `Weekly`.
|
|
86
|
+
*/
|
|
87
|
+
readonly recurrenceType: pulumi.Output<string>;
|
|
88
|
+
/**
|
|
89
|
+
* The id of the resource group on which to create an export.
|
|
90
|
+
*/
|
|
91
|
+
readonly resourceGroupId: pulumi.Output<string>;
|
|
92
|
+
/**
|
|
93
|
+
* Create a ResourceGroupCostManagementExport resource with the given unique name, arguments, and options.
|
|
94
|
+
*
|
|
95
|
+
* @param name The _unique_ name of the resource.
|
|
96
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
97
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
98
|
+
*/
|
|
99
|
+
constructor(name: string, args: ResourceGroupCostManagementExportArgs, opts?: pulumi.CustomResourceOptions);
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Input properties used for looking up and filtering ResourceGroupCostManagementExport resources.
|
|
103
|
+
*/
|
|
104
|
+
export interface ResourceGroupCostManagementExportState {
|
|
105
|
+
/**
|
|
106
|
+
* Is the cost management export active? Default is `true`.
|
|
107
|
+
*/
|
|
108
|
+
active?: pulumi.Input<boolean>;
|
|
109
|
+
/**
|
|
110
|
+
* A `exportDataOptions` block as defined below.
|
|
111
|
+
*/
|
|
112
|
+
exportDataOptions?: pulumi.Input<inputs.core.ResourceGroupCostManagementExportExportDataOptions>;
|
|
113
|
+
/**
|
|
114
|
+
* A `exportDataStorageLocation` block as defined below.
|
|
115
|
+
*/
|
|
116
|
+
exportDataStorageLocation?: pulumi.Input<inputs.core.ResourceGroupCostManagementExportExportDataStorageLocation>;
|
|
117
|
+
/**
|
|
118
|
+
* Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
|
|
119
|
+
*/
|
|
120
|
+
name?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* The date the export will stop capturing information.
|
|
123
|
+
*/
|
|
124
|
+
recurrencePeriodEndDate?: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* The date the export will start capturing information.
|
|
127
|
+
*/
|
|
128
|
+
recurrencePeriodStartDate?: pulumi.Input<string>;
|
|
129
|
+
/**
|
|
130
|
+
* How often the requested information will be exported. Valid values include `Annually`, `Daily`, `Monthly`, `Weekly`.
|
|
131
|
+
*/
|
|
132
|
+
recurrenceType?: pulumi.Input<string>;
|
|
133
|
+
/**
|
|
134
|
+
* The id of the resource group on which to create an export.
|
|
135
|
+
*/
|
|
136
|
+
resourceGroupId?: pulumi.Input<string>;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* The set of arguments for constructing a ResourceGroupCostManagementExport resource.
|
|
140
|
+
*/
|
|
141
|
+
export interface ResourceGroupCostManagementExportArgs {
|
|
142
|
+
/**
|
|
143
|
+
* Is the cost management export active? Default is `true`.
|
|
144
|
+
*/
|
|
145
|
+
active?: pulumi.Input<boolean>;
|
|
146
|
+
/**
|
|
147
|
+
* A `exportDataOptions` block as defined below.
|
|
148
|
+
*/
|
|
149
|
+
exportDataOptions: pulumi.Input<inputs.core.ResourceGroupCostManagementExportExportDataOptions>;
|
|
150
|
+
/**
|
|
151
|
+
* A `exportDataStorageLocation` block as defined below.
|
|
152
|
+
*/
|
|
153
|
+
exportDataStorageLocation: pulumi.Input<inputs.core.ResourceGroupCostManagementExportExportDataStorageLocation>;
|
|
154
|
+
/**
|
|
155
|
+
* Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
|
|
156
|
+
*/
|
|
157
|
+
name?: pulumi.Input<string>;
|
|
158
|
+
/**
|
|
159
|
+
* The date the export will stop capturing information.
|
|
160
|
+
*/
|
|
161
|
+
recurrencePeriodEndDate: pulumi.Input<string>;
|
|
162
|
+
/**
|
|
163
|
+
* The date the export will start capturing information.
|
|
164
|
+
*/
|
|
165
|
+
recurrencePeriodStartDate: pulumi.Input<string>;
|
|
166
|
+
/**
|
|
167
|
+
* How often the requested information will be exported. Valid values include `Annually`, `Daily`, `Monthly`, `Weekly`.
|
|
168
|
+
*/
|
|
169
|
+
recurrenceType: pulumi.Input<string>;
|
|
170
|
+
/**
|
|
171
|
+
* The id of the resource group on which to create an export.
|
|
172
|
+
*/
|
|
173
|
+
resourceGroupId: pulumi.Input<string>;
|
|
174
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
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.ResourceGroupCostManagementExport = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages a Cost Management Export for a Resource Group.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as azure from "@pulumi/azure";
|
|
16
|
+
*
|
|
17
|
+
* const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
|
|
18
|
+
* const exampleAccount = new azure.storage.Account("exampleAccount", {
|
|
19
|
+
* resourceGroupName: exampleResourceGroup.name,
|
|
20
|
+
* location: exampleResourceGroup.location,
|
|
21
|
+
* accountTier: "Standard",
|
|
22
|
+
* accountReplicationType: "LRS",
|
|
23
|
+
* });
|
|
24
|
+
* const exampleContainer = new azure.storage.Container("exampleContainer", {storageAccountName: azurerm_storage_account.test.name});
|
|
25
|
+
* const exampleResourceGroupCostManagementExport = new azure.core.ResourceGroupCostManagementExport("exampleResourceGroupCostManagementExport", {
|
|
26
|
+
* resourceGroupId: exampleResourceGroup.id,
|
|
27
|
+
* recurrenceType: "Monthly",
|
|
28
|
+
* recurrencePeriodStartDate: "2020-08-18T00:00:00Z",
|
|
29
|
+
* recurrencePeriodEndDate: "2020-09-18T00:00:00Z",
|
|
30
|
+
* exportDataStorageLocation: {
|
|
31
|
+
* containerId: azurerm_storage_container.test.resource_manager_id,
|
|
32
|
+
* rootFolderPath: "/root/updated",
|
|
33
|
+
* },
|
|
34
|
+
* exportDataOptions: {
|
|
35
|
+
* type: "Usage",
|
|
36
|
+
* timeFrame: "WeekToDate",
|
|
37
|
+
* },
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* ## Import
|
|
42
|
+
*
|
|
43
|
+
* Cost Management Export for a Resource Group can be imported using the `resource id`, e.g.
|
|
44
|
+
*
|
|
45
|
+
* ```sh
|
|
46
|
+
* $ pulumi import azure:core/resourceGroupCostManagementExport:ResourceGroupCostManagementExport example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.CostManagement/exports/export1
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
class ResourceGroupCostManagementExport extends pulumi.CustomResource {
|
|
50
|
+
constructor(name, argsOrState, opts) {
|
|
51
|
+
let inputs = {};
|
|
52
|
+
opts = opts || {};
|
|
53
|
+
if (opts.id) {
|
|
54
|
+
const state = argsOrState;
|
|
55
|
+
inputs["active"] = state ? state.active : undefined;
|
|
56
|
+
inputs["exportDataOptions"] = state ? state.exportDataOptions : undefined;
|
|
57
|
+
inputs["exportDataStorageLocation"] = state ? state.exportDataStorageLocation : undefined;
|
|
58
|
+
inputs["name"] = state ? state.name : undefined;
|
|
59
|
+
inputs["recurrencePeriodEndDate"] = state ? state.recurrencePeriodEndDate : undefined;
|
|
60
|
+
inputs["recurrencePeriodStartDate"] = state ? state.recurrencePeriodStartDate : undefined;
|
|
61
|
+
inputs["recurrenceType"] = state ? state.recurrenceType : undefined;
|
|
62
|
+
inputs["resourceGroupId"] = state ? state.resourceGroupId : undefined;
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
const args = argsOrState;
|
|
66
|
+
if ((!args || args.exportDataOptions === undefined) && !opts.urn) {
|
|
67
|
+
throw new Error("Missing required property 'exportDataOptions'");
|
|
68
|
+
}
|
|
69
|
+
if ((!args || args.exportDataStorageLocation === undefined) && !opts.urn) {
|
|
70
|
+
throw new Error("Missing required property 'exportDataStorageLocation'");
|
|
71
|
+
}
|
|
72
|
+
if ((!args || args.recurrencePeriodEndDate === undefined) && !opts.urn) {
|
|
73
|
+
throw new Error("Missing required property 'recurrencePeriodEndDate'");
|
|
74
|
+
}
|
|
75
|
+
if ((!args || args.recurrencePeriodStartDate === undefined) && !opts.urn) {
|
|
76
|
+
throw new Error("Missing required property 'recurrencePeriodStartDate'");
|
|
77
|
+
}
|
|
78
|
+
if ((!args || args.recurrenceType === undefined) && !opts.urn) {
|
|
79
|
+
throw new Error("Missing required property 'recurrenceType'");
|
|
80
|
+
}
|
|
81
|
+
if ((!args || args.resourceGroupId === undefined) && !opts.urn) {
|
|
82
|
+
throw new Error("Missing required property 'resourceGroupId'");
|
|
83
|
+
}
|
|
84
|
+
inputs["active"] = args ? args.active : undefined;
|
|
85
|
+
inputs["exportDataOptions"] = args ? args.exportDataOptions : undefined;
|
|
86
|
+
inputs["exportDataStorageLocation"] = args ? args.exportDataStorageLocation : undefined;
|
|
87
|
+
inputs["name"] = args ? args.name : undefined;
|
|
88
|
+
inputs["recurrencePeriodEndDate"] = args ? args.recurrencePeriodEndDate : undefined;
|
|
89
|
+
inputs["recurrencePeriodStartDate"] = args ? args.recurrencePeriodStartDate : undefined;
|
|
90
|
+
inputs["recurrenceType"] = args ? args.recurrenceType : undefined;
|
|
91
|
+
inputs["resourceGroupId"] = args ? args.resourceGroupId : undefined;
|
|
92
|
+
}
|
|
93
|
+
if (!opts.version) {
|
|
94
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
95
|
+
}
|
|
96
|
+
super(ResourceGroupCostManagementExport.__pulumiType, name, inputs, opts);
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Get an existing ResourceGroupCostManagementExport resource's state with the given name, ID, and optional extra
|
|
100
|
+
* properties used to qualify the lookup.
|
|
101
|
+
*
|
|
102
|
+
* @param name The _unique_ name of the resulting resource.
|
|
103
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
104
|
+
* @param state Any extra arguments used during the lookup.
|
|
105
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
106
|
+
*/
|
|
107
|
+
static get(name, id, state, opts) {
|
|
108
|
+
return new ResourceGroupCostManagementExport(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Returns true if the given object is an instance of ResourceGroupCostManagementExport. This is designed to work even
|
|
112
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
113
|
+
*/
|
|
114
|
+
static isInstance(obj) {
|
|
115
|
+
if (obj === undefined || obj === null) {
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
|
+
return obj['__pulumiType'] === ResourceGroupCostManagementExport.__pulumiType;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
exports.ResourceGroupCostManagementExport = ResourceGroupCostManagementExport;
|
|
122
|
+
/** @internal */
|
|
123
|
+
ResourceGroupCostManagementExport.__pulumiType = 'azure:core/resourceGroupCostManagementExport:ResourceGroupCostManagementExport';
|
|
124
|
+
//# sourceMappingURL=resourceGroupCostManagementExport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resourceGroupCostManagementExport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KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxF,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,iCAAiC,CAAC,YAAY,CAAC;IAClF,CAAC;;AA1BL,8EAoHC;AAtGG,gBAAgB;AACO,8CAAY,GAAG,gFAAgF,CAAC"}
|
|
@@ -69,7 +69,7 @@ export declare class ResourceGroupPolicyAssignment extends pulumi.CustomResource
|
|
|
69
69
|
*/
|
|
70
70
|
readonly enforce: pulumi.Output<boolean | undefined>;
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* An `identity` block as defined below.
|
|
73
73
|
*/
|
|
74
74
|
readonly identity: pulumi.Output<outputs.core.ResourceGroupPolicyAssignmentIdentity | undefined>;
|
|
75
75
|
/**
|
|
@@ -126,7 +126,7 @@ export interface ResourceGroupPolicyAssignmentState {
|
|
|
126
126
|
*/
|
|
127
127
|
enforce?: pulumi.Input<boolean>;
|
|
128
128
|
/**
|
|
129
|
-
*
|
|
129
|
+
* An `identity` block as defined below.
|
|
130
130
|
*/
|
|
131
131
|
identity?: pulumi.Input<inputs.core.ResourceGroupPolicyAssignmentIdentity>;
|
|
132
132
|
/**
|
|
@@ -175,7 +175,7 @@ export interface ResourceGroupPolicyAssignmentArgs {
|
|
|
175
175
|
*/
|
|
176
176
|
enforce?: pulumi.Input<boolean>;
|
|
177
177
|
/**
|
|
178
|
-
*
|
|
178
|
+
* An `identity` block as defined below.
|
|
179
179
|
*/
|
|
180
180
|
identity?: pulumi.Input<inputs.core.ResourceGroupPolicyAssignmentIdentity>;
|
|
181
181
|
/**
|
|
@@ -74,7 +74,7 @@ export declare class ResourcePolicyAssignment extends pulumi.CustomResource {
|
|
|
74
74
|
*/
|
|
75
75
|
readonly enforce: pulumi.Output<boolean | undefined>;
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* An `identity` block as defined below.
|
|
78
78
|
*/
|
|
79
79
|
readonly identity: pulumi.Output<outputs.core.ResourcePolicyAssignmentIdentity | undefined>;
|
|
80
80
|
/**
|
|
@@ -131,7 +131,7 @@ export interface ResourcePolicyAssignmentState {
|
|
|
131
131
|
*/
|
|
132
132
|
enforce?: pulumi.Input<boolean>;
|
|
133
133
|
/**
|
|
134
|
-
*
|
|
134
|
+
* An `identity` block as defined below.
|
|
135
135
|
*/
|
|
136
136
|
identity?: pulumi.Input<inputs.core.ResourcePolicyAssignmentIdentity>;
|
|
137
137
|
/**
|
|
@@ -180,7 +180,7 @@ export interface ResourcePolicyAssignmentArgs {
|
|
|
180
180
|
*/
|
|
181
181
|
enforce?: pulumi.Input<boolean>;
|
|
182
182
|
/**
|
|
183
|
-
*
|
|
183
|
+
* An `identity` block as defined below.
|
|
184
184
|
*/
|
|
185
185
|
identity?: pulumi.Input<inputs.core.ResourcePolicyAssignmentIdentity>;
|
|
186
186
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "../types";
|
|
2
3
|
/**
|
|
3
4
|
* Manages the registration of a Resource Provider - which allows access to the API's supported by this Resource Provider.
|
|
4
5
|
*
|
|
@@ -6,6 +7,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
6
7
|
*
|
|
7
8
|
* !> **Note:** The errors returned from the Azure API when a Resource Provider is unregistered are unclear (example `API version '2019-01-01' was not found for 'Microsoft.Foo'`) - please ensure that all of the necessary Resource Providers you're using are registered - if in doubt **we strongly recommend letting the provider register these for you**.
|
|
8
9
|
*
|
|
10
|
+
* > **Note:** Adding or Removing a Preview Feature will re-register the Resource Provider.
|
|
11
|
+
*
|
|
9
12
|
* ## Example Usage
|
|
10
13
|
*
|
|
11
14
|
* ```typescript
|
|
@@ -14,6 +17,19 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
14
17
|
*
|
|
15
18
|
* const example = new azure.core.ResourceProviderRegistration("example", {});
|
|
16
19
|
* ```
|
|
20
|
+
* ### Registering A Preview Feature)
|
|
21
|
+
*
|
|
22
|
+
* ```typescript
|
|
23
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
24
|
+
* import * as azure from "@pulumi/azure";
|
|
25
|
+
*
|
|
26
|
+
* const example = new azure.core.ResourceProviderRegistration("example", {
|
|
27
|
+
* features: [{
|
|
28
|
+
* name: "AKS-DataPlaneAutoApprove",
|
|
29
|
+
* registered: true,
|
|
30
|
+
* }],
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
17
33
|
*
|
|
18
34
|
* ## Import
|
|
19
35
|
*
|
|
@@ -39,6 +55,10 @@ export declare class ResourceProviderRegistration extends pulumi.CustomResource
|
|
|
39
55
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
40
56
|
*/
|
|
41
57
|
static isInstance(obj: any): obj is ResourceProviderRegistration;
|
|
58
|
+
/**
|
|
59
|
+
* A list of `feature` blocks as defined below.
|
|
60
|
+
*/
|
|
61
|
+
readonly features: pulumi.Output<outputs.core.ResourceProviderRegistrationFeature[] | undefined>;
|
|
42
62
|
/**
|
|
43
63
|
* The namespace of the Resource Provider which should be registered. Changing this forces a new resource to be created.
|
|
44
64
|
*/
|
|
@@ -56,6 +76,10 @@ export declare class ResourceProviderRegistration extends pulumi.CustomResource
|
|
|
56
76
|
* Input properties used for looking up and filtering ResourceProviderRegistration resources.
|
|
57
77
|
*/
|
|
58
78
|
export interface ResourceProviderRegistrationState {
|
|
79
|
+
/**
|
|
80
|
+
* A list of `feature` blocks as defined below.
|
|
81
|
+
*/
|
|
82
|
+
features?: pulumi.Input<pulumi.Input<inputs.core.ResourceProviderRegistrationFeature>[]>;
|
|
59
83
|
/**
|
|
60
84
|
* The namespace of the Resource Provider which should be registered. Changing this forces a new resource to be created.
|
|
61
85
|
*/
|
|
@@ -65,6 +89,10 @@ export interface ResourceProviderRegistrationState {
|
|
|
65
89
|
* The set of arguments for constructing a ResourceProviderRegistration resource.
|
|
66
90
|
*/
|
|
67
91
|
export interface ResourceProviderRegistrationArgs {
|
|
92
|
+
/**
|
|
93
|
+
* A list of `feature` blocks as defined below.
|
|
94
|
+
*/
|
|
95
|
+
features?: pulumi.Input<pulumi.Input<inputs.core.ResourceProviderRegistrationFeature>[]>;
|
|
68
96
|
/**
|
|
69
97
|
* The namespace of the Resource Provider which should be registered. Changing this forces a new resource to be created.
|
|
70
98
|
*/
|
|
@@ -12,6 +12,8 @@ const utilities = require("../utilities");
|
|
|
12
12
|
*
|
|
13
13
|
* !> **Note:** The errors returned from the Azure API when a Resource Provider is unregistered are unclear (example `API version '2019-01-01' was not found for 'Microsoft.Foo'`) - please ensure that all of the necessary Resource Providers you're using are registered - if in doubt **we strongly recommend letting the provider register these for you**.
|
|
14
14
|
*
|
|
15
|
+
* > **Note:** Adding or Removing a Preview Feature will re-register the Resource Provider.
|
|
16
|
+
*
|
|
15
17
|
* ## Example Usage
|
|
16
18
|
*
|
|
17
19
|
* ```typescript
|
|
@@ -20,6 +22,19 @@ const utilities = require("../utilities");
|
|
|
20
22
|
*
|
|
21
23
|
* const example = new azure.core.ResourceProviderRegistration("example", {});
|
|
22
24
|
* ```
|
|
25
|
+
* ### Registering A Preview Feature)
|
|
26
|
+
*
|
|
27
|
+
* ```typescript
|
|
28
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
29
|
+
* import * as azure from "@pulumi/azure";
|
|
30
|
+
*
|
|
31
|
+
* const example = new azure.core.ResourceProviderRegistration("example", {
|
|
32
|
+
* features: [{
|
|
33
|
+
* name: "AKS-DataPlaneAutoApprove",
|
|
34
|
+
* registered: true,
|
|
35
|
+
* }],
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
23
38
|
*
|
|
24
39
|
* ## Import
|
|
25
40
|
*
|
|
@@ -35,10 +50,12 @@ class ResourceProviderRegistration extends pulumi.CustomResource {
|
|
|
35
50
|
opts = opts || {};
|
|
36
51
|
if (opts.id) {
|
|
37
52
|
const state = argsOrState;
|
|
53
|
+
inputs["features"] = state ? state.features : undefined;
|
|
38
54
|
inputs["name"] = state ? state.name : undefined;
|
|
39
55
|
}
|
|
40
56
|
else {
|
|
41
57
|
const args = argsOrState;
|
|
58
|
+
inputs["features"] = args ? args.features : undefined;
|
|
42
59
|
inputs["name"] = args ? args.name : undefined;
|
|
43
60
|
}
|
|
44
61
|
if (!opts.version) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resourceProviderRegistration.js","sourceRoot":"","sources":["../../core/resourceProviderRegistration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"resourceProviderRegistration.js","sourceRoot":"","sources":["../../core/resourceProviderRegistration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAa,4BAA6B,SAAQ,MAAM,CAAC,cAAc;IA6CnE,YAAY,IAAY,EAAE,WAAkF,EAAE,IAAmC;QAC7I,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4D,CAAC;YAC3E,MAAM,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACnD;aAAM;YACH,MAAM,IAAI,GAAG,WAA2D,CAAC;YACzE,MAAM,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACjD;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,4BAA4B,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;IA5DD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyC,EAAE,IAAmC;QACvI,OAAO,IAAI,4BAA4B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnF,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,4BAA4B,CAAC,YAAY,CAAC;IAC7E,CAAC;;AA1BL,oEA8DC;AAhDG,gBAAgB;AACO,yCAAY,GAAG,sEAAsE,CAAC"}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Manages a Cost Management Export for a Subscription.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as azure from "@pulumi/azure";
|
|
11
|
+
*
|
|
12
|
+
* const exampleSubscription = azure.core.getSubscription({});
|
|
13
|
+
* const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
|
|
14
|
+
* const exampleAccount = new azure.storage.Account("exampleAccount", {
|
|
15
|
+
* resourceGroupName: exampleResourceGroup.name,
|
|
16
|
+
* location: exampleResourceGroup.location,
|
|
17
|
+
* accountTier: "Standard",
|
|
18
|
+
* accountReplicationType: "LRS",
|
|
19
|
+
* });
|
|
20
|
+
* const exampleContainer = new azure.storage.Container("exampleContainer", {storageAccountName: azurerm_storage_account.test.name});
|
|
21
|
+
* const exampleSubscriptionCostManagementExport = new azure.core.SubscriptionCostManagementExport("exampleSubscriptionCostManagementExport", {
|
|
22
|
+
* subscriptionId: azurerm_subscription.example.id,
|
|
23
|
+
* recurrenceType: "Monthly",
|
|
24
|
+
* recurrencePeriodStartDate: "2020-08-18T00:00:00Z",
|
|
25
|
+
* recurrencePeriodEndDate: "2020-09-18T00:00:00Z",
|
|
26
|
+
* exportDataStorageLocation: {
|
|
27
|
+
* containerId: exampleContainer.resourceManagerId,
|
|
28
|
+
* rootFolderPath: "/root/updated",
|
|
29
|
+
* },
|
|
30
|
+
* exportDataOptions: {
|
|
31
|
+
* type: "Usage",
|
|
32
|
+
* timeFrame: "WeekToDate",
|
|
33
|
+
* },
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* ## Import
|
|
38
|
+
*
|
|
39
|
+
* Subscription Cost Management Exports can be imported using the `resource id`, e.g.
|
|
40
|
+
*
|
|
41
|
+
* ```sh
|
|
42
|
+
* $ pulumi import azure:core/subscriptionCostManagementExport:SubscriptionCostManagementExport example /subscriptions/12345678-1234-9876-4563-123456789012/providers/Microsoft.CostManagement/exports/export1
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare class SubscriptionCostManagementExport extends pulumi.CustomResource {
|
|
46
|
+
/**
|
|
47
|
+
* Get an existing SubscriptionCostManagementExport resource's state with the given name, ID, and optional extra
|
|
48
|
+
* properties used to qualify the lookup.
|
|
49
|
+
*
|
|
50
|
+
* @param name The _unique_ name of the resulting resource.
|
|
51
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
52
|
+
* @param state Any extra arguments used during the lookup.
|
|
53
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
54
|
+
*/
|
|
55
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SubscriptionCostManagementExportState, opts?: pulumi.CustomResourceOptions): SubscriptionCostManagementExport;
|
|
56
|
+
/**
|
|
57
|
+
* Returns true if the given object is an instance of SubscriptionCostManagementExport. This is designed to work even
|
|
58
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
59
|
+
*/
|
|
60
|
+
static isInstance(obj: any): obj is SubscriptionCostManagementExport;
|
|
61
|
+
/**
|
|
62
|
+
* Is the cost management export active? Default is `true`.
|
|
63
|
+
*/
|
|
64
|
+
readonly active: pulumi.Output<boolean | undefined>;
|
|
65
|
+
/**
|
|
66
|
+
* A `exportDataOptions` block as defined below.
|
|
67
|
+
*/
|
|
68
|
+
readonly exportDataOptions: pulumi.Output<outputs.core.SubscriptionCostManagementExportExportDataOptions>;
|
|
69
|
+
/**
|
|
70
|
+
* A `exportDataStorageLocation` block as defined below.
|
|
71
|
+
*/
|
|
72
|
+
readonly exportDataStorageLocation: pulumi.Output<outputs.core.SubscriptionCostManagementExportExportDataStorageLocation>;
|
|
73
|
+
/**
|
|
74
|
+
* Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
|
|
75
|
+
*/
|
|
76
|
+
readonly name: pulumi.Output<string>;
|
|
77
|
+
readonly recurrencePeriodEndDate: pulumi.Output<string>;
|
|
78
|
+
/**
|
|
79
|
+
* The date the export will start capturing information.
|
|
80
|
+
*/
|
|
81
|
+
readonly recurrencePeriodStartDate: pulumi.Output<string>;
|
|
82
|
+
/**
|
|
83
|
+
* How often the requested information will be exported. Valid values include `Annually`, `Daily`, `Monthly`, `Weekly`.
|
|
84
|
+
*/
|
|
85
|
+
readonly recurrenceType: pulumi.Output<string>;
|
|
86
|
+
/**
|
|
87
|
+
* The id of the subscription on which to create an export.
|
|
88
|
+
*/
|
|
89
|
+
readonly subscriptionId: pulumi.Output<string>;
|
|
90
|
+
/**
|
|
91
|
+
* Create a SubscriptionCostManagementExport resource with the given unique name, arguments, and options.
|
|
92
|
+
*
|
|
93
|
+
* @param name The _unique_ name of the resource.
|
|
94
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
95
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
96
|
+
*/
|
|
97
|
+
constructor(name: string, args: SubscriptionCostManagementExportArgs, opts?: pulumi.CustomResourceOptions);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Input properties used for looking up and filtering SubscriptionCostManagementExport resources.
|
|
101
|
+
*/
|
|
102
|
+
export interface SubscriptionCostManagementExportState {
|
|
103
|
+
/**
|
|
104
|
+
* Is the cost management export active? Default is `true`.
|
|
105
|
+
*/
|
|
106
|
+
active?: pulumi.Input<boolean>;
|
|
107
|
+
/**
|
|
108
|
+
* A `exportDataOptions` block as defined below.
|
|
109
|
+
*/
|
|
110
|
+
exportDataOptions?: pulumi.Input<inputs.core.SubscriptionCostManagementExportExportDataOptions>;
|
|
111
|
+
/**
|
|
112
|
+
* A `exportDataStorageLocation` block as defined below.
|
|
113
|
+
*/
|
|
114
|
+
exportDataStorageLocation?: pulumi.Input<inputs.core.SubscriptionCostManagementExportExportDataStorageLocation>;
|
|
115
|
+
/**
|
|
116
|
+
* Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
|
|
117
|
+
*/
|
|
118
|
+
name?: pulumi.Input<string>;
|
|
119
|
+
recurrencePeriodEndDate?: pulumi.Input<string>;
|
|
120
|
+
/**
|
|
121
|
+
* The date the export will start capturing information.
|
|
122
|
+
*/
|
|
123
|
+
recurrencePeriodStartDate?: pulumi.Input<string>;
|
|
124
|
+
/**
|
|
125
|
+
* How often the requested information will be exported. Valid values include `Annually`, `Daily`, `Monthly`, `Weekly`.
|
|
126
|
+
*/
|
|
127
|
+
recurrenceType?: pulumi.Input<string>;
|
|
128
|
+
/**
|
|
129
|
+
* The id of the subscription on which to create an export.
|
|
130
|
+
*/
|
|
131
|
+
subscriptionId?: pulumi.Input<string>;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* The set of arguments for constructing a SubscriptionCostManagementExport resource.
|
|
135
|
+
*/
|
|
136
|
+
export interface SubscriptionCostManagementExportArgs {
|
|
137
|
+
/**
|
|
138
|
+
* Is the cost management export active? Default is `true`.
|
|
139
|
+
*/
|
|
140
|
+
active?: pulumi.Input<boolean>;
|
|
141
|
+
/**
|
|
142
|
+
* A `exportDataOptions` block as defined below.
|
|
143
|
+
*/
|
|
144
|
+
exportDataOptions: pulumi.Input<inputs.core.SubscriptionCostManagementExportExportDataOptions>;
|
|
145
|
+
/**
|
|
146
|
+
* A `exportDataStorageLocation` block as defined below.
|
|
147
|
+
*/
|
|
148
|
+
exportDataStorageLocation: pulumi.Input<inputs.core.SubscriptionCostManagementExportExportDataStorageLocation>;
|
|
149
|
+
/**
|
|
150
|
+
* Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.
|
|
151
|
+
*/
|
|
152
|
+
name?: pulumi.Input<string>;
|
|
153
|
+
recurrencePeriodEndDate: pulumi.Input<string>;
|
|
154
|
+
/**
|
|
155
|
+
* The date the export will start capturing information.
|
|
156
|
+
*/
|
|
157
|
+
recurrencePeriodStartDate: pulumi.Input<string>;
|
|
158
|
+
/**
|
|
159
|
+
* How often the requested information will be exported. Valid values include `Annually`, `Daily`, `Monthly`, `Weekly`.
|
|
160
|
+
*/
|
|
161
|
+
recurrenceType: pulumi.Input<string>;
|
|
162
|
+
/**
|
|
163
|
+
* The id of the subscription on which to create an export.
|
|
164
|
+
*/
|
|
165
|
+
subscriptionId: pulumi.Input<string>;
|
|
166
|
+
}
|