@pulumi/fastly 11.5.0 → 11.6.0-alpha.1775837538

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.
@@ -13,7 +13,7 @@ import * as pulumi from "@pulumi/pulumi";
13
13
  * });
14
14
  * const exampleGetTlsActivation = example.then(example => .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: fastly.getTlsActivation({
15
15
  * id: __value,
16
- * }) })));
16
+ * }) }), {}));
17
17
  * export const activationDomains = exampleGetTlsActivation.apply(exampleGetTlsActivation => Object.values(exampleGetTlsActivation).map(a => (a.domain)));
18
18
  * ```
19
19
  */
@@ -58,7 +58,7 @@ export interface GetTlsActivationIdsResult {
58
58
  * });
59
59
  * const exampleGetTlsActivation = example.then(example => .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: fastly.getTlsActivation({
60
60
  * id: __value,
61
- * }) })));
61
+ * }) }), {}));
62
62
  * export const activationDomains = exampleGetTlsActivation.apply(exampleGetTlsActivation => Object.values(exampleGetTlsActivation).map(a => (a.domain)));
63
63
  * ```
64
64
  */
@@ -19,7 +19,7 @@ const utilities = require("./utilities");
19
19
  * });
20
20
  * const exampleGetTlsActivation = example.then(example => .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: fastly.getTlsActivation({
21
21
  * id: __value,
22
- * }) })));
22
+ * }) }), {}));
23
23
  * export const activationDomains = exampleGetTlsActivation.apply(exampleGetTlsActivation => Object.values(exampleGetTlsActivation).map(a => (a.domain)));
24
24
  * ```
25
25
  */
@@ -45,7 +45,7 @@ exports.getTlsActivationIds = getTlsActivationIds;
45
45
  * });
46
46
  * const exampleGetTlsActivation = example.then(example => .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: fastly.getTlsActivation({
47
47
  * id: __value,
48
- * }) })));
48
+ * }) }), {}));
49
49
  * export const activationDomains = exampleGetTlsActivation.apply(exampleGetTlsActivation => Object.values(exampleGetTlsActivation).map(a => (a.domain)));
50
50
  * ```
51
51
  */
@@ -11,7 +11,7 @@ import * as pulumi from "@pulumi/pulumi";
11
11
  * const example = fastly.getTlsSubscriptionIds({});
12
12
  * const exampleGetTlsSubscription = example.then(example => .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: fastly.getTlsSubscription({
13
13
  * id: __value,
14
- * }) })));
14
+ * }) }), {}));
15
15
  * export const subscriptionDomains = exampleGetTlsSubscription.apply(exampleGetTlsSubscription => Object.values(exampleGetTlsSubscription).map(a => (a.certificateAuthority)));
16
16
  * ```
17
17
  */
@@ -41,7 +41,7 @@ export interface GetTlsSubscriptionIdsResult {
41
41
  * const example = fastly.getTlsSubscriptionIds({});
42
42
  * const exampleGetTlsSubscription = example.then(example => .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: fastly.getTlsSubscription({
43
43
  * id: __value,
44
- * }) })));
44
+ * }) }), {}));
45
45
  * export const subscriptionDomains = exampleGetTlsSubscription.apply(exampleGetTlsSubscription => Object.values(exampleGetTlsSubscription).map(a => (a.certificateAuthority)));
46
46
  * ```
47
47
  */
@@ -17,7 +17,7 @@ const utilities = require("./utilities");
17
17
  * const example = fastly.getTlsSubscriptionIds({});
18
18
  * const exampleGetTlsSubscription = example.then(example => .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: fastly.getTlsSubscription({
19
19
  * id: __value,
20
- * }) })));
20
+ * }) }), {}));
21
21
  * export const subscriptionDomains = exampleGetTlsSubscription.apply(exampleGetTlsSubscription => Object.values(exampleGetTlsSubscription).map(a => (a.certificateAuthority)));
22
22
  * ```
23
23
  */
@@ -38,7 +38,7 @@ exports.getTlsSubscriptionIds = getTlsSubscriptionIds;
38
38
  * const example = fastly.getTlsSubscriptionIds({});
39
39
  * const exampleGetTlsSubscription = example.then(example => .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: fastly.getTlsSubscription({
40
40
  * id: __value,
41
- * }) })));
41
+ * }) }), {}));
42
42
  * export const subscriptionDomains = exampleGetTlsSubscription.apply(exampleGetTlsSubscription => Object.values(exampleGetTlsSubscription).map(a => (a.certificateAuthority)));
43
43
  * ```
