@upcloud/pulumi-upcloud 0.1.0-alpha.1740133061 → 0.1.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 (132) hide show
  1. package/README.md +26 -15
  2. package/config/vars.d.ts +5 -0
  3. package/config/vars.js +6 -0
  4. package/config/vars.js.map +1 -1
  5. package/floatingIpAddress.d.ts +2 -2
  6. package/floatingIpAddress.js +2 -2
  7. package/gateway.d.ts +7 -5
  8. package/gateway.js +7 -5
  9. package/gateway.js.map +1 -1
  10. package/gatewayConnection.d.ts +9 -6
  11. package/gatewayConnection.js +9 -6
  12. package/gatewayConnection.js.map +1 -1
  13. package/getManagedDatabaseMysqlSessions.d.ts +8 -4
  14. package/getManagedDatabaseMysqlSessions.js +8 -4
  15. package/getManagedDatabaseMysqlSessions.js.map +1 -1
  16. package/getManagedDatabaseOpensearchIndices.d.ts +8 -4
  17. package/getManagedDatabaseOpensearchIndices.js +8 -4
  18. package/getManagedDatabaseOpensearchIndices.js.map +1 -1
  19. package/getManagedDatabasePostgresqlSessions.d.ts +8 -4
  20. package/getManagedDatabasePostgresqlSessions.js +8 -4
  21. package/getManagedDatabasePostgresqlSessions.js.map +1 -1
  22. package/getManagedDatabaseRedisSessions.d.ts +8 -4
  23. package/getManagedDatabaseRedisSessions.js +8 -4
  24. package/getManagedDatabaseRedisSessions.js.map +1 -1
  25. package/getManagedDatabaseValkeySessions.d.ts +8 -4
  26. package/getManagedDatabaseValkeySessions.js +8 -4
  27. package/getManagedDatabaseValkeySessions.js.map +1 -1
  28. package/getNetworks.d.ts +0 -24
  29. package/getNetworks.js +0 -24
  30. package/getNetworks.js.map +1 -1
  31. package/getStorage.d.ts +10 -0
  32. package/getStorage.js +10 -0
  33. package/getStorage.js.map +1 -1
  34. package/kubernetesCluster.d.ts +20 -18
  35. package/kubernetesCluster.js +14 -9
  36. package/kubernetesCluster.js.map +1 -1
  37. package/kubernetesNodeGroup.d.ts +7 -4
  38. package/kubernetesNodeGroup.js +7 -4
  39. package/kubernetesNodeGroup.js.map +1 -1
  40. package/loadbalancer.d.ts +4 -2
  41. package/loadbalancer.js +4 -2
  42. package/loadbalancer.js.map +1 -1
  43. package/loadbalancerBackend.d.ts +8 -3
  44. package/loadbalancerBackend.js +8 -3
  45. package/loadbalancerBackend.js.map +1 -1
  46. package/loadbalancerDynamicBackendMember.d.ts +14 -9
  47. package/loadbalancerDynamicBackendMember.js +14 -9
  48. package/loadbalancerDynamicBackendMember.js.map +1 -1
  49. package/loadbalancerDynamicCertificateBundle.d.ts +2 -1
  50. package/loadbalancerDynamicCertificateBundle.js +2 -1
  51. package/loadbalancerDynamicCertificateBundle.js.map +1 -1
  52. package/loadbalancerFrontend.d.ts +25 -13
  53. package/loadbalancerFrontend.js +13 -7
  54. package/loadbalancerFrontend.js.map +1 -1
  55. package/loadbalancerFrontendRule.d.ts +16 -9
  56. package/loadbalancerFrontendRule.js +16 -9
  57. package/loadbalancerFrontendRule.js.map +1 -1
  58. package/loadbalancerFrontendTlsConfig.d.ts +17 -9
  59. package/loadbalancerFrontendTlsConfig.js +17 -9
  60. package/loadbalancerFrontendTlsConfig.js.map +1 -1
  61. package/loadbalancerResolver.d.ts +7 -4
  62. package/loadbalancerResolver.js +7 -4
  63. package/loadbalancerResolver.js.map +1 -1
  64. package/loadbalancerStaticBackendMember.d.ts +11 -5
  65. package/loadbalancerStaticBackendMember.js +11 -5
  66. package/loadbalancerStaticBackendMember.js.map +1 -1
  67. package/managedDatabaseLogicalDatabase.d.ts +12 -4
  68. package/managedDatabaseLogicalDatabase.js +12 -4
  69. package/managedDatabaseLogicalDatabase.js.map +1 -1
  70. package/managedDatabaseMysql.d.ts +15 -12
  71. package/managedDatabaseMysql.js +15 -12
  72. package/managedDatabaseMysql.js.map +1 -1
  73. package/managedDatabaseOpensearch.d.ts +8 -6
  74. package/managedDatabaseOpensearch.js +8 -6
  75. package/managedDatabaseOpensearch.js.map +1 -1
  76. package/managedDatabasePostgresql.d.ts +8 -6
  77. package/managedDatabasePostgresql.js +8 -6
  78. package/managedDatabasePostgresql.js.map +1 -1
  79. package/managedDatabaseRedis.d.ts +7 -5
  80. package/managedDatabaseRedis.js +7 -5
  81. package/managedDatabaseRedis.js.map +1 -1
  82. package/managedDatabaseUser.d.ts +2 -1
  83. package/managedDatabaseUser.js +2 -1
  84. package/managedDatabaseUser.js.map +1 -1
  85. package/managedDatabaseValkey.d.ts +7 -5
  86. package/managedDatabaseValkey.js +7 -5
  87. package/managedDatabaseValkey.js.map +1 -1
  88. package/managedObjectStorage.d.ts +6 -4
  89. package/managedObjectStorage.js +6 -4
  90. package/managedObjectStorage.js.map +1 -1
  91. package/managedObjectStorageBucket.d.ts +6 -2
  92. package/managedObjectStorageBucket.js +6 -2
  93. package/managedObjectStorageBucket.js.map +1 -1
  94. package/managedObjectStorageCustomDomain.d.ts +4 -3
  95. package/managedObjectStorageCustomDomain.js +4 -3
  96. package/managedObjectStorageCustomDomain.js.map +1 -1
  97. package/managedObjectStoragePolicy.d.ts +5 -3
  98. package/managedObjectStoragePolicy.js +5 -3
  99. package/managedObjectStoragePolicy.js.map +1 -1
  100. package/managedObjectStorageUser.d.ts +4 -3
  101. package/managedObjectStorageUser.js +4 -3
  102. package/managedObjectStorageUser.js.map +1 -1
  103. package/managedObjectStorageUserAccessKey.d.ts +6 -5
  104. package/managedObjectStorageUserAccessKey.js +6 -5
  105. package/managedObjectStorageUserAccessKey.js.map +1 -1
  106. package/managedObjectStorageUserPolicy.d.ts +10 -7
  107. package/managedObjectStorageUserPolicy.js +10 -7
  108. package/managedObjectStorageUserPolicy.js.map +1 -1
  109. package/network.d.ts +3 -2
  110. package/network.js +3 -2
  111. package/network.js.map +1 -1
  112. package/networkPeering.d.ts +8 -6
  113. package/networkPeering.js +8 -6
  114. package/networkPeering.js.map +1 -1
  115. package/objectStorage.d.ts +6 -6
  116. package/objectStorage.js +6 -6
  117. package/package.json +2 -2
  118. package/provider.d.ts +10 -0
  119. package/provider.js +1 -0
  120. package/provider.js.map +1 -1
  121. package/router.d.ts +1 -1
  122. package/router.js +1 -1
  123. package/server.d.ts +1 -1
  124. package/serverFirewallRules.d.ts +23 -23
  125. package/serverFirewallRules.js +5 -8
  126. package/serverFirewallRules.js.map +1 -1
  127. package/serverGroup.d.ts +1 -1
  128. package/serverGroup.js +1 -1
  129. package/storageTemplate.d.ts +2 -2
  130. package/storageTemplate.js +2 -2
  131. package/types/input.d.ts +26 -30
  132. package/types/output.d.ts +26 -30
