@pulumi/digitalocean 4.27.0 → 4.28.0-alpha.1711028016

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 (87) hide show
  1. package/cdn.d.ts +3 -3
  2. package/cdn.js +3 -3
  3. package/certificate.d.ts +4 -4
  4. package/certificate.js +4 -4
  5. package/customImage.d.ts +2 -2
  6. package/customImage.js +2 -2
  7. package/databaseCluster.d.ts +13 -13
  8. package/databaseCluster.js +13 -13
  9. package/databaseConnectionPool.d.ts +2 -2
  10. package/databaseConnectionPool.js +2 -2
  11. package/databaseDb.d.ts +2 -2
  12. package/databaseDb.js +2 -2
  13. package/databaseFirewall.d.ts +10 -10
  14. package/databaseFirewall.js +10 -10
  15. package/databaseKafkaTopic.d.ts +1 -1
  16. package/databaseKafkaTopic.js +1 -1
  17. package/databaseMysqlConfig.d.ts +2 -2
  18. package/databaseMysqlConfig.js +2 -2
  19. package/databaseRedisConfig.d.ts +2 -2
  20. package/databaseRedisConfig.js +2 -2
  21. package/databaseReplica.d.ts +4 -4
  22. package/databaseReplica.js +4 -4
  23. package/databaseUser.d.ts +7 -7
  24. package/databaseUser.js +7 -7
  25. package/dnsRecord.d.ts +2 -2
  26. package/dnsRecord.js +2 -2
  27. package/droplet.d.ts +5 -5
  28. package/droplet.js +2 -2
  29. package/dropletSnapshot.d.ts +4 -4
  30. package/dropletSnapshot.js +4 -4
  31. package/firewall.d.ts +2 -2
  32. package/firewall.js +2 -2
  33. package/floatingIp.d.ts +2 -2
  34. package/floatingIp.js +2 -2
  35. package/floatingIpAssignment.d.ts +2 -2
  36. package/floatingIpAssignment.js +2 -2
  37. package/getDropletSnapshot.d.ts +4 -4
  38. package/getDropletSnapshot.js +4 -4
  39. package/getImage.d.ts +4 -4
  40. package/getImage.js +4 -4
  41. package/getKubernetesVersions.d.ts +4 -4
  42. package/getKubernetesVersions.js +4 -4
  43. package/getSpacesBucketObject.d.ts +4 -4
  44. package/getSpacesBucketObject.js +4 -4
  45. package/getSshKey.d.ts +4 -4
  46. package/getSshKey.js +4 -4
  47. package/getTag.d.ts +4 -4
  48. package/getTag.js +4 -4
  49. package/getVolume.d.ts +4 -4
  50. package/getVolume.js +4 -4
  51. package/getVolumeSnapshot.d.ts +2 -2
  52. package/getVolumeSnapshot.js +2 -2
  53. package/getVpc.d.ts +4 -4
  54. package/getVpc.js +4 -4
  55. package/kubernetesNodePool.d.ts +3 -3
  56. package/kubernetesNodePool.js +3 -3
  57. package/loadBalancer.d.ts +6 -6
  58. package/loadBalancer.js +6 -6
  59. package/package.json +1 -1
  60. package/project.d.ts +2 -2
  61. package/project.js +2 -2
  62. package/projectResources.d.ts +2 -2
  63. package/projectResources.js +2 -2
  64. package/reservedIp.d.ts +2 -2
  65. package/reservedIp.js +2 -2
  66. package/reservedIpAssignment.d.ts +2 -2
  67. package/reservedIpAssignment.js +2 -2
  68. package/spacesBucket.d.ts +5 -5
  69. package/spacesBucket.js +2 -2
  70. package/spacesBucketCorsConfiguration.d.ts +1 -1
  71. package/spacesBucketCorsConfiguration.js +1 -1
  72. package/spacesBucketObject.d.ts +1 -1
  73. package/spacesBucketObject.js +1 -1
  74. package/spacesBucketPolicy.d.ts +1 -1
  75. package/spacesBucketPolicy.js +1 -1
  76. package/sshKey.d.ts +2 -2
  77. package/sshKey.js +2 -2
  78. package/tag.d.ts +2 -2
  79. package/tag.js +2 -2
  80. package/volume.d.ts +8 -8
  81. package/volume.js +5 -5
  82. package/volumeAttachment.d.ts +4 -4
  83. package/volumeAttachment.js +4 -4
  84. package/volumeSnapshot.d.ts +1 -1
  85. package/volumeSnapshot.js +1 -1
  86. package/vpc.d.ts +2 -2
  87. package/vpc.js +2 -2
