@pulumiverse/scaleway 1.17.0 → 1.18.0-alpha.1730280133

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 (106) hide show
  1. package/accountProject.d.ts +8 -8
  2. package/accountProject.js +1 -1
  3. package/accountSshKey.d.ts +4 -2
  4. package/accountSshKey.js +4 -2
  5. package/accountSshKey.js.map +1 -1
  6. package/container.d.ts +65 -71
  7. package/container.js +17 -17
  8. package/container.js.map +1 -1
  9. package/containerCron.d.ts +19 -35
  10. package/containerCron.js +5 -12
  11. package/containerCron.js.map +1 -1
  12. package/containerDomain.d.ts +14 -11
  13. package/containerDomain.js +6 -3
  14. package/containerDomain.js.map +1 -1
  15. package/containerNamespace.d.ts +19 -19
  16. package/containerNamespace.js +5 -5
  17. package/containerToken.d.ts +16 -17
  18. package/containerToken.js +4 -5
  19. package/containerToken.js.map +1 -1
  20. package/containerTrigger.d.ts +20 -19
  21. package/containerTrigger.js +5 -4
  22. package/containerTrigger.js.map +1 -1
  23. package/function.d.ts +50 -73
  24. package/function.js +1 -24
  25. package/function.js.map +1 -1
  26. package/functionCron.d.ts +19 -27
  27. package/functionCron.js +5 -7
  28. package/functionCron.js.map +1 -1
  29. package/functionDomain.d.ts +25 -21
  30. package/functionDomain.js +5 -4
  31. package/functionDomain.js.map +1 -1
  32. package/functionNamespace.d.ts +22 -22
  33. package/functionNamespace.js +5 -5
  34. package/functionToken.d.ts +16 -17
  35. package/functionToken.js +4 -5
  36. package/functionToken.js.map +1 -1
  37. package/functionTrigger.d.ts +20 -19
  38. package/functionTrigger.js +5 -4
  39. package/functionTrigger.js.map +1 -1
  40. package/getAccountProject.d.ts +14 -8
  41. package/getAccountProject.js +6 -2
  42. package/getAccountProject.js.map +1 -1
  43. package/getAccountSshKey.d.ts +14 -10
  44. package/getAccountSshKey.js +6 -2
  45. package/getAccountSshKey.js.map +1 -1
  46. package/getAvailabilityZones.d.ts +17 -9
  47. package/getAvailabilityZones.js +14 -6
  48. package/getAvailabilityZones.js.map +1 -1
  49. package/getContainer.d.ts +50 -42
  50. package/getContainer.js +40 -10
  51. package/getContainer.js.map +1 -1
  52. package/getContainerNamespace.d.ts +26 -16
  53. package/getContainerNamespace.js +18 -4
  54. package/getContainerNamespace.js.map +1 -1
  55. package/getFunction.d.ts +20 -12
  56. package/getFunction.js +10 -2
  57. package/getFunction.js.map +1 -1
  58. package/getFunctionNamespace.d.ts +14 -14
  59. package/getFunctionNamespace.js +6 -2
  60. package/getFunctionNamespace.js.map +1 -1
  61. package/getObjectBucket.d.ts +22 -10
  62. package/getObjectBucket.js +20 -8
  63. package/getObjectBucket.js.map +1 -1
  64. package/getObjectBucketPolicy.d.ts +15 -9
  65. package/getObjectBucketPolicy.js +12 -6
  66. package/getObjectBucketPolicy.js.map +1 -1
  67. package/getTemDomain.d.ts +1 -0
  68. package/getTemDomain.js.map +1 -1
  69. package/index.d.ts +3 -0
  70. package/index.js +6 -1
  71. package/index.js.map +1 -1
  72. package/instanceServer.d.ts +17 -0
  73. package/instanceServer.js +17 -0
  74. package/instanceServer.js.map +1 -1
  75. package/objectBucket.d.ts +30 -39
  76. package/objectBucket.js +7 -4
  77. package/objectBucket.js.map +1 -1
  78. package/objectBucketAcl.d.ts +10 -8
  79. package/objectBucketAcl.js +7 -5
  80. package/objectBucketAcl.js.map +1 -1
  81. package/objectBucketLockConfiguration.d.ts +10 -9
  82. package/objectBucketLockConfiguration.js +7 -6
  83. package/objectBucketLockConfiguration.js.map +1 -1
  84. package/objectBucketPolicy.d.ts +5 -4
  85. package/objectBucketPolicy.js +5 -4
  86. package/objectBucketPolicy.js.map +1 -1
  87. package/objectBucketWebsiteConfiguration.d.ts +11 -10
  88. package/objectBucketWebsiteConfiguration.js +5 -4
  89. package/objectBucketWebsiteConfiguration.js.map +1 -1
  90. package/objectItem.d.ts +34 -27
  91. package/objectItem.js +4 -3
  92. package/objectItem.js.map +1 -1
  93. package/package.json +2 -2
  94. package/sdbDatabase.d.ts +12 -10
  95. package/sdbDatabase.js +4 -2
  96. package/sdbDatabase.js.map +1 -1
  97. package/temDomain.d.ts +27 -0
  98. package/temDomain.js +17 -0
  99. package/temDomain.js.map +1 -1
  100. package/types/input.d.ts +42 -36
  101. package/types/output.d.ts +47 -37
  102. package/vpcPrivateNetwork.d.ts +1 -1
  103. package/vpcPrivateNetwork.js +1 -1
  104. package/vpcRoute.d.ts +187 -0
  105. package/vpcRoute.js +119 -0
  106. package/vpcRoute.js.map +1 -0
