@pulumi/fastly 12.8.1 → 12.8.2
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.
- package/getTlsActivationIds.d.ts +2 -2
- package/getTlsActivationIds.js +2 -2
- package/getTlsSubscriptionIds.d.ts +2 -2
- package/getTlsSubscriptionIds.js +2 -2
- package/package.json +2 -2
- package/serviceACLEntries.d.ts +27 -33
- package/serviceACLEntries.d.ts.map +1 -1
- package/serviceACLEntries.js +27 -33
- package/serviceACLEntries.js.map +1 -1
- package/serviceDictionaryItems.d.ts +30 -39
- package/serviceDictionaryItems.d.ts.map +1 -1
- package/serviceDictionaryItems.js +30 -39
- package/serviceDictionaryItems.js.map +1 -1
- package/serviceDynamicSnippetContent.d.ts +21 -30
- package/serviceDynamicSnippetContent.d.ts.map +1 -1
- package/serviceDynamicSnippetContent.js +21 -30
- package/serviceDynamicSnippetContent.js.map +1 -1
- package/tlsSubscription.d.ts +12 -15
- package/tlsSubscription.d.ts.map +1 -1
- package/tlsSubscription.js +12 -15
- package/tlsSubscription.js.map +1 -1
package/getTlsActivationIds.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
14
14
|
* const exampleGetTlsActivation = example.then(example => .reduce((__obj, [__key, __value]) => ({ ...__obj, [String(__key)]: fastly.getTlsActivation({
|
|
15
15
|
* id: __value,
|
|
16
16
|
* }) }), {}));
|
|
17
|
-
* export const activationDomains =
|
|
17
|
+
* export const activationDomains = Object.values(exampleGetTlsActivation).map(a => (a.domain));
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
20
|
export declare function getTlsActivationIds(args?: GetTlsActivationIdsArgs, opts?: pulumi.InvokeOptions): Promise<GetTlsActivationIdsResult>;
|
|
@@ -59,7 +59,7 @@ export interface GetTlsActivationIdsResult {
|
|
|
59
59
|
* const exampleGetTlsActivation = example.then(example => .reduce((__obj, [__key, __value]) => ({ ...__obj, [String(__key)]: fastly.getTlsActivation({
|
|
60
60
|
* id: __value,
|
|
61
61
|
* }) }), {}));
|
|
62
|
-
* export const activationDomains =
|
|
62
|
+
* export const activationDomains = Object.values(exampleGetTlsActivation).map(a => (a.domain));
|
|
63
63
|
* ```
|
|
64
64
|
*/
|
|
65
65
|
export declare function getTlsActivationIdsOutput(args?: GetTlsActivationIdsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetTlsActivationIdsResult>;
|
package/getTlsActivationIds.js
CHANGED
|
@@ -43,7 +43,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
43
43
|
* const exampleGetTlsActivation = example.then(example => .reduce((__obj, [__key, __value]) => ({ ...__obj, [String(__key)]: fastly.getTlsActivation({
|
|
44
44
|
* id: __value,
|
|
45
45
|
* }) }), {}));
|
|
46
|
-
* export const activationDomains =
|
|
46
|
+
* export const activationDomains = Object.values(exampleGetTlsActivation).map(a => (a.domain));
|
|
47
47
|
* ```
|
|
48
48
|
*/
|
|
49
49
|
function getTlsActivationIds(args, opts) {
|
|
@@ -69,7 +69,7 @@ exports.getTlsActivationIds = getTlsActivationIds;
|
|
|
69
69
|
* const exampleGetTlsActivation = example.then(example => .reduce((__obj, [__key, __value]) => ({ ...__obj, [String(__key)]: fastly.getTlsActivation({
|
|
70
70
|
* id: __value,
|
|
71
71
|
* }) }), {}));
|
|
72
|
-
* export const activationDomains =
|
|
72
|
+
* export const activationDomains = Object.values(exampleGetTlsActivation).map(a => (a.domain));
|
|
73
73
|
* ```
|
|
74
74
|
*/
|
|
75
75
|
function getTlsActivationIdsOutput(args, opts) {
|
|
@@ -12,7 +12,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
12
12
|
* const exampleGetTlsSubscription = example.then(example => .reduce((__obj, [__key, __value]) => ({ ...__obj, [String(__key)]: fastly.getTlsSubscription({
|
|
13
13
|
* id: __value,
|
|
14
14
|
* }) }), {}));
|
|
15
|
-
* export const subscriptionDomains =
|
|
15
|
+
* export const subscriptionDomains = Object.values(exampleGetTlsSubscription).map(a => (a.certificateAuthority));
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
18
|
export declare function getTlsSubscriptionIds(opts?: pulumi.InvokeOptions): Promise<GetTlsSubscriptionIdsResult>;
|
|
@@ -42,7 +42,7 @@ export interface GetTlsSubscriptionIdsResult {
|
|
|
42
42
|
* const exampleGetTlsSubscription = example.then(example => .reduce((__obj, [__key, __value]) => ({ ...__obj, [String(__key)]: fastly.getTlsSubscription({
|
|
43
43
|
* id: __value,
|
|
44
44
|
* }) }), {}));
|
|
45
|
-
* export const subscriptionDomains =
|
|
45
|
+
* export const subscriptionDomains = Object.values(exampleGetTlsSubscription).map(a => (a.certificateAuthority));
|
|
46
46
|
* ```
|
|
47
47
|
*/
|
|
48
48
|
export declare function getTlsSubscriptionIdsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetTlsSubscriptionIdsResult>;
|
package/getTlsSubscriptionIds.js
CHANGED
|
@@ -41,7 +41,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
41
41
|
* const exampleGetTlsSubscription = example.then(example => .reduce((__obj, [__key, __value]) => ({ ...__obj, [String(__key)]: fastly.getTlsSubscription({
|
|
42
42
|
* id: __value,
|
|
43
43
|
* }) }), {}));
|
|
44
|
-
* export const subscriptionDomains =
|
|
44
|
+
* export const subscriptionDomains = Object.values(exampleGetTlsSubscription).map(a => (a.certificateAuthority));
|
|
45
45
|
* ```
|
|
46
46
|
*/
|
|
47
47
|
function getTlsSubscriptionIds(opts) {
|
|
@@ -62,7 +62,7 @@ exports.getTlsSubscriptionIds = getTlsSubscriptionIds;
|
|
|
62
62
|
* const exampleGetTlsSubscription = example.then(example => .reduce((__obj, [__key, __value]) => ({ ...__obj, [String(__key)]: fastly.getTlsSubscription({
|
|
63
63
|
* id: __value,
|
|
64
64
|
* }) }), {}));
|
|
65
|
-
* export const subscriptionDomains =
|
|
65
|
+
* export const subscriptionDomains = Object.values(exampleGetTlsSubscription).map(a => (a.certificateAuthority));
|
|
66
66
|
* ```
|
|
67
67
|
*/
|
|
68
68
|
function getTlsSubscriptionIdsOutput(opts) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/fastly",
|
|
3
|
-
"version": "12.8.
|
|
3
|
+
"version": "12.8.2",
|
|
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": "12.8.
|
|
26
|
+
"version": "12.8.2"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/serviceACLEntries.d.ts
CHANGED
|
@@ -38,21 +38,18 @@ import * as outputs from "./types/output";
|
|
|
38
38
|
* });
|
|
39
39
|
* const entries: {[key: string]: fastly.ServiceACLEntries} = {};
|
|
40
40
|
* myservice.acls.apply(acls => {
|
|
41
|
-
* const entries: {[key:
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* });
|
|
54
|
-
* }
|
|
55
|
-
* });
|
|
41
|
+
* for (const range of Object.entries(.filter(d => d.name == myaclName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).sort().map(([k, v]) => ({key: k, value: v}))) {
|
|
42
|
+
* entries[range.key] = new fastly.ServiceACLEntries(`entries-${range.key}`, {
|
|
43
|
+
* serviceId: myservice.id,
|
|
44
|
+
* aclId: range.value.aclId,
|
|
45
|
+
* entries: [{
|
|
46
|
+
* ip: "127.0.0.1",
|
|
47
|
+
* subnet: "24",
|
|
48
|
+
* negated: false,
|
|
49
|
+
* comment: "ACL Entry 1",
|
|
50
|
+
* }],
|
|
51
|
+
* });
|
|
52
|
+
* }
|
|
56
53
|
* });
|
|
57
54
|
* ```
|
|
58
55
|
*
|
|
@@ -97,24 +94,21 @@ import * as outputs from "./types/output";
|
|
|
97
94
|
* });
|
|
98
95
|
* const entries: {[key: string]: fastly.ServiceACLEntries} = {};
|
|
99
96
|
* myservice.acls.apply(acls => {
|
|
100
|
-
* const entries: {[key:
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
* });
|
|
116
|
-
* }
|
|
117
|
-
* });
|
|
97
|
+
* for (const range of Object.entries(.filter(d => d.name == aclName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).sort().map(([k, v]) => ({key: k, value: v}))) {
|
|
98
|
+
* entries[range.key] = new fastly.ServiceACLEntries(`entries-${range.key}`, {
|
|
99
|
+
* entries: aclEntries.map(e => ({
|
|
100
|
+
* ip: e.ip,
|
|
101
|
+
* comment: e.comment,
|
|
102
|
+
* })).map(entry => ({
|
|
103
|
+
* ip: entry.ip,
|
|
104
|
+
* subnet: "22",
|
|
105
|
+
* comment: entry.comment,
|
|
106
|
+
* negated: false,
|
|
107
|
+
* })),
|
|
108
|
+
* serviceId: myservice.id,
|
|
109
|
+
* aclId: range.value.aclId,
|
|
110
|
+
* });
|
|
111
|
+
* }
|
|
118
112
|
* });
|
|
119
113
|
* ```
|
|
120
114
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serviceACLEntries.d.ts","sourceRoot":"","sources":["../serviceACLEntries.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OA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;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CA0B7F;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACzC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,sBAAsB,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAClF;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAClD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,sBAAsB,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAClF;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAClD;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACnC"}
|
package/serviceACLEntries.js
CHANGED
|
@@ -65,21 +65,18 @@ const utilities = __importStar(require("./utilities"));
|
|
|
65
65
|
* });
|
|
66
66
|
* const entries: {[key: string]: fastly.ServiceACLEntries} = {};
|
|
67
67
|
* myservice.acls.apply(acls => {
|
|
68
|
-
* const entries: {[key:
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
* });
|
|
81
|
-
* }
|
|
82
|
-
* });
|
|
68
|
+
* for (const range of Object.entries(.filter(d => d.name == myaclName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).sort().map(([k, v]) => ({key: k, value: v}))) {
|
|
69
|
+
* entries[range.key] = new fastly.ServiceACLEntries(`entries-${range.key}`, {
|
|
70
|
+
* serviceId: myservice.id,
|
|
71
|
+
* aclId: range.value.aclId,
|
|
72
|
+
* entries: [{
|
|
73
|
+
* ip: "127.0.0.1",
|
|
74
|
+
* subnet: "24",
|
|
75
|
+
* negated: false,
|
|
76
|
+
* comment: "ACL Entry 1",
|
|
77
|
+
* }],
|
|
78
|
+
* });
|
|
79
|
+
* }
|
|
83
80
|
* });
|
|
84
81
|
* ```
|
|
85
82
|
*
|
|
@@ -124,24 +121,21 @@ const utilities = __importStar(require("./utilities"));
|
|
|
124
121
|
* });
|
|
125
122
|
* const entries: {[key: string]: fastly.ServiceACLEntries} = {};
|
|
126
123
|
* myservice.acls.apply(acls => {
|
|
127
|
-
* const entries: {[key:
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
* });
|
|
143
|
-
* }
|
|
144
|
-
* });
|
|
124
|
+
* for (const range of Object.entries(.filter(d => d.name == aclName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).sort().map(([k, v]) => ({key: k, value: v}))) {
|
|
125
|
+
* entries[range.key] = new fastly.ServiceACLEntries(`entries-${range.key}`, {
|
|
126
|
+
* entries: aclEntries.map(e => ({
|
|
127
|
+
* ip: e.ip,
|
|
128
|
+
* comment: e.comment,
|
|
129
|
+
* })).map(entry => ({
|
|
130
|
+
* ip: entry.ip,
|
|
131
|
+
* subnet: "22",
|
|
132
|
+
* comment: entry.comment,
|
|
133
|
+
* negated: false,
|
|
134
|
+
* })),
|
|
135
|
+
* serviceId: myservice.id,
|
|
136
|
+
* aclId: range.value.aclId,
|
|
137
|
+
* });
|
|
138
|
+
* }
|
|
145
139
|
* });
|
|
146
140
|
* ```
|
|
147
141
|
*
|
package/serviceACLEntries.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serviceACLEntries.js","sourceRoot":"","sources":["../serviceACLEntries.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"serviceACLEntries.js","sourceRoot":"","sources":["../serviceACLEntries.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2MG;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,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACxE,CAAC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c,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;SACjD;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;;AA7EL,8CA8EC"}
|
|
@@ -42,19 +42,16 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
42
42
|
* });
|
|
43
43
|
* const items: {[key: string]: fastly.ServiceDictionaryItems} = {};
|
|
44
44
|
* myservice.dictionaries.apply(dictionaries => {
|
|
45
|
-
* const
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* });
|
|
56
|
-
* }
|
|
57
|
-
* });
|
|
45
|
+
* for (const range of Object.entries(.filter(d => d.name == mydictName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).sort().map(([k, v]) => ({key: k, value: v}))) {
|
|
46
|
+
* items[range.key] = new fastly.ServiceDictionaryItems(`items-${range.key}`, {
|
|
47
|
+
* serviceId: myservice.id,
|
|
48
|
+
* dictionaryId: range.value.dictionaryId,
|
|
49
|
+
* items: {
|
|
50
|
+
* key1: "value1",
|
|
51
|
+
* key2: "value2",
|
|
52
|
+
* },
|
|
53
|
+
* });
|
|
54
|
+
* }
|
|
58
55
|
* });
|
|
59
56
|
* ```
|
|
60
57
|
*
|
|
@@ -90,16 +87,13 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
90
87
|
* });
|
|
91
88
|
* const items: {[key: string]: fastly.ServiceDictionaryItems} = {};
|
|
92
89
|
* myservice.dictionaries.apply(dictionaries => {
|
|
93
|
-
* const
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
* });
|
|
101
|
-
* }
|
|
102
|
-
* });
|
|
90
|
+
* for (const range of Object.entries(.filter(d => d.name == mydict.name).reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).sort().map(([k, v]) => ({key: k, value: v}))) {
|
|
91
|
+
* items[range.key] = new fastly.ServiceDictionaryItems(`items-${range.key}`, {
|
|
92
|
+
* serviceId: myservice.id,
|
|
93
|
+
* dictionaryId: range.value.dictionaryId,
|
|
94
|
+
* items: mydict.items,
|
|
95
|
+
* });
|
|
96
|
+
* }
|
|
103
97
|
* });
|
|
104
98
|
* ```
|
|
105
99
|
*
|
|
@@ -138,22 +132,19 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
138
132
|
* // This resource is dynamically creating the items from the local variables through for expressions and functions.
|
|
139
133
|
* const project: {[key: string]: fastly.ServiceDictionaryItems} = {};
|
|
140
134
|
* myservice.dictionaries.apply(dictionaries => {
|
|
141
|
-
* const
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
* });
|
|
155
|
-
* }
|
|
156
|
-
* });
|
|
135
|
+
* for (const range of Object.entries(.filter(d => d.name == dictionaryName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).sort().map(([k, v]) => ({key: k, value: v}))) {
|
|
136
|
+
* project[range.key] = new fastly.ServiceDictionaryItems(`project-${range.key}`, {
|
|
137
|
+
* serviceId: myservice.id,
|
|
138
|
+
* dictionaryId: range.value.dictionaryId,
|
|
139
|
+
* items: hostDivisions.reduce((__obj, division) => ({ ...__obj, [division]: std.format({
|
|
140
|
+
* input: "%s.%s",
|
|
141
|
+
* args: [
|
|
142
|
+
* division,
|
|
143
|
+
* hostBase,
|
|
144
|
+
* ],
|
|
145
|
+
* }).result }), {}),
|
|
146
|
+
* });
|
|
147
|
+
* }
|
|
157
148
|
* });
|
|
158
149
|
* ```
|
|
159
150
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serviceDictionaryItems.d.ts","sourceRoot":"","sources":["../serviceDictionaryItems.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC
|
|
1
|
+
{"version":3,"file":"serviceDictionaryItems.d.ts","sourceRoot":"","sources":["../serviceDictionaryItems.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+OG;AACH,qBAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,2BAA2B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,sBAAsB;IAO9J;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,sBAAsB;IAOjE;;OAEG;IACH,SAAwB,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC5D;;OAEG;IACH,SAAwB,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;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M,CAAC,CAAC;CACnC"}
|
|
@@ -71,19 +71,16 @@ const utilities = __importStar(require("./utilities"));
|
|
|
71
71
|
* });
|
|
72
72
|
* const items: {[key: string]: fastly.ServiceDictionaryItems} = {};
|
|
73
73
|
* myservice.dictionaries.apply(dictionaries => {
|
|
74
|
-
* const
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
* });
|
|
85
|
-
* }
|
|
86
|
-
* });
|
|
74
|
+
* for (const range of Object.entries(.filter(d => d.name == mydictName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).sort().map(([k, v]) => ({key: k, value: v}))) {
|
|
75
|
+
* items[range.key] = new fastly.ServiceDictionaryItems(`items-${range.key}`, {
|
|
76
|
+
* serviceId: myservice.id,
|
|
77
|
+
* dictionaryId: range.value.dictionaryId,
|
|
78
|
+
* items: {
|
|
79
|
+
* key1: "value1",
|
|
80
|
+
* key2: "value2",
|
|
81
|
+
* },
|
|
82
|
+
* });
|
|
83
|
+
* }
|
|
87
84
|
* });
|
|
88
85
|
* ```
|
|
89
86
|
*
|
|
@@ -119,16 +116,13 @@ const utilities = __importStar(require("./utilities"));
|
|
|
119
116
|
* });
|
|
120
117
|
* const items: {[key: string]: fastly.ServiceDictionaryItems} = {};
|
|
121
118
|
* myservice.dictionaries.apply(dictionaries => {
|
|
122
|
-
* const
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
* });
|
|
130
|
-
* }
|
|
131
|
-
* });
|
|
119
|
+
* for (const range of Object.entries(.filter(d => d.name == mydict.name).reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).sort().map(([k, v]) => ({key: k, value: v}))) {
|
|
120
|
+
* items[range.key] = new fastly.ServiceDictionaryItems(`items-${range.key}`, {
|
|
121
|
+
* serviceId: myservice.id,
|
|
122
|
+
* dictionaryId: range.value.dictionaryId,
|
|
123
|
+
* items: mydict.items,
|
|
124
|
+
* });
|
|
125
|
+
* }
|
|
132
126
|
* });
|
|
133
127
|
* ```
|
|
134
128
|
*
|
|
@@ -167,22 +161,19 @@ const utilities = __importStar(require("./utilities"));
|
|
|
167
161
|
* // This resource is dynamically creating the items from the local variables through for expressions and functions.
|
|
168
162
|
* const project: {[key: string]: fastly.ServiceDictionaryItems} = {};
|
|
169
163
|
* myservice.dictionaries.apply(dictionaries => {
|
|
170
|
-
* const
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
* });
|
|
184
|
-
* }
|
|
185
|
-
* });
|
|
164
|
+
* for (const range of Object.entries(.filter(d => d.name == dictionaryName).reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).sort().map(([k, v]) => ({key: k, value: v}))) {
|
|
165
|
+
* project[range.key] = new fastly.ServiceDictionaryItems(`project-${range.key}`, {
|
|
166
|
+
* serviceId: myservice.id,
|
|
167
|
+
* dictionaryId: range.value.dictionaryId,
|
|
168
|
+
* items: hostDivisions.reduce((__obj, division) => ({ ...__obj, [division]: std.format({
|
|
169
|
+
* input: "%s.%s",
|
|
170
|
+
* args: [
|
|
171
|
+
* division,
|
|
172
|
+
* hostBase,
|
|
173
|
+
* ],
|
|
174
|
+
* }).result }), {}),
|
|
175
|
+
* });
|
|
176
|
+
* }
|
|
186
177
|
* });
|
|
187
178
|
* ```
|
|
188
179
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serviceDictionaryItems.js","sourceRoot":"","sources":["../serviceDictionaryItems.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;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C,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsD,CAAC;YACrE,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,EAAE,YAAY,CAAC;YACrD,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC;YACvC,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;SAClD;aAAM;YACH,MAAM,IAAI,GAAG,WAAqD,CAAC;YACnE,IAAI,IAAI,EAAE,YAAY,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC/C,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;aAC/D;YACD,IAAI,IAAI,EAAE,SAAS,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC5C,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;SACjD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,sBAAsB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3E,CAAC;;AA7EL,wDA8EC"}
|
|
@@ -36,18 +36,15 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
36
36
|
* });
|
|
37
37
|
* const myDynContent: {[key: string]: fastly.ServiceDynamicSnippetContent} = {};
|
|
38
38
|
* myservice.dynamicsnippets.apply(dynamicsnippets => {
|
|
39
|
-
* const
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* snippetId: range.value.snippetId,
|
|
45
|
-
* content: `if ( req.url ) {
|
|
39
|
+
* for (const range of Object.entries(.filter(d => d.name == "My Dynamic Snippet").reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).sort().map(([k, v]) => ({key: k, value: v}))) {
|
|
40
|
+
* myDynContent[range.key] = new fastly.ServiceDynamicSnippetContent(`my_dyn_content-${range.key}`, {
|
|
41
|
+
* serviceId: myservice.id,
|
|
42
|
+
* snippetId: range.value.snippetId,
|
|
43
|
+
* content: `if ( req.url ) {
|
|
46
44
|
* set req.http.my-snippet-test-header = "true";
|
|
47
45
|
* }`,
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* });
|
|
46
|
+
* });
|
|
47
|
+
* }
|
|
51
48
|
* });
|
|
52
49
|
* ```
|
|
53
50
|
*
|
|
@@ -85,33 +82,27 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
85
82
|
* });
|
|
86
83
|
* const myDynContentOne: {[key: string]: fastly.ServiceDynamicSnippetContent} = {};
|
|
87
84
|
* myservice.dynamicsnippets.apply(dynamicsnippets => {
|
|
88
|
-
* const
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
* snippetId: range.value.snippetId,
|
|
94
|
-
* content: `if ( req.url ) {
|
|
85
|
+
* for (const range of Object.entries(.filter(d => d.name == "My Dynamic Snippet One").reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).sort().map(([k, v]) => ({key: k, value: v}))) {
|
|
86
|
+
* myDynContentOne[range.key] = new fastly.ServiceDynamicSnippetContent(`my_dyn_content_one-${range.key}`, {
|
|
87
|
+
* serviceId: myservice.id,
|
|
88
|
+
* snippetId: range.value.snippetId,
|
|
89
|
+
* content: `if ( req.url ) {
|
|
95
90
|
* set req.http.my-snippet-test-header-one = "true";
|
|
96
91
|
* }`,
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
* });
|
|
92
|
+
* });
|
|
93
|
+
* }
|
|
100
94
|
* });
|
|
101
95
|
* const myDynContentTwo: {[key: string]: fastly.ServiceDynamicSnippetContent} = {};
|
|
102
96
|
* myservice.dynamicsnippets.apply(dynamicsnippets => {
|
|
103
|
-
* const
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
* snippetId: range.value.snippetId,
|
|
109
|
-
* content: `if ( req.url ) {
|
|
97
|
+
* for (const range of Object.entries(.filter(d => d.name == "My Dynamic Snippet Two").reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).sort().map(([k, v]) => ({key: k, value: v}))) {
|
|
98
|
+
* myDynContentTwo[range.key] = new fastly.ServiceDynamicSnippetContent(`my_dyn_content_two-${range.key}`, {
|
|
99
|
+
* serviceId: myservice.id,
|
|
100
|
+
* snippetId: range.value.snippetId,
|
|
101
|
+
* content: `if ( req.url ) {
|
|
110
102
|
* set req.http.my-snippet-test-header-two = "true";
|
|
111
103
|
* }`,
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
* });
|
|
104
|
+
* });
|
|
105
|
+
* }
|
|
115
106
|
* });
|
|
116
107
|
* ```
|
|
117
108
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serviceDynamicSnippetContent.d.ts","sourceRoot":"","sources":["../serviceDynamicSnippetContent.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC
|
|
1
|
+
{"version":3,"file":"serviceDynamicSnippetContent.d.ts","sourceRoot":"","sources":["../serviceDynamicSnippetContent.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAG,SAAS,CAAC,CAAC;IAC7C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC7C;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IACnD;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACnC"}
|
|
@@ -65,18 +65,15 @@ const utilities = __importStar(require("./utilities"));
|
|
|
65
65
|
* });
|
|
66
66
|
* const myDynContent: {[key: string]: fastly.ServiceDynamicSnippetContent} = {};
|
|
67
67
|
* myservice.dynamicsnippets.apply(dynamicsnippets => {
|
|
68
|
-
* const
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* snippetId: range.value.snippetId,
|
|
74
|
-
* content: `if ( req.url ) {
|
|
68
|
+
* for (const range of Object.entries(.filter(d => d.name == "My Dynamic Snippet").reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).sort().map(([k, v]) => ({key: k, value: v}))) {
|
|
69
|
+
* myDynContent[range.key] = new fastly.ServiceDynamicSnippetContent(`my_dyn_content-${range.key}`, {
|
|
70
|
+
* serviceId: myservice.id,
|
|
71
|
+
* snippetId: range.value.snippetId,
|
|
72
|
+
* content: `if ( req.url ) {
|
|
75
73
|
* set req.http.my-snippet-test-header = "true";
|
|
76
74
|
* }`,
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
* });
|
|
75
|
+
* });
|
|
76
|
+
* }
|
|
80
77
|
* });
|
|
81
78
|
* ```
|
|
82
79
|
*
|
|
@@ -114,33 +111,27 @@ const utilities = __importStar(require("./utilities"));
|
|
|
114
111
|
* });
|
|
115
112
|
* const myDynContentOne: {[key: string]: fastly.ServiceDynamicSnippetContent} = {};
|
|
116
113
|
* myservice.dynamicsnippets.apply(dynamicsnippets => {
|
|
117
|
-
* const
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
* snippetId: range.value.snippetId,
|
|
123
|
-
* content: `if ( req.url ) {
|
|
114
|
+
* for (const range of Object.entries(.filter(d => d.name == "My Dynamic Snippet One").reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).sort().map(([k, v]) => ({key: k, value: v}))) {
|
|
115
|
+
* myDynContentOne[range.key] = new fastly.ServiceDynamicSnippetContent(`my_dyn_content_one-${range.key}`, {
|
|
116
|
+
* serviceId: myservice.id,
|
|
117
|
+
* snippetId: range.value.snippetId,
|
|
118
|
+
* content: `if ( req.url ) {
|
|
124
119
|
* set req.http.my-snippet-test-header-one = "true";
|
|
125
120
|
* }`,
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
* });
|
|
121
|
+
* });
|
|
122
|
+
* }
|
|
129
123
|
* });
|
|
130
124
|
* const myDynContentTwo: {[key: string]: fastly.ServiceDynamicSnippetContent} = {};
|
|
131
125
|
* myservice.dynamicsnippets.apply(dynamicsnippets => {
|
|
132
|
-
* const
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
* snippetId: range.value.snippetId,
|
|
138
|
-
* content: `if ( req.url ) {
|
|
126
|
+
* for (const range of Object.entries(.filter(d => d.name == "My Dynamic Snippet Two").reduce((__obj, d) => ({ ...__obj, [d.name]: d }), {})).sort().map(([k, v]) => ({key: k, value: v}))) {
|
|
127
|
+
* myDynContentTwo[range.key] = new fastly.ServiceDynamicSnippetContent(`my_dyn_content_two-${range.key}`, {
|
|
128
|
+
* serviceId: myservice.id,
|
|
129
|
+
* snippetId: range.value.snippetId,
|
|
130
|
+
* content: `if ( req.url ) {
|
|
139
131
|
* set req.http.my-snippet-test-header-two = "true";
|
|
140
132
|
* }`,
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
* });
|
|
133
|
+
* });
|
|
134
|
+
* }
|
|
144
135
|
* });
|
|
145
136
|
* ```
|
|
146
137
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serviceDynamicSnippetContent.js","sourceRoot":"","sources":["../serviceDynamicSnippetContent.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"serviceDynamicSnippetContent.js","sourceRoot":"","sources":["../serviceDynamicSnippetContent.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiMG;AACH,MAAa,4BAA6B,SAAQ,MAAM,CAAC,cAAc;IACnE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyC,EAAE,IAAmC;QACvI,OAAO,IAAI,4BAA4B,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACnF,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,wEAAwE,CAAC;IAE/G;;;OAGG;IACI,MAAM,CAAC,UAAU,C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AAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;SACjD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,4BAA4B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjF,CAAC;;AAhFL,oEAiFC"}
|
package/tlsSubscription.d.ts
CHANGED
|
@@ -147,8 +147,7 @@ import * as outputs from "./types/output";
|
|
|
147
147
|
* });
|
|
148
148
|
* const domainValidation: {[key: string]: aws.index.Route53Record} = {};
|
|
149
149
|
* exampleTlsSubscription.domains.apply(domains => {
|
|
150
|
-
* const
|
|
151
|
-
* pulumi.all(domains.reduce((__obj, domain) => ({ ...__obj, [String(std.replace({
|
|
150
|
+
* for (const range of Object.entries(domains.reduce((__obj, domain) => ({ ...__obj, [String(std.replace({
|
|
152
151
|
* text: domain,
|
|
153
152
|
* search: "*.",
|
|
154
153
|
* replace: "",
|
|
@@ -156,20 +155,18 @@ import * as outputs from "./types/output";
|
|
|
156
155
|
* text: domain,
|
|
157
156
|
* search: "*.",
|
|
158
157
|
* replace: "",
|
|
159
|
-
* }).result}`).map(obj => (obj)))[0] }), {})).
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
* dependsOn: [exampleTlsSubscription],
|
|
170
|
-
* });
|
|
171
|
-
* }
|
|
158
|
+
* }).result}`).map(obj => (obj)))[0] }), {})).sort().map(([k, v]) => ({key: k, value: v}))) {
|
|
159
|
+
* domainValidation[range.key] = new aws.index.Route53Record(`domain_validation-${range.key}`, {
|
|
160
|
+
* name: range.value[0].recordName,
|
|
161
|
+
* type: range.value[0].recordType,
|
|
162
|
+
* zoneId: production.zoneId,
|
|
163
|
+
* allowOverwrite: true,
|
|
164
|
+
* records: [range.value[0].recordValue],
|
|
165
|
+
* ttl: 60,
|
|
166
|
+
* }, {
|
|
167
|
+
* dependsOn: [exampleTlsSubscription],
|
|
172
168
|
* });
|
|
169
|
+
* }
|
|
173
170
|
* });
|
|
174
171
|
* // This is a resource that other resources can depend on if they require the certificate to be issued.
|
|
175
172
|
* // NOTE: Internally the resource keeps retrying `GetTLSSubscription` until no error is returned (or the configured timeout is reached).
|
package/tlsSubscription.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tlsSubscription.d.ts","sourceRoot":"","sources":["../tlsSubscription.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C
|
|
1
|
+
{"version":3,"file":"tlsSubscription.d.ts","sourceRoot":"","sources":["../tlsSubscription.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiNG;AACH,qBAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAA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oBAAoB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,kCAAkC,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAC3G;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,mCAAmC,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAC7G;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACzC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9C;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACnD;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC9C;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IACjD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;CACnD"}
|
package/tlsSubscription.js
CHANGED
|
@@ -174,8 +174,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
174
174
|
* });
|
|
175
175
|
* const domainValidation: {[key: string]: aws.index.Route53Record} = {};
|
|
176
176
|
* exampleTlsSubscription.domains.apply(domains => {
|
|
177
|
-
* const
|
|
178
|
-
* pulumi.all(domains.reduce((__obj, domain) => ({ ...__obj, [String(std.replace({
|
|
177
|
+
* for (const range of Object.entries(domains.reduce((__obj, domain) => ({ ...__obj, [String(std.replace({
|
|
179
178
|
* text: domain,
|
|
180
179
|
* search: "*.",
|
|
181
180
|
* replace: "",
|
|
@@ -183,20 +182,18 @@ const utilities = __importStar(require("./utilities"));
|
|
|
183
182
|
* text: domain,
|
|
184
183
|
* search: "*.",
|
|
185
184
|
* replace: "",
|
|
186
|
-
* }).result}`).map(obj => (obj)))[0] }), {})).
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
* dependsOn: [exampleTlsSubscription],
|
|
197
|
-
* });
|
|
198
|
-
* }
|
|
185
|
+
* }).result}`).map(obj => (obj)))[0] }), {})).sort().map(([k, v]) => ({key: k, value: v}))) {
|
|
186
|
+
* domainValidation[range.key] = new aws.index.Route53Record(`domain_validation-${range.key}`, {
|
|
187
|
+
* name: range.value[0].recordName,
|
|
188
|
+
* type: range.value[0].recordType,
|
|
189
|
+
* zoneId: production.zoneId,
|
|
190
|
+
* allowOverwrite: true,
|
|
191
|
+
* records: [range.value[0].recordValue],
|
|
192
|
+
* ttl: 60,
|
|
193
|
+
* }, {
|
|
194
|
+
* dependsOn: [exampleTlsSubscription],
|
|
199
195
|
* });
|
|
196
|
+
* }
|
|
200
197
|
* });
|
|
201
198
|
* // This is a resource that other resources can depend on if they require the certificate to be issued.
|
|
202
199
|
* // NOTE: Internally the resource keeps retrying `GetTLSSubscription` until no error is returned (or the configured timeout is reached).
|
package/tlsSubscription.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tlsSubscription.js","sourceRoot":"","sources":["../tlsSubscription.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;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