package/cdn.d.ts CHANGED
@@ -13,7 +13,7 @@ import * as pulumi from "@pulumi/pulumi";
13
13
  *
14
14
  * // Create a new Spaces Bucket
15
15
  * const mybucket = new digitalocean.SpacesBucket("mybucket", {
16
- * region: "sfo2",
16
+ * region: digitalocean.Region.SFO2,
17
17
  * acl: "public-read",
18
18
  * });
19
19
  * // Add a CDN endpoint to the Spaces Bucket
@@ -31,12 +31,12 @@ import * as pulumi from "@pulumi/pulumi";
31
31
  *
32
32
  * // Create a new Spaces Bucket
33
33
  * const mybucket = new digitalocean.SpacesBucket("mybucket", {
34
- * region: "sfo2",
34
+ * region: digitalocean.Region.SFO2,
35
35
  * acl: "public-read",
36
36
  * });
37
37
  * // Create a DigitalOcean managed Let's Encrypt Certificate
38
38
  * const cert = new digitalocean.Certificate("cert", {
39
- * type: "lets_encrypt",
39
+ * type: digitalocean.CertificateType.LetsEncrypt,
40
40
  * domains: ["static.example.com"],
41
41
  * });
42
42
  * // Add a CDN endpoint with a custom sub-domain to the Spaces Bucket
package/cdn.js CHANGED
@@ -19,7 +19,7 @@ const utilities = require("./utilities");
19
19
  *
20
20
  * // Create a new Spaces Bucket
21
21
  * const mybucket = new digitalocean.SpacesBucket("mybucket", {
22
- * region: "sfo2",
22
+ * region: digitalocean.Region.SFO2,
23
23
  * acl: "public-read",
24
24
  * });
25
25
  * // Add a CDN endpoint to the Spaces Bucket
@@ -37,12 +37,12 @@ const utilities = require("./utilities");
37
37
  *
38
38
  * // Create a new Spaces Bucket
39
39
  * const mybucket = new digitalocean.SpacesBucket("mybucket", {
40
- * region: "sfo2",
40
+ * region: digitalocean.Region.SFO2,
41
41
  * acl: "public-read",
42
42
  * });
43
43
  * // Create a DigitalOcean managed Let's Encrypt Certificate
44
44
  * const cert = new digitalocean.Certificate("cert", {
45
- * type: "lets_encrypt",
45
+ * type: digitalocean.CertificateType.LetsEncrypt,
46
46
  * domains: ["static.example.com"],
47
47
  * });
48
48
  * // Add a CDN endpoint with a custom sub-domain to the Spaces Bucket
package/certificate.d.ts CHANGED
@@ -19,7 +19,7 @@ import * as enums from "./types/enums";
19
19
  * import * as fs from "fs";
20
20
  *