package/functionCron.d.ts CHANGED
@@ -1,15 +1,13 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * Creates and manages Scaleway Function Triggers. For the moment, the feature is limited to CRON Schedule (time-based).
3
+ * The `scaleway.FunctionCron` resource allows you to create and manage CRON triggers for Scaleway [Serverless Functions](https://www.scaleway.com/en/docs/serverless/functions/).
4
4
  *
5
- * For more details about the limitation
6
- * check [functions-limitations](https://www.scaleway.com/en/docs/compute/functions/reference-content/functions-limitations/).
7
- *
8
- * You can check also
9
- * our [functions cron api documentation](https://www.scaleway.com/en/developers/api/serverless-functions/#crons-942bf4).
5
+ * Refer to the Functions CRON triggers [documentation](https://www.scaleway.com/en/docs/serverless/functions/how-to/add-trigger-to-a-function/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-functions/#path-triggers-list-all-triggers) for more information.
10
6
  *
11
7
  * ## Example Usage
12
8
  *
9
+ * The following command allows you to add a CRON trigger to a Serverless Function.
10
+ *
13
11
  * ```typescript
14
12
  * import * as pulumi from "@pulumi/pulumi";
15
13
  * import * as scaleway from "@pulumiverse/scaleway";
@@ -41,7 +39,7 @@ import * as pulumi from "@pulumi/pulumi";
41
39
  *
42
40
  * ## Import
43
41
  *
44
- * Container Cron can be imported using the `{region}/{id}`, e.g.
42
+ * Function Cron can be imported using `{region}/{id}`, as shown below:
45
43
  *
46
44
  * bash
47
45
  *
@@ -67,29 +65,27 @@ export declare class FunctionCron extends pulumi.CustomResource {
67
65
  static isInstance(obj: any): obj is FunctionCron;
68
66
  /**
69
67
  * The key-value mapping to define arguments that will be passed to your function’s event object
70
- * during
71
68
  */
72
69
  readonly args: pulumi.Output<string>;
73
70
  /**
74
- * The function ID to link with your cron.
71
+ * The unique identifier of the function to link to your CRON trigger.
75
72
  */
76
73
  readonly functionId: pulumi.Output<string>;
77
74
  /**
78
- * The name of the cron. If not provided, the name is generated.
75
+ * The name of the function CRON trigger. If not provided, a random name is generated.
79
76
  */
80
77
  readonly name: pulumi.Output<string>;
81
78
  /**
82
79
  * `region`) The region
83
- * in where the job was created.
80
+ * in which the function was created.
84
81
  */
85
82
  readonly region: pulumi.Output<string>;
86
83
  /**
87
- * Cron format string, e.g. @hourly, as schedule time of its jobs to be created and
88
- * executed.
84
+ * CRON format string (refer to the [CRON schedule reference](https://www.scaleway.com/en/docs/serverless/functions/reference-content/cron-schedules/) for more information).
89
85
  */
90
86
  readonly schedule: pulumi.Output<string>;
91
87
  /**
92
- * The cron status.
88
+ * The CRON status.
93
89
  */
94
90
  readonly status: pulumi.Output<string>;
95
91
  /**
@@ -107,29 +103,27 @@ export declare class FunctionCron extends pulumi.CustomResource {
107
103
  export interface FunctionCronState {
108
104
  /**
109
105
  * The key-value mapping to define arguments that will be passed to your function’s event object
110
- * during
111
106
  */
112
107
  args?: pulumi.Input<string>;
113
108
  /**
114
- * The function ID to link with your cron.
109
+ * The unique identifier of the function to link to your CRON trigger.
115
110
  */
116
111
  functionId?: pulumi.Input<string>;
117
112
  /**
118
- * The name of the cron. If not provided, the name is generated.
113
+ * The name of the function CRON trigger. If not provided, a random name is generated.
119
114
  */
120
115
  name?: pulumi.Input<string>;
121
116
  /**
122
117
  * `region`) The region
123
- * in where the job was created.
118
+ * in which the function was created.
124
119
  */
125
120
  region?: pulumi.Input<string>;
126
121
  /**
127
- * Cron format string, e.g. @hourly, as schedule time of its jobs to be created and
128
- * executed.
122
+ * CRON format string (refer to the [CRON schedule reference](https://www.scaleway.com/en/docs/serverless/functions/reference-content/cron-schedules/) for more information).
129
123
  */
130
124
  schedule?: pulumi.Input<string>;
131
125
  /**
132
- * The cron status.
126
+ * The CRON status.
133
127
  */
134
128
  status?: pulumi.Input<string>;
135
129
  }
@@ -139,25 +133,23 @@ export interface FunctionCronState {
139
133
  export interface FunctionCronArgs {
140
134
  /**
141
135
  * The key-value mapping to define arguments that will be passed to your function’s event object
142
- * during
143
136
  */
144
137
  args: pulumi.Input<string>;
145
138
  /**
146
- * The function ID to link with your cron.
139
+ * The unique identifier of the function to link to your CRON trigger.
147
140
  */
148
141
  functionId: pulumi.Input<string>;
149
142
  /**
150
- * The name of the cron. If not provided, the name is generated.
143
+ * The name of the function CRON trigger. If not provided, a random name is generated.
151
144
  */
152
145
  name?: pulumi.Input<string>;
153
146
  /**
154
147
  * `region`) The region
155
- * in where the job was created.
148
+ * in which the function was created.
156
149
  */
157
150
  region?: pulumi.Input<string>;
158
151
  /**
159
- * Cron format string, e.g. @hourly, as schedule time of its jobs to be created and
160
- * executed.
152
+ * CRON format string (refer to the [CRON schedule reference](https://www.scaleway.com/en/docs/serverless/functions/reference-content/cron-schedules/) for more information).
161
153
  */
162
154
  schedule: pulumi.Input<string>;
163
155
  }
package/functionCron.js CHANGED
@@ -6,16 +6,14 @@ exports.FunctionCron = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * Creates and manages Scaleway Function Triggers. For the moment, the feature is limited to CRON Schedule (time-based).
9
+ * The `scaleway.FunctionCron` resource allows you to create and manage CRON triggers for Scaleway [Serverless Functions](https://www.scaleway.com/en/docs/serverless/functions/).
10
10
  *
11
- * For more details about the limitation
12
- * check [functions-limitations](https://www.scaleway.com/en/docs/compute/functions/reference-content/functions-limitations/).
13
- *
14
- * You can check also
15
- * our [functions cron api documentation](https://www.scaleway.com/en/developers/api/serverless-functions/#crons-942bf4).
11
+ * Refer to the Functions CRON triggers [documentation](https://www.scaleway.com/en/docs/serverless/functions/how-to/add-trigger-to-a-function/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-functions/#path-triggers-list-all-triggers) for more information.
16
12
  *
17
13
  * ## Example Usage
18
14
  *
15
+ * The following command allows you to add a CRON trigger to a Serverless Function.
16
+ *
19
17
  * ```typescript
20
18
  * import * as pulumi from "@pulumi/pulumi";
21
19
  * import * as scaleway from "@pulumiverse/scaleway";
@@ -47,7 +45,7 @@ const utilities = require("./utilities");
47
45
  *
48
46
  * ## Import
49
47
  *
50
- * Container Cron can be imported using the `{region}/{id}`, e.g.
48
+ * Function Cron can be imported using `{region}/{id}`, as shown below:
51
49
  *
52
50
  * bash
53
51
  *
@@ -1 +1 @@
1
- {"version":3,"file":"functionCron.js","sourceRoot":"","sources":["../functionCron.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,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,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;IAsCD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,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AAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AA7FL,oCA8FC;AAhFG,gBAAgB;AACO,yBAAY,GAAG,0CAA0C,CAAC"}
@@ -1,11 +1,12 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * Creates and manages Scaleway Function Domain bindings.
4
- * For more information see [the documentation](https://www.scaleway.com/en/developers/api/serverless-functions).
3
+ * The `scaleway.FunctionDomain` resource allows you to create and manage domain name bindings for Scaleway [Serverless Functions](https://www.scaleway.com/en/docs/serverless/functions/).
4
+ *
5
+ * Refer to the Functions domain [documentation](https://www.scaleway.com/en/docs/serverless/functions/how-to/add-a-custom-domain-name-to-a-function/) and the [API documentation](https://www.scaleway.com/en/developers/api/serverless-functions/#path-domains-list-all-domain-name-bindings) for more information.
5
6
  *
6
7
  * ## Example Usage
7
8
  *
8
- * ### Basic
9
+ * This command allows to bind a custom domain name to a function.
9
10
  *
10
11
  * ```typescript
11
12
  * import * as pulumi from "@pulumi/pulumi";
@@ -30,7 +31,7 @@ import * as pulumi from "@pulumi/pulumi";
30
31
  *
31
32
  * ## Import
32
33
  *
33
- * Domain can be imported using the `{region}/{id}`, e.g.
34
+ * Function domain binding can be imported using `{region}/{id}`, as shown below:
34
35
  *
35
36
  * bash
36
37
  *
@@ -55,22 +56,23 @@ export declare class FunctionDomain extends pulumi.CustomResource {
55
56
  */
56
57
  static isInstance(obj: any): obj is FunctionDomain;
57
58
  /**
58
- * The ID of the function you want to create a domain with.
59
+ * The unique identifier of the function.
59
60
  */
60
61
  readonly functionId: pulumi.Output<string>;
61
62
  /**
62
- * The hostname that should resolve to your function id native domain.
63
- * You should use a CNAME domain record that point to your native function `domainName` for it.
63
+ * The hostname with a CNAME record.
64
+ *
65
+ * We recommend you use a CNAME domain record that point to your native function `domainName` for it.
64
66
  *
65
- * > **Important** Updates to `functionId` or `hostname` will recreate the domain.
67
+ * > **Important** Updating the `functionId` or `hostname` arguments will recreate the domain.
66
68
  */
67
69
  readonly hostname: pulumi.Output<string>;
68
70
  /**
69
- * (Defaults to provider `region`) The region in where the domain was created.
71
+ * (Defaults to provider `region`) The region in which the domain was created.
70
72
  */
71
73
  readonly region: pulumi.Output<string>;
72
74
  /**
73
- * The URL that triggers the function
75
+ * The URL used to query the function.
74
76
  */
75
77
  readonly url: pulumi.Output<string>;
76
78
  /**
@@ -87,22 +89,23 @@ export declare class FunctionDomain extends pulumi.CustomResource {
87
89
  */
88
90
  export interface FunctionDomainState {
89
91
  /**
90
- * The ID of the function you want to create a domain with.
92
+ * The unique identifier of the function.
91
93
  */
92
94
  functionId?: pulumi.Input<string>;
93
95
  /**
94
- * The hostname that should resolve to your function id native domain.
95
- * You should use a CNAME domain record that point to your native function `domainName` for it.
96
+ * The hostname with a CNAME record.
96
97
  *
97
- * > **Important** Updates to `functionId` or `hostname` will recreate the domain.
98
+ * We recommend you use a CNAME domain record that point to your native function `domainName` for it.
99
+ *
100
+ * > **Important** Updating the `functionId` or `hostname` arguments will recreate the domain.
98
101
  */
99
102
  hostname?: pulumi.Input<string>;
100
103
  /**
101
- * (Defaults to provider `region`) The region in where the domain was created.
104
+ * (Defaults to provider `region`) The region in which the domain was created.
102
105
  */
103
106
  region?: pulumi.Input<string>;
104
107
  /**
105
- * The URL that triggers the function
108
+ * The URL used to query the function.
106
109
  */
107
110
  url?: pulumi.Input<string>;
108
111
  }
@@ -111,18 +114,19 @@ export interface FunctionDomainState {
111
114
  */
112
115
  export interface FunctionDomainArgs {
113
116
  /**
114
- * The ID of the function you want to create a domain with.
117
+ * The unique identifier of the function.
115
118
  */
116
119
  functionId: pulumi.Input<string>;
117
120
  /**
118
- * The hostname that should resolve to your function id native domain.
119
- * You should use a CNAME domain record that point to your native function `domainName` for it.
121
+ * The hostname with a CNAME record.
122
+ *
123
+ * We recommend you use a CNAME domain record that point to your native function `domainName` for it.
120
124
  *
121
- * > **Important** Updates to `functionId` or `hostname` will recreate the domain.
125
+ * > **Important** Updating the `functionId` or `hostname` arguments will recreate the domain.
122
126
  */
123
127
  hostname: pulumi.Input<string>;
124
128
  /**
125
- * (Defaults to provider `region`) The region in where the domain was created.
129
+ * (Defaults to provider `region`) The region in which the domain was created.
126
130
  */
127
131
  region?: pulumi.Input<string>;
128
132
  }
package/functionDomain.js CHANGED
@@ -6,12 +6,13 @@ exports.FunctionDomain = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * Creates and manages Scaleway Function Domain bindings.
10
- * For more information see [the documentation](https://www.scaleway.com/en/developers/api/serverless-functions).
9
+ * The `scaleway.FunctionDomain` resource allows you to create and manage domain name bindings for Scaleway [Serverless Functions](https://www.scaleway.com/en/docs/serverless/functions/).
10
+ *
11
+ * Refer to the Functions domain [documentation](https://www.scaleway.com/en/docs/serverless/functions/how-to/add-a-custom-domain-name-to-a-function/) and the [API documentation](https://www.scaleway.com/en/developers/api/serverless-functions/#path-domains-list-all-domain-name-bindings) for more information.
11
12
  *
12
13
  * ## Example Usage
13
14
  *
14
- * ### Basic
15
+ * This command allows to bind a custom domain name to a function.
15
16
  *
16
17
  * ```typescript
17
18
  * import * as pulumi from "@pulumi/pulumi";
@@ -36,7 +37,7 @@ const utilities = require("./utilities");
36
37
  *
37
38
  * ## Import
38
39
  *
39
- * Domain can be imported using the `{region}/{id}`, e.g.
40
+ * Function domain binding can be imported using `{region}/{id}`, as shown below:
40
41
  *
41
42
  * bash
42
43
  *
@@ -1 +1 @@
1
- {"version":3,"file":"functionDomain.js","sourceRoot":"","sources":["../functionDomain.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EA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,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAjFL,wCAkFC;AApEG,gBAAgB;AACO,2BAAY,GAAG,8CAA8C,CAAC"}
@@ -1,11 +1,11 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * Creates and manages Scaleway Function Namespace.
4
- * For more information see [the documentation](https://www.scaleway.com/en/developers/api/serverless-functions/).
3
+ * The `scaleway.FunctionNamespace` resource allows you to
4
+ * for Scaleway [Serverless Functions](https://www.scaleway.com/en/docs/serverless/functions/).
5
5
  *
6
- * ## Example Usage
6
+ * Refer to the Functions namespace [documentation](https://www.scaleway.com/en/docs/serverless/functions/how-to/create-a-functions-namespace/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-functions/#path-namespaces-list-all-your-namespaces) for more information.
7
7
  *
8
- * ### Basic
8
+ * ## Example Usage
9
9
  *
10
10
  * ```typescript
11
11
  * import * as pulumi from "@pulumi/pulumi";
@@ -19,7 +19,7 @@ import * as pulumi from "@pulumi/pulumi";
19
19
  *
20
20
  * ## Import
21
21
  *
22
- * Namespaces can be imported using the `{region}/{id}`, e.g.
22
+ * Functions namespaces can be imported using `{region}/{id}`, as shown below:
23
23
  *
24
24
  * bash
25
25
  *
@@ -54,21 +54,21 @@ export declare class FunctionNamespace extends pulumi.CustomResource {
54
54
  [key: string]: string;
55
55
  } | undefined>;
56
56
  /**
57
- * The unique name of the function namespace.
57
+ * The unique name of the Functions namespace.
58
58
  *
59
- * > **Important** Updates to `name` will recreate the namespace.
59
+ * > **Important** Updates to the `name` argument will recreate the namespace.
60
60
  */
61
61
  readonly name: pulumi.Output<string>;
62
62
  /**
63
- * The organization ID the namespace is associated with.
63
+ * The Organization ID with which the namespace is associated.
64
64
  */
65
65
  readonly organizationId: pulumi.Output<string>;
66
66
  /**
67
- * `projectId`) The ID of the project the namespace is associated with.
67
+ * `projectId`) The unique identifier of the project that contains the namespace.
68
68
  */
69
69
  readonly projectId: pulumi.Output<string>;
70
70
  /**
71
- * `region`). The region in which the namespace should be created.
71
+ * `region`). The region in which the namespace is created.
72
72
  */
73
73
  readonly region: pulumi.Output<string>;
74
74
  /**
@@ -80,7 +80,7 @@ export declare class FunctionNamespace extends pulumi.CustomResource {
80
80
  */
81
81
  readonly registryNamespaceId: pulumi.Output<string>;
82
82
  /**
83
- * The [secret environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets) variables of the namespace.
83
+ * The secret environment variables of the namespace.
84
84
  */
85
85
  readonly secretEnvironmentVariables: pulumi.Output<{
86
86
  [key: string]: string;
@@ -109,21 +109,21 @@ export interface FunctionNamespaceState {
109
109
  [key: string]: pulumi.Input<string>;
110
110
  }>;
111
111
  /**
112
- * The unique name of the function namespace.
112
+ * The unique name of the Functions namespace.
113
113
  *
114
- * > **Important** Updates to `name` will recreate the namespace.
114
+ * > **Important** Updates to the `name` argument will recreate the namespace.
115
115
  */
116
116
  name?: pulumi.Input<string>;
117
117
  /**
118
- * The organization ID the namespace is associated with.
118
+ * The Organization ID with which the namespace is associated.
119
119
  */
120
120
  organizationId?: pulumi.Input<string>;
121
121
  /**
122
- * `projectId`) The ID of the project the namespace is associated with.
122
+ * `projectId`) The unique identifier of the project that contains the namespace.
123
123
  */
124
124
  projectId?: pulumi.Input<string>;
125
125
  /**
126
- * `region`). The region in which the namespace should be created.
126
+ * `region`). The region in which the namespace is created.
127
127
  */
128
128
  region?: pulumi.Input<string>;
129
129
  /**
@@ -135,7 +135,7 @@ export interface FunctionNamespaceState {
135
135
  */
136
136
  registryNamespaceId?: pulumi.Input<string>;
137
137
  /**
138
- * The [secret environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets) variables of the namespace.
138
+ * The secret environment variables of the namespace.
139
139
  */
140
140
  secretEnvironmentVariables?: pulumi.Input<{
141
141
  [key: string]: pulumi.Input<string>;
@@ -156,21 +156,21 @@ export interface FunctionNamespaceArgs {
156
156
  [key: string]: pulumi.Input<string>;
157
157
  }>;
158
158
  /**
159
- * The unique name of the function namespace.
159
+ * The unique name of the Functions namespace.
160
160
  *
161
- * > **Important** Updates to `name` will recreate the namespace.
161
+ * > **Important** Updates to the `name` argument will recreate the namespace.
162
162
  */
163
163
  name?: pulumi.Input<string>;
164
164
  /**
165
- * `projectId`) The ID of the project the namespace is associated with.
165
+ * `projectId`) The unique identifier of the project that contains the namespace.
166
166
  */
167
167
  projectId?: pulumi.Input<string>;
168
168
  /**
169
- * `region`). The region in which the namespace should be created.
169
+ * `region`). The region in which the namespace is created.
170
170
  */
171
171
  region?: pulumi.Input<string>;
172
172
  /**
173
- * The [secret environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets) variables of the namespace.
173
+ * The secret environment variables of the namespace.
174
174
  */
175
175
  secretEnvironmentVariables?: pulumi.Input<{
176
176
  [key: string]: pulumi.Input<string>;
@@ -6,12 +6,12 @@ exports.FunctionNamespace = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * Creates and manages Scaleway Function Namespace.
10
- * For more information see [the documentation](https://www.scaleway.com/en/developers/api/serverless-functions/).
9
+ * The `scaleway.FunctionNamespace` resource allows you to
10
+ * for Scaleway [Serverless Functions](https://www.scaleway.com/en/docs/serverless/functions/).
11
11
  *
12
- * ## Example Usage
12
+ * Refer to the Functions namespace [documentation](https://www.scaleway.com/en/docs/serverless/functions/how-to/create-a-functions-namespace/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-functions/#path-namespaces-list-all-your-namespaces) for more information.
13
13
  *
14
- * ### Basic
14
+ * ## Example Usage
15
15
  *
16
16
  * ```typescript
17
17
  * import * as pulumi from "@pulumi/pulumi";
@@ -25,7 +25,7 @@ const utilities = require("./utilities");
25
25
  *
26
26
  * ## Import
27
27
  *
28
- * Namespaces can be imported using the `{region}/{id}`, e.g.
28
+ * Functions namespaces can be imported using `{region}/{id}`, as shown below:
29
29
  *
30
30
  * bash
31
31
  *
@@ -1,11 +1,10 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * Creates and manages Scaleway Function Token.
4
- * For more information see [the documentation](https://www.scaleway.com/en/developers/api/serverless-functions/#tokens-26b085).
3
+ * The `scaleway.FunctionToken` resource allows you to create and manage authentication tokens for Scaleway [Serverless Functions](https://www.scaleway.com/en/docs/serverless/functions/).
5
4
  *
6
- * ## Example Usage
5
+ * Refer to the Functions tokens [documentation](https://www.scaleway.com/en/docs/serverless/functions/how-to/create-auth-token-from-console/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-functions/#path-tokens-list-all-tokens) for more information.
7
6
  *
8
- * ### Basic
7
+ * ## Example Usage
9
8
  *
10
9
  * ```typescript
11
10
  * import * as pulumi from "@pulumi/pulumi";
@@ -29,7 +28,7 @@ import * as pulumi from "@pulumi/pulumi";
29
28
  *
30
29
  * ## Import
31
30
  *
32
- * Tokens can be imported using the `{region}/{id}`, e.g.
31
+ * Tokens can be imported using `{region}/{id}`, as shown below:
33
32
  *
34
33
  * bash
35
34
  *
@@ -62,19 +61,19 @@ export declare class FunctionToken extends pulumi.CustomResource {
62
61
  */
63
62
  readonly expiresAt: pulumi.Output<string | undefined>;
64
63
  /**
65
- * The ID of the function.
64
+ * The unique identifier of the function.
66
65
  *
67
66
  * > Only one of `namespaceId` or `functionId` must be set.
68
67
  */
69
68
  readonly functionId: pulumi.Output<string | undefined>;
70
69
  /**
71
- * The ID of the function namespace.
70
+ * The unique identifier of the Functions namespace.
72
71
  */
73
72
  readonly namespaceId: pulumi.Output<string | undefined>;
74
73
  /**
75
- * `region`). The region in which the namespace should be created.
74
+ * `region`). The region in which the namespace is created.
76
75
  *
77
- * > **Important** Updates to any fields will recreate the token.
76
+ * > **Important** Updating any of the arguments above will recreate the token.
78
77
  */
79
78
  readonly region: pulumi.Output<string>;
80
79
  /**
@@ -103,19 +102,19 @@ export interface FunctionTokenState {
103
102
  */
104
103
  expiresAt?: pulumi.Input<string>;
105
104
  /**
106
- * The ID of the function.
105
+ * The unique identifier of the function.
107
106
  *
108
107
  * > Only one of `namespaceId` or `functionId` must be set.
109
108
  */
110
109
  functionId?: pulumi.Input<string>;
111
110
  /**
112
- * The ID of the function namespace.
111
+ * The unique identifier of the Functions namespace.
113
112
  */
114
113
  namespaceId?: pulumi.Input<string>;
115
114
  /**
116
- * `region`). The region in which the namespace should be created.
115
+ * `region`). The region in which the namespace is created.
117
116
  *
118
- * > **Important** Updates to any fields will recreate the token.
117
+ * > **Important** Updating any of the arguments above will recreate the token.
119
118
  */
120
119
  region?: pulumi.Input<string>;
121
120
  /**
@@ -136,19 +135,19 @@ export interface FunctionTokenArgs {
136
135
  */
137
136
  expiresAt?: pulumi.Input<string>;
138
137
  /**
139
- * The ID of the function.
138
+ * The unique identifier of the function.
140
139
  *
141
140
  * > Only one of `namespaceId` or `functionId` must be set.
142
141
  */
143
142
  functionId?: pulumi.Input<string>;
144
143
  /**
145
- * The ID of the function namespace.
144
+ * The unique identifier of the Functions namespace.
146
145
  */
147
146
  namespaceId?: pulumi.Input<string>;
148
147
  /**
149
- * `region`). The region in which the namespace should be created.
148
+ * `region`). The region in which the namespace is created.
150
149
  *
151
- * > **Important** Updates to any fields will recreate the token.
150
+ * > **Important** Updating any of the arguments above will recreate the token.
152
151
  */
153
152
  region?: pulumi.Input<string>;
154
153
  }
package/functionToken.js CHANGED
@@ -6,12 +6,11 @@ exports.FunctionToken = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * Creates and manages Scaleway Function Token.
10
- * For more information see [the documentation](https://www.scaleway.com/en/developers/api/serverless-functions/#tokens-26b085).
9
+ * The `scaleway.FunctionToken` resource allows you to create and manage authentication tokens for Scaleway [Serverless Functions](https://www.scaleway.com/en/docs/serverless/functions/).
11
10
  *
12
- * ## Example Usage
11
+ * Refer to the Functions tokens [documentation](https://www.scaleway.com/en/docs/serverless/functions/how-to/create-auth-token-from-console/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-functions/#path-tokens-list-all-tokens) for more information.
13
12
  *
14
- * ### Basic
13
+ * ## Example Usage
15
14
  *
16
15
  * ```typescript
17
16
  * import * as pulumi from "@pulumi/pulumi";
@@ -35,7 +34,7 @@ const utilities = require("./utilities");
35
34
  *
36
35
  * ## Import
37
36
  *
38
- * Tokens can be imported using the `{region}/{id}`, e.g.
37
+ * Tokens can be imported using `{region}/{id}`, as shown below:
39
38
  *
40
39
  * bash
41
40
  *
@@ -1 +1 @@
1
- {"version":3,"file":"functionToken.js","sourceRoot":"","sources":["../functionToken.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACp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