44
44
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/fastly",
3
- "version": "11.5.0",
3
+ "version": "11.6.0-alpha.1775837538",
4
4
  "description": "A Pulumi package for creating and managing fastly cloud resources.. Based on terraform-provider-fastly: version v4",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -23,6 +23,6 @@
23
23
  "pulumi": {
24
24
  "resource": true,
25
25
  "name": "fastly",
26
- "version": "11.5.0"
26
+ "version": "11.6.0-alpha.1775837538"
27
27
  }
28
28
  }
@@ -38,7 +38,7 @@ import * as outputs from "./types/output";
38
38
  * const entries: fastly.ServiceACLEntries[] = [];
39
39
  * myservice.acls.apply(acls => {
40
40
  * const entries: fastly.ServiceACLEntries[] = [];
41
- * pulumi.all(.filter(d => d.name == myaclName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }))).apply(rangeBody => {
41
+ * pulumi.all(.filter(d => d.name == myaclName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).apply(rangeBody => {
42
42
  * for (const range of Object.entries(rangeBody).map(([k, v]) => ({key: k, value: v}))) {
43
43
  * entries.push(new fastly.ServiceACLEntries(`entries-${range.key}`, {
44
44
  * serviceId: myservice.id,
@@ -95,7 +95,7 @@ import * as outputs from "./types/output";
95
95
  * });
96
96
  * const entries = new fastly.ServiceACLEntries("entries", {
97
97
  * serviceId: myservice.id,
98
- * aclId: myservice.acls.apply(acls => .reduce((__obj, d) => ({ ...__obj, [d.name]: d.aclId }))[myaclName]),
98
+ * aclId: myservice.acls.apply(acls => .reduce((__obj, d) => ({ ...__obj, [d.name]: d.aclId }), {})[myaclName]),
99
99
  * entries: [{
100
100
  * ip: "127.0.0.1",
101
101
  * subnet: "24",
@@ -121,7 +121,7 @@ import * as outputs from "./types/output";
121
121
  *
122
122
  * //...
123
123
  * const entries: fastly.ServiceACLEntries[] = [];
124
- * for (const range of Object.entries(.filter(d => d.name == myaclName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }))).map(([k, v]) => ({key: k, value: v}))) {
124
+ * for (const range of Object.entries(.filter(d => d.name == myaclName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).map(([k, v]) => ({key: k, value: v}))) {
125
125
  * entries.push(new fastly.ServiceACLEntries(`entries-${range.key}`, {
126
126
  * serviceId: myservice.id,
127
127
  * aclId: range.value.aclId,
@@ -42,7 +42,7 @@ const utilities = require("./utilities");
42
42
  * const entries: fastly.ServiceACLEntries[] = [];
43
43
  * myservice.acls.apply(acls => {
44
44
  * const entries: fastly.ServiceACLEntries[] = [];
45
- * pulumi.all(.filter(d => d.name == myaclName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }))).apply(rangeBody => {
45
+ * pulumi.all(.filter(d => d.name == myaclName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).apply(rangeBody => {
46
46
  * for (const range of Object.entries(rangeBody).map(([k, v]) => ({key: k, value: v}))) {
47
47
  * entries.push(new fastly.ServiceACLEntries(`entries-${range.key}`, {
48
48
  * serviceId: myservice.id,
@@ -99,7 +99,7 @@ const utilities = require("./utilities");
99
99
  * });
100
100
  * const entries = new fastly.ServiceACLEntries("entries", {
101
101
  * serviceId: myservice.id,
102
- * aclId: myservice.acls.apply(acls => .reduce((__obj, d) => ({ ...__obj, [d.name]: d.aclId }))[myaclName]),
102
+ * aclId: myservice.acls.apply(acls => .reduce((__obj, d) => ({ ...__obj, [d.name]: d.aclId }), {})[myaclName]),
103
103
  * entries: [{
104
104
  * ip: "127.0.0.1",
105
105
  * subnet: "24",
@@ -125,7 +125,7 @@ const utilities = require("./utilities");
125
125
  *
126
126
  * //...
127
127
  * const entries: fastly.ServiceACLEntries[] = [];
128
- * for (const range of Object.entries(.filter(d => d.name == myaclName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }))).map(([k, v]) => ({key: k, value: v}))) {
128
+ * for (const range of Object.entries(.filter(d => d.name == myaclName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).map(([k, v]) => ({key: k, value: v}))) {
129
129
  * entries.push(new fastly.ServiceACLEntries(`entries-${range.key}`, {
130
130
  * serviceId: myservice.id,
131
131
  * aclId: range.value.aclId,
@@ -40,7 +40,7 @@ import * as pulumi from "@pulumi/pulumi";
40
40
  * const items: fastly.ServiceDictionaryItems[] = [];
41
41
  * myservice.dictionaries.apply(dictionaries => {
42
42
  * const items: fastly.ServiceDictionaryItems[] = [];
43
- * pulumi.all(.filter(d => d.name == mydictName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }))).apply(rangeBody => {
43
+ * pulumi.all(.filter(d => d.name == mydictName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).apply(rangeBody => {
44
44
  * for (const range of Object.entries(rangeBody).map(([k, v]) => ({key: k, value: v}))) {
45
45
  * items.push(new fastly.ServiceDictionaryItems(`items-${range.key}`, {
46
46
  * serviceId: myservice.id,
@@ -88,7 +88,7 @@ import * as pulumi from "@pulumi/pulumi";
88
88
  * const items: fastly.ServiceDictionaryItems[] = [];
89
89
  * myservice.dictionaries.apply(dictionaries => {
90
90
  * const items: fastly.ServiceDictionaryItems[] = [];
91
- * pulumi.all(.filter(d => d.name == mydict.name).reduce((__obj, d) => ({ ...__obj, [d.name]: d }))).apply(rangeBody => {
91
+ * pulumi.all(.filter(d => d.name == mydict.name).reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).apply(rangeBody => {
92
92
  * for (const range of Object.entries(rangeBody).map(([k, v]) => ({key: k, value: v}))) {
93
93
  * items.push(new fastly.ServiceDictionaryItems(`items-${range.key}`, {
94
94
  * serviceId: myservice.id,
@@ -136,18 +136,18 @@ import * as pulumi from "@pulumi/pulumi";
136
136
  * const project: fastly.ServiceDictionaryItems[] = [];
137
137
  * myservice.dictionaries.apply(dictionaries => {
138
138
  * const project: fastly.ServiceDictionaryItems[] = [];
139
- * pulumi.all(.filter(d => d.name == dictionaryName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }))).apply(rangeBody => {
139
+ * pulumi.all(.filter(d => d.name == dictionaryName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).apply(rangeBody => {
140
140
  * for (const range of Object.entries(rangeBody).map(([k, v]) => ({key: k, value: v}))) {
141
141
  * project.push(new fastly.ServiceDictionaryItems(`project-${range.key}`, {
142
142
  * serviceId: myservice.id,
143
143
  * dictionaryId: range.value.dictionaryId,
144
- * items: hostDivisions.reduce((__obj, division) => ({ ...__obj, [division]: std.index.format({
144
+ * items: hostDivisions.reduce((__obj, division) => ({ ...__obj, [division]: std.format({
145
145
  * input: "%s.%s",
146
146
  * args: [
147
147
  * division,
148
148
  * hostBase,
149
149
  * ],
150
- * }).result })),
150
+ * }).result }), {}),
151
151
  * }));
152
152
  * }
153
153
  * });
@@ -190,7 +190,7 @@ import * as pulumi from "@pulumi/pulumi";
190
190
  * });
191
191
  * const items = new fastly.ServiceDictionaryItems("items", {
192
192
  * serviceId: myservice.id,
193
- * dictionaryId: myservice.dictionaries.apply(dictionaries => .reduce((__obj, s) => ({ ...__obj, [s.name]: s.dictionaryId }))[mydictName]),
193
+ * dictionaryId: myservice.dictionaries.apply(dictionaries => .reduce((__obj, s) => ({ ...__obj, [s.name]: s.dictionaryId }), {})[mydictName]),
194
194
  * items: {
195
195
  * key1: "value1",
196
196
  * key2: "value2",
@@ -214,7 +214,7 @@ import * as pulumi from "@pulumi/pulumi";
214
214
  *
215
215
  * //...
216
216
  * const items: fastly.ServiceDictionaryItems[] = [];
217
- * for (const range of Object.entries(.filter(d => d.name == mydictName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }))).map(([k, v]) => ({key: k, value: v}))) {
217
+ * for (const range of Object.entries(.filter(d => d.name == mydictName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).map(([k, v]) => ({key: k, value: v}))) {
218
218
  * items.push(new fastly.ServiceDictionaryItems(`items-${range.key}`, {
219
219
  * serviceId: myservice.id,
220
220
  * dictionaryId: range.value.dictionaryId,
@@ -46,7 +46,7 @@ const utilities = require("./utilities");
46
46
  * const items: fastly.ServiceDictionaryItems[] = [];
47
47
  * myservice.dictionaries.apply(dictionaries => {
48
48
  * const items: fastly.ServiceDictionaryItems[] = [];
49
- * pulumi.all(.filter(d => d.name == mydictName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }))).apply(rangeBody => {
49
+ * pulumi.all(.filter(d => d.name == mydictName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).apply(rangeBody => {
50
50
  * for (const range of Object.entries(rangeBody).map(([k, v]) => ({key: k, value: v}))) {
51
51
  * items.push(new fastly.ServiceDictionaryItems(`items-${range.key}`, {
52
52
  * serviceId: myservice.id,
@@ -94,7 +94,7 @@ const utilities = require("./utilities");
94
94
  * const items: fastly.ServiceDictionaryItems[] = [];
95
95
  * myservice.dictionaries.apply(dictionaries => {
96
96
  * const items: fastly.ServiceDictionaryItems[] = [];
97
- * pulumi.all(.filter(d => d.name == mydict.name).reduce((__obj, d) => ({ ...__obj, [d.name]: d }))).apply(rangeBody => {
97
+ * pulumi.all(.filter(d => d.name == mydict.name).reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).apply(rangeBody => {
98
98
  * for (const range of Object.entries(rangeBody).map(([k, v]) => ({key: k, value: v}))) {
99
99
  * items.push(new fastly.ServiceDictionaryItems(`items-${range.key}`, {
100
100
  * serviceId: myservice.id,
@@ -142,18 +142,18 @@ const utilities = require("./utilities");
142
142
  * const project: fastly.ServiceDictionaryItems[] = [];
143
143
  * myservice.dictionaries.apply(dictionaries => {
144
144
  * const project: fastly.ServiceDictionaryItems[] = [];
145
- * pulumi.all(.filter(d => d.name == dictionaryName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }))).apply(rangeBody => {
145
+ * pulumi.all(.filter(d => d.name == dictionaryName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).apply(rangeBody => {
146
146
  * for (const range of Object.entries(rangeBody).map(([k, v]) => ({key: k, value: v}))) {
147
147
  * project.push(new fastly.ServiceDictionaryItems(`project-${range.key}`, {
148
148
  * serviceId: myservice.id,
149
149
  * dictionaryId: range.value.dictionaryId,
150
- * items: hostDivisions.reduce((__obj, division) => ({ ...__obj, [division]: std.index.format({
150
+ * items: hostDivisions.reduce((__obj, division) => ({ ...__obj, [division]: std.format({
151
151
  * input: "%s.%s",
152
152
  * args: [
153
153
  * division,
154
154
  * hostBase,
155
155
  * ],
156
- * }).result })),
156
+ * }).result }), {}),
157
157
  * }));
158
158
  * }
159
159
  * });
@@ -196,7 +196,7 @@ const utilities = require("./utilities");
196
196
  * });
197
197
  * const items = new fastly.ServiceDictionaryItems("items", {
198
198
  * serviceId: myservice.id,
199
- * dictionaryId: myservice.dictionaries.apply(dictionaries => .reduce((__obj, s) => ({ ...__obj, [s.name]: s.dictionaryId }))[mydictName]),
199
+ * dictionaryId: myservice.dictionaries.apply(dictionaries => .reduce((__obj, s) => ({ ...__obj, [s.name]: s.dictionaryId }), {})[mydictName]),
200
200
  * items: {
201
201
  * key1: "value1",
202
202
  * key2: "value2",
@@ -220,7 +220,7 @@ const utilities = require("./utilities");
220
220
  *
221
221
  * //...
222
222
  * const items: fastly.ServiceDictionaryItems[] = [];
223
- * for (const range of Object.entries(.filter(d => d.name == mydictName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }))).map(([k, v]) => ({key: k, value: v}))) {
223
+ * for (const range of Object.entries(.filter(d => d.name == mydictName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).map(([k, v]) => ({key: k, value: v}))) {
224
224
  * items.push(new fastly.ServiceDictionaryItems(`items-${range.key}`, {
225
225
  * serviceId: myservice.id,
226
226
  * dictionaryId: range.value.dictionaryId,
@@ -37,7 +37,7 @@ import * as pulumi from "@pulumi/pulumi";
37
37
  * const myDynContent: fastly.ServiceDynamicSnippetContent[] = [];
38
38
  * myservice.dynamicsnippets.apply(dynamicsnippets => {
39
39
  * const myDynContent: fastly.ServiceDynamicSnippetContent[] = [];
40
- * pulumi.all(.filter(d => d.name == "My Dynamic Snippet").reduce((__obj, d) => ({ ...__obj, [d.name]: d }))).apply(rangeBody => {
40
+ * pulumi.all(.filter(d => d.name == "My Dynamic Snippet").reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).apply(rangeBody => {
41
41
  * for (const range of Object.entries(rangeBody).map(([k, v]) => ({key: k, value: v}))) {
42
42
  * myDynContent.push(new fastly.ServiceDynamicSnippetContent(`my_dyn_content-${range.key}`, {
43
43
  * serviceId: myservice.id,
@@ -86,7 +86,7 @@ import * as pulumi from "@pulumi/pulumi";
86
86
  * const myDynContentOne: fastly.ServiceDynamicSnippetContent[] = [];
87
87
  * myservice.dynamicsnippets.apply(dynamicsnippets => {
88
88
  * const myDynContentOne: fastly.ServiceDynamicSnippetContent[] = [];
89
- * pulumi.all(.filter(d => d.name == "My Dynamic Snippet One").reduce((__obj, d) => ({ ...__obj, [d.name]: d }))).apply(rangeBody => {
89
+ * pulumi.all(.filter(d => d.name == "My Dynamic Snippet One").reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).apply(rangeBody => {
90
90
  * for (const range of Object.entries(rangeBody).map(([k, v]) => ({key: k, value: v}))) {
91
91
  * myDynContentOne.push(new fastly.ServiceDynamicSnippetContent(`my_dyn_content_one-${range.key}`, {
92
92
  * serviceId: myservice.id,
@@ -101,7 +101,7 @@ import * as pulumi from "@pulumi/pulumi";
101
101
  * const myDynContentTwo: fastly.ServiceDynamicSnippetContent[] = [];
102
102
  * myservice.dynamicsnippets.apply(dynamicsnippets => {
103
103
  * const myDynContentTwo: fastly.ServiceDynamicSnippetContent[] = [];
104
- * pulumi.all(.filter(d => d.name == "My Dynamic Snippet Two").reduce((__obj, d) => ({ ...__obj, [d.name]: d }))).apply(rangeBody => {
104
+ * pulumi.all(.filter(d => d.name == "My Dynamic Snippet Two").reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).apply(rangeBody => {
105
105
  * for (const range of Object.entries(rangeBody).map(([k, v]) => ({key: k, value: v}))) {
106
106
  * myDynContentTwo.push(new fastly.ServiceDynamicSnippetContent(`my_dyn_content_two-${range.key}`, {
107
107
  * serviceId: myservice.id,
@@ -151,7 +151,7 @@ import * as pulumi from "@pulumi/pulumi";
151
151
  * });
152
152
  * const myDynContent = new fastly.ServiceDynamicSnippetContent("my_dyn_content", {
153
153
  * serviceId: myservice.id,
154
- * snippetId: myservice.dynamicsnippets.apply(dynamicsnippets => .reduce((__obj, s) => ({ ...__obj, [s.name]: s.snippetId }))["My Dynamic Snippet"]),
154
+ * snippetId: myservice.dynamicsnippets.apply(dynamicsnippets => .reduce((__obj, s) => ({ ...__obj, [s.name]: s.snippetId }), {})["My Dynamic Snippet"]),
155
155
  * content: `if ( req.url ) {
156
156
  * set req.http.my-snippet-test-header = "true";
157
157
  * }`,
@@ -174,7 +174,7 @@ import * as pulumi from "@pulumi/pulumi";
174
174
  *
175
175
  * //...
176
176
  * const myDynContent: fastly.ServiceDynamicSnippetContent[] = [];
177
- * for (const range of Object.entries(.filter(d => d.name == "My Dynamic Snippet").reduce((__obj, d) => ({ ...__obj, [d.name]: d }))).map(([k, v]) => ({key: k, value: v}))) {
177
+ * for (const range of Object.entries(.filter(d => d.name == "My Dynamic Snippet").reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).map(([k, v]) => ({key: k, value: v}))) {
178
178
  * myDynContent.push(new fastly.ServiceDynamicSnippetContent(`my_dyn_content-${range.key}`, {
179
179
  * serviceId: myservice.id,
180
180
  * snippetId: range.value.snippetId,
@@ -43,7 +43,7 @@ const utilities = require("./utilities");
43
43
  * const myDynContent: fastly.ServiceDynamicSnippetContent[] = [];
44
44
  * myservice.dynamicsnippets.apply(dynamicsnippets => {
45
45
  * const myDynContent: fastly.ServiceDynamicSnippetContent[] = [];
46
- * pulumi.all(.filter(d => d.name == "My Dynamic Snippet").reduce((__obj, d) => ({ ...__obj, [d.name]: d }))).apply(rangeBody => {
46
+ * pulumi.all(.filter(d => d.name == "My Dynamic Snippet").reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).apply(rangeBody => {
47
47
  * for (const range of Object.entries(rangeBody).map(([k, v]) => ({key: k, value: v}))) {
48
48
  * myDynContent.push(new fastly.ServiceDynamicSnippetContent(`my_dyn_content-${range.key}`, {
49
49
  * serviceId: myservice.id,
@@ -92,7 +92,7 @@ const utilities = require("./utilities");
92
92
  * const myDynContentOne: fastly.ServiceDynamicSnippetContent[] = [];
93
93
  * myservice.dynamicsnippets.apply(dynamicsnippets => {
94
94
  * const myDynContentOne: fastly.ServiceDynamicSnippetContent[] = [];
95
- * pulumi.all(.filter(d => d.name == "My Dynamic Snippet One").reduce((__obj, d) => ({ ...__obj, [d.name]: d }))).apply(rangeBody => {
95
+ * pulumi.all(.filter(d => d.name == "My Dynamic Snippet One").reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).apply(rangeBody => {
96
96
  * for (const range of Object.entries(rangeBody).map(([k, v]) => ({key: k, value: v}))) {
97
97
  * myDynContentOne.push(new fastly.ServiceDynamicSnippetContent(`my_dyn_content_one-${range.key}`, {
98
98
  * serviceId: myservice.id,
@@ -107,7 +107,7 @@ const utilities = require("./utilities");
107
107
  * const myDynContentTwo: fastly.ServiceDynamicSnippetContent[] = [];
108
108
  * myservice.dynamicsnippets.apply(dynamicsnippets => {
109
109
  * const myDynContentTwo: fastly.ServiceDynamicSnippetContent[] = [];
110
- * pulumi.all(.filter(d => d.name == "My Dynamic Snippet Two").reduce((__obj, d) => ({ ...__obj, [d.name]: d }))).apply(rangeBody => {
110
+ * pulumi.all(.filter(d => d.name == "My Dynamic Snippet Two").reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).apply(rangeBody => {
111
111
  * for (const range of Object.entries(rangeBody).map(([k, v]) => ({key: k, value: v}))) {
112
112
  * myDynContentTwo.push(new fastly.ServiceDynamicSnippetContent(`my_dyn_content_two-${range.key}`, {
113
113
  * serviceId: myservice.id,
@@ -157,7 +157,7 @@ const utilities = require("./utilities");
157
157
  * });
158
158
  * const myDynContent = new fastly.ServiceDynamicSnippetContent("my_dyn_content", {
159
159
  * serviceId: myservice.id,
160
- * snippetId: myservice.dynamicsnippets.apply(dynamicsnippets => .reduce((__obj, s) => ({ ...__obj, [s.name]: s.snippetId }))["My Dynamic Snippet"]),
160
+ * snippetId: myservice.dynamicsnippets.apply(dynamicsnippets => .reduce((__obj, s) => ({ ...__obj, [s.name]: s.snippetId }), {})["My Dynamic Snippet"]),
161
161
  * content: `if ( req.url ) {
162
162
  * set req.http.my-snippet-test-header = "true";
163
163
  * }`,
@@ -180,7 +180,7 @@ const utilities = require("./utilities");
180
180
  *
181
181
  * //...
182
182
  * const myDynContent: fastly.ServiceDynamicSnippetContent[] = [];
183
- * for (const range of Object.entries(.filter(d => d.name == "My Dynamic Snippet").reduce((__obj, d) => ({ ...__obj, [d.name]: d }))).map(([k, v]) => ({key: k, value: v}))) {
183
+ * for (const range of Object.entries(.filter(d => d.name == "My Dynamic Snippet").reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).map(([k, v]) => ({key: k, value: v}))) {
184
184
  * myDynContent.push(new fastly.ServiceDynamicSnippetContent(`my_dyn_content-${range.key}`, {
185
185
  * serviceId: myservice.id,
186
186
  * snippetId: range.value.snippetId,
@@ -59,7 +59,7 @@ import * as outputs from "./types/output";
59
59
  * });
60
60
  * const domainValidation: aws.index.Route53Record[] = [];
61
61
  * exampleTlsSubscription.domains.apply(domains => {
62
- * for (const range of Object.entries(domains.reduce((__obj, domain) => ({ ...__obj, [domain]: exampleTlsSubscription.managedDnsChallenges.apply(managedDnsChallenges => managedDnsChallenges.filter(obj => obj.recordName == `_acme-challenge.${domain}`).map(obj => (obj)))[0] }))).map(([k, v]) => ({key: k, value: v}))) {
62
+ * for (const range of Object.entries(domains.reduce((__obj, domain) => ({ ...__obj, [domain]: exampleTlsSubscription.managedDnsChallenges.apply(managedDnsChallenges => managedDnsChallenges.filter(obj => obj.recordName == `_acme-challenge.${domain}`).map(obj => (obj)))[0] }), {})).map(([k, v]) => ({key: k, value: v}))) {
63
63
  * domainValidation.push(new aws.index.Route53Record(`domain_validation-${range.key}`, {
64
64
  * name: range.value.recordName,
65
65
  * type: range.value.recordType,
@@ -91,7 +91,7 @@ import * as outputs from "./types/output";
91
91
  * });
92
92
  * // Once validation is complete and we've retrieved the TLS configuration data, we can create multiple subdomain records.
93
93
  * const subdomain: aws.index.Route53Record[] = [];
94
- * for (const range = {value: 0}; range.value < std.index.toset({
94
+ * for (const range = {value: 0}; range.value < std.toset({
95
95
  * input: subdomains,
96
96
  * }).result; range.value++) {
97
97
  * subdomain.push(new aws.index.Route53Record(`subdomain-${range.value}`, {
@@ -146,15 +146,15 @@ import * as outputs from "./types/output";
146
146
  * const domainValidation: aws.index.Route53Record[] = [];
147
147
  * exampleTlsSubscription.domains.apply(domains => {
148
148
  * const domainValidation: aws.index.Route53Record[] = [];
149
- * pulumi.all(domains.reduce((__obj, domain) => ({ ...__obj, [std.index.replace({
149
+ * pulumi.all(domains.reduce((__obj, domain) => ({ ...__obj, [std.replace({
150
150
  * text: domain,
151
151
  * search: "*.",
152
152
  * replace: "",
153
- * }).result]: exampleTlsSubscription.managedDnsChallenges.apply(managedDnsChallenges => managedDnsChallenges.filter(obj => obj.recordName == `_acme-challenge.${std.index.replace({
153
+ * }).result]: exampleTlsSubscription.managedDnsChallenges.apply(managedDnsChallenges => managedDnsChallenges.filter(obj => obj.recordName == `_acme-challenge.${std.replace({
154
154
  * text: domain,
155
155
  * search: "*.",
156
156
  * replace: "",
157
- * }).result}`).map(obj => (obj)))[0] }))).apply(rangeBody => {
157
+ * }).result}`).map(obj => (obj)))[0] }), {})).apply(rangeBody => {
158
158
  * for (const range of Object.entries(rangeBody).map(([k, v]) => ({key: k, value: v}))) {
159
159
  * domainValidation.push(new aws.index.Route53Record(`domain_validation-${range.key}`, {
160
160
  * name: range.value[0].recordName,
@@ -63,7 +63,7 @@ const utilities = require("./utilities");
63
63
  * });
64
64
  * const domainValidation: aws.index.Route53Record[] = [];
65
65
  * exampleTlsSubscription.domains.apply(domains => {
66
- * for (const range of Object.entries(domains.reduce((__obj, domain) => ({ ...__obj, [domain]: exampleTlsSubscription.managedDnsChallenges.apply(managedDnsChallenges => managedDnsChallenges.filter(obj => obj.recordName == `_acme-challenge.${domain}`).map(obj => (obj)))[0] }))).map(([k, v]) => ({key: k, value: v}))) {
66
+ * for (const range of Object.entries(domains.reduce((__obj, domain) => ({ ...__obj, [domain]: exampleTlsSubscription.managedDnsChallenges.apply(managedDnsChallenges => managedDnsChallenges.filter(obj => obj.recordName == `_acme-challenge.${domain}`).map(obj => (obj)))[0] }), {})).map(([k, v]) => ({key: k, value: v}))) {
67
67
  * domainValidation.push(new aws.index.Route53Record(`domain_validation-${range.key}`, {
68
68
  * name: range.value.recordName,
69
69
  * type: range.value.recordType,
@@ -95,7 +95,7 @@ const utilities = require("./utilities");
95
95
  * });
96
96
  * // Once validation is complete and we've retrieved the TLS configuration data, we can create multiple subdomain records.
97
97
  * const subdomain: aws.index.Route53Record[] = [];
98
- * for (const range = {value: 0}; range.value < std.index.toset({
98
+ * for (const range = {value: 0}; range.value < std.toset({
99
99
  * input: subdomains,
100
100
  * }).result; range.value++) {
101
101
  * subdomain.push(new aws.index.Route53Record(`subdomain-${range.value}`, {
@@ -150,15 +150,15 @@ const utilities = require("./utilities");
150
150
  * const domainValidation: aws.index.Route53Record[] = [];
151
151
  * exampleTlsSubscription.domains.apply(domains => {
152
152
  * const domainValidation: aws.index.Route53Record[] = [];
153
- * pulumi.all(domains.reduce((__obj, domain) => ({ ...__obj, [std.index.replace({
153
+ * pulumi.all(domains.reduce((__obj, domain) => ({ ...__obj, [std.replace({
154
154
  * text: domain,
155
155
  * search: "*.",
156
156
  * replace: "",
157
- * }).result]: exampleTlsSubscription.managedDnsChallenges.apply(managedDnsChallenges => managedDnsChallenges.filter(obj => obj.recordName == `_acme-challenge.${std.index.replace({
157
+ * }).result]: exampleTlsSubscription.managedDnsChallenges.apply(managedDnsChallenges => managedDnsChallenges.filter(obj => obj.recordName == `_acme-challenge.${std.replace({
158
158
  * text: domain,
159
159
  * search: "*.",
160
160
  * replace: "",
161
- * }).result}`).map(obj => (obj)))[0] }))).apply(rangeBody => {
161
+ * }).result}`).map(obj => (obj)))[0] }), {})).apply(rangeBody => {
162
162
  * for (const range of Object.entries(rangeBody).map(([k, v]) => ({key: k, value: v}))) {
163
163
  * domainValidation.push(new aws.index.Route53Record(`domain_validation-${range.key}`, {
164
164
  * name: range.value[0].recordName,
@@ -45,7 +45,7 @@ import * as pulumi from "@pulumi/pulumi";
45
45
  * });
46
46
  * const domainValidation: aws.index.Route53Record[] = [];
47
47
  * exampleTlsSubscription.domains.apply(domains => {
48
- * for (const range of Object.entries(domains.reduce((__obj, domain) => ({ ...__obj, [domain]: exampleTlsSubscription.managedDnsChallenges.apply(managedDnsChallenges => managedDnsChallenges.filter(obj => obj.recordName == `_acme-challenge.${domain}`).map(obj => (obj)))[0] }))).map(([k, v]) => ({key: k, value: v}))) {
48
+ * for (const range of Object.entries(domains.reduce((__obj, domain) => ({ ...__obj, [domain]: exampleTlsSubscription.managedDnsChallenges.apply(managedDnsChallenges => managedDnsChallenges.filter(obj => obj.recordName == `_acme-challenge.${domain}`).map(obj => (obj)))[0] }), {})).map(([k, v]) => ({key: k, value: v}))) {
49
49
  * domainValidation.push(new aws.index.Route53Record(`domain_validation-${range.key}`, {
50
50
  * name: range.value.recordName,
51
51
  * type: range.value.recordType,
@@ -77,7 +77,7 @@ import * as pulumi from "@pulumi/pulumi";
77
77
  * });
78
78
  * // Once validation is complete and we've retrieved the TLS configuration data, we can create multiple subdomain records.
79
79
  * const subdomain: aws.index.Route53Record[] = [];
80
- * for (const range = {value: 0}; range.value < std.index.toset({
80
+ * for (const range = {value: 0}; range.value < std.toset({
81
81
  * input: subdomains,
82
82
  * }).result; range.value++) {
83
83
  * subdomain.push(new aws.index.Route53Record(`subdomain-${range.value}`, {
@@ -51,7 +51,7 @@ const utilities = require("./utilities");
51
51
  * });
52
52
  * const domainValidation: aws.index.Route53Record[] = [];
53
53
  * exampleTlsSubscription.domains.apply(domains => {
54
- * for (const range of Object.entries(domains.reduce((__obj, domain) => ({ ...__obj, [domain]: exampleTlsSubscription.managedDnsChallenges.apply(managedDnsChallenges => managedDnsChallenges.filter(obj => obj.recordName == `_acme-challenge.${domain}`).map(obj => (obj)))[0] }))).map(([k, v]) => ({key: k, value: v}))) {
54
+ * for (const range of Object.entries(domains.reduce((__obj, domain) => ({ ...__obj, [domain]: exampleTlsSubscription.managedDnsChallenges.apply(managedDnsChallenges => managedDnsChallenges.filter(obj => obj.recordName == `_acme-challenge.${domain}`).map(obj => (obj)))[0] }), {})).map(([k, v]) => ({key: k, value: v}))) {
55
55
  * domainValidation.push(new aws.index.Route53Record(`domain_validation-${range.key}`, {
56
56
  * name: range.value.recordName,
57
57
  * type: range.value.recordType,
@@ -83,7 +83,7 @@ const utilities = require("./utilities");
83
83
  * });
84
84
  * // Once validation is complete and we've retrieved the TLS configuration data, we can create multiple subdomain records.
85
85
  * const subdomain: aws.index.Route53Record[] = [];
86
- * for (const range = {value: 0}; range.value < std.index.toset({
86
+ * for (const range = {value: 0}; range.value < std.toset({
87
87
  * input: subdomains,
88
88
  * }).result; range.value++) {
89
89
  * subdomain.push(new aws.index.Route53Record(`subdomain-${range.value}`, {