@pulumi/digitalocean 4.82.0 → 4.83.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/microvm.js ADDED
@@ -0,0 +1,201 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.Microvm = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Provides a DigitalOcean MicroVM resource. MicroVMs are lightweight sandboxes
33
+ * that run an OCI container image, pause when idle, and resume on demand.
34
+ *
35
+ * > **Note:** MicroVMs are in public preview.
36
+ *
37
+ * ## Example Usage
38
+ *
39
+ * Create a MicroVM from an OCI image:
40
+ *
41
+ * ```typescript
42
+ * import * as pulumi from "@pulumi/pulumi";
43
+ * import * as digitalocean from "@pulumi/digitalocean";
44
+ *
45
+ * const web = new digitalocean.Microvm("web", {
46
+ * name: "example-microvm",
47
+ * region: "nyc3",
48
+ * httpPort: 8080,
49
+ * size: {
50
+ * cpu: 2,
51
+ * memory: 4096,
52
+ * },
53
+ * source: {
54
+ * ociRef: "docker.io/library/nginx:latest",
55
+ * },
56
+ * autoPause: {
57
+ * enabled: true,
58
+ * idleTimeout: "5m",
59
+ * },
60
+ * environment: {
61
+ * LOG_LEVEL: "info",
62
+ * },
63
+ * tags: ["web"],
64
+ * });
65
+ * export const url = web.urls[0].hostname;
66
+ * ```
67
+ *
68
+ * ### Pause and Resume
69
+ *
70
+ * Set `state` to `paused` to pause a running MicroVM, and back to `running` to
71
+ * resume it. This is the only change that is applied in place; every other
72
+ * argument forces a new MicroVM.
73
+ *
74
+ * ```typescript
75
+ * import * as pulumi from "@pulumi/pulumi";
76
+ * import * as digitalocean from "@pulumi/digitalocean";
77
+ *
78
+ * const worker = new digitalocean.Microvm("worker", {
79
+ * name: "example-worker",
80
+ * region: "nyc3",
81
+ * state: "paused",
82
+ * size: {
83
+ * cpu: 1,
84
+ * memory: 2048,
85
+ * },
86
+ * source: {
87
+ * ociRef: "docker.io/library/alpine:latest",
88
+ * },
89
+ * });
90
+ * ```
91
+ *
92
+ * ### Restore from a Checkpoint
93
+ *
94
+ * When `source.checkpoint_id` is set, `region` and `size` may be omitted and are
95
+ * inherited from the checkpoint.
96
+ *
97
+ * ```typescript
98
+ * import * as pulumi from "@pulumi/pulumi";
99
+ * import * as digitalocean from "@pulumi/digitalocean";
100
+ *
101
+ * const snapshot = new digitalocean.MicrovmCheckpoint("snapshot", {
102
+ * microvmId: web.id,
103
+ * name: "web-checkpoint",
104
+ * });
105
+ * const restored = new digitalocean.Microvm("restored", {
106
+ * name: "example-restored",
107
+ * source: {
108
+ * checkpointId: snapshot.id,
109
+ * },
110
+ * });
111
+ * ```
112
+ *
113
+ * ## Import
114
+ *
115
+ * A MicroVM can be imported using its `id`, e.g.
116
+ *
117
+ * ```sh
118
+ * $ pulumi import digitalocean:index/microvm:Microvm web 506f78a4-e098-11e5-ad9f-000f53306ae1
119
+ * ```
120
+ */
121
+ class Microvm extends pulumi.CustomResource {
122
+ /**
123
+ * Get an existing Microvm resource's state with the given name, ID, and optional extra
124
+ * properties used to qualify the lookup.
125
+ *
126
+ * @param name The _unique_ name of the resulting resource.
127
+ * @param id The _unique_ provider ID of the resource to lookup.
128
+ * @param state Any extra arguments used during the lookup.
129
+ * @param opts Optional settings to control the behavior of the CustomResource.
130
+ */
131
+ static get(name, id, state, opts) {
132
+ return new Microvm(name, state, { ...opts, id: id });
133
+ }
134
+ /** @internal */
135
+ static __pulumiType = 'digitalocean:index/microvm:Microvm';
136
+ /**
137
+ * Returns true if the given object is an instance of Microvm. This is designed to work even
138
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
139
+ */
140
+ static isInstance(obj) {
141
+ if (obj === undefined || obj === null) {
142
+ return false;
143
+ }
144
+ return obj['__pulumiType'] === Microvm.__pulumiType;
145
+ }
146
+ constructor(name, argsOrState, opts) {
147
+ let resourceInputs = {};
148
+ opts = opts || {};
149
+ if (opts.id) {
150
+ const state = argsOrState;
151
+ resourceInputs["autoPause"] = state?.autoPause;
152
+ resourceInputs["autoResume"] = state?.autoResume;
153
+ resourceInputs["createdAt"] = state?.createdAt;
154
+ resourceInputs["currentState"] = state?.currentState;
155
+ resourceInputs["digitaloceanUrn"] = state?.digitaloceanUrn;
156
+ resourceInputs["environment"] = state?.environment;
157
+ resourceInputs["failureReason"] = state?.failureReason;
158
+ resourceInputs["httpPort"] = state?.httpPort;
159
+ resourceInputs["httpProtocol"] = state?.httpProtocol;
160
+ resourceInputs["name"] = state?.name;
161
+ resourceInputs["networking"] = state?.networking;
162
+ resourceInputs["ports"] = state?.ports;
163
+ resourceInputs["region"] = state?.region;
164
+ resourceInputs["size"] = state?.size;
165
+ resourceInputs["source"] = state?.source;
166
+ resourceInputs["state"] = state?.state;
167
+ resourceInputs["tags"] = state?.tags;
168
+ resourceInputs["urls"] = state?.urls;
169
+ resourceInputs["vpcUuid"] = state?.vpcUuid;
170
+ }
171
+ else {
172
+ const args = argsOrState;
173
+ if (args?.source === undefined && !opts.urn) {
174
+ throw new Error("Missing required property 'source'");
175
+ }
176
+ resourceInputs["autoPause"] = args?.autoPause;
177
+ resourceInputs["autoResume"] = args?.autoResume;
178
+ resourceInputs["environment"] = args?.environment;
179
+ resourceInputs["httpPort"] = args?.httpPort;
180
+ resourceInputs["httpProtocol"] = args?.httpProtocol;
181
+ resourceInputs["name"] = args?.name;
182
+ resourceInputs["networking"] = args?.networking;
183
+ resourceInputs["ports"] = args?.ports;
184
+ resourceInputs["region"] = args?.region;
185
+ resourceInputs["size"] = args?.size;
186
+ resourceInputs["source"] = args?.source;
187
+ resourceInputs["state"] = args?.state;
188
+ resourceInputs["tags"] = args?.tags;
189
+ resourceInputs["vpcUuid"] = args?.vpcUuid;
190
+ resourceInputs["createdAt"] = undefined /*out*/;
191
+ resourceInputs["currentState"] = undefined /*out*/;
192
+ resourceInputs["digitaloceanUrn"] = undefined /*out*/;
193
+ resourceInputs["failureReason"] = undefined /*out*/;
194
+ resourceInputs["urls"] = undefined /*out*/;
195
+ }
196
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
197
+ super(Microvm.__pulumiType, name, resourceInputs, opts);
198
+ }
199
+ }
200
+ exports.Microvm = Microvm;
201
+ //# sourceMappingURL=microvm.js.map
package/microvm.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"microvm.js","sourceRoot":"","sources":["../microvm.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAIzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyFG;AAC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,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACtD,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AApKL,0BAqKC"}
@@ -0,0 +1,157 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * Provides a DigitalOcean MicroVM checkpoint resource. A checkpoint captures the
6
+ * memory and disk state of a running MicroVM, and can be used as the source of a
7
+ * new `digitalocean.Microvm`.
8
+ *
9
+ * > **Note:** MicroVMs are in public preview.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as digitalocean from "@pulumi/digitalocean";
16
+ *
17
+ * const web = new digitalocean.Microvm("web", {
18
+ * name: "example-microvm",
19
+ * region: "nyc3",
20
+ * size: {
21
+ * cpu: 2,
22
+ * memory: 4096,
23
+ * },
24
+ * source: {
25
+ * ociRef: "docker.io/library/nginx:latest",
26
+ * },
27
+ * });
28
+ * const webMicrovmCheckpoint = new digitalocean.MicrovmCheckpoint("web", {
29
+ * microvmId: web.id,
30
+ * name: "web-checkpoint",
31
+ * });
32
+ * ```
33
+ *
34
+ * ## Import
35
+ *
36
+ * A MicroVM checkpoint can be imported using its `id`, e.g.
37
+ *
38
+ * ```sh
39
+ * $ pulumi import digitalocean:index/microvmCheckpoint:MicrovmCheckpoint web 506f78a4-e098-11e5-ad9f-000f53306ae1
40
+ * ```
41
+ */
42
+ export declare class MicrovmCheckpoint extends pulumi.CustomResource {
43
+ /**
44
+ * Get an existing MicrovmCheckpoint resource's state with the given name, ID, and optional extra
45
+ * properties used to qualify the lookup.
46
+ *
47
+ * @param name The _unique_ name of the resulting resource.
48
+ * @param id The _unique_ provider ID of the resource to lookup.
49
+ * @param state Any extra arguments used during the lookup.
50
+ * @param opts Optional settings to control the behavior of the CustomResource.
51
+ */
52
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: MicrovmCheckpointState, opts?: pulumi.CustomResourceOptions): MicrovmCheckpoint;
53
+ /**
54
+ * Returns true if the given object is an instance of MicrovmCheckpoint. This is designed to work even
55
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
56
+ */
57
+ static isInstance(obj: any): obj is MicrovmCheckpoint;
58
+ /**
59
+ * The date and time the checkpoint was created.
60
+ */
61
+ readonly createdAt: pulumi.Output<string>;
62
+ /**
63
+ * The size of the persisted disk image in bytes.
64
+ */
65
+ readonly diskBytes: pulumi.Output<number>;
66
+ /**
67
+ * The size of the persisted memory image in bytes.
68
+ */
69
+ readonly memoryBytes: pulumi.Output<number>;
70
+ /**
71
+ * The ID of the running MicroVM to checkpoint. Changing this forces a new checkpoint.
72
+ */
73
+ readonly microvmId: pulumi.Output<string>;
74
+ /**
75
+ * The name of the MicroVM the checkpoint was captured from.
76
+ */
77
+ readonly microvmName: pulumi.Output<string>;
78
+ /**
79
+ * A name for the checkpoint. Changing this forces a new checkpoint.
80
+ */
81
+ readonly name: pulumi.Output<string>;
82
+ /**
83
+ * The slug of the region the checkpoint is stored in.
84
+ */
85
+ readonly region: pulumi.Output<string>;
86
+ /**
87
+ * The size a MicroVM restored from this checkpoint inherits. Empty when the checkpoint does not record one, in which case the restored MicroVM must set `size`.
88
+ */
89
+ readonly sizes: pulumi.Output<outputs.MicrovmCheckpointSize[]>;
90
+ /**
91
+ * The status of the checkpoint, such as `CHECKPOINT_AVAILABLE`.
92
+ */
93
+ readonly status: pulumi.Output<string>;
94
+ /**
95
+ * Create a MicrovmCheckpoint resource with the given unique name, arguments, and options.
96
+ *
97
+ * @param name The _unique_ name of the resource.
98
+ * @param args The arguments to use to populate this resource's properties.
99
+ * @param opts A bag of options that control this resource's behavior.
100
+ */
101
+ constructor(name: string, args: MicrovmCheckpointArgs, opts?: pulumi.CustomResourceOptions);
102
+ }
103
+ /**
104
+ * Input properties used for looking up and filtering MicrovmCheckpoint resources.
105
+ */
106
+ export interface MicrovmCheckpointState {
107
+ /**
108
+ * The date and time the checkpoint was created.
109
+ */
110
+ createdAt?: pulumi.Input<string | undefined>;
111
+ /**
112
+ * The size of the persisted disk image in bytes.
113
+ */
114
+ diskBytes?: pulumi.Input<number | undefined>;
115
+ /**
116
+ * The size of the persisted memory image in bytes.
117
+ */
118
+ memoryBytes?: pulumi.Input<number | undefined>;
119
+ /**
120
+ * The ID of the running MicroVM to checkpoint. Changing this forces a new checkpoint.
121
+ */
122
+ microvmId?: pulumi.Input<string | undefined>;
123
+ /**
124
+ * The name of the MicroVM the checkpoint was captured from.
125
+ */
126
+ microvmName?: pulumi.Input<string | undefined>;
127
+ /**
128
+ * A name for the checkpoint. Changing this forces a new checkpoint.
129
+ */
130
+ name?: pulumi.Input<string | undefined>;
131
+ /**
132
+ * The slug of the region the checkpoint is stored in.
133
+ */
134
+ region?: pulumi.Input<string | undefined>;
135
+ /**
136
+ * The size a MicroVM restored from this checkpoint inherits. Empty when the checkpoint does not record one, in which case the restored MicroVM must set `size`.
137
+ */
138
+ sizes?: pulumi.Input<pulumi.Input<inputs.MicrovmCheckpointSize>[] | undefined>;
139
+ /**
140
+ * The status of the checkpoint, such as `CHECKPOINT_AVAILABLE`.
141
+ */
142
+ status?: pulumi.Input<string | undefined>;
143
+ }
144
+ /**
145
+ * The set of arguments for constructing a MicrovmCheckpoint resource.
146
+ */
147
+ export interface MicrovmCheckpointArgs {
148
+ /**
149
+ * The ID of the running MicroVM to checkpoint. Changing this forces a new checkpoint.
150
+ */
151
+ microvmId: pulumi.Input<string>;
152
+ /**
153
+ * A name for the checkpoint. Changing this forces a new checkpoint.
154
+ */
155
+ name?: pulumi.Input<string | undefined>;
156
+ }
157
+ //# sourceMappingURL=microvmCheckpoint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"microvmCheckpoint.d.ts","sourceRoot":"","sources":["../microvmCheckpoint.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAI1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,qBAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,sBAAsB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAA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AAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,qBAAqB,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAC/E;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC7C;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC3C"}
@@ -0,0 +1,129 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.MicrovmCheckpoint = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Provides a DigitalOcean MicroVM checkpoint resource. A checkpoint captures the
33
+ * memory and disk state of a running MicroVM, and can be used as the source of a
34
+ * new `digitalocean.Microvm`.
35
+ *
36
+ * > **Note:** MicroVMs are in public preview.
37
+ *
38
+ * ## Example Usage
39
+ *
40
+ * ```typescript
41
+ * import * as pulumi from "@pulumi/pulumi";
42
+ * import * as digitalocean from "@pulumi/digitalocean";
43
+ *
44
+ * const web = new digitalocean.Microvm("web", {
45
+ * name: "example-microvm",
46
+ * region: "nyc3",
47
+ * size: {
48
+ * cpu: 2,
49
+ * memory: 4096,
50
+ * },
51
+ * source: {
52
+ * ociRef: "docker.io/library/nginx:latest",
53
+ * },
54
+ * });
55
+ * const webMicrovmCheckpoint = new digitalocean.MicrovmCheckpoint("web", {
56
+ * microvmId: web.id,
57
+ * name: "web-checkpoint",
58
+ * });
59
+ * ```
60
+ *
61
+ * ## Import
62
+ *
63
+ * A MicroVM checkpoint can be imported using its `id`, e.g.
64
+ *
65
+ * ```sh
66
+ * $ pulumi import digitalocean:index/microvmCheckpoint:MicrovmCheckpoint web 506f78a4-e098-11e5-ad9f-000f53306ae1
67
+ * ```
68
+ */
69
+ class MicrovmCheckpoint extends pulumi.CustomResource {
70
+ /**
71
+ * Get an existing MicrovmCheckpoint resource's state with the given name, ID, and optional extra
72
+ * properties used to qualify the lookup.
73
+ *
74
+ * @param name The _unique_ name of the resulting resource.
75
+ * @param id The _unique_ provider ID of the resource to lookup.
76
+ * @param state Any extra arguments used during the lookup.
77
+ * @param opts Optional settings to control the behavior of the CustomResource.
78
+ */
79
+ static get(name, id, state, opts) {
80
+ return new MicrovmCheckpoint(name, state, { ...opts, id: id });
81
+ }
82
+ /** @internal */
83
+ static __pulumiType = 'digitalocean:index/microvmCheckpoint:MicrovmCheckpoint';
84
+ /**
85
+ * Returns true if the given object is an instance of MicrovmCheckpoint. This is designed to work even
86
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
87
+ */
88
+ static isInstance(obj) {
89
+ if (obj === undefined || obj === null) {
90
+ return false;
91
+ }
92
+ return obj['__pulumiType'] === MicrovmCheckpoint.__pulumiType;
93
+ }
94
+ constructor(name, argsOrState, opts) {
95
+ let resourceInputs = {};
96
+ opts = opts || {};
97
+ if (opts.id) {
98
+ const state = argsOrState;
99
+ resourceInputs["createdAt"] = state?.createdAt;
100
+ resourceInputs["diskBytes"] = state?.diskBytes;
101
+ resourceInputs["memoryBytes"] = state?.memoryBytes;
102
+ resourceInputs["microvmId"] = state?.microvmId;
103
+ resourceInputs["microvmName"] = state?.microvmName;
104
+ resourceInputs["name"] = state?.name;
105
+ resourceInputs["region"] = state?.region;
106
+ resourceInputs["sizes"] = state?.sizes;
107
+ resourceInputs["status"] = state?.status;
108
+ }
109
+ else {
110
+ const args = argsOrState;
111
+ if (args?.microvmId === undefined && !opts.urn) {
112
+ throw new Error("Missing required property 'microvmId'");
113
+ }
114
+ resourceInputs["microvmId"] = args?.microvmId;
115
+ resourceInputs["name"] = args?.name;
116
+ resourceInputs["createdAt"] = undefined /*out*/;
117
+ resourceInputs["diskBytes"] = undefined /*out*/;
118
+ resourceInputs["memoryBytes"] = undefined /*out*/;
119
+ resourceInputs["microvmName"] = undefined /*out*/;
120
+ resourceInputs["region"] = undefined /*out*/;
121
+ resourceInputs["sizes"] = undefined /*out*/;
122
+ resourceInputs["status"] = undefined /*out*/;
123
+ }
124
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
125
+ super(MicrovmCheckpoint.__pulumiType, name, resourceInputs, opts);
126
+ }
127
+ }
128
+ exports.MicrovmCheckpoint = MicrovmCheckpoint;
129
+ //# sourceMappingURL=microvmCheckpoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"microvmCheckpoint.js","sourceRoot":"","sources":["../microvmCheckpoint.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAIzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACxE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,wDAAwD,CAAC;IAE/F;;;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,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;IA+CD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI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,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AAxGL,8CAyGC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/digitalocean",
3
- "version": "4.82.0",
3
+ "version": "4.83.0",
4
4
  "description": "A Pulumi package for creating and managing DigitalOcean cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -22,6 +22,6 @@
22
22
  "pulumi": {
23
23
  "resource": true,
24
24
  "name": "digitalocean",
25
- "version": "4.82.0"
25
+ "version": "4.83.0"
26
26
  }
27
27
  }