@pulumi/digitalocean 4.56.0-alpha.1766426892 → 4.56.0-alpha.1766428645

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 (51) hide show
  1. package/app.d.ts +12 -0
  2. package/app.js +2 -0
  3. package/app.js.map +1 -1
  4. package/byoipPrefix.d.ts +148 -0
  5. package/byoipPrefix.js +101 -0
  6. package/byoipPrefix.js.map +1 -0
  7. package/containerRegistries.d.ts +53 -0
  8. package/containerRegistries.js +64 -0
  9. package/containerRegistries.js.map +1 -0
  10. package/databaseLogsinkOpensearch.d.ts +246 -0
  11. package/databaseLogsinkOpensearch.js +192 -0
  12. package/databaseLogsinkOpensearch.js.map +1 -0
  13. package/databaseLogsinkRsyslog.d.ts +286 -0
  14. package/databaseLogsinkRsyslog.js +192 -0
  15. package/databaseLogsinkRsyslog.js.map +1 -0
  16. package/getByoipPrefix.d.ts +122 -0
  17. package/getByoipPrefix.js +90 -0
  18. package/getByoipPrefix.js.map +1 -0
  19. package/getByoipPrefixResources.d.ts +94 -0
  20. package/getByoipPrefixResources.js +80 -0
  21. package/getByoipPrefixResources.js.map +1 -0
  22. package/getContainerRegistries.d.ts +31 -0
  23. package/getContainerRegistries.js +22 -0
  24. package/getContainerRegistries.js.map +1 -0
  25. package/getKubernetesCluster.d.ts +6 -0
  26. package/getKubernetesCluster.js +4 -0
  27. package/getKubernetesCluster.js.map +1 -1
  28. package/getNfs.d.ts +97 -0
  29. package/getNfs.js +58 -0
  30. package/getNfs.js.map +1 -0
  31. package/getNfsSnapshot.d.ts +58 -0
  32. package/getNfsSnapshot.js +42 -0
  33. package/getNfsSnapshot.js.map +1 -0
  34. package/index.d.ts +36 -0
  35. package/index.js +55 -4
  36. package/index.js.map +1 -1
  37. package/kubernetesCluster.d.ts +15 -0
  38. package/kubernetesCluster.js +4 -0
  39. package/kubernetesCluster.js.map +1 -1
  40. package/nfs.d.ts +142 -0
  41. package/nfs.js +103 -0
  42. package/nfs.js.map +1 -0
  43. package/nfsAttachment.d.ts +96 -0
  44. package/nfsAttachment.js +95 -0
  45. package/nfsAttachment.js.map +1 -0
  46. package/nfsSnapshot.d.ts +124 -0
  47. package/nfsSnapshot.js +99 -0
  48. package/nfsSnapshot.js.map +1 -0
  49. package/package.json +2 -2
  50. package/types/input.d.ts +25 -0
  51. package/types/output.d.ts +37 -0
