@pulumi/alicloud 3.18.0 → 3.19.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.
Files changed (140) hide show
  1. package/actiontrail/trail.d.ts +1 -1
  2. package/actiontrail/trailDeprecated.d.ts +1 -1
  3. package/alikafka/saslUser.d.ts +17 -3
  4. package/alikafka/saslUser.js +7 -3
  5. package/alikafka/saslUser.js.map +1 -1
  6. package/bastionhost/instance.d.ts +0 -9
  7. package/bastionhost/instance.js.map +1 -1
  8. package/cen/instance.d.ts +3 -3
  9. package/cen/transitRouterPeerAttachment.d.ts +1 -1
  10. package/cloudfirewall/instance.d.ts +0 -2
  11. package/cloudfirewall/instance.js +0 -2
  12. package/cloudfirewall/instance.js.map +1 -1
  13. package/databasefilesystem/getSnapshots.d.ts +82 -0
  14. package/databasefilesystem/getSnapshots.js +53 -0
  15. package/databasefilesystem/getSnapshots.js.map +1 -0
  16. package/databasefilesystem/index.d.ts +1 -0
  17. package/databasefilesystem/index.js +1 -0
  18. package/databasefilesystem/index.js.map +1 -1
  19. package/dcdn/domain.d.ts +9 -0
  20. package/dcdn/domain.js.map +1 -1
  21. package/dcdn/getIpaDomains.d.ts +91 -0
  22. package/dcdn/getIpaDomains.js +54 -0
  23. package/dcdn/getIpaDomains.js.map +1 -0
  24. package/dcdn/index.d.ts +1 -0
  25. package/dcdn/index.js +1 -0
  26. package/dcdn/index.js.map +1 -1
  27. package/dts/getMigrationJobs.d.ts +74 -0
  28. package/dts/getMigrationJobs.js +45 -0
  29. package/dts/getMigrationJobs.js.map +1 -0
  30. package/dts/index.d.ts +1 -0
  31. package/dts/index.js +1 -0
  32. package/dts/index.js.map +1 -1
  33. package/dts/synchronizationInstance.d.ts +24 -0
  34. package/dts/synchronizationInstance.js +4 -0
  35. package/dts/synchronizationInstance.js.map +1 -1
  36. package/dts/synchronizationJob.d.ts +2 -2
  37. package/dts/synchronizationJob.js +3 -0
  38. package/dts/synchronizationJob.js.map +1 -1
  39. package/ecp/getInstanceTypes.d.ts +45 -0
  40. package/ecp/getInstanceTypes.js +41 -0
  41. package/ecp/getInstanceTypes.js.map +1 -0
  42. package/ecp/getInstances.d.ts +120 -0
  43. package/ecp/getInstances.js +39 -0
  44. package/ecp/getInstances.js.map +1 -0
  45. package/ecp/getZones.d.ts +45 -0
  46. package/ecp/getZones.js +41 -0
  47. package/ecp/getZones.js.map +1 -0
  48. package/ecp/index.d.ts +3 -0
  49. package/ecp/index.js +3 -0
  50. package/ecp/index.js.map +1 -1
  51. package/ecs/disk.d.ts +1 -1
  52. package/ecs/ecsDisk.d.ts +10 -1
  53. package/ecs/ecsDisk.js.map +1 -1
  54. package/ecs/ecsImageComponent.d.ts +165 -0
  55. package/ecs/ecsImageComponent.js +103 -0
  56. package/ecs/ecsImageComponent.js.map +1 -0
  57. package/ecs/ecsSnapshotGroup.d.ts +251 -0
  58. package/ecs/ecsSnapshotGroup.js +160 -0
  59. package/ecs/ecsSnapshotGroup.js.map +1 -0
  60. package/ecs/getEcsImageComponents.d.ts +111 -0
  61. package/ecs/getEcsImageComponents.js +52 -0
  62. package/ecs/getEcsImageComponents.js.map +1 -0
  63. package/ecs/getEcsSnapshotGroups.d.ts +119 -0
  64. package/ecs/getEcsSnapshotGroups.js +60 -0
  65. package/ecs/getEcsSnapshotGroups.js.map +1 -0
  66. package/ecs/getEcsStorageCapacityUnits.d.ts +76 -0
  67. package/ecs/getEcsStorageCapacityUnits.js +47 -0
  68. package/ecs/getEcsStorageCapacityUnits.js.map +1 -0
  69. package/ecs/index.d.ts +5 -0
  70. package/ecs/index.js +13 -0
  71. package/ecs/index.js.map +1 -1
  72. package/ess/scalingGroup.d.ts +39 -3
  73. package/ess/scalingGroup.js +4 -0
  74. package/ess/scalingGroup.js.map +1 -1
  75. package/getMscSubContactVerificationMessage.d.ts +71 -0
  76. package/getMscSubContactVerificationMessage.js +46 -0
  77. package/getMscSubContactVerificationMessage.js.map +1 -0
  78. package/gpdb/instance.d.ts +2 -2
  79. package/gpdb/instance.js +6 -0
  80. package/gpdb/instance.js.map +1 -1
  81. package/hbase/instance.d.ts +18 -3
  82. package/hbase/instance.js.map +1 -1
  83. package/hbr/ecsBackupPlan.d.ts +3 -3
  84. package/hbr/getBackupJobs.d.ts +2 -2
  85. package/hbr/getRestoreJobs.d.ts +4 -4
  86. package/hbr/getSnapshots.d.ts +0 -9
  87. package/hbr/getSnapshots.js +0 -1
  88. package/hbr/getSnapshots.js.map +1 -1
  89. package/hbr/nasBackupPlan.d.ts +0 -9
  90. package/hbr/nasBackupPlan.js.map +1 -1
  91. package/index.d.ts +1 -0
  92. package/index.js +1 -0
  93. package/index.js.map +1 -1
  94. package/mongodb/getShardingNetworkPrivateAddresses.d.ts +59 -0
  95. package/mongodb/getShardingNetworkPrivateAddresses.js +30 -0
  96. package/mongodb/getShardingNetworkPrivateAddresses.js.map +1 -0
  97. package/mongodb/index.d.ts +1 -0
  98. package/mongodb/index.js +1 -0
  99. package/mongodb/index.js.map +1 -1
  100. package/mongodb/shardingInstance.d.ts +3 -3
  101. package/mse/getGateways.d.ts +109 -0
  102. package/mse/getGateways.js +56 -0
  103. package/mse/getGateways.js.map +1 -0
  104. package/mse/index.d.ts +1 -0
  105. package/mse/index.js +1 -0
  106. package/mse/index.js.map +1 -1
  107. package/package.json +2 -2
  108. package/package.json.dev +2 -2
  109. package/sae/applicationScalingRule.d.ts +234 -0
  110. package/sae/applicationScalingRule.js +173 -0
  111. package/sae/applicationScalingRule.js.map +1 -0
  112. package/sae/getApplicationScalingRules.d.ts +68 -0
  113. package/sae/getApplicationScalingRules.js +47 -0
  114. package/sae/getApplicationScalingRules.js.map +1 -0
  115. package/sae/getGreyTagRoutes.d.ts +75 -0
  116. package/sae/getGreyTagRoutes.js +45 -0
  117. package/sae/getGreyTagRoutes.js.map +1 -0
  118. package/sae/greyTagRoute.d.ts +112 -0
  119. package/sae/greyTagRoute.js +78 -0
  120. package/sae/greyTagRoute.js.map +1 -0
  121. package/sae/index.d.ts +4 -0
  122. package/sae/index.js +12 -0
  123. package/sae/index.js.map +1 -1
  124. package/sddp/dataLimit.d.ts +171 -0
  125. package/sddp/dataLimit.js +85 -0
  126. package/sddp/dataLimit.js.map +1 -0
  127. package/sddp/getDataLimits.d.ts +71 -0
  128. package/sddp/getDataLimits.js +43 -0
  129. package/sddp/getDataLimits.js.map +1 -0
  130. package/sddp/index.d.ts +2 -0
  131. package/sddp/index.js +6 -0
  132. package/sddp/index.js.map +1 -1
  133. package/types/input.d.ts +190 -5
  134. package/types/output.d.ts +1185 -52
  135. package/vpn/customerGateway.d.ts +12 -0
  136. package/vpn/customerGateway.js +2 -0
  137. package/vpn/customerGateway.js.map +1 -1
  138. package/vpn/gateway.d.ts +36 -0
  139. package/vpn/gateway.js +4 -0
  140. package/vpn/gateway.js.map +1 -1