21
21
  * const cert = new digitalocean.Certificate("cert", {
22
- * type: "custom",
22
+ * type: digitalocean.CertificateType.Custom,
23
23
  * privateKey: fs.readFileSync("/Users/myuser/certs/privkey.pem", "utf8"),
24
24
  * leafCertificate: fs.readFileSync("/Users/myuser/certs/cert.pem", "utf8"),
25
25
  * certificateChain: fs.readFileSync("/Users/myuser/certs/fullchain.pem", "utf8"),
@@ -36,7 +36,7 @@ import * as enums from "./types/enums";
36
36
  *
37
37
  * const cert = new digitalocean.Certificate("cert", {
38
38
  * domains: ["example.com"],
39
- * type: "lets_encrypt",
39
+ * type: digitalocean.CertificateType.LetsEncrypt,
40
40
  * });
41
41
  * ```
42
42
  * <!--End PulumiCodeChooser -->
@@ -52,12 +52,12 @@ import * as enums from "./types/enums";
52
52
  * import * as digitalocean from "@pulumi/digitalocean";
53
53
  *
54
54
  * const cert = new digitalocean.Certificate("cert", {
55
- * type: "lets_encrypt",
55
+ * type: digitalocean.CertificateType.LetsEncrypt,
56
56
  * domains: ["example.com"],
57
57
  * });
58
58
  * // Create a new Load Balancer with TLS termination
59
59
  * const _public = new digitalocean.LoadBalancer("public", {
60
- * region: "nyc3",
60
+ * region: digitalocean.Region.NYC3,
61
61
  * dropletTag: "backend",
62
62
  * forwardingRules: [{
63
63
  * entryPort: 443,
package/certificate.js CHANGED
@@ -24,7 +24,7 @@ const utilities = require("./utilities");
24
24
  * import * as fs from "fs";
25
25
  *
26
26
  * const cert = new digitalocean.Certificate("cert", {
27
- * type: "custom",
27
+ * type: digitalocean.CertificateType.Custom,
28
28
  * privateKey: fs.readFileSync("/Users/myuser/certs/privkey.pem", "utf8"),
29
29
  * leafCertificate: fs.readFileSync("/Users/myuser/certs/cert.pem", "utf8"),
30
30
  * certificateChain: fs.readFileSync("/Users/myuser/certs/fullchain.pem", "utf8"),
@@ -41,7 +41,7 @@ const utilities = require("./utilities");
41
41
  *
42
42
  * const cert = new digitalocean.Certificate("cert", {
43
43
  * domains: ["example.com"],
44
- * type: "lets_encrypt",
44
+ * type: digitalocean.CertificateType.LetsEncrypt,
45
45
  * });
46
46
  * ```
47
47
  * <!--End PulumiCodeChooser -->
@@ -57,12 +57,12 @@ const utilities = require("./utilities");
57
57
  * import * as digitalocean from "@pulumi/digitalocean";
58
58
  *
59
59
  * const cert = new digitalocean.Certificate("cert", {
60
- * type: "lets_encrypt",
60
+ * type: digitalocean.CertificateType.LetsEncrypt,
61
61
  * domains: ["example.com"],
62
62
  * });
63
63
  * // Create a new Load Balancer with TLS termination
64
64
  * const _public = new digitalocean.LoadBalancer("public", {
65
- * region: "nyc3",
65
+ * region: digitalocean.Region.NYC3,
66
66
  * dropletTag: "backend",
67
67
  * forwardingRules: [{
68
68
  * entryPort: 443,
package/customImage.d.ts CHANGED
@@ -25,8 +25,8 @@ import * as pulumi from "@pulumi/pulumi";
25
25
  * });
26
26
  * const example = new digitalocean.Droplet("example", {
27
27
  * image: flatcar.id,
28
- * region: "nyc3",
29
- * size: "s-1vcpu-1gb",
28
+ * region: digitalocean.Region.NYC3,
29
+ * size: digitalocean.DropletSlug.DropletS1VCPU1GB,
30
30
  * sshKeys: ["12345"],
31
31
  * });
32
32
  * ```
package/customImage.js CHANGED
@@ -31,8 +31,8 @@ const utilities = require("./utilities");
31
31
  * });
32
32
  * const example = new digitalocean.Droplet("example", {
33
33
  * image: flatcar.id,
34
- * region: "nyc3",
35
- * size: "s-1vcpu-1gb",
34
+ * region: digitalocean.Region.NYC3,
35
+ * size: digitalocean.DropletSlug.DropletS1VCPU1GB,
36
36
  * sshKeys: ["12345"],
37
37
  * });
38
38
  * ```
@@ -16,8 +16,8 @@ import * as enums from "./types/enums";
16
16
  * const postgres_example = new digitalocean.DatabaseCluster("postgres-example", {
17
17
  * engine: "pg",
18
18
  * nodeCount: 1,
19
- * region: "nyc1",
20
- * size: "db-s-1vcpu-1gb",
19
+ * region: digitalocean.Region.NYC1,
20
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
21
21
  * version: "15",
22
22
  * });
23
23
  * ```
@@ -32,8 +32,8 @@ import * as enums from "./types/enums";
32
32
  * const mysql_example = new digitalocean.DatabaseCluster("mysql-example", {
33
33
  * engine: "mysql",
34
34
  * nodeCount: 1,
35
- * region: "nyc1",
36
- * size: "db-s-1vcpu-1gb",
35
+ * region: digitalocean.Region.NYC1,
36
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
37
37
  * version: "8",
38
38
  * });
39
39
  * ```
@@ -48,8 +48,8 @@ import * as enums from "./types/enums";
48
48
  * const redis_example = new digitalocean.DatabaseCluster("redis-example", {
49
49
  * engine: "redis",
50
50
  * nodeCount: 1,
51
- * region: "nyc1",
52
- * size: "db-s-1vcpu-1gb",
51
+ * region: digitalocean.Region.NYC1,
52
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
53
53
  * version: "7",
54
54
  * });
55
55
  * ```
@@ -64,7 +64,7 @@ import * as enums from "./types/enums";
64
64
  * const kafka_example = new digitalocean.DatabaseCluster("kafka-example", {
65
65
  * engine: "kafka",
66
66
  * nodeCount: 3,
67
- * region: "nyc1",
67
+ * region: digitalocean.Region.NYC1,
68
68
  * size: "db-s-2vcpu-2gb",
69
69
  * version: "3.5",
70
70
  * });
@@ -80,8 +80,8 @@ import * as enums from "./types/enums";
80
80
  * const mongodb_example = new digitalocean.DatabaseCluster("mongodb-example", {
81
81
  * engine: "mongodb",
82
82
  * nodeCount: 1,
83
- * region: "nyc3",
84
- * size: "db-s-1vcpu-1gb",
83
+ * region: digitalocean.Region.NYC3,
84
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
85
85
  * version: "6",
86
86
  * });
87
87
  * ```
@@ -97,16 +97,16 @@ import * as enums from "./types/enums";
97
97
  * const doby = new digitalocean.DatabaseCluster("doby", {
98
98
  * engine: "pg",
99
99
  * version: "11",
100
- * size: "db-s-1vcpu-2gb",
101
- * region: "nyc1",
100
+ * size: digitalocean.DatabaseSlug.DB_1VPCU2GB,
101
+ * region: digitalocean.Region.NYC1,
102
102
  * nodeCount: 1,
103
103
  * tags: ["production"],
104
104
  * });
105
105
  * const dobyBackup = new digitalocean.DatabaseCluster("dobyBackup", {
106
106
  * engine: "pg",
107
107
  * version: "11",
108
- * size: "db-s-1vcpu-2gb",
109
- * region: "nyc1",
108
+ * size: digitalocean.DatabaseSlug.DB_1VPCU2GB,
109
+ * region: digitalocean.Region.NYC1,
110
110
  * nodeCount: 1,
111
111
  * tags: ["production"],
112
112
  * backupRestore: {
@@ -19,8 +19,8 @@ const utilities = require("./utilities");
19
19
  * const postgres_example = new digitalocean.DatabaseCluster("postgres-example", {
20
20
  * engine: "pg",
21
21
  * nodeCount: 1,
22
- * region: "nyc1",
23
- * size: "db-s-1vcpu-1gb",
22
+ * region: digitalocean.Region.NYC1,
23
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
24
24
  * version: "15",
25
25
  * });
26
26
  * ```
@@ -35,8 +35,8 @@ const utilities = require("./utilities");
35
35
  * const mysql_example = new digitalocean.DatabaseCluster("mysql-example", {
36
36
  * engine: "mysql",
37
37
  * nodeCount: 1,
38
- * region: "nyc1",
39
- * size: "db-s-1vcpu-1gb",
38
+ * region: digitalocean.Region.NYC1,
39
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
40
40
  * version: "8",
41
41
  * });
42
42
  * ```
@@ -51,8 +51,8 @@ const utilities = require("./utilities");
51
51
  * const redis_example = new digitalocean.DatabaseCluster("redis-example", {
52
52
  * engine: "redis",
53
53
  * nodeCount: 1,
54
- * region: "nyc1",
55
- * size: "db-s-1vcpu-1gb",
54
+ * region: digitalocean.Region.NYC1,
55
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
56
56
  * version: "7",
57
57
  * });
58
58
  * ```
@@ -67,7 +67,7 @@ const utilities = require("./utilities");
67
67
  * const kafka_example = new digitalocean.DatabaseCluster("kafka-example", {
68
68
  * engine: "kafka",
69
69
  * nodeCount: 3,
70
- * region: "nyc1",
70
+ * region: digitalocean.Region.NYC1,
71
71
  * size: "db-s-2vcpu-2gb",
72
72
  * version: "3.5",
73
73
  * });
@@ -83,8 +83,8 @@ const utilities = require("./utilities");
83
83
  * const mongodb_example = new digitalocean.DatabaseCluster("mongodb-example", {
84
84
  * engine: "mongodb",
85
85
  * nodeCount: 1,
86
- * region: "nyc3",
87
- * size: "db-s-1vcpu-1gb",
86
+ * region: digitalocean.Region.NYC3,
87
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
88
88
  * version: "6",
89
89
  * });
90
90
  * ```
@@ -100,16 +100,16 @@ const utilities = require("./utilities");
100
100
  * const doby = new digitalocean.DatabaseCluster("doby", {
101
101
  * engine: "pg",
102
102
  * version: "11",
103
- * size: "db-s-1vcpu-2gb",
104
- * region: "nyc1",
103
+ * size: digitalocean.DatabaseSlug.DB_1VPCU2GB,
104
+ * region: digitalocean.Region.NYC1,
105
105
  * nodeCount: 1,
106
106
  * tags: ["production"],
107
107
  * });
108
108
  * const dobyBackup = new digitalocean.DatabaseCluster("dobyBackup", {
109
109
  * engine: "pg",
110
110
  * version: "11",
111
- * size: "db-s-1vcpu-2gb",
112
- * region: "nyc1",
111
+ * size: digitalocean.DatabaseSlug.DB_1VPCU2GB,
112
+ * region: digitalocean.Region.NYC1,
113
113
  * nodeCount: 1,
114
114
  * tags: ["production"],
115
115
  * backupRestore: {
@@ -13,8 +13,8 @@ import * as pulumi from "@pulumi/pulumi";
13
13
  * const postgres_example = new digitalocean.DatabaseCluster("postgres-example", {
14
14
  * engine: "pg",
15
15
  * version: "11",
16
- * size: "db-s-1vcpu-1gb",
17
- * region: "nyc1",
16
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
17
+ * region: digitalocean.Region.NYC1,
18
18
  * nodeCount: 1,
19
19
  * });
20
20
  * const pool_01 = new digitalocean.DatabaseConnectionPool("pool-01", {
@@ -19,8 +19,8 @@ const utilities = require("./utilities");
19
19
  * const postgres_example = new digitalocean.DatabaseCluster("postgres-example", {
20
20
  * engine: "pg",
21
21
  * version: "11",
22
- * size: "db-s-1vcpu-1gb",
23
- * region: "nyc1",
22
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
23
+ * region: digitalocean.Region.NYC1,
24
24
  * nodeCount: 1,
25
25
  * });
26
26
  * const pool_01 = new digitalocean.DatabaseConnectionPool("pool-01", {
package/databaseDb.d.ts CHANGED
@@ -13,8 +13,8 @@ import * as pulumi from "@pulumi/pulumi";
13
13
  * const postgres_example = new digitalocean.DatabaseCluster("postgres-example", {
14
14
  * engine: "pg",
15
15
  * version: "11",
16
- * size: "db-s-1vcpu-1gb",
17
- * region: "nyc1",
16
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
17
+ * region: digitalocean.Region.NYC1,
18
18
  * nodeCount: 1,
19
19
  * });
20
20
  * const database_example = new digitalocean.DatabaseDb("database-example", {clusterId: postgres_example.id});
package/databaseDb.js CHANGED
@@ -19,8 +19,8 @@ const utilities = require("./utilities");
19
19
  * const postgres_example = new digitalocean.DatabaseCluster("postgres-example", {
20
20
  * engine: "pg",
21
21
  * version: "11",
22
- * size: "db-s-1vcpu-1gb",
23
- * region: "nyc1",
22
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
23
+ * region: digitalocean.Region.NYC1,
24
24
  * nodeCount: 1,
25
25
  * });
26
26
  * const database_example = new digitalocean.DatabaseDb("database-example", {clusterId: postgres_example.id});
@@ -18,8 +18,8 @@ import * as outputs from "./types/output";
18
18
  * const postgres_example = new digitalocean.DatabaseCluster("postgres-example", {
19
19
  * engine: "pg",
20
20
  * version: "11",
21
- * size: "db-s-1vcpu-1gb",
22
- * region: "nyc1",
21
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
22
+ * region: digitalocean.Region.NYC1,
23
23
  * nodeCount: 1,
24
24
  * });
25
25
  * const example_fw = new digitalocean.DatabaseFirewall("example-fw", {
@@ -46,15 +46,15 @@ import * as outputs from "./types/output";
46
46
  * import * as digitalocean from "@pulumi/digitalocean";
47
47
  *
48
48
  * const web = new digitalocean.Droplet("web", {
49
- * size: "s-1vcpu-1gb",
49
+ * size: digitalocean.DropletSlug.DropletS1VCPU1GB,
50
50
  * image: "ubuntu-22-04-x64",
51
- * region: "nyc3",
51
+ * region: digitalocean.Region.NYC3,
52
52
  * });
53
53
  * const postgres_example = new digitalocean.DatabaseCluster("postgres-example", {
54
54
  * engine: "pg",
55
55
  * version: "11",
56
- * size: "db-s-1vcpu-1gb",
57
- * region: "nyc1",
56
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
57
+ * region: digitalocean.Region.NYC1,
58
58
  * nodeCount: 1,
59
59
  * });
60
60
  * const example_fw = new digitalocean.DatabaseFirewall("example-fw", {
@@ -77,14 +77,14 @@ import * as outputs from "./types/output";
77
77
  * const postgres_example = new digitalocean.DatabaseCluster("postgres-example", {
78
78
  * engine: "pg",
79
79
  * version: "11",
80
- * size: "db-s-1vcpu-1gb",
81
- * region: "nyc1",
80
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
81
+ * region: digitalocean.Region.NYC1,
82
82
  * nodeCount: 1,
83
83
  * });
84
84
  * const replica_example = new digitalocean.DatabaseReplica("replica-example", {
85
85
  * clusterId: postgres_example.id,
86
- * size: "db-s-1vcpu-1gb",
87
- * region: "nyc1",
86
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
87
+ * region: digitalocean.Region.NYC1,
88
88
  * });
89
89
  * // Create firewall rule for database replica
90
90
  * const example_fw = new digitalocean.DatabaseFirewall("example-fw", {
@@ -22,8 +22,8 @@ const utilities = require("./utilities");
22
22
  * const postgres_example = new digitalocean.DatabaseCluster("postgres-example", {
23
23
  * engine: "pg",
24
24
  * version: "11",
25
- * size: "db-s-1vcpu-1gb",
26
- * region: "nyc1",
25
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
26
+ * region: digitalocean.Region.NYC1,
27
27
  * nodeCount: 1,
28
28
  * });
29
29
  * const example_fw = new digitalocean.DatabaseFirewall("example-fw", {
@@ -50,15 +50,15 @@ const utilities = require("./utilities");
50
50
  * import * as digitalocean from "@pulumi/digitalocean";
51
51
  *
52
52
  * const web = new digitalocean.Droplet("web", {
53
- * size: "s-1vcpu-1gb",
53
+ * size: digitalocean.DropletSlug.DropletS1VCPU1GB,
54
54
  * image: "ubuntu-22-04-x64",
55
- * region: "nyc3",
55
+ * region: digitalocean.Region.NYC3,
56
56
  * });
57
57
  * const postgres_example = new digitalocean.DatabaseCluster("postgres-example", {
58
58
  * engine: "pg",
59
59
  * version: "11",
60
- * size: "db-s-1vcpu-1gb",
61
- * region: "nyc1",
60
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
61
+ * region: digitalocean.Region.NYC1,
62
62
  * nodeCount: 1,
63
63
  * });
64
64
  * const example_fw = new digitalocean.DatabaseFirewall("example-fw", {
@@ -81,14 +81,14 @@ const utilities = require("./utilities");
81
81
  * const postgres_example = new digitalocean.DatabaseCluster("postgres-example", {
82
82
  * engine: "pg",
83
83
  * version: "11",
84
- * size: "db-s-1vcpu-1gb",
85
- * region: "nyc1",
84
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
85
+ * region: digitalocean.Region.NYC1,
86
86
  * nodeCount: 1,
87
87
  * });
88
88
  * const replica_example = new digitalocean.DatabaseReplica("replica-example", {
89
89
  * clusterId: postgres_example.id,
90
- * size: "db-s-1vcpu-1gb",
91
- * region: "nyc1",
90
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
91
+ * region: digitalocean.Region.NYC1,
92
92
  * });
93
93
  * // Create firewall rule for database replica
94
94
  * const example_fw = new digitalocean.DatabaseFirewall("example-fw", {
@@ -16,7 +16,7 @@ import * as outputs from "./types/output";
16
16
  * engine: "kafka",
17
17
  * version: "3.5",
18
18
  * size: "db-s-2vcpu-2gb",
19
- * region: "nyc1",
19
+ * region: digitalocean.Region.NYC1,
20
20
  * nodeCount: 3,
21
21
  * tags: ["production"],
22
22
  * });
@@ -20,7 +20,7 @@ const utilities = require("./utilities");
20
20
  * engine: "kafka",
21
21
  * version: "3.5",
22
22
  * size: "db-s-2vcpu-2gb",
23
- * region: "nyc1",
23
+ * region: digitalocean.Region.NYC1,
24
24
  * nodeCount: 3,
25
25
  * tags: ["production"],
26
26
  * });
@@ -15,8 +15,8 @@ import * as pulumi from "@pulumi/pulumi";
15
15
  * const exampleDatabaseCluster = new digitalocean.DatabaseCluster("exampleDatabaseCluster", {
16
16
  * engine: "mysql",
17
17
  * version: "8",
18
- * size: "db-s-1vcpu-1gb",
19
- * region: "nyc1",
18
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
19
+ * region: digitalocean.Region.NYC1,
20
20
  * nodeCount: 1,
21
21
  * });
22
22
  * const exampleDatabaseMysqlConfig = new digitalocean.DatabaseMysqlConfig("exampleDatabaseMysqlConfig", {
@@ -21,8 +21,8 @@ const utilities = require("./utilities");
21
21
  * const exampleDatabaseCluster = new digitalocean.DatabaseCluster("exampleDatabaseCluster", {
22
22
  * engine: "mysql",
23
23
  * version: "8",
24
- * size: "db-s-1vcpu-1gb",
25
- * region: "nyc1",
24
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
25
+ * region: digitalocean.Region.NYC1,
26
26
  * nodeCount: 1,
27
27
  * });
28
28
  * const exampleDatabaseMysqlConfig = new digitalocean.DatabaseMysqlConfig("exampleDatabaseMysqlConfig", {
@@ -15,8 +15,8 @@ import * as pulumi from "@pulumi/pulumi";
15
15
  * const exampleDatabaseCluster = new digitalocean.DatabaseCluster("exampleDatabaseCluster", {
16
16
  * engine: "redis",
17
17
  * version: "7",
18
- * size: "db-s-1vcpu-1gb",
19
- * region: "nyc1",
18
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
19
+ * region: digitalocean.Region.NYC1,
20
20
  * nodeCount: 1,
21
21
  * });
22
22
  * const exampleDatabaseRedisConfig = new digitalocean.DatabaseRedisConfig("exampleDatabaseRedisConfig", {
@@ -21,8 +21,8 @@ const utilities = require("./utilities");
21
21
  * const exampleDatabaseCluster = new digitalocean.DatabaseCluster("exampleDatabaseCluster", {
22
22
  * engine: "redis",
23
23
  * version: "7",
24
- * size: "db-s-1vcpu-1gb",
25
- * region: "nyc1",
24
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
25
+ * region: digitalocean.Region.NYC1,
26
26
  * nodeCount: 1,
27
27
  * });
28
28
  * const exampleDatabaseRedisConfig = new digitalocean.DatabaseRedisConfig("exampleDatabaseRedisConfig", {
@@ -14,14 +14,14 @@ import * as enums from "./types/enums";
14
14
  * const postgres_example = new digitalocean.DatabaseCluster("postgres-example", {
15
15
  * engine: "pg",
16
16
  * version: "11",
17
- * size: "db-s-1vcpu-1gb",
18
- * region: "nyc1",
17
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
18
+ * region: digitalocean.Region.NYC1,
19
19
  * nodeCount: 1,
20
20
  * });
21
21
  * const replica_example = new digitalocean.DatabaseReplica("replica-example", {
22
22
  * clusterId: postgres_example.id,
23
- * size: "db-s-1vcpu-1gb",
24
- * region: "nyc1",
23
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
24
+ * region: digitalocean.Region.NYC1,
25
25
  * });
26
26
  * export const uUID = replica_example.uuid;
27
27
  * // Create firewall rule for database replica
@@ -19,14 +19,14 @@ const utilities = require("./utilities");
19
19
  * const postgres_example = new digitalocean.DatabaseCluster("postgres-example", {
20
20
  * engine: "pg",
21
21
  * version: "11",
22
- * size: "db-s-1vcpu-1gb",
23
- * region: "nyc1",
22
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
23
+ * region: digitalocean.Region.NYC1,
24
24
  * nodeCount: 1,
25
25
  * });
26
26
  * const replica_example = new digitalocean.DatabaseReplica("replica-example", {
27
27
  * clusterId: postgres_example.id,
28
- * size: "db-s-1vcpu-1gb",
29
- * region: "nyc1",
28
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
29
+ * region: digitalocean.Region.NYC1,
30
30
  * });
31
31
  * export const uUID = replica_example.uuid;
32
32
  * // Create firewall rule for database replica
package/databaseUser.d.ts CHANGED
@@ -17,8 +17,8 @@ import * as outputs from "./types/output";
17
17
  * const postgres_example = new digitalocean.DatabaseCluster("postgres-example", {
18
18
  * engine: "pg",
19
19
  * version: "11",
20
- * size: "db-s-1vcpu-1gb",
21
- * region: "nyc1",
20
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
21
+ * region: digitalocean.Region.NYC1,
22
22
  * nodeCount: 1,
23
23
  * });
24
24
  * const user_example = new digitalocean.DatabaseUser("user-example", {clusterId: postgres_example.id});
@@ -34,14 +34,14 @@ import * as outputs from "./types/output";
34
34
  * const postgres_example = new digitalocean.DatabaseCluster("postgres-example", {
35
35
  * engine: "pg",
36
36
  * version: "11",
37
- * size: "db-s-1vcpu-1gb",
38
- * region: "nyc1",
37
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
38
+ * region: digitalocean.Region.NYC1,
39
39
  * nodeCount: 1,
40
40
  * });
41
41
  * const replica_example = new digitalocean.DatabaseReplica("replica-example", {
42
42
  * clusterId: postgres_example.id,
43
- * size: "db-s-1vcpu-1gb",
44
- * region: "nyc1",
43
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
44
+ * region: digitalocean.Region.NYC1,
45
45
  * });
46
46
  * const user_example = new digitalocean.DatabaseUser("user-example", {clusterId: replica_example.uuid});
47
47
  * ```
@@ -57,7 +57,7 @@ import * as outputs from "./types/output";
57
57
  * engine: "kafka",
58
58
  * version: "3.5",
59
59
  * size: "db-s-2vcpu-2gb",
60
- * region: "nyc1",
60
+ * region: digitalocean.Region.NYC1,
61
61
  * nodeCount: 3,
62
62
  * });
63
63
  * const foobarTopic = new digitalocean.DatabaseKafkaTopic("foobarTopic", {clusterId: digitalocean_database_cluster.foobar.id});
package/databaseUser.js CHANGED
@@ -21,8 +21,8 @@ const utilities = require("./utilities");
21
21
  * const postgres_example = new digitalocean.DatabaseCluster("postgres-example", {
22
22
  * engine: "pg",
23
23
  * version: "11",
24
- * size: "db-s-1vcpu-1gb",
25
- * region: "nyc1",
24
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
25
+ * region: digitalocean.Region.NYC1,
26
26
  * nodeCount: 1,
27
27
  * });
28
28
  * const user_example = new digitalocean.DatabaseUser("user-example", {clusterId: postgres_example.id});
@@ -38,14 +38,14 @@ const utilities = require("./utilities");
38
38
  * const postgres_example = new digitalocean.DatabaseCluster("postgres-example", {
39
39
  * engine: "pg",
40
40
  * version: "11",
41
- * size: "db-s-1vcpu-1gb",
42
- * region: "nyc1",
41
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
42
+ * region: digitalocean.Region.NYC1,
43
43
  * nodeCount: 1,
44
44
  * });
45
45
  * const replica_example = new digitalocean.DatabaseReplica("replica-example", {
46
46
  * clusterId: postgres_example.id,
47
- * size: "db-s-1vcpu-1gb",
48
- * region: "nyc1",
47
+ * size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
48
+ * region: digitalocean.Region.NYC1,
49
49
  * });
50
50
  * const user_example = new digitalocean.DatabaseUser("user-example", {clusterId: replica_example.uuid});
51
51
  * ```
@@ -61,7 +61,7 @@ const utilities = require("./utilities");
61
61
  * engine: "kafka",
62
62
  * version: "3.5",
63
63
  * size: "db-s-2vcpu-2gb",
64
- * region: "nyc1",
64
+ * region: digitalocean.Region.NYC1,
65
65
  * nodeCount: 3,
66
66
  * });
67
67
  * const foobarTopic = new digitalocean.DatabaseKafkaTopic("foobarTopic", {clusterId: digitalocean_database_cluster.foobar.id});
package/dnsRecord.d.ts CHANGED
@@ -14,13 +14,13 @@ import * as enums from "./types/enums";
14
14
  * // Add an A record to the domain for www.example.com.
15
15
  * const www = new digitalocean.DnsRecord("www", {
16
16
  * domain: _default.id,
17
- * type: "A",
17
+ * type: digitalocean.RecordType.A,
18
18
  * value: "192.168.0.11",
19
19
  * });
20
20
  * // Add a MX record for the example.com domain itself.
21
21
  * const mx = new digitalocean.DnsRecord("mx", {
22
22
  * domain: _default.id,
23
- * type: "MX",
23
+ * type: digitalocean.RecordType.MX,
24
24
  * priority: 10,
25
25
  * value: "mail.example.com.",
26
26
  * });