package/nfs.d.ts ADDED
@@ -0,0 +1,142 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides a DigitalOcean NFS share which can be mounted to Droplets to provide shared storage.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as digitalocean from "@pulumi/digitalocean";
10
+ *
11
+ * const example = new digitalocean.Vpc("example", {
12
+ * name: "example-vpc",
13
+ * region: "nyc1",
14
+ * });
15
+ * const exampleNfs = new digitalocean.Nfs("example", {
16
+ * region: "nyc1",
17
+ * name: "example-nfs",
18
+ * size: 50,
19
+ * vpcId: example.id,
20
+ * });
21
+ * ```
22
+ *
23
+ * ## Import
24
+ *
25
+ * NFS shares can be imported using the `share id` and the `region` , e.g.
26
+ *
27
+ * ```sh
28
+ * $ pulumi import digitalocean:index/nfs:Nfs foobar 506f78a4-e098-11e5-ad9f-000f53306ae1,atl1
29
+ * ```
30
+ */
31
+ export declare class Nfs extends pulumi.CustomResource {
32
+ /**
33
+ * Get an existing Nfs resource's state with the given name, ID, and optional extra
34
+ * properties used to qualify the lookup.
35
+ *
36
+ * @param name The _unique_ name of the resulting resource.
37
+ * @param id The _unique_ provider ID of the resource to lookup.
38
+ * @param state Any extra arguments used during the lookup.
39
+ * @param opts Optional settings to control the behavior of the CustomResource.
40
+ */
41
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: NfsState, opts?: pulumi.CustomResourceOptions): Nfs;
42
+ /**
43
+ * Returns true if the given object is an instance of Nfs. This is designed to work even
44
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
45
+ */
46
+ static isInstance(obj: any): obj is Nfs;
47
+ /**
48
+ * The host IP of the NFS server accessible from the associated VPC.
49
+ */
50
+ readonly host: pulumi.Output<string>;
51
+ /**
52
+ * The mount path for accessing the NFS share.
53
+ */
54
+ readonly mountPath: pulumi.Output<string>;
55
+ /**
56
+ * A name for the NFS share. Must be lowercase and composed only of numbers, letters, and "-", up to a limit of 64 characters. The name must begin with a letter.
57
+ */
58
+ readonly name: pulumi.Output<string>;
59
+ /**
60
+ * The region where the NFS share will be created.
61
+ */
62
+ readonly region: pulumi.Output<string>;
63
+ /**
64
+ * The size of the NFS share in GiB. Minimum size is 50 GiB.
65
+ */
66
+ readonly size: pulumi.Output<number>;
67
+ /**
68
+ * The current status of the NFS share.
69
+ */
70
+ readonly status: pulumi.Output<string>;
71
+ readonly tags: pulumi.Output<string[] | undefined>;
72
+ /**
73
+ * The ID of the VPC where the NFS share will be created.
74
+ */
75
+ readonly vpcId: pulumi.Output<string>;
76
+ readonly vpcIds: pulumi.Output<string[]>;
77
+ /**
78
+ * Create a Nfs resource with the given unique name, arguments, and options.
79
+ *
80
+ * @param name The _unique_ name of the resource.
81
+ * @param args The arguments to use to populate this resource's properties.
82
+ * @param opts A bag of options that control this resource's behavior.
83
+ */
84
+ constructor(name: string, args: NfsArgs, opts?: pulumi.CustomResourceOptions);
85
+ }
86
+ /**
87
+ * Input properties used for looking up and filtering Nfs resources.
88
+ */
89
+ export interface NfsState {
90
+ /**
91
+ * The host IP of the NFS server accessible from the associated VPC.
92
+ */
93
+ host?: pulumi.Input<string>;
94
+ /**
95
+ * The mount path for accessing the NFS share.
96
+ */
97
+ mountPath?: pulumi.Input<string>;
98
+ /**
99
+ * A name for the NFS share. Must be lowercase and composed only of numbers, letters, and "-", up to a limit of 64 characters. The name must begin with a letter.
100
+ */
101
+ name?: pulumi.Input<string>;
102
+ /**
103
+ * The region where the NFS share will be created.
104
+ */
105
+ region?: pulumi.Input<string>;
106
+ /**
107
+ * The size of the NFS share in GiB. Minimum size is 50 GiB.
108
+ */
109
+ size?: pulumi.Input<number>;
110
+ /**
111
+ * The current status of the NFS share.
112
+ */
113
+ status?: pulumi.Input<string>;
114
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
115
+ /**
116
+ * The ID of the VPC where the NFS share will be created.
117
+ */
118
+ vpcId?: pulumi.Input<string>;
119
+ vpcIds?: pulumi.Input<pulumi.Input<string>[]>;
120
+ }
121
+ /**
122
+ * The set of arguments for constructing a Nfs resource.
123
+ */
124
+ export interface NfsArgs {
125
+ /**
126
+ * A name for the NFS share. Must be lowercase and composed only of numbers, letters, and "-", up to a limit of 64 characters. The name must begin with a letter.
127
+ */
128
+ name?: pulumi.Input<string>;
129
+ /**
130
+ * The region where the NFS share will be created.
131
+ */
132
+ region: pulumi.Input<string>;
133
+ /**
134
+ * The size of the NFS share in GiB. Minimum size is 50 GiB.
135
+ */
136
+ size: pulumi.Input<number>;
137
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
138
+ /**
139
+ * The ID of the VPC where the NFS share will be created.
140
+ */
141
+ vpcId: pulumi.Input<string>;
142
+ }
package/nfs.js ADDED
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Nfs = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Provides a DigitalOcean NFS share which can be mounted to Droplets to provide shared storage.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as digitalocean from "@pulumi/digitalocean";
16
+ *
17
+ * const example = new digitalocean.Vpc("example", {
18
+ * name: "example-vpc",
19
+ * region: "nyc1",
20
+ * });
21
+ * const exampleNfs = new digitalocean.Nfs("example", {
22
+ * region: "nyc1",
23
+ * name: "example-nfs",
24
+ * size: 50,
25
+ * vpcId: example.id,
26
+ * });
27
+ * ```
28
+ *
29
+ * ## Import
30
+ *
31
+ * NFS shares can be imported using the `share id` and the `region` , e.g.
32
+ *
33
+ * ```sh
34
+ * $ pulumi import digitalocean:index/nfs:Nfs foobar 506f78a4-e098-11e5-ad9f-000f53306ae1,atl1
35
+ * ```
36
+ */
37
+ class Nfs extends pulumi.CustomResource {
38
+ /**
39
+ * Get an existing Nfs resource's state with the given name, ID, and optional extra
40
+ * properties used to qualify the lookup.
41
+ *
42
+ * @param name The _unique_ name of the resulting resource.
43
+ * @param id The _unique_ provider ID of the resource to lookup.
44
+ * @param state Any extra arguments used during the lookup.
45
+ * @param opts Optional settings to control the behavior of the CustomResource.
46
+ */
47
+ static get(name, id, state, opts) {
48
+ return new Nfs(name, state, { ...opts, id: id });
49
+ }
50
+ /**
51
+ * Returns true if the given object is an instance of Nfs. This is designed to work even
52
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
53
+ */
54
+ static isInstance(obj) {
55
+ if (obj === undefined || obj === null) {
56
+ return false;
57
+ }
58
+ return obj['__pulumiType'] === Nfs.__pulumiType;
59
+ }
60
+ constructor(name, argsOrState, opts) {
61
+ let resourceInputs = {};
62
+ opts = opts || {};
63
+ if (opts.id) {
64
+ const state = argsOrState;
65
+ resourceInputs["host"] = state?.host;
66
+ resourceInputs["mountPath"] = state?.mountPath;
67
+ resourceInputs["name"] = state?.name;
68
+ resourceInputs["region"] = state?.region;
69
+ resourceInputs["size"] = state?.size;
70
+ resourceInputs["status"] = state?.status;
71
+ resourceInputs["tags"] = state?.tags;
72
+ resourceInputs["vpcId"] = state?.vpcId;
73
+ resourceInputs["vpcIds"] = state?.vpcIds;
74
+ }
75
+ else {
76
+ const args = argsOrState;
77
+ if (args?.region === undefined && !opts.urn) {
78
+ throw new Error("Missing required property 'region'");
79
+ }
80
+ if (args?.size === undefined && !opts.urn) {
81
+ throw new Error("Missing required property 'size'");
82
+ }
83
+ if (args?.vpcId === undefined && !opts.urn) {
84
+ throw new Error("Missing required property 'vpcId'");
85
+ }
86
+ resourceInputs["name"] = args?.name;
87
+ resourceInputs["region"] = args?.region;
88
+ resourceInputs["size"] = args?.size;
89
+ resourceInputs["tags"] = args?.tags;
90
+ resourceInputs["vpcId"] = args?.vpcId;
91
+ resourceInputs["host"] = undefined /*out*/;
92
+ resourceInputs["mountPath"] = undefined /*out*/;
93
+ resourceInputs["status"] = undefined /*out*/;
94
+ resourceInputs["vpcIds"] = undefined /*out*/;
95
+ }
96
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
97
+ super(Nfs.__pulumiType, name, resourceInputs, opts);
98
+ }
99
+ }
100
+ exports.Nfs = Nfs;
101
+ /** @internal */
102
+ Nfs.__pulumiType = 'digitalocean:index/nfs:Nfs';
103
+ //# sourceMappingURL=nfs.js.map
package/nfs.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nfs.js","sourceRoot":"","sources":["../nfs.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAa,GAAI,SAAQ,MAAM,CAAC,cAAc;IAC1C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgB,EAAE,IAAmC;QAC9G,OAAO,IAAI,GAAG,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1D,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,GAAG,CAAC,YAAY,CAAC;IACpD,CAAC;IAyC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AI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,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,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;;AAxGL,kBAyGC;AA3FG,gBAAgB;AACO,gBAAY,GAAG,4BAA4B,CAAC"}
@@ -0,0 +1,96 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Manages attaching a NFS share to a vpc.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as digitalocean from "@pulumi/digitalocean";
10
+ *
11
+ * const foobar = new digitalocean.Vpc("foobar", {
12
+ * name: "example-vpc",
13
+ * region: "atl1",
14
+ * });
15
+ * const foobarNfs = new digitalocean.Nfs("foobar", {
16
+ * region: "atl1",
17
+ * name: "example-nfs",
18
+ * size: 50,
19
+ * vpcId: foobar.id,
20
+ * });
21
+ * const foobarNfsAttachment = new digitalocean.NfsAttachment("foobar", {
22
+ * shareId: foobarNfs.id,
23
+ * vpcId: foobar.id,
24
+ * });
25
+ * ```
26
+ *
27
+ * ## Import
28
+ *
29
+ * NFS attachments can be imported using the `share_id` and `vpc_id` separated by a comma, e.g.
30
+ *
31
+ * ```sh
32
+ * $ pulumi import digitalocean:index/nfsAttachment:NfsAttachment foobar 506f78a4-e098-11e5-ad9f-000f53306ae1,d1ebc5a4-e098-11e5-ad9f-000f53306ae1
33
+ * ```
34
+ */
35
+ export declare class NfsAttachment extends pulumi.CustomResource {
36
+ /**
37
+ * Get an existing NfsAttachment resource's state with the given name, ID, and optional extra
38
+ * properties used to qualify the lookup.
39
+ *
40
+ * @param name The _unique_ name of the resulting resource.
41
+ * @param id The _unique_ provider ID of the resource to lookup.
42
+ * @param state Any extra arguments used during the lookup.
43
+ * @param opts Optional settings to control the behavior of the CustomResource.
44
+ */
45
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: NfsAttachmentState, opts?: pulumi.CustomResourceOptions): NfsAttachment;
46
+ /**
47
+ * Returns true if the given object is an instance of NfsAttachment. This is designed to work even
48
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
49
+ */
50
+ static isInstance(obj: any): obj is NfsAttachment;
51
+ readonly region: pulumi.Output<string>;
52
+ /**
53
+ * The ID of the NFS share to attach.
54
+ */
55
+ readonly shareId: pulumi.Output<string>;
56
+ /**
57
+ * The ID of the vpc to attach the NFS share to.
58
+ */
59
+ readonly vpcId: pulumi.Output<string>;
60
+ /**
61
+ * Create a NfsAttachment resource with the given unique name, arguments, and options.
62
+ *
63
+ * @param name The _unique_ name of the resource.
64
+ * @param args The arguments to use to populate this resource's properties.
65
+ * @param opts A bag of options that control this resource's behavior.
66
+ */
67
+ constructor(name: string, args: NfsAttachmentArgs, opts?: pulumi.CustomResourceOptions);
68
+ }
69
+ /**
70
+ * Input properties used for looking up and filtering NfsAttachment resources.
71
+ */
72
+ export interface NfsAttachmentState {
73
+ region?: pulumi.Input<string>;
74
+ /**
75
+ * The ID of the NFS share to attach.
76
+ */
77
+ shareId?: pulumi.Input<string>;
78
+ /**
79
+ * The ID of the vpc to attach the NFS share to.
80
+ */
81
+ vpcId?: pulumi.Input<string>;
82
+ }
83
+ /**
84
+ * The set of arguments for constructing a NfsAttachment resource.
85
+ */
86
+ export interface NfsAttachmentArgs {
87
+ region: pulumi.Input<string>;
88
+ /**
89
+ * The ID of the NFS share to attach.
90
+ */
91
+ shareId: pulumi.Input<string>;
92
+ /**
93
+ * The ID of the vpc to attach the NFS share to.
94
+ */
95
+ vpcId: pulumi.Input<string>;
96
+ }
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.NfsAttachment = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Manages attaching a NFS share to a vpc.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as digitalocean from "@pulumi/digitalocean";
16
+ *
17
+ * const foobar = new digitalocean.Vpc("foobar", {
18
+ * name: "example-vpc",
19
+ * region: "atl1",
20
+ * });
21
+ * const foobarNfs = new digitalocean.Nfs("foobar", {
22
+ * region: "atl1",
23
+ * name: "example-nfs",
24
+ * size: 50,
25
+ * vpcId: foobar.id,
26
+ * });
27
+ * const foobarNfsAttachment = new digitalocean.NfsAttachment("foobar", {
28
+ * shareId: foobarNfs.id,
29
+ * vpcId: foobar.id,
30
+ * });
31
+ * ```
32
+ *
33
+ * ## Import
34
+ *
35
+ * NFS attachments can be imported using the `share_id` and `vpc_id` separated by a comma, e.g.
36
+ *
37
+ * ```sh
38
+ * $ pulumi import digitalocean:index/nfsAttachment:NfsAttachment foobar 506f78a4-e098-11e5-ad9f-000f53306ae1,d1ebc5a4-e098-11e5-ad9f-000f53306ae1
39
+ * ```
40
+ */
41
+ class NfsAttachment extends pulumi.CustomResource {
42
+ /**
43
+ * Get an existing NfsAttachment resource's state with the given name, ID, and optional extra
44
+ * properties used to qualify the lookup.
45
+ *
46
+ * @param name The _unique_ name of the resulting resource.
47
+ * @param id The _unique_ provider ID of the resource to lookup.
48
+ * @param state Any extra arguments used during the lookup.
49
+ * @param opts Optional settings to control the behavior of the CustomResource.
50
+ */
51
+ static get(name, id, state, opts) {
52
+ return new NfsAttachment(name, state, { ...opts, id: id });
53
+ }
54
+ /**
55
+ * Returns true if the given object is an instance of NfsAttachment. This is designed to work even
56
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
57
+ */
58
+ static isInstance(obj) {
59
+ if (obj === undefined || obj === null) {
60
+ return false;
61
+ }
62
+ return obj['__pulumiType'] === NfsAttachment.__pulumiType;
63
+ }
64
+ constructor(name, argsOrState, opts) {
65
+ let resourceInputs = {};
66
+ opts = opts || {};
67
+ if (opts.id) {
68
+ const state = argsOrState;
69
+ resourceInputs["region"] = state?.region;
70
+ resourceInputs["shareId"] = state?.shareId;
71
+ resourceInputs["vpcId"] = state?.vpcId;
72
+ }
73
+ else {
74
+ const args = argsOrState;
75
+ if (args?.region === undefined && !opts.urn) {
76
+ throw new Error("Missing required property 'region'");
77
+ }
78
+ if (args?.shareId === undefined && !opts.urn) {
79
+ throw new Error("Missing required property 'shareId'");
80
+ }
81
+ if (args?.vpcId === undefined && !opts.urn) {
82
+ throw new Error("Missing required property 'vpcId'");
83
+ }
84
+ resourceInputs["region"] = args?.region;
85
+ resourceInputs["shareId"] = args?.shareId;
86
+ resourceInputs["vpcId"] = args?.vpcId;
87
+ }
88
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
89
+ super(NfsAttachment.__pulumiType, name, resourceInputs, opts);
90
+ }
91
+ }
92
+ exports.NfsAttachment = NfsAttachment;
93
+ /** @internal */
94
+ NfsAttachment.__pulumiType = 'digitalocean:index/nfsAttachment:NfsAttachment';
95
+ //# sourceMappingURL=nfsAttachment.js.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oCAAoC,CAAC,CAAC;aACzD;YACD,IAAI,IAAI,EAAE,OAAO,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC1C,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,IAAI,IAAI,EAAE,KAAK,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxC,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;aACxD;YACD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;SACzC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AAvEL,sCAwEC;AA1DG,gBAAgB;AACO,0BAAY,GAAG,gDAAgD,CAAC"}
@@ -0,0 +1,124 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides a DigitalOcean NFS snapshot which can be used to create new NFS shares.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as digitalocean from "@pulumi/digitalocean";
10
+ *
11
+ * const foobar = new digitalocean.Vpc("foobar", {
12
+ * name: "example-vpc",
13
+ * region: "nyc1",
14
+ * });
15
+ * const foobarNfs = new digitalocean.Nfs("foobar", {
16
+ * region: "nyc1",
17
+ * name: "example-nfs",
18
+ * size: 50,
19
+ * vpcId: foobar.id,
20
+ * });
21
+ * const foobarNfsSnapshot = new digitalocean.NfsSnapshot("foobar", {
22
+ * name: "example-snapshot",
23
+ * shareId: foobarNfs.id,
24
+ * region: "nyc1",
25
+ * });
26
+ * ```
27
+ *
28
+ * ## Import
29
+ *
30
+ * NFS snapshots can be imported using the snapshot ID, e.g.
31
+ *
32
+ * ```sh
33
+ * $ pulumi import digitalocean:index/nfsSnapshot:NfsSnapshot foobar 506f78a4-e098-11e5-ad9f-000f53306ae1
34
+ * ```
35
+ */
36
+ export declare class NfsSnapshot extends pulumi.CustomResource {
37
+ /**
38
+ * Get an existing NfsSnapshot resource's state with the given name, ID, and optional extra
39
+ * properties used to qualify the lookup.
40
+ *
41
+ * @param name The _unique_ name of the resulting resource.
42
+ * @param id The _unique_ provider ID of the resource to lookup.
43
+ * @param state Any extra arguments used during the lookup.
44
+ * @param opts Optional settings to control the behavior of the CustomResource.
45
+ */
46
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: NfsSnapshotState, opts?: pulumi.CustomResourceOptions): NfsSnapshot;
47
+ /**
48
+ * Returns true if the given object is an instance of NfsSnapshot. This is designed to work even
49
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
50
+ */
51
+ static isInstance(obj: any): obj is NfsSnapshot;
52
+ /**
53
+ * The date and time when the snapshot was created.
54
+ */
55
+ readonly createdAt: pulumi.Output<string>;
56
+ /**
57
+ * A name for the NFS snapshot. Must be lowercase and composed only of numbers, letters, and "-", up to a limit of 64 characters.
58
+ */
59
+ readonly name: pulumi.Output<string>;
60
+ /**
61
+ * The region where the NFS snapshot will be created.
62
+ */
63
+ readonly region: pulumi.Output<string>;
64
+ /**
65
+ * The ID of the NFS share to snapshot.
66
+ */
67
+ readonly shareId: pulumi.Output<string>;
68
+ /**
69
+ * The size of the snapshot in GiB.
70
+ */
71
+ readonly size: pulumi.Output<number>;
72
+ readonly status: pulumi.Output<string>;
73
+ /**
74
+ * Create a NfsSnapshot resource with the given unique name, arguments, and options.
75
+ *
76
+ * @param name The _unique_ name of the resource.
77
+ * @param args The arguments to use to populate this resource's properties.
78
+ * @param opts A bag of options that control this resource's behavior.
79
+ */
80
+ constructor(name: string, args: NfsSnapshotArgs, opts?: pulumi.CustomResourceOptions);
81
+ }
82
+ /**
83
+ * Input properties used for looking up and filtering NfsSnapshot resources.
84
+ */
85
+ export interface NfsSnapshotState {
86
+ /**
87
+ * The date and time when the snapshot was created.
88
+ */
89
+ createdAt?: pulumi.Input<string>;
90
+ /**
91
+ * A name for the NFS snapshot. Must be lowercase and composed only of numbers, letters, and "-", up to a limit of 64 characters.
92
+ */
93
+ name?: pulumi.Input<string>;
94
+ /**
95
+ * The region where the NFS snapshot will be created.
96
+ */
97
+ region?: pulumi.Input<string>;
98
+ /**
99
+ * The ID of the NFS share to snapshot.
100
+ */
101
+ shareId?: pulumi.Input<string>;
102
+ /**
103
+ * The size of the snapshot in GiB.
104
+ */
105
+ size?: pulumi.Input<number>;
106
+ status?: pulumi.Input<string>;
107
+ }
108
+ /**
109
+ * The set of arguments for constructing a NfsSnapshot resource.
110
+ */
111
+ export interface NfsSnapshotArgs {
112
+ /**
113
+ * A name for the NFS snapshot. Must be lowercase and composed only of numbers, letters, and "-", up to a limit of 64 characters.
114
+ */
115
+ name?: pulumi.Input<string>;
116
+ /**
117
+ * The region where the NFS snapshot will be created.
118
+ */
119
+ region: pulumi.Input<string>;
120
+ /**
121
+ * The ID of the NFS share to snapshot.
122
+ */
123
+ shareId: pulumi.Input<string>;
124
+ }
package/nfsSnapshot.js ADDED
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.NfsSnapshot = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Provides a DigitalOcean NFS snapshot which can be used to create new NFS shares.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as digitalocean from "@pulumi/digitalocean";
16
+ *
17
+ * const foobar = new digitalocean.Vpc("foobar", {
18
+ * name: "example-vpc",
19
+ * region: "nyc1",
20
+ * });
21
+ * const foobarNfs = new digitalocean.Nfs("foobar", {
22
+ * region: "nyc1",
23
+ * name: "example-nfs",
24
+ * size: 50,
25
+ * vpcId: foobar.id,
26
+ * });
27
+ * const foobarNfsSnapshot = new digitalocean.NfsSnapshot("foobar", {
28
+ * name: "example-snapshot",
29
+ * shareId: foobarNfs.id,
30
+ * region: "nyc1",
31
+ * });
32
+ * ```
33
+ *
34
+ * ## Import
35
+ *
36
+ * NFS snapshots can be imported using the snapshot ID, e.g.
37
+ *
38
+ * ```sh
39
+ * $ pulumi import digitalocean:index/nfsSnapshot:NfsSnapshot foobar 506f78a4-e098-11e5-ad9f-000f53306ae1
40
+ * ```
41
+ */
42
+ class NfsSnapshot extends pulumi.CustomResource {
43
+ /**
44
+ * Get an existing NfsSnapshot 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, id, state, opts) {
53
+ return new NfsSnapshot(name, state, { ...opts, id: id });
54
+ }
55
+ /**
56
+ * Returns true if the given object is an instance of NfsSnapshot. 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) {
60
+ if (obj === undefined || obj === null) {
61
+ return false;
62
+ }
63
+ return obj['__pulumiType'] === NfsSnapshot.__pulumiType;
64
+ }
65
+ constructor(name, argsOrState, opts) {
66
+ let resourceInputs = {};
67
+ opts = opts || {};
68
+ if (opts.id) {
69
+ const state = argsOrState;
70
+ resourceInputs["createdAt"] = state?.createdAt;
71
+ resourceInputs["name"] = state?.name;
72
+ resourceInputs["region"] = state?.region;
73
+ resourceInputs["shareId"] = state?.shareId;
74
+ resourceInputs["size"] = state?.size;
75
+ resourceInputs["status"] = state?.status;
76
+ }
77
+ else {
78
+ const args = argsOrState;
79
+ if (args?.region === undefined && !opts.urn) {
80
+ throw new Error("Missing required property 'region'");
81
+ }
82
+ if (args?.shareId === undefined && !opts.urn) {
83
+ throw new Error("Missing required property 'shareId'");
84
+ }
85
+ resourceInputs["name"] = args?.name;
86
+ resourceInputs["region"] = args?.region;
87
+ resourceInputs["shareId"] = args?.shareId;
88
+ resourceInputs["createdAt"] = undefined /*out*/;
89
+ resourceInputs["size"] = undefined /*out*/;
90
+ resourceInputs["status"] = undefined /*out*/;
91
+ }
92
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
93
+ super(NfsSnapshot.__pulumiType, name, resourceInputs, opts);
94
+ }
95
+ }
96
+ exports.NfsSnapshot = NfsSnapshot;
97
+ /** @internal */
98
+ NfsSnapshot.__pulumiType = 'digitalocean:index/nfsSnapshot:NfsSnapshot';
99
+ //# sourceMappingURL=nfsSnapshot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nfsSnapshot.js","sourceRoot":"","sources":["../nfsSnapshot.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;S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