@@ -0,0 +1,251 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides a ECS Snapshot Group resource.
4
+ *
5
+ * For information about ECS Snapshot Group and how to use it, see [What is Snapshot Group](https://www.alibabacloud.com/help/en/doc-detail/210939.html).
6
+ *
7
+ * > **NOTE:** Available in v1.160.0+.
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * Basic Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as alicloud from "@pulumi/alicloud";
16
+ *
17
+ * const defaultResourceGroups = alicloud.resourcemanager.getResourceGroups({
18
+ * nameRegex: "default",
19
+ * });
20
+ * const defaultZones = alicloud.getZones({
21
+ * availableResourceCreation: "Instance",
22
+ * availableDiskCategory: "cloud_essd",
23
+ * });
24
+ * const defaultInstanceTypes = defaultZones.then(defaultZones => alicloud.ecs.getInstanceTypes({
25
+ * availabilityZone: defaultZones.zones?[0]?.id,
26
+ * cpuCoreCount: 2,
27
+ * memorySize: 4,
28
+ * systemDiskCategory: "cloud_essd",
29
+ * }));
30
+ * const defaultNetworks = alicloud.vpc.getNetworks({
31
+ * nameRegex: "default-NODELETING",
32
+ * });
33
+ * const defaultSwitches = Promise.all([defaultNetworks, defaultZones]).then(([defaultNetworks, defaultZones]) => alicloud.vpc.getSwitches({
34
+ * vpcId: defaultNetworks.ids?[0],
35
+ * zoneId: defaultZones.zones?[0]?.id,
36
+ * }));
37
+ * const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("defaultSecurityGroup", {
38
+ * description: "New security group",
39
+ * vpcId: defaultNetworks.then(defaultNetworks => defaultNetworks.ids?[0]),
40
+ * });
41
+ * const defaultDisk: alicloud.ecs.Disk[];
42
+ * for (const range = {value: 0}; range.value < 2; range.value++) {
43
+ * defaultDisk.push(new alicloud.ecs.Disk(`defaultDisk-${range.value}`, {
44
+ * diskName: _var.name,
45
+ * zoneId: defaultInstanceTypes.then(defaultInstanceTypes => defaultInstanceTypes.instanceTypes?[0]?.availabilityZones?[0]),
46
+ * category: "cloud_essd",
47
+ * size: "20",
48
+ * }));
49
+ * }
50
+ * const defaultImages = alicloud.ecs.getImages({
51
+ * owners: "system",
52
+ * });
53
+ * const defaultInstance = new alicloud.ecs.Instance("defaultInstance", {
54
+ * availabilityZone: defaultZones.then(defaultZones => defaultZones.zones?[0]?.id),
55
+ * instanceName: _var.name,
56
+ * hostName: "tf-testAcc",
57
+ * imageId: defaultImages.then(defaultImages => defaultImages.images?[0]?.id),
58
+ * instanceType: defaultInstanceTypes.then(defaultInstanceTypes => defaultInstanceTypes.instanceTypes?[0]?.id),
59
+ * securityGroups: [defaultSecurityGroup.id],
60
+ * vswitchId: defaultSwitches.then(defaultSwitches => defaultSwitches.ids?[0]),
61
+ * });
62
+ * const defaultDiskAttachment: alicloud.ecs.DiskAttachment[];
63
+ * for (const range = {value: 0}; range.value < 2; range.value++) {
64
+ * defaultDiskAttachment.push(new alicloud.ecs.DiskAttachment(`defaultDiskAttachment-${range.value}`, {
65
+ * diskId: defaultDisk.map(__item => __item.id)[range.value],
66
+ * instanceId: defaultInstance.id,
67
+ * }));
68
+ * }
69
+ * const example = new alicloud.ecs.EcsSnapshotGroup("example", {
70
+ * description: "example_value",
71
+ * diskIds: [
72
+ * defaultDiskAttachment[0].diskId,
73
+ * defaultDiskAttachment[1].diskId,
74
+ * ],
75
+ * snapshotGroupName: "example_value",
76
+ * resourceGroupId: defaultResourceGroups.then(defaultResourceGroups => defaultResourceGroups.groups?[0]?.id),
77
+ * instanceId: defaultDiskAttachment[0].instanceId,
78
+ * instantAccess: true,
79
+ * instantAccessRetentionDays: 1,
80
+ * tags: {
81
+ * Created: "TF",
82
+ * For: "Acceptance-test",
83
+ * },
84
+ * });
85
+ * ```
86
+ *
87
+ * ## Import
88
+ *
89
+ * ECS Snapshot Group can be imported using the id, e.g.
90
+ *
91
+ * ```sh
92
+ * $ pulumi import alicloud:ecs/ecsSnapshotGroup:EcsSnapshotGroup example <id>
93
+ * ```
94
+ */
95
+ export declare class EcsSnapshotGroup extends pulumi.CustomResource {
96
+ /**
97
+ * Get an existing EcsSnapshotGroup resource's state with the given name, ID, and optional extra
98
+ * properties used to qualify the lookup.
99
+ *
100
+ * @param name The _unique_ name of the resulting resource.
101
+ * @param id The _unique_ provider ID of the resource to lookup.
102
+ * @param state Any extra arguments used during the lookup.
103
+ * @param opts Optional settings to control the behavior of the CustomResource.
104
+ */
105
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EcsSnapshotGroupState, opts?: pulumi.CustomResourceOptions): EcsSnapshotGroup;
106
+ /**
107
+ * Returns true if the given object is an instance of EcsSnapshotGroup. This is designed to work even
108
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
109
+ */
110
+ static isInstance(obj: any): obj is EcsSnapshotGroup;
111
+ /**
112
+ * The description of the snapshot-consistent group. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
113
+ */
114
+ readonly description: pulumi.Output<string | undefined>;
115
+ /**
116
+ * The ID of disk for which to create snapshots. You can specify multiple disk IDs across instances with the same zone.
117
+ */
118
+ readonly diskIds: pulumi.Output<string[] | undefined>;
119
+ /**
120
+ * The ID of disk N for which you do not need to create snapshots. After this parameter is specified, the created snapshot-consistent group does not contain snapshots of the disk.
121
+ */
122
+ readonly excludeDiskIds: pulumi.Output<string[] | undefined>;
123
+ /**
124
+ * The ID of the instance.
125
+ */
126
+ readonly instanceId: pulumi.Output<string | undefined>;
127
+ /**
128
+ * Specifies whether to enable the instant access feature.
129
+ */
130
+ readonly instantAccess: pulumi.Output<boolean | undefined>;
131
+ /**
132
+ * Specify the number of days for which the instant access feature is available. Unit: days. Valid values: `1` to `65535`.
133
+ */
134
+ readonly instantAccessRetentionDays: pulumi.Output<number | undefined>;
135
+ /**
136
+ * The ID of the resource group to which the snapshot consistency group belongs.
137
+ */
138
+ readonly resourceGroupId: pulumi.Output<string>;
139
+ /**
140
+ * The name of the snapshot-consistent group. The name must be `2` to `128` characters in length, and can contain letters, digits, periods (.), underscores (_), hyphens (-), and colons (:). It must start with a letter or a digit and cannot start with `http://` or `https://`.
141
+ */
142
+ readonly snapshotGroupName: pulumi.Output<string | undefined>;
143
+ /**
144
+ * The status of the resource.
145
+ */
146
+ readonly status: pulumi.Output<string>;
147
+ /**
148
+ * A mapping of tags to assign to the snapshot group.
149
+ */
150
+ readonly tags: pulumi.Output<{
151
+ [key: string]: any;
152
+ } | undefined>;
153
+ /**
154
+ * Create a EcsSnapshotGroup resource with the given unique name, arguments, and options.
155
+ *
156
+ * @param name The _unique_ name of the resource.
157
+ * @param args The arguments to use to populate this resource's properties.
158
+ * @param opts A bag of options that control this resource's behavior.
159
+ */
160
+ constructor(name: string, args?: EcsSnapshotGroupArgs, opts?: pulumi.CustomResourceOptions);
161
+ }
162
+ /**
163
+ * Input properties used for looking up and filtering EcsSnapshotGroup resources.
164
+ */
165
+ export interface EcsSnapshotGroupState {
166
+ /**
167
+ * The description of the snapshot-consistent group. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
168
+ */
169
+ description?: pulumi.Input<string>;
170
+ /**
171
+ * The ID of disk for which to create snapshots. You can specify multiple disk IDs across instances with the same zone.
172
+ */
173
+ diskIds?: pulumi.Input<pulumi.Input<string>[]>;
174
+ /**
175
+ * The ID of disk N for which you do not need to create snapshots. After this parameter is specified, the created snapshot-consistent group does not contain snapshots of the disk.
176
+ */
177
+ excludeDiskIds?: pulumi.Input<pulumi.Input<string>[]>;
178
+ /**
179
+ * The ID of the instance.
180
+ */
181
+ instanceId?: pulumi.Input<string>;
182
+ /**
183
+ * Specifies whether to enable the instant access feature.
184
+ */
185
+ instantAccess?: pulumi.Input<boolean>;
186
+ /**
187
+ * Specify the number of days for which the instant access feature is available. Unit: days. Valid values: `1` to `65535`.
188
+ */
189
+ instantAccessRetentionDays?: pulumi.Input<number>;
190
+ /**
191
+ * The ID of the resource group to which the snapshot consistency group belongs.
192
+ */
193
+ resourceGroupId?: pulumi.Input<string>;
194
+ /**
195
+ * The name of the snapshot-consistent group. The name must be `2` to `128` characters in length, and can contain letters, digits, periods (.), underscores (_), hyphens (-), and colons (:). It must start with a letter or a digit and cannot start with `http://` or `https://`.
196
+ */
197
+ snapshotGroupName?: pulumi.Input<string>;
198
+ /**
199
+ * The status of the resource.
200
+ */
201
+ status?: pulumi.Input<string>;
202
+ /**
203
+ * A mapping of tags to assign to the snapshot group.
204
+ */
205
+ tags?: pulumi.Input<{
206
+ [key: string]: any;
207
+ }>;
208
+ }
209
+ /**
210
+ * The set of arguments for constructing a EcsSnapshotGroup resource.
211
+ */
212
+ export interface EcsSnapshotGroupArgs {
213
+ /**
214
+ * The description of the snapshot-consistent group. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
215
+ */
216
+ description?: pulumi.Input<string>;
217
+ /**
218
+ * The ID of disk for which to create snapshots. You can specify multiple disk IDs across instances with the same zone.
219
+ */
220
+ diskIds?: pulumi.Input<pulumi.Input<string>[]>;
221
+ /**
222
+ * The ID of disk N for which you do not need to create snapshots. After this parameter is specified, the created snapshot-consistent group does not contain snapshots of the disk.
223
+ */
224
+ excludeDiskIds?: pulumi.Input<pulumi.Input<string>[]>;
225
+ /**
226
+ * The ID of the instance.
227
+ */
228
+ instanceId?: pulumi.Input<string>;
229
+ /**
230
+ * Specifies whether to enable the instant access feature.
231
+ */
232
+ instantAccess?: pulumi.Input<boolean>;
233
+ /**
234
+ * Specify the number of days for which the instant access feature is available. Unit: days. Valid values: `1` to `65535`.
235
+ */
236
+ instantAccessRetentionDays?: pulumi.Input<number>;
237
+ /**
238
+ * The ID of the resource group to which the snapshot consistency group belongs.
239
+ */
240
+ resourceGroupId?: pulumi.Input<string>;
241
+ /**
242
+ * The name of the snapshot-consistent group. The name must be `2` to `128` characters in length, and can contain letters, digits, periods (.), underscores (_), hyphens (-), and colons (:). It must start with a letter or a digit and cannot start with `http://` or `https://`.
243
+ */
244
+ snapshotGroupName?: pulumi.Input<string>;
245
+ /**
246
+ * A mapping of tags to assign to the snapshot group.
247
+ */
248
+ tags?: pulumi.Input<{
249
+ [key: string]: any;
250
+ }>;
251
+ }
@@ -0,0 +1,160 @@
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.EcsSnapshotGroup = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Provides a ECS Snapshot Group resource.
10
+ *
11
+ * For information about ECS Snapshot Group and how to use it, see [What is Snapshot Group](https://www.alibabacloud.com/help/en/doc-detail/210939.html).
12
+ *
13
+ * > **NOTE:** Available in v1.160.0+.
14
+ *
15
+ * ## Example Usage
16
+ *
17
+ * Basic Usage
18
+ *
19
+ * ```typescript
20
+ * import * as pulumi from "@pulumi/pulumi";
21
+ * import * as alicloud from "@pulumi/alicloud";
22
+ *
23
+ * const defaultResourceGroups = alicloud.resourcemanager.getResourceGroups({
24
+ * nameRegex: "default",
25
+ * });
26
+ * const defaultZones = alicloud.getZones({
27
+ * availableResourceCreation: "Instance",
28
+ * availableDiskCategory: "cloud_essd",
29
+ * });
30
+ * const defaultInstanceTypes = defaultZones.then(defaultZones => alicloud.ecs.getInstanceTypes({
31
+ * availabilityZone: defaultZones.zones?[0]?.id,
32
+ * cpuCoreCount: 2,
33
+ * memorySize: 4,
34
+ * systemDiskCategory: "cloud_essd",
35
+ * }));
36
+ * const defaultNetworks = alicloud.vpc.getNetworks({
37
+ * nameRegex: "default-NODELETING",
38
+ * });
39
+ * const defaultSwitches = Promise.all([defaultNetworks, defaultZones]).then(([defaultNetworks, defaultZones]) => alicloud.vpc.getSwitches({
40
+ * vpcId: defaultNetworks.ids?[0],
41
+ * zoneId: defaultZones.zones?[0]?.id,
42
+ * }));
43
+ * const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("defaultSecurityGroup", {
44
+ * description: "New security group",
45
+ * vpcId: defaultNetworks.then(defaultNetworks => defaultNetworks.ids?[0]),
46
+ * });
47
+ * const defaultDisk: alicloud.ecs.Disk[];
48
+ * for (const range = {value: 0}; range.value < 2; range.value++) {
49
+ * defaultDisk.push(new alicloud.ecs.Disk(`defaultDisk-${range.value}`, {
50
+ * diskName: _var.name,
51
+ * zoneId: defaultInstanceTypes.then(defaultInstanceTypes => defaultInstanceTypes.instanceTypes?[0]?.availabilityZones?[0]),
52
+ * category: "cloud_essd",
53
+ * size: "20",
54
+ * }));
55
+ * }
56
+ * const defaultImages = alicloud.ecs.getImages({
57
+ * owners: "system",
58
+ * });
59
+ * const defaultInstance = new alicloud.ecs.Instance("defaultInstance", {
60
+ * availabilityZone: defaultZones.then(defaultZones => defaultZones.zones?[0]?.id),
61
+ * instanceName: _var.name,
62
+ * hostName: "tf-testAcc",
63
+ * imageId: defaultImages.then(defaultImages => defaultImages.images?[0]?.id),
64
+ * instanceType: defaultInstanceTypes.then(defaultInstanceTypes => defaultInstanceTypes.instanceTypes?[0]?.id),
65
+ * securityGroups: [defaultSecurityGroup.id],
66
+ * vswitchId: defaultSwitches.then(defaultSwitches => defaultSwitches.ids?[0]),
67
+ * });
68
+ * const defaultDiskAttachment: alicloud.ecs.DiskAttachment[];
69
+ * for (const range = {value: 0}; range.value < 2; range.value++) {
70
+ * defaultDiskAttachment.push(new alicloud.ecs.DiskAttachment(`defaultDiskAttachment-${range.value}`, {
71
+ * diskId: defaultDisk.map(__item => __item.id)[range.value],
72
+ * instanceId: defaultInstance.id,
73
+ * }));
74
+ * }
75
+ * const example = new alicloud.ecs.EcsSnapshotGroup("example", {
76
+ * description: "example_value",
77
+ * diskIds: [
78
+ * defaultDiskAttachment[0].diskId,
79
+ * defaultDiskAttachment[1].diskId,
80
+ * ],
81
+ * snapshotGroupName: "example_value",
82
+ * resourceGroupId: defaultResourceGroups.then(defaultResourceGroups => defaultResourceGroups.groups?[0]?.id),
83
+ * instanceId: defaultDiskAttachment[0].instanceId,
84
+ * instantAccess: true,
85
+ * instantAccessRetentionDays: 1,
86
+ * tags: {
87
+ * Created: "TF",
88
+ * For: "Acceptance-test",
89
+ * },
90
+ * });
91
+ * ```
92
+ *
93
+ * ## Import
94
+ *
95
+ * ECS Snapshot Group can be imported using the id, e.g.
96
+ *
97
+ * ```sh
98
+ * $ pulumi import alicloud:ecs/ecsSnapshotGroup:EcsSnapshotGroup example <id>
99
+ * ```
100
+ */
101
+ class EcsSnapshotGroup extends pulumi.CustomResource {
102
+ constructor(name, argsOrState, opts) {
103
+ let resourceInputs = {};
104
+ opts = opts || {};
105
+ if (opts.id) {
106
+ const state = argsOrState;
107
+ resourceInputs["description"] = state ? state.description : undefined;
108
+ resourceInputs["diskIds"] = state ? state.diskIds : undefined;
109
+ resourceInputs["excludeDiskIds"] = state ? state.excludeDiskIds : undefined;
110
+ resourceInputs["instanceId"] = state ? state.instanceId : undefined;
111
+ resourceInputs["instantAccess"] = state ? state.instantAccess : undefined;
112
+ resourceInputs["instantAccessRetentionDays"] = state ? state.instantAccessRetentionDays : undefined;
113
+ resourceInputs["resourceGroupId"] = state ? state.resourceGroupId : undefined;
114
+ resourceInputs["snapshotGroupName"] = state ? state.snapshotGroupName : undefined;
115
+ resourceInputs["status"] = state ? state.status : undefined;
116
+ resourceInputs["tags"] = state ? state.tags : undefined;
117
+ }
118
+ else {
119
+ const args = argsOrState;
120
+ resourceInputs["description"] = args ? args.description : undefined;
121
+ resourceInputs["diskIds"] = args ? args.diskIds : undefined;
122
+ resourceInputs["excludeDiskIds"] = args ? args.excludeDiskIds : undefined;
123
+ resourceInputs["instanceId"] = args ? args.instanceId : undefined;
124
+ resourceInputs["instantAccess"] = args ? args.instantAccess : undefined;
125
+ resourceInputs["instantAccessRetentionDays"] = args ? args.instantAccessRetentionDays : undefined;
126
+ resourceInputs["resourceGroupId"] = args ? args.resourceGroupId : undefined;
127
+ resourceInputs["snapshotGroupName"] = args ? args.snapshotGroupName : undefined;
128
+ resourceInputs["tags"] = args ? args.tags : undefined;
129
+ resourceInputs["status"] = undefined /*out*/;
130
+ }
131
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
132
+ super(EcsSnapshotGroup.__pulumiType, name, resourceInputs, opts);
133
+ }
134
+ /**
135
+ * Get an existing EcsSnapshotGroup resource's state with the given name, ID, and optional extra
136
+ * properties used to qualify the lookup.
137
+ *
138
+ * @param name The _unique_ name of the resulting resource.
139
+ * @param id The _unique_ provider ID of the resource to lookup.
140
+ * @param state Any extra arguments used during the lookup.
141
+ * @param opts Optional settings to control the behavior of the CustomResource.
142
+ */
143
+ static get(name, id, state, opts) {
144
+ return new EcsSnapshotGroup(name, state, Object.assign(Object.assign({}, opts), { id: id }));
145
+ }
146
+ /**
147
+ * Returns true if the given object is an instance of EcsSnapshotGroup. This is designed to work even
148
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
149
+ */
150
+ static isInstance(obj) {
151
+ if (obj === undefined || obj === null) {
152
+ return false;
153
+ }
154
+ return obj['__pulumiType'] === EcsSnapshotGroup.__pulumiType;
155
+ }
156
+ }
157
+ exports.EcsSnapshotGroup = EcsSnapshotGroup;
158
+ /** @internal */
159
+ EcsSnapshotGroup.__pulumiType = 'alicloud:ecs/ecsSnapshotGroup:EcsSnapshotGroup';
160
+ //# sourceMappingURL=ecsSnapshotGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ecsSnapshotGroup.js","sourceRoot":"","sources":["../../ecs/ecsSnapshotGroup.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,111 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { output as outputs } from "../types";
3
+ /**
4
+ * This data source provides the Ecs Image Components of the current Alibaba Cloud user.
5
+ *
6
+ * > **NOTE:** Available in v1.159.0+.
7
+ *
8
+ * ## Example Usage
9
+ *
10
+ * Basic Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as alicloud from "@pulumi/alicloud";
15
+ *
16
+ * const ids = alicloud.ecs.getEcsImageComponents({
17
+ * ids: ["example_id"],
18
+ * });
19
+ * export const ecsImageComponentId1 = ids.then(ids => ids.components?[0]?.id);
20
+ * const nameRegex = alicloud.ecs.getEcsImageComponents({
21
+ * nameRegex: "^my-ImageComponent",
22
+ * });
23
+ * export const ecsImageComponentId2 = nameRegex.then(nameRegex => nameRegex.components?[0]?.id);
24
+ * ```
25
+ */
26
+ export declare function getEcsImageComponents(args?: GetEcsImageComponentsArgs, opts?: pulumi.InvokeOptions): Promise<GetEcsImageComponentsResult>;
27
+ /**
28
+ * A collection of arguments for invoking getEcsImageComponents.
29
+ */
30
+ export interface GetEcsImageComponentsArgs {
31
+ /**
32
+ * A list of Image Component IDs.
33
+ */
34
+ ids?: string[];
35
+ /**
36
+ * The name of the image component.
37
+ */
38
+ imageComponentName?: string;
39
+ /**
40
+ * A regex string to filter results by Image Component name.
41
+ */
42
+ nameRegex?: string;
43
+ outputFile?: string;
44
+ /**
45
+ * The type of the image component.
46
+ */
47
+ owner?: string;
48
+ /**
49
+ * The ID of the resource group.
50
+ */
51
+ resourceGroupId?: string;
52
+ /**
53
+ * List of label key-value pairs.
54
+ */
55
+ tags?: {
56
+ [key: string]: any;
57
+ };
58
+ }
59
+ /**
60
+ * A collection of values returned by getEcsImageComponents.
61
+ */
62
+ export interface GetEcsImageComponentsResult {
63
+ readonly components: outputs.ecs.GetEcsImageComponentsComponent[];
64
+ /**
65
+ * The provider-assigned unique ID for this managed resource.
66
+ */
67
+ readonly id: string;
68
+ readonly ids: string[];
69
+ readonly imageComponentName?: string;
70
+ readonly nameRegex?: string;
71
+ readonly names: string[];
72
+ readonly outputFile?: string;
73
+ readonly owner?: string;
74
+ readonly resourceGroupId?: string;
75
+ readonly tags?: {
76
+ [key: string]: any;
77
+ };
78
+ }
79
+ export declare function getEcsImageComponentsOutput(args?: GetEcsImageComponentsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetEcsImageComponentsResult>;
80
+ /**
81
+ * A collection of arguments for invoking getEcsImageComponents.
82
+ */
83
+ export interface GetEcsImageComponentsOutputArgs {
84
+ /**
85
+ * A list of Image Component IDs.
86
+ */
87
+ ids?: pulumi.Input<pulumi.Input<string>[]>;
88
+ /**
89
+ * The name of the image component.
90
+ */
91
+ imageComponentName?: pulumi.Input<string>;
92
+ /**
93
+ * A regex string to filter results by Image Component name.
94
+ */
95
+ nameRegex?: pulumi.Input<string>;
96
+ outputFile?: pulumi.Input<string>;
97
+ /**
98
+ * The type of the image component.
99
+ */
100
+ owner?: pulumi.Input<string>;
101
+ /**
102
+ * The ID of the resource group.
103
+ */
104
+ resourceGroupId?: pulumi.Input<string>;
105
+ /**
106
+ * List of label key-value pairs.
107
+ */
108
+ tags?: pulumi.Input<{
109
+ [key: string]: any;
110
+ }>;
111
+ }
@@ -0,0 +1,52 @@
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.getEcsImageComponentsOutput = exports.getEcsImageComponents = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * This data source provides the Ecs Image Components of the current Alibaba Cloud user.
10
+ *
11
+ * > **NOTE:** Available in v1.159.0+.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * Basic Usage
16
+ *
17
+ * ```typescript
18
+ * import * as pulumi from "@pulumi/pulumi";
19
+ * import * as alicloud from "@pulumi/alicloud";
20
+ *
21
+ * const ids = alicloud.ecs.getEcsImageComponents({
22
+ * ids: ["example_id"],
23
+ * });
24
+ * export const ecsImageComponentId1 = ids.then(ids => ids.components?[0]?.id);
25
+ * const nameRegex = alicloud.ecs.getEcsImageComponents({
26
+ * nameRegex: "^my-ImageComponent",
27
+ * });
28
+ * export const ecsImageComponentId2 = nameRegex.then(nameRegex => nameRegex.components?[0]?.id);
29
+ * ```
30
+ */
31
+ function getEcsImageComponents(args, opts) {
32
+ args = args || {};
33
+ if (!opts) {
34
+ opts = {};
35
+ }
36
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
37
+ return pulumi.runtime.invoke("alicloud:ecs/getEcsImageComponents:getEcsImageComponents", {
38
+ "ids": args.ids,
39
+ "imageComponentName": args.imageComponentName,
40
+ "nameRegex": args.nameRegex,
41
+ "outputFile": args.outputFile,
42
+ "owner": args.owner,
43
+ "resourceGroupId": args.resourceGroupId,
44
+ "tags": args.tags,
45
+ }, opts);
46
+ }
47
+ exports.getEcsImageComponents = getEcsImageComponents;
48
+ function getEcsImageComponentsOutput(args, opts) {
49
+ return pulumi.output(args).apply(a => getEcsImageComponents(a, opts));
50
+ }
51
+ exports.getEcsImageComponentsOutput = getEcsImageComponentsOutput;
52
+ //# sourceMappingURL=getEcsImageComponents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEcsImageComponents.js","sourceRoot":"","sources":["../../ecs/getEcsImageComponents.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,qBAAqB,CAAC,IAAgC,EAAE,IAA2B;IAC/F,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0DAA0D,EAAE;QACrF,KAAK,EAAE,IAAI,CAAC,GAAG;QACf,oBAAoB,EAAE,IAAI,CAAC,kBAAkB;QAC7C,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,iBAAiB,EAAE,IAAI,CAAC,eAAe;QACvC,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAhBD,sDAgBC;AAoDD,SAAgB,2BAA2B,CAAC,IAAsC,EAAE,IAA2B;IAC3G,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,qBAAqB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACzE,CAAC;AAFD,kEAEC"}