@pulumi/gcp 6.22.0 → 6.24.0-alpha.1652784225
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/appengine/engineSplitTraffic.d.ts +0 -57
- package/appengine/engineSplitTraffic.js +0 -57
- package/appengine/engineSplitTraffic.js.map +1 -1
- package/bigquery/appProfile.d.ts +3 -3
- package/bigquery/appProfile.js +3 -3
- package/bigquery/connection.d.ts +2 -2
- package/bigquery/connection.js +2 -2
- package/certificateauthority/authority.d.ts +1 -1
- package/certificateauthority/authority.js +1 -1
- package/cloudfunctions/function.d.ts +30 -3
- package/cloudfunctions/function.js +4 -0
- package/cloudfunctions/function.js.map +1 -1
- package/cloudfunctions/getFunction.d.ts +2 -0
- package/cloudfunctions/getFunction.js.map +1 -1
- package/cloudrun/service.d.ts +1 -1
- package/cloudrun/service.js +1 -1
- package/compute/backendService.d.ts +1 -1
- package/compute/backendService.js +1 -1
- package/compute/firewallPolicyRule.d.ts +2 -2
- package/compute/firewallPolicyRule.js +2 -2
- package/compute/forwardingRule.d.ts +24 -5
- package/compute/forwardingRule.js +7 -5
- package/compute/forwardingRule.js.map +1 -1
- package/compute/getForwardingRule.d.ts +2 -0
- package/compute/getForwardingRule.js.map +1 -1
- package/compute/globalForwardingRule.d.ts +6 -6
- package/compute/globalForwardingRule.js +6 -6
- package/compute/globalNetworkEndpoint.d.ts +1 -1
- package/compute/globalNetworkEndpoint.js +1 -1
- package/compute/healthCheck.d.ts +1 -1
- package/compute/healthCheck.js +1 -1
- package/compute/instanceGroup.d.ts +4 -4
- package/compute/instanceGroup.js +4 -4
- package/compute/instanceGroupManager.d.ts +1 -1
- package/compute/instanceGroupManager.js +1 -1
- package/compute/instanceTemplate.d.ts +0 -32
- package/compute/instanceTemplate.js +0 -32
- package/compute/instanceTemplate.js.map +1 -1
- package/compute/interconnectAttachment.d.ts +1 -1
- package/compute/interconnectAttachment.js +1 -1
- package/compute/managedSslCertificate.d.ts +1 -1
- package/compute/managedSslCertificate.js +1 -1
- package/compute/mangedSslCertificate.d.ts +1 -1
- package/compute/mangedSslCertificate.js +1 -1
- package/compute/networkEndpoint.d.ts +1 -1
- package/compute/networkEndpoint.js +1 -1
- package/compute/networkEndpointGroup.d.ts +2 -2
- package/compute/networkEndpointGroup.js +2 -2
- package/compute/networkPeering.d.ts +2 -2
- package/compute/networkPeering.js +2 -2
- package/compute/networkPeeringRoutesConfig.d.ts +2 -2
- package/compute/networkPeeringRoutesConfig.js +2 -2
- package/compute/packetMirroring.d.ts +1 -1
- package/compute/packetMirroring.js +1 -1
- package/compute/regionBackendService.d.ts +1 -1
- package/compute/regionBackendService.js +1 -1
- package/compute/regionHealthCheck.d.ts +1 -1
- package/compute/regionHealthCheck.js +1 -1
- package/compute/regionInstanceGroupManager.d.ts +1 -1
- package/compute/regionInstanceGroupManager.js +1 -1
- package/compute/regionUrlMap.d.ts +5 -5
- package/compute/regionUrlMap.js +5 -5
- package/compute/route.d.ts +2 -2
- package/compute/route.js +2 -2
- package/compute/serviceAttachment.d.ts +2 -2
- package/compute/serviceAttachment.js +2 -2
- package/compute/targetSSLProxy.d.ts +1 -1
- package/compute/targetSSLProxy.js +1 -1
- package/compute/targetTCPProxy.d.ts +1 -1
- package/compute/targetTCPProxy.js +1 -1
- package/compute/urlmap.d.ts +3 -3
- package/compute/urlmap.js +3 -3
- package/container/awsCluster.d.ts +12 -0
- package/container/awsCluster.js +2 -0
- package/container/awsCluster.js.map +1 -1
- package/container/awsNodePool.d.ts +4 -0
- package/container/awsNodePool.js +4 -0
- package/container/awsNodePool.js.map +1 -1
- package/container/azureCluster.d.ts +12 -0
- package/container/azureCluster.js +2 -0
- package/container/azureCluster.js.map +1 -1
- package/container/azureNodePool.d.ts +4 -0
- package/container/azureNodePool.js +4 -0
- package/container/azureNodePool.js.map +1 -1
- package/container/cluster.d.ts +0 -30
- package/container/cluster.js +0 -30
- package/container/cluster.js.map +1 -1
- package/container/nodePool.d.ts +0 -36
- package/container/nodePool.js +0 -36
- package/container/nodePool.js.map +1 -1
- package/datacatalog/tag.d.ts +3 -3
- package/datacatalog/tag.js +3 -3
- package/diagflow/cxPage.d.ts +2 -2
- package/diagflow/cxPage.js +2 -2
- package/dns/recordSet.d.ts +50 -14
- package/dns/recordSet.js +28 -3
- package/dns/recordSet.js.map +1 -1
- package/folder/iamAuditConfig.d.ts +5 -1
- package/folder/iamAuditConfig.js +5 -1
- package/folder/iamAuditConfig.js.map +1 -1
- package/folder/iammember.d.ts +5 -1
- package/folder/iammember.js +5 -1
- package/folder/iammember.js.map +1 -1
- package/folder/iampolicy.d.ts +5 -1
- package/folder/iampolicy.js +5 -1
- package/folder/iampolicy.js.map +1 -1
- package/networkservices/edgeCacheService.d.ts +4 -4
- package/networkservices/edgeCacheService.js +4 -4
- package/organizations/getClientOpenIdUserInfo.d.ts +7 -2
- package/organizations/getClientOpenIdUserInfo.js +7 -2
- package/organizations/getClientOpenIdUserInfo.js.map +1 -1
- package/organizations/iammember.d.ts +5 -1
- package/organizations/iammember.js +5 -1
- package/organizations/iammember.js.map +1 -1
- package/organizations/iampolicy.d.ts +5 -1
- package/organizations/iampolicy.js +5 -1
- package/organizations/iampolicy.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/projects/iamauditConfig.d.ts +5 -1
- package/projects/iamauditConfig.js +5 -1
- package/projects/iamauditConfig.js.map +1 -1
- package/projects/iambinding.d.ts +5 -1
- package/projects/iambinding.js +5 -1
- package/projects/iambinding.js.map +1 -1
- package/projects/iammember.d.ts +5 -1
- package/projects/iammember.js +5 -1
- package/projects/iammember.js.map +1 -1
- package/projects/iampolicy.d.ts +5 -1
- package/projects/iampolicy.js +5 -1
- package/projects/iampolicy.js.map +1 -1
- package/pubsub/liteSubscription.d.ts +1 -1
- package/pubsub/liteSubscription.js +1 -1
- package/pubsub/liteTopic.d.ts +1 -1
- package/pubsub/liteTopic.js +1 -1
- package/sql/database.d.ts +1 -1
- package/sql/database.js +1 -1
- package/storage/getObjectSignedUrl.d.ts +1 -1
- package/storage/getObjectSignedUrl.js +1 -1
- package/types/input.d.ts +130 -5
- package/types/output.d.ts +136 -7
|
@@ -8,63 +8,6 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
8
8
|
* * [API documentation](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services)
|
|
9
9
|
*
|
|
10
10
|
* ## Example Usage
|
|
11
|
-
* ### App Engine Service Split Traffic
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as gcp from "@pulumi/gcp";
|
|
16
|
-
*
|
|
17
|
-
* const bucket = new gcp.storage.Bucket("bucket", {location: "US"});
|
|
18
|
-
* const object = new gcp.storage.BucketObject("object", {
|
|
19
|
-
* bucket: bucket.name,
|
|
20
|
-
* source: new pulumi.asset.FileAsset("./test-fixtures/appengine/hello-world.zip"),
|
|
21
|
-
* });
|
|
22
|
-
* const liveappV1 = new gcp.appengine.StandardAppVersion("liveappV1", {
|
|
23
|
-
* versionId: "v1",
|
|
24
|
-
* service: "liveapp",
|
|
25
|
-
* deleteServiceOnDestroy: true,
|
|
26
|
-
* runtime: "nodejs10",
|
|
27
|
-
* entrypoint: {
|
|
28
|
-
* shell: "node ./app.js",
|
|
29
|
-
* },
|
|
30
|
-
* deployment: {
|
|
31
|
-
* zip: {
|
|
32
|
-
* sourceUrl: pulumi.interpolate`https://storage.googleapis.com/${bucket.name}/${object.name}`,
|
|
33
|
-
* },
|
|
34
|
-
* },
|
|
35
|
-
* envVariables: {
|
|
36
|
-
* port: "8080",
|
|
37
|
-
* },
|
|
38
|
-
* });
|
|
39
|
-
* const liveappV2 = new gcp.appengine.StandardAppVersion("liveappV2", {
|
|
40
|
-
* versionId: "v2",
|
|
41
|
-
* service: "liveapp",
|
|
42
|
-
* noopOnDestroy: true,
|
|
43
|
-
* runtime: "nodejs10",
|
|
44
|
-
* entrypoint: {
|
|
45
|
-
* shell: "node ./app.js",
|
|
46
|
-
* },
|
|
47
|
-
* deployment: {
|
|
48
|
-
* zip: {
|
|
49
|
-
* sourceUrl: pulumi.interpolate`https://storage.googleapis.com/${bucket.name}/${object.name}`,
|
|
50
|
-
* },
|
|
51
|
-
* },
|
|
52
|
-
* envVariables: {
|
|
53
|
-
* port: "8080",
|
|
54
|
-
* },
|
|
55
|
-
* });
|
|
56
|
-
* const liveapp = new gcp.appengine.EngineSplitTraffic("liveapp", {
|
|
57
|
-
* service: liveappV2.service,
|
|
58
|
-
* migrateTraffic: false,
|
|
59
|
-
* split: {
|
|
60
|
-
* shardBy: "IP",
|
|
61
|
-
* allocations: pulumi.all([liveappV1.versionId, liveappV2.versionId]).apply(([liveappV1VersionId, liveappV2VersionId]) => {
|
|
62
|
-
* [liveappV1VersionId]: 0.75,
|
|
63
|
-
* [liveappV2VersionId]: 0.25,
|
|
64
|
-
* }),
|
|
65
|
-
* },
|
|
66
|
-
* });
|
|
67
|
-
* ```
|
|
68
11
|
*
|
|
69
12
|
* ## Import
|
|
70
13
|
*
|
|
@@ -13,63 +13,6 @@ const utilities = require("../utilities");
|
|
|
13
13
|
* * [API documentation](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services)
|
|
14
14
|
*
|
|
15
15
|
* ## Example Usage
|
|
16
|
-
* ### App Engine Service Split Traffic
|
|
17
|
-
*
|
|
18
|
-
* ```typescript
|
|
19
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
20
|
-
* import * as gcp from "@pulumi/gcp";
|
|
21
|
-
*
|
|
22
|
-
* const bucket = new gcp.storage.Bucket("bucket", {location: "US"});
|
|
23
|
-
* const object = new gcp.storage.BucketObject("object", {
|
|
24
|
-
* bucket: bucket.name,
|
|
25
|
-
* source: new pulumi.asset.FileAsset("./test-fixtures/appengine/hello-world.zip"),
|
|
26
|
-
* });
|
|
27
|
-
* const liveappV1 = new gcp.appengine.StandardAppVersion("liveappV1", {
|
|
28
|
-
* versionId: "v1",
|
|
29
|
-
* service: "liveapp",
|
|
30
|
-
* deleteServiceOnDestroy: true,
|
|
31
|
-
* runtime: "nodejs10",
|
|
32
|
-
* entrypoint: {
|
|
33
|
-
* shell: "node ./app.js",
|
|
34
|
-
* },
|
|
35
|
-
* deployment: {
|
|
36
|
-
* zip: {
|
|
37
|
-
* sourceUrl: pulumi.interpolate`https://storage.googleapis.com/${bucket.name}/${object.name}`,
|
|
38
|
-
* },
|
|
39
|
-
* },
|
|
40
|
-
* envVariables: {
|
|
41
|
-
* port: "8080",
|
|
42
|
-
* },
|
|
43
|
-
* });
|
|
44
|
-
* const liveappV2 = new gcp.appengine.StandardAppVersion("liveappV2", {
|
|
45
|
-
* versionId: "v2",
|
|
46
|
-
* service: "liveapp",
|
|
47
|
-
* noopOnDestroy: true,
|
|
48
|
-
* runtime: "nodejs10",
|
|
49
|
-
* entrypoint: {
|
|
50
|
-
* shell: "node ./app.js",
|
|
51
|
-
* },
|
|
52
|
-
* deployment: {
|
|
53
|
-
* zip: {
|
|
54
|
-
* sourceUrl: pulumi.interpolate`https://storage.googleapis.com/${bucket.name}/${object.name}`,
|
|
55
|
-
* },
|
|
56
|
-
* },
|
|
57
|
-
* envVariables: {
|
|
58
|
-
* port: "8080",
|
|
59
|
-
* },
|
|
60
|
-
* });
|
|
61
|
-
* const liveapp = new gcp.appengine.EngineSplitTraffic("liveapp", {
|
|
62
|
-
* service: liveappV2.service,
|
|
63
|
-
* migrateTraffic: false,
|
|
64
|
-
* split: {
|
|
65
|
-
* shardBy: "IP",
|
|
66
|
-
* allocations: pulumi.all([liveappV1.versionId, liveappV2.versionId]).apply(([liveappV1VersionId, liveappV2VersionId]) => {
|
|
67
|
-
* [liveappV1VersionId]: 0.75,
|
|
68
|
-
* [liveappV2VersionId]: 0.25,
|
|
69
|
-
* }),
|
|
70
|
-
* },
|
|
71
|
-
* });
|
|
72
|
-
* ```
|
|
73
16
|
*
|
|
74
17
|
* ## Import
|
|
75
18
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engineSplitTraffic.js","sourceRoot":"","sources":["../../appengine/engineSplitTraffic.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"engineSplitTraffic.js","sourceRoot":"","sources":["../../appengine/engineSplitTraffic.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IAuDzD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkD,CAAC;YACjE,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;aAAM;YACH,MAAM,IAAI,GAAG,WAAiD,CAAC;YAC/D,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACpD,MAAM,IAAI,KAA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AkB,CAAC,YAAY,CAAC;IACnE,CAAC;;AA1BL,gDAgFC;AAlEG,gBAAgB;AACO,+BAAY,GAAG,qDAAqD,CAAC"}
|
package/bigquery/appProfile.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
35
35
|
* storageType: "HDD",
|
|
36
36
|
* },
|
|
37
37
|
* ],
|
|
38
|
-
* deletionProtection:
|
|
38
|
+
* deletionProtection: true,
|
|
39
39
|
* });
|
|
40
40
|
* const ap = new gcp.bigquery.AppProfile("ap", {
|
|
41
41
|
* instance: instance.name,
|
|
@@ -57,7 +57,7 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
57
57
|
* numNodes: 3,
|
|
58
58
|
* storageType: "HDD",
|
|
59
59
|
* }],
|
|
60
|
-
* deletionProtection:
|
|
60
|
+
* deletionProtection: true,
|
|
61
61
|
* });
|
|
62
62
|
* const ap = new gcp.bigquery.AppProfile("ap", {
|
|
63
63
|
* instance: instance.name,
|
|
@@ -96,7 +96,7 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
96
96
|
* storageType: "HDD",
|
|
97
97
|
* },
|
|
98
98
|
* ],
|
|
99
|
-
* deletionProtection:
|
|
99
|
+
* deletionProtection: true,
|
|
100
100
|
* });
|
|
101
101
|
* const ap = new gcp.bigquery.AppProfile("ap", {
|
|
102
102
|
* instance: instance.name,
|
package/bigquery/appProfile.js
CHANGED
|
@@ -40,7 +40,7 @@ const utilities = require("../utilities");
|
|
|
40
40
|
* storageType: "HDD",
|
|
41
41
|
* },
|
|
42
42
|
* ],
|
|
43
|
-
* deletionProtection:
|
|
43
|
+
* deletionProtection: true,
|
|
44
44
|
* });
|
|
45
45
|
* const ap = new gcp.bigquery.AppProfile("ap", {
|
|
46
46
|
* instance: instance.name,
|
|
@@ -62,7 +62,7 @@ const utilities = require("../utilities");
|
|
|
62
62
|
* numNodes: 3,
|
|
63
63
|
* storageType: "HDD",
|
|
64
64
|
* }],
|
|
65
|
-
* deletionProtection:
|
|
65
|
+
* deletionProtection: true,
|
|
66
66
|
* });
|
|
67
67
|
* const ap = new gcp.bigquery.AppProfile("ap", {
|
|
68
68
|
* instance: instance.name,
|
|
@@ -101,7 +101,7 @@ const utilities = require("../utilities");
|
|
|
101
101
|
* storageType: "HDD",
|
|
102
102
|
* },
|
|
103
103
|
* ],
|
|
104
|
-
* deletionProtection:
|
|
104
|
+
* deletionProtection: true,
|
|
105
105
|
* });
|
|
106
106
|
* const ap = new gcp.bigquery.AppProfile("ap", {
|
|
107
107
|
* instance: instance.name,
|
package/bigquery/connection.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
26
26
|
* settings: {
|
|
27
27
|
* tier: "db-f1-micro",
|
|
28
28
|
* },
|
|
29
|
-
* deletionProtection:
|
|
29
|
+
* deletionProtection: true,
|
|
30
30
|
* }, {
|
|
31
31
|
* provider: google_beta,
|
|
32
32
|
* });
|
|
@@ -72,7 +72,7 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
72
72
|
* settings: {
|
|
73
73
|
* tier: "db-f1-micro",
|
|
74
74
|
* },
|
|
75
|
-
* deletionProtection:
|
|
75
|
+
* deletionProtection: true,
|
|
76
76
|
* }, {
|
|
77
77
|
* provider: google_beta,
|
|
78
78
|
* });
|
package/bigquery/connection.js
CHANGED
|
@@ -31,7 +31,7 @@ const utilities = require("../utilities");
|
|
|
31
31
|
* settings: {
|
|
32
32
|
* tier: "db-f1-micro",
|
|
33
33
|
* },
|
|
34
|
-
* deletionProtection:
|
|
34
|
+
* deletionProtection: true,
|
|
35
35
|
* }, {
|
|
36
36
|
* provider: google_beta,
|
|
37
37
|
* });
|
|
@@ -77,7 +77,7 @@ const utilities = require("../utilities");
|
|
|
77
77
|
* settings: {
|
|
78
78
|
* tier: "db-f1-micro",
|
|
79
79
|
* },
|
|
80
|
-
* deletionProtection:
|
|
80
|
+
* deletionProtection: true,
|
|
81
81
|
* }, {
|
|
82
82
|
* provider: google_beta,
|
|
83
83
|
* });
|
|
@@ -135,7 +135,7 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
135
135
|
* pool: "ca-pool",
|
|
136
136
|
* certificateAuthorityId: "my-certificate-authority",
|
|
137
137
|
* location: "us-central1",
|
|
138
|
-
* deletionProtection:
|
|
138
|
+
* deletionProtection: true,
|
|
139
139
|
* keySpec: {
|
|
140
140
|
* cloudKmsKeyVersion: "projects/keys-project/locations/us-central1/keyRings/key-ring/cryptoKeys/crypto-key/cryptoKeyVersions/1",
|
|
141
141
|
* },
|
|
@@ -140,7 +140,7 @@ const utilities = require("../utilities");
|
|
|
140
140
|
* pool: "ca-pool",
|
|
141
141
|
* certificateAuthorityId: "my-certificate-authority",
|
|
142
142
|
* location: "us-central1",
|
|
143
|
-
* deletionProtection:
|
|
143
|
+
* deletionProtection: true,
|
|
144
144
|
* keySpec: {
|
|
145
145
|
* cloudKmsKeyVersion: "projects/keys-project/locations/us-central1/keyRings/key-ring/cryptoKeys/crypto-key/cryptoKeyVersions/1",
|
|
146
146
|
* },
|
|
@@ -122,6 +122,10 @@ export declare class Function extends pulumi.CustomResource {
|
|
|
122
122
|
* Description of the function.
|
|
123
123
|
*/
|
|
124
124
|
readonly description: pulumi.Output<string | undefined>;
|
|
125
|
+
/**
|
|
126
|
+
* User managed repository created in Artifact Registry optionally with a customer managed encryption key. If specified, deployments will use Artifact Registry. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, Container Registry will be used by default, unless specified otherwise by other means.
|
|
127
|
+
*/
|
|
128
|
+
readonly dockerRepository: pulumi.Output<string | undefined>;
|
|
125
129
|
/**
|
|
126
130
|
* Name of the function that will be executed when the Google Cloud Function is triggered.
|
|
127
131
|
*/
|
|
@@ -144,6 +148,11 @@ export declare class Function extends pulumi.CustomResource {
|
|
|
144
148
|
* String value that controls what traffic can reach the function. Allowed values are `ALLOW_ALL`, `ALLOW_INTERNAL_AND_GCLB` and `ALLOW_INTERNAL_ONLY`. Check [ingress documentation](https://cloud.google.com/functions/docs/networking/network-settings#ingress_settings) to see the impact of each settings value. Changes to this field will recreate the cloud function.
|
|
145
149
|
*/
|
|
146
150
|
readonly ingressSettings: pulumi.Output<string | undefined>;
|
|
151
|
+
/**
|
|
152
|
+
* Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
|
|
153
|
+
* If specified, you must also provide an artifact registry repository using the `dockerRepository` field that was created with the same KMS crypto key. Before deploying, please complete all pre-requisites described in https://cloud.google.com/functions/docs/securing/cmek#granting_service_accounts_access_to_the_key
|
|
154
|
+
*/
|
|
155
|
+
readonly kmsKeyName: pulumi.Output<string | undefined>;
|
|
147
156
|
/**
|
|
148
157
|
* A set of key/value label pairs to assign to the function. Label keys must follow the requirements at https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements.
|
|
149
158
|
*/
|
|
@@ -197,7 +206,7 @@ export declare class Function extends pulumi.CustomResource {
|
|
|
197
206
|
readonly sourceArchiveObject: pulumi.Output<string | undefined>;
|
|
198
207
|
/**
|
|
199
208
|
* Represents parameters related to source repository where a function is hosted.
|
|
200
|
-
* Cannot be set alongside `sourceArchiveBucket` or `sourceArchiveObject`. Structure is documented below.
|
|
209
|
+
* Cannot be set alongside `sourceArchiveBucket` or `sourceArchiveObject`. Structure is documented below. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`.*
|
|
201
210
|
*/
|
|
202
211
|
readonly sourceRepository: pulumi.Output<outputs.cloudfunctions.FunctionSourceRepository | undefined>;
|
|
203
212
|
/**
|
|
@@ -243,6 +252,10 @@ export interface FunctionState {
|
|
|
243
252
|
* Description of the function.
|
|
244
253
|
*/
|
|
245
254
|
description?: pulumi.Input<string>;
|
|
255
|
+
/**
|
|
256
|
+
* User managed repository created in Artifact Registry optionally with a customer managed encryption key. If specified, deployments will use Artifact Registry. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, Container Registry will be used by default, unless specified otherwise by other means.
|
|
257
|
+
*/
|
|
258
|
+
dockerRepository?: pulumi.Input<string>;
|
|
246
259
|
/**
|
|
247
260
|
* Name of the function that will be executed when the Google Cloud Function is triggered.
|
|
248
261
|
*/
|
|
@@ -265,6 +278,11 @@ export interface FunctionState {
|
|
|
265
278
|
* String value that controls what traffic can reach the function. Allowed values are `ALLOW_ALL`, `ALLOW_INTERNAL_AND_GCLB` and `ALLOW_INTERNAL_ONLY`. Check [ingress documentation](https://cloud.google.com/functions/docs/networking/network-settings#ingress_settings) to see the impact of each settings value. Changes to this field will recreate the cloud function.
|
|
266
279
|
*/
|
|
267
280
|
ingressSettings?: pulumi.Input<string>;
|
|
281
|
+
/**
|
|
282
|
+
* Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
|
|
283
|
+
* If specified, you must also provide an artifact registry repository using the `dockerRepository` field that was created with the same KMS crypto key. Before deploying, please complete all pre-requisites described in https://cloud.google.com/functions/docs/securing/cmek#granting_service_accounts_access_to_the_key
|
|
284
|
+
*/
|
|
285
|
+
kmsKeyName?: pulumi.Input<string>;
|
|
268
286
|
/**
|
|
269
287
|
* A set of key/value label pairs to assign to the function. Label keys must follow the requirements at https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements.
|
|
270
288
|
*/
|
|
@@ -318,7 +336,7 @@ export interface FunctionState {
|
|
|
318
336
|
sourceArchiveObject?: pulumi.Input<string>;
|
|
319
337
|
/**
|
|
320
338
|
* Represents parameters related to source repository where a function is hosted.
|
|
321
|
-
* Cannot be set alongside `sourceArchiveBucket` or `sourceArchiveObject`. Structure is documented below.
|
|
339
|
+
* Cannot be set alongside `sourceArchiveBucket` or `sourceArchiveObject`. Structure is documented below. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`.*
|
|
322
340
|
*/
|
|
323
341
|
sourceRepository?: pulumi.Input<inputs.cloudfunctions.FunctionSourceRepository>;
|
|
324
342
|
/**
|
|
@@ -356,6 +374,10 @@ export interface FunctionArgs {
|
|
|
356
374
|
* Description of the function.
|
|
357
375
|
*/
|
|
358
376
|
description?: pulumi.Input<string>;
|
|
377
|
+
/**
|
|
378
|
+
* User managed repository created in Artifact Registry optionally with a customer managed encryption key. If specified, deployments will use Artifact Registry. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, Container Registry will be used by default, unless specified otherwise by other means.
|
|
379
|
+
*/
|
|
380
|
+
dockerRepository?: pulumi.Input<string>;
|
|
359
381
|
/**
|
|
360
382
|
* Name of the function that will be executed when the Google Cloud Function is triggered.
|
|
361
383
|
*/
|
|
@@ -378,6 +400,11 @@ export interface FunctionArgs {
|
|
|
378
400
|
* String value that controls what traffic can reach the function. Allowed values are `ALLOW_ALL`, `ALLOW_INTERNAL_AND_GCLB` and `ALLOW_INTERNAL_ONLY`. Check [ingress documentation](https://cloud.google.com/functions/docs/networking/network-settings#ingress_settings) to see the impact of each settings value. Changes to this field will recreate the cloud function.
|
|
379
401
|
*/
|
|
380
402
|
ingressSettings?: pulumi.Input<string>;
|
|
403
|
+
/**
|
|
404
|
+
* Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
|
|
405
|
+
* If specified, you must also provide an artifact registry repository using the `dockerRepository` field that was created with the same KMS crypto key. Before deploying, please complete all pre-requisites described in https://cloud.google.com/functions/docs/securing/cmek#granting_service_accounts_access_to_the_key
|
|
406
|
+
*/
|
|
407
|
+
kmsKeyName?: pulumi.Input<string>;
|
|
381
408
|
/**
|
|
382
409
|
* A set of key/value label pairs to assign to the function. Label keys must follow the requirements at https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements.
|
|
383
410
|
*/
|
|
@@ -431,7 +458,7 @@ export interface FunctionArgs {
|
|
|
431
458
|
sourceArchiveObject?: pulumi.Input<string>;
|
|
432
459
|
/**
|
|
433
460
|
* Represents parameters related to source repository where a function is hosted.
|
|
434
|
-
* Cannot be set alongside `sourceArchiveBucket` or `sourceArchiveObject`. Structure is documented below.
|
|
461
|
+
* Cannot be set alongside `sourceArchiveBucket` or `sourceArchiveObject`. Structure is documented below. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`.*
|
|
435
462
|
*/
|
|
436
463
|
sourceRepository?: pulumi.Input<inputs.cloudfunctions.FunctionSourceRepository>;
|
|
437
464
|
/**
|
|
@@ -106,11 +106,13 @@ class Function extends pulumi.CustomResource {
|
|
|
106
106
|
resourceInputs["availableMemoryMb"] = state ? state.availableMemoryMb : undefined;
|
|
107
107
|
resourceInputs["buildEnvironmentVariables"] = state ? state.buildEnvironmentVariables : undefined;
|
|
108
108
|
resourceInputs["description"] = state ? state.description : undefined;
|
|
109
|
+
resourceInputs["dockerRepository"] = state ? state.dockerRepository : undefined;
|
|
109
110
|
resourceInputs["entryPoint"] = state ? state.entryPoint : undefined;
|
|
110
111
|
resourceInputs["environmentVariables"] = state ? state.environmentVariables : undefined;
|
|
111
112
|
resourceInputs["eventTrigger"] = state ? state.eventTrigger : undefined;
|
|
112
113
|
resourceInputs["httpsTriggerUrl"] = state ? state.httpsTriggerUrl : undefined;
|
|
113
114
|
resourceInputs["ingressSettings"] = state ? state.ingressSettings : undefined;
|
|
115
|
+
resourceInputs["kmsKeyName"] = state ? state.kmsKeyName : undefined;
|
|
114
116
|
resourceInputs["labels"] = state ? state.labels : undefined;
|
|
115
117
|
resourceInputs["maxInstances"] = state ? state.maxInstances : undefined;
|
|
116
118
|
resourceInputs["minInstances"] = state ? state.minInstances : undefined;
|
|
@@ -137,11 +139,13 @@ class Function extends pulumi.CustomResource {
|
|
|
137
139
|
resourceInputs["availableMemoryMb"] = args ? args.availableMemoryMb : undefined;
|
|
138
140
|
resourceInputs["buildEnvironmentVariables"] = args ? args.buildEnvironmentVariables : undefined;
|
|
139
141
|
resourceInputs["description"] = args ? args.description : undefined;
|
|
142
|
+
resourceInputs["dockerRepository"] = args ? args.dockerRepository : undefined;
|
|
140
143
|
resourceInputs["entryPoint"] = args ? args.entryPoint : undefined;
|
|
141
144
|
resourceInputs["environmentVariables"] = args ? args.environmentVariables : undefined;
|
|
142
145
|
resourceInputs["eventTrigger"] = args ? args.eventTrigger : undefined;
|
|
143
146
|
resourceInputs["httpsTriggerUrl"] = args ? args.httpsTriggerUrl : undefined;
|
|
144
147
|
resourceInputs["ingressSettings"] = args ? args.ingressSettings : undefined;
|
|
148
|
+
resourceInputs["kmsKeyName"] = args ? args.kmsKeyName : undefined;
|
|
145
149
|
resourceInputs["labels"] = args ? args.labels : undefined;
|
|
146
150
|
resourceInputs["maxInstances"] = args ? args.maxInstances : undefined;
|
|
147
151
|
resourceInputs["minInstances"] = args ? args.minInstances : undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function.js","sourceRoot":"","sources":["../../cloudfunctions/function.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2FG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"function.js","sourceRoot":"","sources":["../../cloudfunctions/function.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2FG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAoJ/C,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;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AY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,4BAA4B,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC,CAAC,SAAS,CAAC;SACrG;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IAtND;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AA1BL,4BAwNC;AA1MG,gBAAgB;AACO,qBAAY,GAAG,sCAAsC,CAAC"}
|
|
@@ -51,6 +51,7 @@ export interface GetFunctionResult {
|
|
|
51
51
|
* Description of the function.
|
|
52
52
|
*/
|
|
53
53
|
readonly description: string;
|
|
54
|
+
readonly dockerRepository: string;
|
|
54
55
|
/**
|
|
55
56
|
* Name of a JavaScript function that will be executed when the Google Cloud Function is triggered.
|
|
56
57
|
*/
|
|
@@ -74,6 +75,7 @@ export interface GetFunctionResult {
|
|
|
74
75
|
* Controls what traffic can reach the function.
|
|
75
76
|
*/
|
|
76
77
|
readonly ingressSettings: string;
|
|
78
|
+
readonly kmsKeyName: string;
|
|
77
79
|
/**
|
|
78
80
|
* A map of labels applied to this function.
|
|
79
81
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFunction.js","sourceRoot":"","sources":["../../cloudfunctions/getFunction.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAC1E,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE;QACvE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,kCAWC;
|
|
1
|
+
{"version":3,"file":"getFunction.js","sourceRoot":"","sources":["../../cloudfunctions/getFunction.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAC1E,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE;QACvE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,kCAWC;AAiHD,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IACtF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC/D,CAAC;AAFD,8CAEC"}
|
package/cloudrun/service.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
59
59
|
* settings: {
|
|
60
60
|
* tier: "db-f1-micro",
|
|
61
61
|
* },
|
|
62
|
-
* deletionProtection:
|
|
62
|
+
* deletionProtection: true,
|
|
63
63
|
* });
|
|
64
64
|
* const _default = new gcp.cloudrun.Service("default", {
|
|
65
65
|
* location: "us-central1",
|
package/cloudrun/service.js
CHANGED
|
@@ -133,7 +133,7 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
133
133
|
*
|
|
134
134
|
* const externalProxy = new gcp.compute.GlobalNetworkEndpointGroup("externalProxy", {
|
|
135
135
|
* networkEndpointType: "INTERNET_FQDN_PORT",
|
|
136
|
-
* defaultPort:
|
|
136
|
+
* defaultPort: 443,
|
|
137
137
|
* }, {
|
|
138
138
|
* provider: google_beta,
|
|
139
139
|
* });
|
|
@@ -138,7 +138,7 @@ const utilities = require("../utilities");
|
|
|
138
138
|
*
|
|
139
139
|
* const externalProxy = new gcp.compute.GlobalNetworkEndpointGroup("externalProxy", {
|
|
140
140
|
* networkEndpointType: "INTERNET_FQDN_PORT",
|
|
141
|
-
* defaultPort:
|
|
141
|
+
* defaultPort: 443,
|
|
142
142
|
* }, {
|
|
143
143
|
* provider: google_beta,
|
|
144
144
|
* });
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "../types";
|
|
2
3
|
/**
|
|
3
4
|
* A ForwardingRule resource. A ForwardingRule resource specifies which pool
|
|
4
5
|
* of target virtual machines to forward a packet to if it matches the given
|
|
@@ -214,7 +215,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
214
215
|
* const defaultRegionHealthCheck = new gcp.compute.RegionHealthCheck("defaultRegionHealthCheck", {
|
|
215
216
|
* region: "europe-west1",
|
|
216
217
|
* httpHealthCheck: {
|
|
217
|
-
* port:
|
|
218
|
+
* port: 80,
|
|
218
219
|
* },
|
|
219
220
|
* }, {
|
|
220
221
|
* provider: google_beta,
|
|
@@ -373,7 +374,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
373
374
|
* timeoutSec: 1,
|
|
374
375
|
* region: "us-central1",
|
|
375
376
|
* tcpHealthCheck: {
|
|
376
|
-
* port:
|
|
377
|
+
* port: 80,
|
|
377
378
|
* },
|
|
378
379
|
* }, {
|
|
379
380
|
* provider: google_beta,
|
|
@@ -388,7 +389,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
388
389
|
* // Forwarding rule for External Network Load Balancing using Backend Services
|
|
389
390
|
* const _default = new gcp.compute.ForwardingRule("default", {
|
|
390
391
|
* region: "us-central1",
|
|
391
|
-
* portRange: 80,
|
|
392
|
+
* portRange: "80",
|
|
392
393
|
* backendService: backend.id,
|
|
393
394
|
* }, {
|
|
394
395
|
* provider: google_beta,
|
|
@@ -404,7 +405,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
404
405
|
* checkIntervalSec: 1,
|
|
405
406
|
* timeoutSec: 1,
|
|
406
407
|
* tcpHealthCheck: {
|
|
407
|
-
* port:
|
|
408
|
+
* port: 80,
|
|
408
409
|
* },
|
|
409
410
|
* });
|
|
410
411
|
* const backend = new gcp.compute.RegionBackendService("backend", {
|
|
@@ -480,7 +481,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
480
481
|
* checkIntervalSec: 1,
|
|
481
482
|
* timeoutSec: 1,
|
|
482
483
|
* tcpHealthCheck: {
|
|
483
|
-
* port:
|
|
484
|
+
* port: 80,
|
|
484
485
|
* },
|
|
485
486
|
* });
|
|
486
487
|
* const backend = new gcp.compute.RegionBackendService("backend", {
|
|
@@ -1058,6 +1059,12 @@ export declare class ForwardingRule extends pulumi.CustomResource {
|
|
|
1058
1059
|
* The URI of the created resource.
|
|
1059
1060
|
*/
|
|
1060
1061
|
readonly selfLink: pulumi.Output<string>;
|
|
1062
|
+
/**
|
|
1063
|
+
* Service Directory resources to register this forwarding rule with. Currently,
|
|
1064
|
+
* only supports a single Service Directory resource.
|
|
1065
|
+
* Structure is documented below.
|
|
1066
|
+
*/
|
|
1067
|
+
readonly serviceDirectoryRegistrations: pulumi.Output<outputs.compute.ForwardingRuleServiceDirectoryRegistration[]>;
|
|
1061
1068
|
/**
|
|
1062
1069
|
* An optional prefix to the service name for this Forwarding Rule.
|
|
1063
1070
|
* If specified, will be the first label of the fully qualified service
|
|
@@ -1256,6 +1263,12 @@ export interface ForwardingRuleState {
|
|
|
1256
1263
|
* The URI of the created resource.
|
|
1257
1264
|
*/
|
|
1258
1265
|
selfLink?: pulumi.Input<string>;
|
|
1266
|
+
/**
|
|
1267
|
+
* Service Directory resources to register this forwarding rule with. Currently,
|
|
1268
|
+
* only supports a single Service Directory resource.
|
|
1269
|
+
* Structure is documented below.
|
|
1270
|
+
*/
|
|
1271
|
+
serviceDirectoryRegistrations?: pulumi.Input<pulumi.Input<inputs.compute.ForwardingRuleServiceDirectoryRegistration>[]>;
|
|
1259
1272
|
/**
|
|
1260
1273
|
* An optional prefix to the service name for this Forwarding Rule.
|
|
1261
1274
|
* If specified, will be the first label of the fully qualified service
|
|
@@ -1434,6 +1447,12 @@ export interface ForwardingRuleArgs {
|
|
|
1434
1447
|
* This field is not applicable to global forwarding rules.
|
|
1435
1448
|
*/
|
|
1436
1449
|
region?: pulumi.Input<string>;
|
|
1450
|
+
/**
|
|
1451
|
+
* Service Directory resources to register this forwarding rule with. Currently,
|
|
1452
|
+
* only supports a single Service Directory resource.
|
|
1453
|
+
* Structure is documented below.
|
|
1454
|
+
*/
|
|
1455
|
+
serviceDirectoryRegistrations?: pulumi.Input<pulumi.Input<inputs.compute.ForwardingRuleServiceDirectoryRegistration>[]>;
|
|
1437
1456
|
/**
|
|
1438
1457
|
* An optional prefix to the service name for this Forwarding Rule.
|
|
1439
1458
|
* If specified, will be the first label of the fully qualified service
|
|
@@ -220,7 +220,7 @@ const utilities = require("../utilities");
|
|
|
220
220
|
* const defaultRegionHealthCheck = new gcp.compute.RegionHealthCheck("defaultRegionHealthCheck", {
|
|
221
221
|
* region: "europe-west1",
|
|
222
222
|
* httpHealthCheck: {
|
|
223
|
-
* port:
|
|
223
|
+
* port: 80,
|
|
224
224
|
* },
|
|
225
225
|
* }, {
|
|
226
226
|
* provider: google_beta,
|
|
@@ -379,7 +379,7 @@ const utilities = require("../utilities");
|
|
|
379
379
|
* timeoutSec: 1,
|
|
380
380
|
* region: "us-central1",
|
|
381
381
|
* tcpHealthCheck: {
|
|
382
|
-
* port:
|
|
382
|
+
* port: 80,
|
|
383
383
|
* },
|
|
384
384
|
* }, {
|
|
385
385
|
* provider: google_beta,
|
|
@@ -394,7 +394,7 @@ const utilities = require("../utilities");
|
|
|
394
394
|
* // Forwarding rule for External Network Load Balancing using Backend Services
|
|
395
395
|
* const _default = new gcp.compute.ForwardingRule("default", {
|
|
396
396
|
* region: "us-central1",
|
|
397
|
-
* portRange: 80,
|
|
397
|
+
* portRange: "80",
|
|
398
398
|
* backendService: backend.id,
|
|
399
399
|
* }, {
|
|
400
400
|
* provider: google_beta,
|
|
@@ -410,7 +410,7 @@ const utilities = require("../utilities");
|
|
|
410
410
|
* checkIntervalSec: 1,
|
|
411
411
|
* timeoutSec: 1,
|
|
412
412
|
* tcpHealthCheck: {
|
|
413
|
-
* port:
|
|
413
|
+
* port: 80,
|
|
414
414
|
* },
|
|
415
415
|
* });
|
|
416
416
|
* const backend = new gcp.compute.RegionBackendService("backend", {
|
|
@@ -486,7 +486,7 @@ const utilities = require("../utilities");
|
|
|
486
486
|
* checkIntervalSec: 1,
|
|
487
487
|
* timeoutSec: 1,
|
|
488
488
|
* tcpHealthCheck: {
|
|
489
|
-
* port:
|
|
489
|
+
* port: 80,
|
|
490
490
|
* },
|
|
491
491
|
* });
|
|
492
492
|
* const backend = new gcp.compute.RegionBackendService("backend", {
|
|
@@ -921,6 +921,7 @@ class ForwardingRule extends pulumi.CustomResource {
|
|
|
921
921
|
resourceInputs["project"] = state ? state.project : undefined;
|
|
922
922
|
resourceInputs["region"] = state ? state.region : undefined;
|
|
923
923
|
resourceInputs["selfLink"] = state ? state.selfLink : undefined;
|
|
924
|
+
resourceInputs["serviceDirectoryRegistrations"] = state ? state.serviceDirectoryRegistrations : undefined;
|
|
924
925
|
resourceInputs["serviceLabel"] = state ? state.serviceLabel : undefined;
|
|
925
926
|
resourceInputs["serviceName"] = state ? state.serviceName : undefined;
|
|
926
927
|
resourceInputs["subnetwork"] = state ? state.subnetwork : undefined;
|
|
@@ -944,6 +945,7 @@ class ForwardingRule extends pulumi.CustomResource {
|
|
|
944
945
|
resourceInputs["ports"] = args ? args.ports : undefined;
|
|
945
946
|
resourceInputs["project"] = args ? args.project : undefined;
|
|
946
947
|
resourceInputs["region"] = args ? args.region : undefined;
|
|
948
|
+
resourceInputs["serviceDirectoryRegistrations"] = args ? args.serviceDirectoryRegistrations : undefined;
|
|
947
949
|
resourceInputs["serviceLabel"] = args ? args.serviceLabel : undefined;
|
|
948
950
|
resourceInputs["subnetwork"] = args ? args.subnetwork : undefined;
|
|
949
951
|
resourceInputs["target"] = args ? args.target : undefined;
|