package/README.md CHANGED
@@ -1,6 +1,3 @@
1
- > [!WARNING]
2
- > This project is in development. Suitable for testing usage at the moment. All instructions, package names and URLs might not have been updated.
3
-
4
1
  # UpCloud Resource Provider
5
2
 
6
3
  The UpCloud Resource Provider lets you manage [UpCloud](https://upcloud.com/) resources.
@@ -54,6 +51,10 @@ The following configuration points are available for the `upcloud` provider:
54
51
  - `UPCLOUD_USERNAME` (environment variable) - the username of the account to use
55
52
  - `UPCLOUD_PASSWORD` (environment variable) - the password of the account to use
56
53
 
54
+ ## Reference
55
+
56
+ For detailed reference documentation, please visit [the Pulumi registry](https://www.pulumi.com/registry/packages/upcloud/).
57
+
57
58
  ## Templates
58
59
 
59
60
  We have created templates in your language of choice to bootstrap your projects.
@@ -71,8 +72,12 @@ They will set up the project and set up:
71
72
  - Set up UpCloud API credentials as explained in the configuration section
72
73
 
73
74
  #### Set up your project using the template
74
- - From the new project directory:
75
- - pulumi new https://github.com/UpCloudLtd/pulumi-upcloud/tree/main/examples/templates/upcloud-csharp
75
+
76
+ From the new project directory:
77
+
78
+ ```sh
79
+ pulumi new https://github.com/UpCloudLtd/pulumi-upcloud/tree/main/examples/templates/upcloud-csharp
80
+ ```
76
81
 
77
82
  ### Typescript
78
83
 
@@ -82,8 +87,12 @@ They will set up the project and set up:
82
87
  - Set up UpCloud API credentials as explained in the configuration section
83
88
 
84
89
  #### Set up your project using the template
85
- - From the new project directory:
86
- - pulumi new https://github.com/UpCloudLtd/pulumi-upcloud/tree/main/examples/templates/upcloud-typescript
90
+
91
+ From the new project directory:
92
+
93
+ ```sh
94
+ pulumi new https://github.com/UpCloudLtd/pulumi-upcloud/tree/main/examples/templates/upcloud-typescript
95
+ ```
87
96
 
88
97
  ### Go
89
98
 
@@ -93,8 +102,12 @@ They will set up the project and set up:
93
102
  - Set up UpCloud API credentials as explained in the configuration section
94
103
 
95
104
  #### Set up your project using the template
96
- - From the new project directory:
97
- - pulumi new https://github.com/UpCloudLtd/pulumi-upcloud/tree/main/examples/templates/upcloud-go
105
+
106
+ From the new project directory:
107
+
108
+ ```sh
109
+ pulumi new https://github.com/UpCloudLtd/pulumi-upcloud/tree/main/examples/templates/upcloud-go
110
+ ```
98
111
 
99
112
  ### Python
100
113
 
@@ -104,11 +117,9 @@ They will set up the project and set up:
104
117
  - Set up UpCloud API credentials as explained in the configuration section
105
118
 
106
119
  #### Set up your project using the template
107
- - From the new project directory:
108
- - pulumi new https://github.com/UpCloudLtd/pulumi-upcloud/tree/main/examples/templates/upcloud-python
109
120
 
110
- <!--
111
- ## Reference
121
+ From the new project directory:
112
122
 
113
- For detailed reference documentation, please visit [the Pulumi registry](https://www.pulumi.com/registry/packages/foo/api-docs/).
114
- -->
123
+ ```sh
124
+ pulumi new https://github.com/UpCloudLtd/pulumi-upcloud/tree/main/examples/templates/upcloud-python
125
+ ```
package/config/vars.d.ts CHANGED
@@ -19,6 +19,11 @@ export declare const retryWaitMaxSec: number | undefined;
19
19
  * Minimum time to wait between retries
20
20
  */
21
21
  export declare const retryWaitMinSec: number | undefined;
22
+ /**
23
+ * Token for authenticating to UpCloud API. Can also be configured using the `UPCLOUD_TOKEN` environment variable.
24
+ * (EXPERIMENTAL)
25
+ */
26
+ export declare const token: string | undefined;
22
27
  /**
23
28
  * UpCloud username with API access. Can also be configured using the `UPCLOUD_USERNAME` environment variable.
24
29
  */
package/config/vars.js CHANGED
@@ -34,6 +34,12 @@ Object.defineProperty(exports, "retryWaitMinSec", {
34
34
  },
35
35
  enumerable: true,
36
36
  });
37
+ Object.defineProperty(exports, "token", {
38
+ get() {
39
+ return __config.get("token");
40
+ },
41
+ enumerable: true,
42
+ });
37
43
  Object.defineProperty(exports, "username", {
38
44
  get() {
39
45
  return __config.get("username");
@@ -1 +1 @@
1
- {"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAIzC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;AAM9C,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAOH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,mBAAmB,EAAE;IAChD,GAAG;QACC,OAAO,QAAQ,CAAC,SAAS,CAAS,mBAAmB,CAAC,CAAC;IAC3D,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;QACC,OAAO,QAAQ,CAAC,SAAS,CAAS,UAAU,CAAC,CAAC;IAClD,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,iBAAiB,EAAE;IAC9C,GAAG;QACC,OAAO,QAAQ,CAAC,SAAS,CAAS,iBAAiB,CAAC,CAAC;IACzD,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,iBAAiB,EAAE;IAC9C,GAAG;QACC,OAAO,QAAQ,CAAC,SAAS,CAAS,iBAAiB,CAAC,CAAC;IACzD,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;A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,CAAC,CAAC;AAOH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE;IACpC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
@@ -9,7 +9,7 @@ import * as pulumi from "@pulumi/pulumi";
9
9
  * import * as upcloud from "@upcloud/pulumi-upcloud";
10
10
  *
11
11
  * // Create a detached floating IP address.
12
- * const myFloatingAddress = new upcloud.FloatingIpAddress("myFloatingAddress", {zone: "de-fra1"});
12
+ * const myFloatingAddress = new upcloud.FloatingIpAddress("my_floating_address", {zone: "de-fra1"});
13
13
  * // Floating IP address assigned to a server resource.
14
14
  * const example = new upcloud.Server("example", {
15
15
  * hostname: "terraform.example.tld",
@@ -23,7 +23,7 @@ import * as pulumi from "@pulumi/pulumi";
23
23
  * type: "public",
24
24
  * }],
25
25
  * });
26
- * const myNewFloatingAddress = new upcloud.FloatingIpAddress("myNewFloatingAddress", {macAddress: example.networkInterfaces.apply(networkInterfaces => networkInterfaces?.[0]?.macAddress)});
26
+ * const myNewFloatingAddress = new upcloud.FloatingIpAddress("my_new_floating_address", {macAddress: example.networkInterfaces.apply(networkInterfaces => networkInterfaces?.[0]?.macAddress)});
27
27
  * ```
28
28
  *
29
29
  * ## Import
@@ -15,7 +15,7 @@ const utilities = require("./utilities");
15
15
  * import * as upcloud from "@upcloud/pulumi-upcloud";
16
16
  *
17
17
  * // Create a detached floating IP address.
18
- * const myFloatingAddress = new upcloud.FloatingIpAddress("myFloatingAddress", {zone: "de-fra1"});
18
+ * const myFloatingAddress = new upcloud.FloatingIpAddress("my_floating_address", {zone: "de-fra1"});
19
19
  * // Floating IP address assigned to a server resource.
20
20
  * const example = new upcloud.Server("example", {
21
21
  * hostname: "terraform.example.tld",
@@ -29,7 +29,7 @@ const utilities = require("./utilities");
29
29
  * type: "public",
30
30
  * }],
31
31
  * });
32
- * const myNewFloatingAddress = new upcloud.FloatingIpAddress("myNewFloatingAddress", {macAddress: example.networkInterfaces.apply(networkInterfaces => networkInterfaces?.[0]?.macAddress)});
32
+ * const myNewFloatingAddress = new upcloud.FloatingIpAddress("my_new_floating_address", {macAddress: example.networkInterfaces.apply(networkInterfaces => networkInterfaces?.[0]?.macAddress)});
33
33
  * ```
34
34
  *
35
35
  * ## Import
package/gateway.d.ts CHANGED
@@ -11,22 +11,24 @@ import * as outputs from "./types/output";
11
11
  * import * as upcloud from "@upcloud/pulumi-upcloud";
12
12
  *
13
13
  * // Create router for the gateway
14
- * const thisRouter = new upcloud.Router("thisRouter", {});
14
+ * const _this = new upcloud.Router("this", {name: "gateway-example-router"});
15
15
  * // Create network for the gateway
16
- * const thisNetwork = new upcloud.Network("thisNetwork", {
16
+ * const thisNetwork = new upcloud.Network("this", {
17
+ * name: "gateway-example-net",
17
18
  * zone: "pl-waw1",
18
19
  * ipNetwork: {
19
20
  * address: "172.16.2.0/24",
20
21
  * dhcp: true,
21
22
  * family: "IPv4",
22
23
  * },
23
- * router: thisRouter.id,
24
+ * router: _this.id,
24
25
  * });
25
- * const thisGateway = new upcloud.Gateway("thisGateway", {
26
+ * const thisGateway = new upcloud.Gateway("this", {
27
+ * name: "gateway-example-gw",
26
28
  * zone: "pl-waw1",
27
29
  * features: ["nat"],
28
30
  * router: {
29
- * id: thisRouter.id,
31
+ * id: _this.id,
30
32
  * },
31
33
  * labels: {
32
34
  * "managed-by": "terraform",
package/gateway.js CHANGED
@@ -15,22 +15,24 @@ const utilities = require("./utilities");
15
15
  * import * as upcloud from "@upcloud/pulumi-upcloud";
16
16
  *
17
17
  * // Create router for the gateway
18
- * const thisRouter = new upcloud.Router("thisRouter", {});
18
+ * const _this = new upcloud.Router("this", {name: "gateway-example-router"});
19
19
  * // Create network for the gateway
20
- * const thisNetwork = new upcloud.Network("thisNetwork", {
20
+ * const thisNetwork = new upcloud.Network("this", {
21
+ * name: "gateway-example-net",
21
22
  * zone: "pl-waw1",
22
23
  * ipNetwork: {
23
24
  * address: "172.16.2.0/24",
24
25
  * dhcp: true,
25
26
  * family: "IPv4",
26
27
  * },
27
- * router: thisRouter.id,
28
+ * router: _this.id,
28
29
  * });
29
- * const thisGateway = new upcloud.Gateway("thisGateway", {
30
+ * const thisGateway = new upcloud.Gateway("this", {
31
+ * name: "gateway-example-gw",
30
32
  * zone: "pl-waw1",
31
33
  * features: ["nat"],
32
34
  * router: {
33
- * id: thisRouter.id,
35
+ * id: _this.id,
34
36
  * },
35
37
  * labels: {
36
38
  * "managed-by": "terraform",
package/gateway.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"gateway.js","sourceRoot":"","sources":["../gateway.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9D,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,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;IA2DD,YAAY,IAAY,EAAE,WAAwC,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C,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC1D;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;;AA9HL,0BA+HC;AAjHG,gBAAgB;AACO,oBAAY,GAAG,+BAA+B,CAAC"}
@@ -8,26 +8,29 @@ import * as outputs from "./types/output";
8
8
  * import * as pulumi from "@pulumi/pulumi";
9
9
  * import * as upcloud from "@upcloud/pulumi-upcloud";
10
10
  *
11
- * const thisRouter = new upcloud.Router("thisRouter", {});
12
- * const thisNetwork = new upcloud.Network("thisNetwork", {
11
+ * const _this = new upcloud.Router("this", {name: "gateway-example-router"});
12
+ * const thisNetwork = new upcloud.Network("this", {
13
+ * name: "gateway-example-net",
13
14
  * zone: "pl-waw1",
14
15
  * ipNetwork: {
15
16
  * address: "172.16.2.0/24",
16
17
  * dhcp: true,
17
18
  * family: "IPv4",
18
19
  * },
19
- * router: thisRouter.id,
20
+ * router: _this.id,
20
21
  * });
21
- * const thisGateway = new upcloud.Gateway("thisGateway", {
22
+ * const thisGateway = new upcloud.Gateway("this", {
23
+ * name: "gateway-example-gw",
22
24
  * zone: "pl-waw1",
23
25
  * features: ["vpn"],
24
26
  * plan: "advanced",
25
27
  * router: {
26
- * id: thisRouter.id,
28
+ * id: _this.id,
27
29
  * },
28
30
  * });
29
- * const thisGatewayConnection = new upcloud.GatewayConnection("thisGatewayConnection", {
31
+ * const thisGatewayConnection = new upcloud.GatewayConnection("this", {
30
32
  * gateway: thisGateway.id,
33
+ * name: "test-connection",
31
34
  * type: "ipsec",
32
35
  * localRoutes: [{
33
36
  * name: "local-route",
@@ -12,26 +12,29 @@ const utilities = require("./utilities");
12
12
  * import * as pulumi from "@pulumi/pulumi";
13
13
  * import * as upcloud from "@upcloud/pulumi-upcloud";
14
14
  *
15
- * const thisRouter = new upcloud.Router("thisRouter", {});
16
- * const thisNetwork = new upcloud.Network("thisNetwork", {
15
+ * const _this = new upcloud.Router("this", {name: "gateway-example-router"});
16
+ * const thisNetwork = new upcloud.Network("this", {
17
+ * name: "gateway-example-net",
17
18
  * zone: "pl-waw1",
18
19
  * ipNetwork: {
19
20
  * address: "172.16.2.0/24",
20
21
  * dhcp: true,
21
22
  * family: "IPv4",
22
23
  * },
23
- * router: thisRouter.id,
24
+ * router: _this.id,
24
25
  * });
25
- * const thisGateway = new upcloud.Gateway("thisGateway", {
26
+ * const thisGateway = new upcloud.Gateway("this", {
27
+ * name: "gateway-example-gw",
26
28
  * zone: "pl-waw1",
27
29
  * features: ["vpn"],
28
30
  * plan: "advanced",
29
31
  * router: {
30
- * id: thisRouter.id,
32
+ * id: _this.id,
31
33
  * },
32
34
  * });
33
- * const thisGatewayConnection = new upcloud.GatewayConnection("thisGatewayConnection", {
35
+ * const thisGatewayConnection = new upcloud.GatewayConnection("this", {
34
36
  * gateway: thisGateway.id,
37
+ * name: "test-connection",
35
38
  * type: "ipsec",
36
39
  * localRoutes: [{
37
40
  * name: "local-route",
@@ -1 +1 @@
1
- {"version":3,"file":"gatewayConnection.js","sourceRoot":"","sources":["../gatewayConnection.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;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,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,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,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;IAwCD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAiD,CAAC;YAChE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,aAAa,CAAC,GAAG,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AC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,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,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AA7FL,8CA8FC;AAhFG,gBAAgB;AACO,8BAAY,GAAG,mDAAmD,CAAC"}
@@ -13,12 +13,14 @@ import * as outputs from "./types/output";
13
13
  *
14
14
  * // Use data source to gather a list of the active sessions for a Managed MySQL Database
15
15
  * // Create a Managed MySQL resource
16
- * const exampleManagedDatabaseMysql = new upcloud.ManagedDatabaseMysql("exampleManagedDatabaseMysql", {
16
+ * const exampleManagedDatabaseMysql = new upcloud.ManagedDatabaseMysql("example", {
17
+ * name: "mysql-example1",
17
18
  * title: "mysql-example1",
18
19
  * plan: "1x1xCPU-2GB-25GB",
19
20
  * zone: "fi-hel1",
20
21
  * });
21
- * const exampleManagedDatabaseMysqlSessions = upcloud.getManagedDatabaseMysqlSessionsOutput({
22
+ * // Read the active sessions of the newly created service
23
+ * const example = upcloud.getManagedDatabaseMysqlSessionsOutput({
22
24
  * service: exampleManagedDatabaseMysql.id,
23
25
  * });
24
26
  * ```
@@ -60,12 +62,14 @@ export interface GetManagedDatabaseMysqlSessionsResult {
60
62
  *
61
63
  * // Use data source to gather a list of the active sessions for a Managed MySQL Database
62
64
  * // Create a Managed MySQL resource
63
- * const exampleManagedDatabaseMysql = new upcloud.ManagedDatabaseMysql("exampleManagedDatabaseMysql", {
65
+ * const exampleManagedDatabaseMysql = new upcloud.ManagedDatabaseMysql("example", {
66
+ * name: "mysql-example1",
64
67
  * title: "mysql-example1",
65
68
  * plan: "1x1xCPU-2GB-25GB",
66
69
  * zone: "fi-hel1",
67
70
  * });
68
- * const exampleManagedDatabaseMysqlSessions = upcloud.getManagedDatabaseMysqlSessionsOutput({
71
+ * // Read the active sessions of the newly created service
72
+ * const example = upcloud.getManagedDatabaseMysqlSessionsOutput({
69
73
  * service: exampleManagedDatabaseMysql.id,
70
74
  * });
71
75
  * ```
@@ -17,12 +17,14 @@ const utilities = require("./utilities");
17
17
  *
18
18
  * // Use data source to gather a list of the active sessions for a Managed MySQL Database
19
19
  * // Create a Managed MySQL resource
20
- * const exampleManagedDatabaseMysql = new upcloud.ManagedDatabaseMysql("exampleManagedDatabaseMysql", {
20
+ * const exampleManagedDatabaseMysql = new upcloud.ManagedDatabaseMysql("example", {
21
+ * name: "mysql-example1",
21
22
  * title: "mysql-example1",
22
23
  * plan: "1x1xCPU-2GB-25GB",
23
24
  * zone: "fi-hel1",
24
25
  * });
25
- * const exampleManagedDatabaseMysqlSessions = upcloud.getManagedDatabaseMysqlSessionsOutput({
26
+ * // Read the active sessions of the newly created service
27
+ * const example = upcloud.getManagedDatabaseMysqlSessionsOutput({
26
28
  * service: exampleManagedDatabaseMysql.id,
27
29
  * });
28
30
  * ```
@@ -50,12 +52,14 @@ exports.getManagedDatabaseMysqlSessions = getManagedDatabaseMysqlSessions;
50
52
  *
51
53
  * // Use data source to gather a list of the active sessions for a Managed MySQL Database
52
54
  * // Create a Managed MySQL resource
53
- * const exampleManagedDatabaseMysql = new upcloud.ManagedDatabaseMysql("exampleManagedDatabaseMysql", {
55
+ * const exampleManagedDatabaseMysql = new upcloud.ManagedDatabaseMysql("example", {
56
+ * name: "mysql-example1",
54
57
  * title: "mysql-example1",
55
58
  * plan: "1x1xCPU-2GB-25GB",
56
59
  * zone: "fi-hel1",
57
60
  * });
58
- * const exampleManagedDatabaseMysqlSessions = upcloud.getManagedDatabaseMysqlSessionsOutput({
61
+ * // Read the active sessions of the newly created service
62
+ * const example = upcloud.getManagedDatabaseMysqlSessionsOutput({
59
63
  * service: exampleManagedDatabaseMysql.id,
60
64
  * });
61
65
  * ```
@@ -1 +1 @@
1
- {"version":3,"file":"getManagedDatabaseMysqlSessions.js","sourceRoot":"","sources":["../getManagedDatabaseMysqlSessions.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,+BAA+B,CAAC,IAAyC,EAAE,IAA2B;IAClH,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,+EAA+E,EAAE;QAC1G,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,0EASC;AA2BD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,qCAAqC,CAAC,IAA+C,EAAE,IAAiC;IACpI,IAAI,GAAG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ACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,+EAA+E,EAAE;QAChH,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,sFASC"}
@@ -13,7 +13,8 @@ import * as outputs from "./types/output";
13
13
  *
14
14
  * // Use data source to gather a list of the indices for a Managed OpenSearch Database
15
15
  * // Create a Managed OpenSearch resource
16
- * const exampleManagedDatabaseOpensearch = new upcloud.ManagedDatabaseOpensearch("exampleManagedDatabaseOpensearch", {
16
+ * const exampleManagedDatabaseOpensearch = new upcloud.ManagedDatabaseOpensearch("example", {
17
+ * name: "opensearch-example",
17
18
  * title: "opensearch-example",
18
19
  * plan: "1x2xCPU-4GB-80GB-1D",
19
20
  * zone: "fi-hel1",
@@ -22,7 +23,8 @@ import * as outputs from "./types/output";
22
23
  * publicAccess: false,
23
24
  * },
24
25
  * });
25
- * const exampleManagedDatabaseOpensearchIndices = upcloud.getManagedDatabaseOpensearchIndicesOutput({
26
+ * // Read the available indices of the newly created service
27
+ * const example = upcloud.getManagedDatabaseOpensearchIndicesOutput({
26
28
  * service: exampleManagedDatabaseOpensearch.id,
27
29
  * });
28
30
  * ```
@@ -58,7 +60,8 @@ export interface GetManagedDatabaseOpensearchIndicesResult {
58
60
  *
59
61
  * // Use data source to gather a list of the indices for a Managed OpenSearch Database
60
62
  * // Create a Managed OpenSearch resource
61
- * const exampleManagedDatabaseOpensearch = new upcloud.ManagedDatabaseOpensearch("exampleManagedDatabaseOpensearch", {
63
+ * const exampleManagedDatabaseOpensearch = new upcloud.ManagedDatabaseOpensearch("example", {
64
+ * name: "opensearch-example",
62
65
  * title: "opensearch-example",
63
66
  * plan: "1x2xCPU-4GB-80GB-1D",
64
67
  * zone: "fi-hel1",
@@ -67,7 +70,8 @@ export interface GetManagedDatabaseOpensearchIndicesResult {
67
70
  * publicAccess: false,
68
71
  * },
69
72
  * });
70
- * const exampleManagedDatabaseOpensearchIndices = upcloud.getManagedDatabaseOpensearchIndicesOutput({
73
+ * // Read the available indices of the newly created service
74
+ * const example = upcloud.getManagedDatabaseOpensearchIndicesOutput({
71
75
  * service: exampleManagedDatabaseOpensearch.id,
72
76
  * });
73
77
  * ```
@@ -17,7 +17,8 @@ const utilities = require("./utilities");
17
17
  *
18
18
  * // Use data source to gather a list of the indices for a Managed OpenSearch Database
19
19
  * // Create a Managed OpenSearch resource
20
- * const exampleManagedDatabaseOpensearch = new upcloud.ManagedDatabaseOpensearch("exampleManagedDatabaseOpensearch", {
20
+ * const exampleManagedDatabaseOpensearch = new upcloud.ManagedDatabaseOpensearch("example", {
21
+ * name: "opensearch-example",
21
22
  * title: "opensearch-example",
22
23
  * plan: "1x2xCPU-4GB-80GB-1D",
23
24
  * zone: "fi-hel1",
@@ -26,7 +27,8 @@ const utilities = require("./utilities");
26
27
  * publicAccess: false,
27
28
  * },
28
29
  * });
29
- * const exampleManagedDatabaseOpensearchIndices = upcloud.getManagedDatabaseOpensearchIndicesOutput({
30
+ * // Read the available indices of the newly created service
31
+ * const example = upcloud.getManagedDatabaseOpensearchIndicesOutput({
30
32
  * service: exampleManagedDatabaseOpensearch.id,
31
33
  * });
32
34
  * ```
@@ -51,7 +53,8 @@ exports.getManagedDatabaseOpensearchIndices = getManagedDatabaseOpensearchIndice
51
53
  *
52
54
  * // Use data source to gather a list of the indices for a Managed OpenSearch Database
53
55
  * // Create a Managed OpenSearch resource
54
- * const exampleManagedDatabaseOpensearch = new upcloud.ManagedDatabaseOpensearch("exampleManagedDatabaseOpensearch", {
56
+ * const exampleManagedDatabaseOpensearch = new upcloud.ManagedDatabaseOpensearch("example", {
57
+ * name: "opensearch-example",
55
58
  * title: "opensearch-example",
56
59
  * plan: "1x2xCPU-4GB-80GB-1D",
57
60
  * zone: "fi-hel1",
@@ -60,7 +63,8 @@ exports.getManagedDatabaseOpensearchIndices = getManagedDatabaseOpensearchIndice
60
63
  * publicAccess: false,
61
64
  * },
62
65
  * });
63
- * const exampleManagedDatabaseOpensearchIndices = upcloud.getManagedDatabaseOpensearchIndicesOutput({
66
+ * // Read the available indices of the newly created service
67
+ * const example = upcloud.getManagedDatabaseOpensearchIndicesOutput({
64
68
  * service: exampleManagedDatabaseOpensearch.id,
65
69
  * });
66
70
  * ```
@@ -1 +1 @@
1
- {"version":3,"file":"getManagedDatabaseOpensearchIndices.js","sourceRoot":"","sources":["../getManagedDatabaseOpensearchIndices.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,SAAgB,mCAAmC,CAAC,IAA6C,EAAE,IAA2B;IAC1H,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uFAAuF,EAAE;QAClH,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kFAMC;AAqBD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,SAAgB,yCAAyC,CAAC,IAAmD,EAAE,IAAiC;IAC5I,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,uFAAuF,EAAE;QACxH,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,8FAMC"}
1
+ {"version":3,"file":"getManagedDatabaseOpensearchIndices.js","sourceRoot":"","sources":["../getManagedDatabaseOpensearchIndices.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,SAAgB,mCAAmC,CAAC,IAA6C,EAAE,IAA2B;IAC1H,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uFAAuF,EAAE;QAClH,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kFAMC;AAqBD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,SAAgB,yCAAyC,CAAC,IAAmD,EAAE,IAAiC;IAC5I,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,uFAAuF,EAAE;QACxH,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,8FAMC"}
@@ -13,12 +13,14 @@ import * as outputs from "./types/output";
13
13
  *
14
14
  * // Use data source to gather a list of the active sessions for a Managed PostgreSQL Database
15
15
  * // Create a Managed PostgreSQL resource
16
- * const exampleManagedDatabasePostgresql = new upcloud.ManagedDatabasePostgresql("exampleManagedDatabasePostgresql", {
16
+ * const exampleManagedDatabasePostgresql = new upcloud.ManagedDatabasePostgresql("example", {
17
+ * name: "mysql-example1",
17
18
  * title: "mysql-example1",
18
19
  * plan: "1x1xCPU-2GB-25GB",
19
20
  * zone: "fi-hel1",
20
21
  * });
21
- * const exampleManagedDatabasePostgresqlSessions = upcloud.getManagedDatabasePostgresqlSessionsOutput({
22
+ * // Read the active sessions of the newly created service
23
+ * const example = upcloud.getManagedDatabasePostgresqlSessionsOutput({
22
24
  * service: exampleManagedDatabasePostgresql.id,
23
25
  * });
24
26
  * ```
@@ -60,12 +62,14 @@ export interface GetManagedDatabasePostgresqlSessionsResult {
60
62
  *
61
63
  * // Use data source to gather a list of the active sessions for a Managed PostgreSQL Database
62
64
  * // Create a Managed PostgreSQL resource
63
- * const exampleManagedDatabasePostgresql = new upcloud.ManagedDatabasePostgresql("exampleManagedDatabasePostgresql", {
65
+ * const exampleManagedDatabasePostgresql = new upcloud.ManagedDatabasePostgresql("example", {
66
+ * name: "mysql-example1",
64
67
  * title: "mysql-example1",
65
68
  * plan: "1x1xCPU-2GB-25GB",
66
69
  * zone: "fi-hel1",
67
70
  * });
68
- * const exampleManagedDatabasePostgresqlSessions = upcloud.getManagedDatabasePostgresqlSessionsOutput({
71
+ * // Read the active sessions of the newly created service
72
+ * const example = upcloud.getManagedDatabasePostgresqlSessionsOutput({
69
73
  * service: exampleManagedDatabasePostgresql.id,
70
74
  * });
71
75
  * ```
@@ -17,12 +17,14 @@ const utilities = require("./utilities");
17
17
  *
18
18
  * // Use data source to gather a list of the active sessions for a Managed PostgreSQL Database
19
19
  * // Create a Managed PostgreSQL resource
20
- * const exampleManagedDatabasePostgresql = new upcloud.ManagedDatabasePostgresql("exampleManagedDatabasePostgresql", {
20
+ * const exampleManagedDatabasePostgresql = new upcloud.ManagedDatabasePostgresql("example", {
21
+ * name: "mysql-example1",
21
22
  * title: "mysql-example1",
22
23
  * plan: "1x1xCPU-2GB-25GB",
23
24
  * zone: "fi-hel1",
24
25
  * });
25
- * const exampleManagedDatabasePostgresqlSessions = upcloud.getManagedDatabasePostgresqlSessionsOutput({
26
+ * // Read the active sessions of the newly created service
27
+ * const example = upcloud.getManagedDatabasePostgresqlSessionsOutput({
26
28
  * service: exampleManagedDatabasePostgresql.id,
27
29
  * });
28
30
  * ```
@@ -50,12 +52,14 @@ exports.getManagedDatabasePostgresqlSessions = getManagedDatabasePostgresqlSessi
50
52
  *
51
53
  * // Use data source to gather a list of the active sessions for a Managed PostgreSQL Database
52
54
  * // Create a Managed PostgreSQL resource
53
- * const exampleManagedDatabasePostgresql = new upcloud.ManagedDatabasePostgresql("exampleManagedDatabasePostgresql", {
55
+ * const exampleManagedDatabasePostgresql = new upcloud.ManagedDatabasePostgresql("example", {
56
+ * name: "mysql-example1",
54
57
  * title: "mysql-example1",
55
58
  * plan: "1x1xCPU-2GB-25GB",
56
59
  * zone: "fi-hel1",
57
60
  * });
58
- * const exampleManagedDatabasePostgresqlSessions = upcloud.getManagedDatabasePostgresqlSessionsOutput({
61
+ * // Read the active sessions of the newly created service
62
+ * const example = upcloud.getManagedDatabasePostgresqlSessionsOutput({
59
63
  * service: exampleManagedDatabasePostgresql.id,
60
64
  * });
61
65
  * ```
@@ -1 +1 @@
1
- {"version":3,"file":"getManagedDatabasePostgresqlSessions.js","sourceRoot":"","sources":["../getManagedDatabasePostgresqlSessions.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,oCAAoC,CAAC,IAA8C,EAAE,IAA2B;IAC5H,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yFAAyF,EAAE;QACpH,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,SAAS,EAAE,IAAI,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AAC;AATD,oFASC;AA2BD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,0CAA0C,CAAC,IAAoD,EAAE,IAAiC;IAC9I,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,yFAAyF,EAAE;QAC1H,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,gGASC"}
@@ -15,12 +15,14 @@ import * as outputs from "./types/output";
15
15
  *
16
16
  * // Use data source to gather a list of the active sessions for a Managed Redis Database
17
17
  * // Create a Managed Redis resource
18
- * const exampleManagedDatabaseRedis = new upcloud.ManagedDatabaseRedis("exampleManagedDatabaseRedis", {
18
+ * const exampleManagedDatabaseRedis = new upcloud.ManagedDatabaseRedis("example", {
19
+ * name: "example",
19
20
  * title: "example",
20
21
  * plan: "1x1xCPU-2GB",
21
22
  * zone: "fi-hel2",
22
23
  * });
23
- * const exampleManagedDatabaseRedisSessions = upcloud.getManagedDatabaseRedisSessionsOutput({
24
+ * // Read the active sessions of the newly created service
25
+ * const example = upcloud.getManagedDatabaseRedisSessionsOutput({
24
26
  * service: exampleManagedDatabaseRedis.id,
25
27
  * });
26
28
  * ```
@@ -64,12 +66,14 @@ export interface GetManagedDatabaseRedisSessionsResult {
64
66
  *
65
67
  * // Use data source to gather a list of the active sessions for a Managed Redis Database
66
68
  * // Create a Managed Redis resource
67
- * const exampleManagedDatabaseRedis = new upcloud.ManagedDatabaseRedis("exampleManagedDatabaseRedis", {
69
+ * const exampleManagedDatabaseRedis = new upcloud.ManagedDatabaseRedis("example", {
70
+ * name: "example",
68
71
  * title: "example",
69
72
  * plan: "1x1xCPU-2GB",
70
73
  * zone: "fi-hel2",
71
74
  * });
72
- * const exampleManagedDatabaseRedisSessions = upcloud.getManagedDatabaseRedisSessionsOutput({
75
+ * // Read the active sessions of the newly created service
76
+ * const example = upcloud.getManagedDatabaseRedisSessionsOutput({
73
77
  * service: exampleManagedDatabaseRedis.id,
74
78
  * });
75
79
  * ```
@@ -19,12 +19,14 @@ const utilities = require("./utilities");
19
19
  *
20
20
  * // Use data source to gather a list of the active sessions for a Managed Redis Database
21
21
  * // Create a Managed Redis resource
22
- * const exampleManagedDatabaseRedis = new upcloud.ManagedDatabaseRedis("exampleManagedDatabaseRedis", {
22
+ * const exampleManagedDatabaseRedis = new upcloud.ManagedDatabaseRedis("example", {
23
+ * name: "example",
23
24
  * title: "example",
24
25
  * plan: "1x1xCPU-2GB",
25
26
  * zone: "fi-hel2",
26
27
  * });
27
- * const exampleManagedDatabaseRedisSessions = upcloud.getManagedDatabaseRedisSessionsOutput({
28
+ * // Read the active sessions of the newly created service
29
+ * const example = upcloud.getManagedDatabaseRedisSessionsOutput({
28
30
  * service: exampleManagedDatabaseRedis.id,
29
31
  * });
30
32
  * ```
@@ -54,12 +56,14 @@ exports.getManagedDatabaseRedisSessions = getManagedDatabaseRedisSessions;
54
56
  *
55
57
  * // Use data source to gather a list of the active sessions for a Managed Redis Database
56
58
  * // Create a Managed Redis resource
57
- * const exampleManagedDatabaseRedis = new upcloud.ManagedDatabaseRedis("exampleManagedDatabaseRedis", {
59
+ * const exampleManagedDatabaseRedis = new upcloud.ManagedDatabaseRedis("example", {
60
+ * name: "example",
58
61
  * title: "example",
59
62
  * plan: "1x1xCPU-2GB",
60
63
  * zone: "fi-hel2",
61
64
  * });
62
- * const exampleManagedDatabaseRedisSessions = upcloud.getManagedDatabaseRedisSessionsOutput({
65
+ * // Read the active sessions of the newly created service
66
+ * const example = upcloud.getManagedDatabaseRedisSessionsOutput({
63
67
  * service: exampleManagedDatabaseRedis.id,
64
68
  * });
65
69
  * ```