@pulumi/gcp 6.44.0 → 6.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alloydb/instance.d.ts +3 -0
- package/alloydb/instance.js +3 -0
- package/alloydb/instance.js.map +1 -1
- package/bigtable/gcpolicy.d.ts +58 -32
- package/bigtable/gcpolicy.js +45 -32
- package/bigtable/gcpolicy.js.map +1 -1
- package/bigtable/instance.d.ts +6 -3
- package/bigtable/instance.js.map +1 -1
- package/certificateauthority/authority.d.ts +3 -2
- package/certificateauthority/authority.js +3 -2
- package/certificateauthority/authority.js.map +1 -1
- package/certificateauthority/certificate.d.ts +12 -5
- package/certificateauthority/certificate.js +12 -5
- package/certificateauthority/certificate.js.map +1 -1
- package/cloudrunv2/index.d.ts +6 -0
- package/cloudrunv2/index.js +27 -0
- package/cloudrunv2/index.js.map +1 -0
- package/cloudrunv2/job.d.ts +501 -0
- package/cloudrunv2/job.js +321 -0
- package/cloudrunv2/job.js.map +1 -0
- package/cloudrunv2/service.d.ts +574 -0
- package/cloudrunv2/service.js +334 -0
- package/cloudrunv2/service.js.map +1 -0
- package/compute/backendService.d.ts +19 -0
- package/compute/backendService.js +19 -0
- package/compute/backendService.js.map +1 -1
- package/compute/forwardingRule.d.ts +21 -30
- package/compute/forwardingRule.js.map +1 -1
- package/compute/instanceGroupManager.d.ts +27 -0
- package/compute/instanceGroupManager.js +2 -0
- package/compute/instanceGroupManager.js.map +1 -1
- package/compute/regionInstanceGroupManager.d.ts +27 -0
- package/compute/regionInstanceGroupManager.js +2 -0
- package/compute/regionInstanceGroupManager.js.map +1 -1
- package/compute/routerInterface.d.ts +52 -31
- package/compute/routerInterface.js +4 -0
- package/compute/routerInterface.js.map +1 -1
- package/compute/securityPolicy.d.ts +83 -0
- package/compute/securityPolicy.js +73 -0
- package/compute/securityPolicy.js.map +1 -1
- package/config/vars.d.ts +3 -0
- package/config/vars.js +18 -0
- package/config/vars.js.map +1 -1
- package/container/cluster.d.ts +7 -4
- package/container/cluster.js.map +1 -1
- package/container/nodePool.d.ts +9 -6
- package/container/nodePool.js.map +1 -1
- package/datafusion/instance.d.ts +97 -5
- package/datafusion/instance.js +52 -5
- package/datafusion/instance.js.map +1 -1
- package/dataproc/metastoreService.d.ts +49 -0
- package/dataproc/metastoreService.js +34 -0
- package/dataproc/metastoreService.js.map +1 -1
- package/datastream/privateConnection.d.ts +16 -0
- package/datastream/privateConnection.js +4 -0
- package/datastream/privateConnection.js.map +1 -1
- package/eventarc/googleChannelConfig.d.ts +142 -0
- package/eventarc/googleChannelConfig.js +110 -0
- package/eventarc/googleChannelConfig.js.map +1 -0
- package/eventarc/index.d.ts +3 -0
- package/eventarc/index.js +6 -1
- package/eventarc/index.js.map +1 -1
- package/firebase/getAndroidApp.d.ts +36 -0
- package/firebase/getAndroidApp.js +22 -0
- package/firebase/getAndroidApp.js.map +1 -0
- package/firebase/index.d.ts +6 -0
- package/firebase/index.js +9 -1
- package/firebase/index.js.map +1 -1
- package/firebase/storageBucket.d.ts +109 -0
- package/firebase/storageBucket.js +91 -0
- package/firebase/storageBucket.js.map +1 -0
- package/gkebackup/backupPlan.d.ts +403 -0
- package/gkebackup/backupPlan.js +259 -0
- package/gkebackup/backupPlan.js.map +1 -0
- package/gkebackup/index.d.ts +3 -0
- package/gkebackup/index.js +22 -0
- package/gkebackup/index.js.map +1 -0
- package/gkehub/featureMembership.d.ts +1 -0
- package/gkehub/featureMembership.js +1 -0
- package/gkehub/featureMembership.js.map +1 -1
- package/iam/index.d.ts +3 -0
- package/iam/index.js +6 -1
- package/iam/index.js.map +1 -1
- package/iam/workforcePoolProvider.d.ts +510 -0
- package/iam/workforcePoolProvider.js +213 -0
- package/iam/workforcePoolProvider.js.map +1 -0
- package/index.d.ts +3 -1
- package/index.js +6 -2
- package/index.js.map +1 -1
- package/logging/billingAccountBucketConfig.d.ts +20 -0
- package/logging/billingAccountBucketConfig.js +2 -0
- package/logging/billingAccountBucketConfig.js.map +1 -1
- package/logging/folderBucketConfig.d.ts +20 -0
- package/logging/folderBucketConfig.js +2 -0
- package/logging/folderBucketConfig.js.map +1 -1
- package/logging/getProjectCmekSettings.d.ts +97 -0
- package/logging/getProjectCmekSettings.js +43 -0
- package/logging/getProjectCmekSettings.js.map +1 -0
- package/logging/index.d.ts +3 -0
- package/logging/index.js +4 -1
- package/logging/index.js.map +1 -1
- package/logging/organizationBucketConfig.d.ts +20 -0
- package/logging/organizationBucketConfig.js +2 -0
- package/logging/organizationBucketConfig.js.map +1 -1
- package/logging/projectBucketConfig.d.ts +48 -2
- package/logging/projectBucketConfig.js +34 -0
- package/logging/projectBucketConfig.js.map +1 -1
- package/networkservices/edgeCacheOrigin.d.ts +55 -1
- package/networkservices/edgeCacheOrigin.js +26 -1
- package/networkservices/edgeCacheOrigin.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/provider.d.ts +6 -0
- package/provider.js +3 -0
- package/provider.js.map +1 -1
- package/securitycenter/index.d.ts +9 -0
- package/securitycenter/index.js +16 -1
- package/securitycenter/index.js.map +1 -1
- package/securitycenter/instanceIamBinding.d.ts +239 -0
- package/securitycenter/instanceIamBinding.js +218 -0
- package/securitycenter/instanceIamBinding.js.map +1 -0
- package/securitycenter/instanceIamMember.d.ts +239 -0
- package/securitycenter/instanceIamMember.js +218 -0
- package/securitycenter/instanceIamMember.js.map +1 -0
- package/securitycenter/instanceIamPolicy.d.ts +231 -0
- package/securitycenter/instanceIamPolicy.js +211 -0
- package/securitycenter/instanceIamPolicy.js.map +1 -0
- package/sql/database.d.ts +41 -0
- package/sql/database.js +22 -0
- package/sql/database.js.map +1 -1
- package/storage/bucket.d.ts +29 -7
- package/storage/bucket.js +18 -6
- package/storage/bucket.js.map +1 -1
- package/storage/getBucket.d.ts +1 -0
- package/storage/getBucket.js.map +1 -1
- package/types/input.d.ts +1544 -98
- package/types/output.d.ts +1559 -94
- package/vertex/aiFeatureStoreEntityTypeIamBinding.d.ts +119 -0
- package/vertex/aiFeatureStoreEntityTypeIamBinding.js +96 -0
- package/vertex/aiFeatureStoreEntityTypeIamBinding.js.map +1 -0
- package/vertex/aiFeatureStoreEntityTypeIamMember.d.ts +119 -0
- package/vertex/aiFeatureStoreEntityTypeIamMember.js +96 -0
- package/vertex/aiFeatureStoreEntityTypeIamMember.js.map +1 -0
- package/vertex/aiFeatureStoreEntityTypeIamPolicy.d.ts +108 -0
- package/vertex/aiFeatureStoreEntityTypeIamPolicy.js +89 -0
- package/vertex/aiFeatureStoreEntityTypeIamPolicy.js.map +1 -0
- package/vertex/aiFeatureStoreIamBinding.d.ts +53 -43
- package/vertex/aiFeatureStoreIamBinding.js +11 -37
- package/vertex/aiFeatureStoreIamBinding.js.map +1 -1
- package/vertex/aiFeatureStoreIamMember.d.ts +53 -43
- package/vertex/aiFeatureStoreIamMember.js +11 -37
- package/vertex/aiFeatureStoreIamMember.js.map +1 -1
- package/vertex/aiFeatureStoreIamPolicy.d.ts +50 -43
- package/vertex/aiFeatureStoreIamPolicy.js +11 -37
- package/vertex/aiFeatureStoreIamPolicy.js.map +1 -1
- package/vertex/aiIndex.d.ts +314 -0
- package/vertex/aiIndex.js +188 -0
- package/vertex/aiIndex.js.map +1 -0
- package/vertex/aiTensorboard.d.ts +242 -0
- package/vertex/aiTensorboard.js +146 -0
- package/vertex/aiTensorboard.js.map +1 -0
- package/vertex/index.d.ts +15 -0
- package/vertex/index.js +26 -1
- package/vertex/index.js.map +1 -1
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
* ### Gkebackup Backupplan Basic
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as gcp from "@pulumi/gcp";
|
|
11
|
+
*
|
|
12
|
+
* const primary = new gcp.container.Cluster("primary", {
|
|
13
|
+
* location: "us-central1",
|
|
14
|
+
* initialNodeCount: 1,
|
|
15
|
+
* workloadIdentityConfig: {
|
|
16
|
+
* workloadPool: "my-project-name.svc.id.goog",
|
|
17
|
+
* },
|
|
18
|
+
* addonsConfig: {
|
|
19
|
+
* gkeBackupAgentConfig: {
|
|
20
|
+
* enabled: true,
|
|
21
|
+
* },
|
|
22
|
+
* },
|
|
23
|
+
* }, {
|
|
24
|
+
* provider: google_beta,
|
|
25
|
+
* });
|
|
26
|
+
* const basic = new gcp.gkebackup.BackupPlan("basic", {
|
|
27
|
+
* cluster: primary.id,
|
|
28
|
+
* location: "us-central1",
|
|
29
|
+
* backupConfig: {
|
|
30
|
+
* includeVolumeData: true,
|
|
31
|
+
* includeSecrets: true,
|
|
32
|
+
* allNamespaces: true,
|
|
33
|
+
* },
|
|
34
|
+
* }, {
|
|
35
|
+
* provider: google_beta,
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
* ### Gkebackup Backupplan Autopilot
|
|
39
|
+
*
|
|
40
|
+
* ```typescript
|
|
41
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
42
|
+
* import * as gcp from "@pulumi/gcp";
|
|
43
|
+
*
|
|
44
|
+
* const primary = new gcp.container.Cluster("primary", {
|
|
45
|
+
* location: "us-central1",
|
|
46
|
+
* enableAutopilot: true,
|
|
47
|
+
* ipAllocationPolicy: {},
|
|
48
|
+
* releaseChannel: {
|
|
49
|
+
* channel: "RAPID",
|
|
50
|
+
* },
|
|
51
|
+
* addonsConfig: {
|
|
52
|
+
* gkeBackupAgentConfig: {
|
|
53
|
+
* enabled: true,
|
|
54
|
+
* },
|
|
55
|
+
* },
|
|
56
|
+
* }, {
|
|
57
|
+
* provider: google_beta,
|
|
58
|
+
* });
|
|
59
|
+
* const autopilot = new gcp.gkebackup.BackupPlan("autopilot", {
|
|
60
|
+
* cluster: primary.id,
|
|
61
|
+
* location: "us-central1",
|
|
62
|
+
* backupConfig: {
|
|
63
|
+
* includeVolumeData: true,
|
|
64
|
+
* includeSecrets: true,
|
|
65
|
+
* allNamespaces: true,
|
|
66
|
+
* },
|
|
67
|
+
* }, {
|
|
68
|
+
* provider: google_beta,
|
|
69
|
+
* });
|
|
70
|
+
* ```
|
|
71
|
+
* ### Gkebackup Backupplan Cmek
|
|
72
|
+
*
|
|
73
|
+
* ```typescript
|
|
74
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
75
|
+
* import * as gcp from "@pulumi/gcp";
|
|
76
|
+
*
|
|
77
|
+
* const primary = new gcp.container.Cluster("primary", {
|
|
78
|
+
* location: "us-central1",
|
|
79
|
+
* initialNodeCount: 1,
|
|
80
|
+
* workloadIdentityConfig: {
|
|
81
|
+
* workloadPool: "my-project-name.svc.id.goog",
|
|
82
|
+
* },
|
|
83
|
+
* addonsConfig: {
|
|
84
|
+
* gkeBackupAgentConfig: {
|
|
85
|
+
* enabled: true,
|
|
86
|
+
* },
|
|
87
|
+
* },
|
|
88
|
+
* }, {
|
|
89
|
+
* provider: google_beta,
|
|
90
|
+
* });
|
|
91
|
+
* const keyRing = new gcp.kms.KeyRing("keyRing", {location: "us-central1"}, {
|
|
92
|
+
* provider: google_beta,
|
|
93
|
+
* });
|
|
94
|
+
* const cryptoKey = new gcp.kms.CryptoKey("cryptoKey", {keyRing: keyRing.id}, {
|
|
95
|
+
* provider: google_beta,
|
|
96
|
+
* });
|
|
97
|
+
* const cmek = new gcp.gkebackup.BackupPlan("cmek", {
|
|
98
|
+
* cluster: primary.id,
|
|
99
|
+
* location: "us-central1",
|
|
100
|
+
* backupConfig: {
|
|
101
|
+
* includeVolumeData: true,
|
|
102
|
+
* includeSecrets: true,
|
|
103
|
+
* selectedNamespaces: {
|
|
104
|
+
* namespaces: [
|
|
105
|
+
* "default",
|
|
106
|
+
* "test",
|
|
107
|
+
* ],
|
|
108
|
+
* },
|
|
109
|
+
* encryptionKey: {
|
|
110
|
+
* gcpKmsEncryptionKey: cryptoKey.id,
|
|
111
|
+
* },
|
|
112
|
+
* },
|
|
113
|
+
* }, {
|
|
114
|
+
* provider: google_beta,
|
|
115
|
+
* });
|
|
116
|
+
* ```
|
|
117
|
+
* ### Gkebackup Backupplan Full
|
|
118
|
+
*
|
|
119
|
+
* ```typescript
|
|
120
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
121
|
+
* import * as gcp from "@pulumi/gcp";
|
|
122
|
+
*
|
|
123
|
+
* const primary = new gcp.container.Cluster("primary", {
|
|
124
|
+
* location: "us-central1",
|
|
125
|
+
* initialNodeCount: 1,
|
|
126
|
+
* workloadIdentityConfig: {
|
|
127
|
+
* workloadPool: "my-project-name.svc.id.goog",
|
|
128
|
+
* },
|
|
129
|
+
* addonsConfig: {
|
|
130
|
+
* gkeBackupAgentConfig: {
|
|
131
|
+
* enabled: true,
|
|
132
|
+
* },
|
|
133
|
+
* },
|
|
134
|
+
* }, {
|
|
135
|
+
* provider: google_beta,
|
|
136
|
+
* });
|
|
137
|
+
* const full = new gcp.gkebackup.BackupPlan("full", {
|
|
138
|
+
* cluster: primary.id,
|
|
139
|
+
* location: "us-central1",
|
|
140
|
+
* retentionPolicy: {
|
|
141
|
+
* backupDeleteLockDays: 30,
|
|
142
|
+
* backupRetainDays: 180,
|
|
143
|
+
* },
|
|
144
|
+
* backupSchedule: {
|
|
145
|
+
* cronSchedule: "0 9 * * 1",
|
|
146
|
+
* },
|
|
147
|
+
* backupConfig: {
|
|
148
|
+
* includeVolumeData: true,
|
|
149
|
+
* includeSecrets: true,
|
|
150
|
+
* selectedApplications: {
|
|
151
|
+
* namespacedNames: [
|
|
152
|
+
* {
|
|
153
|
+
* name: "app1",
|
|
154
|
+
* namespace: "ns1",
|
|
155
|
+
* },
|
|
156
|
+
* {
|
|
157
|
+
* name: "app2",
|
|
158
|
+
* namespace: "ns2",
|
|
159
|
+
* },
|
|
160
|
+
* ],
|
|
161
|
+
* },
|
|
162
|
+
* },
|
|
163
|
+
* }, {
|
|
164
|
+
* provider: google_beta,
|
|
165
|
+
* });
|
|
166
|
+
* ```
|
|
167
|
+
*
|
|
168
|
+
* ## Import
|
|
169
|
+
*
|
|
170
|
+
* BackupPlan can be imported using any of these accepted formats
|
|
171
|
+
*
|
|
172
|
+
* ```sh
|
|
173
|
+
* $ pulumi import gcp:gkebackup/backupPlan:BackupPlan default projects/{{project}}/locations/{{location}}/backupPlans/{{name}}
|
|
174
|
+
* ```
|
|
175
|
+
*
|
|
176
|
+
* ```sh
|
|
177
|
+
* $ pulumi import gcp:gkebackup/backupPlan:BackupPlan default {{project}}/{{location}}/{{name}}
|
|
178
|
+
* ```
|
|
179
|
+
*
|
|
180
|
+
* ```sh
|
|
181
|
+
* $ pulumi import gcp:gkebackup/backupPlan:BackupPlan default {{location}}/{{name}}
|
|
182
|
+
* ```
|
|
183
|
+
*/
|
|
184
|
+
export declare class BackupPlan extends pulumi.CustomResource {
|
|
185
|
+
/**
|
|
186
|
+
* Get an existing BackupPlan resource's state with the given name, ID, and optional extra
|
|
187
|
+
* properties used to qualify the lookup.
|
|
188
|
+
*
|
|
189
|
+
* @param name The _unique_ name of the resulting resource.
|
|
190
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
191
|
+
* @param state Any extra arguments used during the lookup.
|
|
192
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
193
|
+
*/
|
|
194
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BackupPlanState, opts?: pulumi.CustomResourceOptions): BackupPlan;
|
|
195
|
+
/**
|
|
196
|
+
* Returns true if the given object is an instance of BackupPlan. This is designed to work even
|
|
197
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
198
|
+
*/
|
|
199
|
+
static isInstance(obj: any): obj is BackupPlan;
|
|
200
|
+
/**
|
|
201
|
+
* Defines the configuration of Backups created via this BackupPlan.
|
|
202
|
+
* Structure is documented below.
|
|
203
|
+
*/
|
|
204
|
+
readonly backupConfig: pulumi.Output<outputs.gkebackup.BackupPlanBackupConfig | undefined>;
|
|
205
|
+
/**
|
|
206
|
+
* Defines a schedule for automatic Backup creation via this BackupPlan.
|
|
207
|
+
* Structure is documented below.
|
|
208
|
+
*/
|
|
209
|
+
readonly backupSchedule: pulumi.Output<outputs.gkebackup.BackupPlanBackupSchedule | undefined>;
|
|
210
|
+
/**
|
|
211
|
+
* The source cluster from which Backups will be created via this BackupPlan.
|
|
212
|
+
*/
|
|
213
|
+
readonly cluster: pulumi.Output<string>;
|
|
214
|
+
/**
|
|
215
|
+
* This flag indicates whether this BackupPlan has been deactivated.
|
|
216
|
+
* Setting this field to True locks the BackupPlan such that no further updates will be allowed
|
|
217
|
+
* (except deletes), including the deactivated field itself. It also prevents any new Backups
|
|
218
|
+
* from being created via this BackupPlan (including scheduled Backups).
|
|
219
|
+
*/
|
|
220
|
+
readonly deactivated: pulumi.Output<boolean>;
|
|
221
|
+
/**
|
|
222
|
+
* User specified descriptive string for this BackupPlan.
|
|
223
|
+
*/
|
|
224
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
225
|
+
/**
|
|
226
|
+
* etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a backup plan from
|
|
227
|
+
* overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to
|
|
228
|
+
* perform BackupPlan updates in order to avoid race conditions: An etag is returned in the response to backupPlans.get,
|
|
229
|
+
* and systems are expected to put that etag in the request to backupPlans.patch or backupPlans.delete to ensure that their
|
|
230
|
+
* change will be applied to the same version of the resource.
|
|
231
|
+
*/
|
|
232
|
+
readonly etag: pulumi.Output<string>;
|
|
233
|
+
/**
|
|
234
|
+
* Description: A set of custom labels supplied by the user.
|
|
235
|
+
* A list of key->value pairs.
|
|
236
|
+
* Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
|
|
237
|
+
*/
|
|
238
|
+
readonly labels: pulumi.Output<{
|
|
239
|
+
[key: string]: string;
|
|
240
|
+
} | undefined>;
|
|
241
|
+
/**
|
|
242
|
+
* The region of the Backup Plan.
|
|
243
|
+
*/
|
|
244
|
+
readonly location: pulumi.Output<string>;
|
|
245
|
+
/**
|
|
246
|
+
* The name of a Kubernetes Resource.
|
|
247
|
+
*/
|
|
248
|
+
readonly name: pulumi.Output<string>;
|
|
249
|
+
/**
|
|
250
|
+
* The ID of the project in which the resource belongs.
|
|
251
|
+
* If it is not provided, the provider project is used.
|
|
252
|
+
*/
|
|
253
|
+
readonly project: pulumi.Output<string>;
|
|
254
|
+
/**
|
|
255
|
+
* The number of Kubernetes Pods backed up in the last successful Backup created via this BackupPlan.
|
|
256
|
+
*/
|
|
257
|
+
readonly protectedPodCount: pulumi.Output<number>;
|
|
258
|
+
/**
|
|
259
|
+
* RetentionPolicy governs lifecycle of Backups created under this plan.
|
|
260
|
+
* Structure is documented below.
|
|
261
|
+
*/
|
|
262
|
+
readonly retentionPolicy: pulumi.Output<outputs.gkebackup.BackupPlanRetentionPolicy | undefined>;
|
|
263
|
+
/**
|
|
264
|
+
* Server generated, unique identifier of UUID format.
|
|
265
|
+
*/
|
|
266
|
+
readonly uid: pulumi.Output<string>;
|
|
267
|
+
/**
|
|
268
|
+
* Create a BackupPlan resource with the given unique name, arguments, and options.
|
|
269
|
+
*
|
|
270
|
+
* @param name The _unique_ name of the resource.
|
|
271
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
272
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
273
|
+
*/
|
|
274
|
+
constructor(name: string, args: BackupPlanArgs, opts?: pulumi.CustomResourceOptions);
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* Input properties used for looking up and filtering BackupPlan resources.
|
|
278
|
+
*/
|
|
279
|
+
export interface BackupPlanState {
|
|
280
|
+
/**
|
|
281
|
+
* Defines the configuration of Backups created via this BackupPlan.
|
|
282
|
+
* Structure is documented below.
|
|
283
|
+
*/
|
|
284
|
+
backupConfig?: pulumi.Input<inputs.gkebackup.BackupPlanBackupConfig>;
|
|
285
|
+
/**
|
|
286
|
+
* Defines a schedule for automatic Backup creation via this BackupPlan.
|
|
287
|
+
* Structure is documented below.
|
|
288
|
+
*/
|
|
289
|
+
backupSchedule?: pulumi.Input<inputs.gkebackup.BackupPlanBackupSchedule>;
|
|
290
|
+
/**
|
|
291
|
+
* The source cluster from which Backups will be created via this BackupPlan.
|
|
292
|
+
*/
|
|
293
|
+
cluster?: pulumi.Input<string>;
|
|
294
|
+
/**
|
|
295
|
+
* This flag indicates whether this BackupPlan has been deactivated.
|
|
296
|
+
* Setting this field to True locks the BackupPlan such that no further updates will be allowed
|
|
297
|
+
* (except deletes), including the deactivated field itself. It also prevents any new Backups
|
|
298
|
+
* from being created via this BackupPlan (including scheduled Backups).
|
|
299
|
+
*/
|
|
300
|
+
deactivated?: pulumi.Input<boolean>;
|
|
301
|
+
/**
|
|
302
|
+
* User specified descriptive string for this BackupPlan.
|
|
303
|
+
*/
|
|
304
|
+
description?: pulumi.Input<string>;
|
|
305
|
+
/**
|
|
306
|
+
* etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a backup plan from
|
|
307
|
+
* overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to
|
|
308
|
+
* perform BackupPlan updates in order to avoid race conditions: An etag is returned in the response to backupPlans.get,
|
|
309
|
+
* and systems are expected to put that etag in the request to backupPlans.patch or backupPlans.delete to ensure that their
|
|
310
|
+
* change will be applied to the same version of the resource.
|
|
311
|
+
*/
|
|
312
|
+
etag?: pulumi.Input<string>;
|
|
313
|
+
/**
|
|
314
|
+
* Description: A set of custom labels supplied by the user.
|
|
315
|
+
* A list of key->value pairs.
|
|
316
|
+
* Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
|
|
317
|
+
*/
|
|
318
|
+
labels?: pulumi.Input<{
|
|
319
|
+
[key: string]: pulumi.Input<string>;
|
|
320
|
+
}>;
|
|
321
|
+
/**
|
|
322
|
+
* The region of the Backup Plan.
|
|
323
|
+
*/
|
|
324
|
+
location?: pulumi.Input<string>;
|
|
325
|
+
/**
|
|
326
|
+
* The name of a Kubernetes Resource.
|
|
327
|
+
*/
|
|
328
|
+
name?: pulumi.Input<string>;
|
|
329
|
+
/**
|
|
330
|
+
* The ID of the project in which the resource belongs.
|
|
331
|
+
* If it is not provided, the provider project is used.
|
|
332
|
+
*/
|
|
333
|
+
project?: pulumi.Input<string>;
|
|
334
|
+
/**
|
|
335
|
+
* The number of Kubernetes Pods backed up in the last successful Backup created via this BackupPlan.
|
|
336
|
+
*/
|
|
337
|
+
protectedPodCount?: pulumi.Input<number>;
|
|
338
|
+
/**
|
|
339
|
+
* RetentionPolicy governs lifecycle of Backups created under this plan.
|
|
340
|
+
* Structure is documented below.
|
|
341
|
+
*/
|
|
342
|
+
retentionPolicy?: pulumi.Input<inputs.gkebackup.BackupPlanRetentionPolicy>;
|
|
343
|
+
/**
|
|
344
|
+
* Server generated, unique identifier of UUID format.
|
|
345
|
+
*/
|
|
346
|
+
uid?: pulumi.Input<string>;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* The set of arguments for constructing a BackupPlan resource.
|
|
350
|
+
*/
|
|
351
|
+
export interface BackupPlanArgs {
|
|
352
|
+
/**
|
|
353
|
+
* Defines the configuration of Backups created via this BackupPlan.
|
|
354
|
+
* Structure is documented below.
|
|
355
|
+
*/
|
|
356
|
+
backupConfig?: pulumi.Input<inputs.gkebackup.BackupPlanBackupConfig>;
|
|
357
|
+
/**
|
|
358
|
+
* Defines a schedule for automatic Backup creation via this BackupPlan.
|
|
359
|
+
* Structure is documented below.
|
|
360
|
+
*/
|
|
361
|
+
backupSchedule?: pulumi.Input<inputs.gkebackup.BackupPlanBackupSchedule>;
|
|
362
|
+
/**
|
|
363
|
+
* The source cluster from which Backups will be created via this BackupPlan.
|
|
364
|
+
*/
|
|
365
|
+
cluster: pulumi.Input<string>;
|
|
366
|
+
/**
|
|
367
|
+
* This flag indicates whether this BackupPlan has been deactivated.
|
|
368
|
+
* Setting this field to True locks the BackupPlan such that no further updates will be allowed
|
|
369
|
+
* (except deletes), including the deactivated field itself. It also prevents any new Backups
|
|
370
|
+
* from being created via this BackupPlan (including scheduled Backups).
|
|
371
|
+
*/
|
|
372
|
+
deactivated?: pulumi.Input<boolean>;
|
|
373
|
+
/**
|
|
374
|
+
* User specified descriptive string for this BackupPlan.
|
|
375
|
+
*/
|
|
376
|
+
description?: pulumi.Input<string>;
|
|
377
|
+
/**
|
|
378
|
+
* Description: A set of custom labels supplied by the user.
|
|
379
|
+
* A list of key->value pairs.
|
|
380
|
+
* Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
|
|
381
|
+
*/
|
|
382
|
+
labels?: pulumi.Input<{
|
|
383
|
+
[key: string]: pulumi.Input<string>;
|
|
384
|
+
}>;
|
|
385
|
+
/**
|
|
386
|
+
* The region of the Backup Plan.
|
|
387
|
+
*/
|
|
388
|
+
location: pulumi.Input<string>;
|
|
389
|
+
/**
|
|
390
|
+
* The name of a Kubernetes Resource.
|
|
391
|
+
*/
|
|
392
|
+
name?: pulumi.Input<string>;
|
|
393
|
+
/**
|
|
394
|
+
* The ID of the project in which the resource belongs.
|
|
395
|
+
* If it is not provided, the provider project is used.
|
|
396
|
+
*/
|
|
397
|
+
project?: pulumi.Input<string>;
|
|
398
|
+
/**
|
|
399
|
+
* RetentionPolicy governs lifecycle of Backups created under this plan.
|
|
400
|
+
* Structure is documented below.
|
|
401
|
+
*/
|
|
402
|
+
retentionPolicy?: pulumi.Input<inputs.gkebackup.BackupPlanRetentionPolicy>;
|
|
403
|
+
}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.BackupPlan = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
* ### Gkebackup Backupplan Basic
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as gcp from "@pulumi/gcp";
|
|
15
|
+
*
|
|
16
|
+
* const primary = new gcp.container.Cluster("primary", {
|
|
17
|
+
* location: "us-central1",
|
|
18
|
+
* initialNodeCount: 1,
|
|
19
|
+
* workloadIdentityConfig: {
|
|
20
|
+
* workloadPool: "my-project-name.svc.id.goog",
|
|
21
|
+
* },
|
|
22
|
+
* addonsConfig: {
|
|
23
|
+
* gkeBackupAgentConfig: {
|
|
24
|
+
* enabled: true,
|
|
25
|
+
* },
|
|
26
|
+
* },
|
|
27
|
+
* }, {
|
|
28
|
+
* provider: google_beta,
|
|
29
|
+
* });
|
|
30
|
+
* const basic = new gcp.gkebackup.BackupPlan("basic", {
|
|
31
|
+
* cluster: primary.id,
|
|
32
|
+
* location: "us-central1",
|
|
33
|
+
* backupConfig: {
|
|
34
|
+
* includeVolumeData: true,
|
|
35
|
+
* includeSecrets: true,
|
|
36
|
+
* allNamespaces: true,
|
|
37
|
+
* },
|
|
38
|
+
* }, {
|
|
39
|
+
* provider: google_beta,
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
* ### Gkebackup Backupplan Autopilot
|
|
43
|
+
*
|
|
44
|
+
* ```typescript
|
|
45
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
46
|
+
* import * as gcp from "@pulumi/gcp";
|
|
47
|
+
*
|
|
48
|
+
* const primary = new gcp.container.Cluster("primary", {
|
|
49
|
+
* location: "us-central1",
|
|
50
|
+
* enableAutopilot: true,
|
|
51
|
+
* ipAllocationPolicy: {},
|
|
52
|
+
* releaseChannel: {
|
|
53
|
+
* channel: "RAPID",
|
|
54
|
+
* },
|
|
55
|
+
* addonsConfig: {
|
|
56
|
+
* gkeBackupAgentConfig: {
|
|
57
|
+
* enabled: true,
|
|
58
|
+
* },
|
|
59
|
+
* },
|
|
60
|
+
* }, {
|
|
61
|
+
* provider: google_beta,
|
|
62
|
+
* });
|
|
63
|
+
* const autopilot = new gcp.gkebackup.BackupPlan("autopilot", {
|
|
64
|
+
* cluster: primary.id,
|
|
65
|
+
* location: "us-central1",
|
|
66
|
+
* backupConfig: {
|
|
67
|
+
* includeVolumeData: true,
|
|
68
|
+
* includeSecrets: true,
|
|
69
|
+
* allNamespaces: true,
|
|
70
|
+
* },
|
|
71
|
+
* }, {
|
|
72
|
+
* provider: google_beta,
|
|
73
|
+
* });
|
|
74
|
+
* ```
|
|
75
|
+
* ### Gkebackup Backupplan Cmek
|
|
76
|
+
*
|
|
77
|
+
* ```typescript
|
|
78
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
79
|
+
* import * as gcp from "@pulumi/gcp";
|
|
80
|
+
*
|
|
81
|
+
* const primary = new gcp.container.Cluster("primary", {
|
|
82
|
+
* location: "us-central1",
|
|
83
|
+
* initialNodeCount: 1,
|
|
84
|
+
* workloadIdentityConfig: {
|
|
85
|
+
* workloadPool: "my-project-name.svc.id.goog",
|
|
86
|
+
* },
|
|
87
|
+
* addonsConfig: {
|
|
88
|
+
* gkeBackupAgentConfig: {
|
|
89
|
+
* enabled: true,
|
|
90
|
+
* },
|
|
91
|
+
* },
|
|
92
|
+
* }, {
|
|
93
|
+
* provider: google_beta,
|
|
94
|
+
* });
|
|
95
|
+
* const keyRing = new gcp.kms.KeyRing("keyRing", {location: "us-central1"}, {
|
|
96
|
+
* provider: google_beta,
|
|
97
|
+
* });
|
|
98
|
+
* const cryptoKey = new gcp.kms.CryptoKey("cryptoKey", {keyRing: keyRing.id}, {
|
|
99
|
+
* provider: google_beta,
|
|
100
|
+
* });
|
|
101
|
+
* const cmek = new gcp.gkebackup.BackupPlan("cmek", {
|
|
102
|
+
* cluster: primary.id,
|
|
103
|
+
* location: "us-central1",
|
|
104
|
+
* backupConfig: {
|
|
105
|
+
* includeVolumeData: true,
|
|
106
|
+
* includeSecrets: true,
|
|
107
|
+
* selectedNamespaces: {
|
|
108
|
+
* namespaces: [
|
|
109
|
+
* "default",
|
|
110
|
+
* "test",
|
|
111
|
+
* ],
|
|
112
|
+
* },
|
|
113
|
+
* encryptionKey: {
|
|
114
|
+
* gcpKmsEncryptionKey: cryptoKey.id,
|
|
115
|
+
* },
|
|
116
|
+
* },
|
|
117
|
+
* }, {
|
|
118
|
+
* provider: google_beta,
|
|
119
|
+
* });
|
|
120
|
+
* ```
|
|
121
|
+
* ### Gkebackup Backupplan Full
|
|
122
|
+
*
|
|
123
|
+
* ```typescript
|
|
124
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
125
|
+
* import * as gcp from "@pulumi/gcp";
|
|
126
|
+
*
|
|
127
|
+
* const primary = new gcp.container.Cluster("primary", {
|
|
128
|
+
* location: "us-central1",
|
|
129
|
+
* initialNodeCount: 1,
|
|
130
|
+
* workloadIdentityConfig: {
|
|
131
|
+
* workloadPool: "my-project-name.svc.id.goog",
|
|
132
|
+
* },
|
|
133
|
+
* addonsConfig: {
|
|
134
|
+
* gkeBackupAgentConfig: {
|
|
135
|
+
* enabled: true,
|
|
136
|
+
* },
|
|
137
|
+
* },
|
|
138
|
+
* }, {
|
|
139
|
+
* provider: google_beta,
|
|
140
|
+
* });
|
|
141
|
+
* const full = new gcp.gkebackup.BackupPlan("full", {
|
|
142
|
+
* cluster: primary.id,
|
|
143
|
+
* location: "us-central1",
|
|
144
|
+
* retentionPolicy: {
|
|
145
|
+
* backupDeleteLockDays: 30,
|
|
146
|
+
* backupRetainDays: 180,
|
|
147
|
+
* },
|
|
148
|
+
* backupSchedule: {
|
|
149
|
+
* cronSchedule: "0 9 * * 1",
|
|
150
|
+
* },
|
|
151
|
+
* backupConfig: {
|
|
152
|
+
* includeVolumeData: true,
|
|
153
|
+
* includeSecrets: true,
|
|
154
|
+
* selectedApplications: {
|
|
155
|
+
* namespacedNames: [
|
|
156
|
+
* {
|
|
157
|
+
* name: "app1",
|
|
158
|
+
* namespace: "ns1",
|
|
159
|
+
* },
|
|
160
|
+
* {
|
|
161
|
+
* name: "app2",
|
|
162
|
+
* namespace: "ns2",
|
|
163
|
+
* },
|
|
164
|
+
* ],
|
|
165
|
+
* },
|
|
166
|
+
* },
|
|
167
|
+
* }, {
|
|
168
|
+
* provider: google_beta,
|
|
169
|
+
* });
|
|
170
|
+
* ```
|
|
171
|
+
*
|
|
172
|
+
* ## Import
|
|
173
|
+
*
|
|
174
|
+
* BackupPlan can be imported using any of these accepted formats
|
|
175
|
+
*
|
|
176
|
+
* ```sh
|
|
177
|
+
* $ pulumi import gcp:gkebackup/backupPlan:BackupPlan default projects/{{project}}/locations/{{location}}/backupPlans/{{name}}
|
|
178
|
+
* ```
|
|
179
|
+
*
|
|
180
|
+
* ```sh
|
|
181
|
+
* $ pulumi import gcp:gkebackup/backupPlan:BackupPlan default {{project}}/{{location}}/{{name}}
|
|
182
|
+
* ```
|
|
183
|
+
*
|
|
184
|
+
* ```sh
|
|
185
|
+
* $ pulumi import gcp:gkebackup/backupPlan:BackupPlan default {{location}}/{{name}}
|
|
186
|
+
* ```
|
|
187
|
+
*/
|
|
188
|
+
class BackupPlan extends pulumi.CustomResource {
|
|
189
|
+
/**
|
|
190
|
+
* Get an existing BackupPlan resource's state with the given name, ID, and optional extra
|
|
191
|
+
* properties used to qualify the lookup.
|
|
192
|
+
*
|
|
193
|
+
* @param name The _unique_ name of the resulting resource.
|
|
194
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
195
|
+
* @param state Any extra arguments used during the lookup.
|
|
196
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
197
|
+
*/
|
|
198
|
+
static get(name, id, state, opts) {
|
|
199
|
+
return new BackupPlan(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Returns true if the given object is an instance of BackupPlan. This is designed to work even
|
|
203
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
204
|
+
*/
|
|
205
|
+
static isInstance(obj) {
|
|
206
|
+
if (obj === undefined || obj === null) {
|
|
207
|
+
return false;
|
|
208
|
+
}
|
|
209
|
+
return obj['__pulumiType'] === BackupPlan.__pulumiType;
|
|
210
|
+
}
|
|
211
|
+
constructor(name, argsOrState, opts) {
|
|
212
|
+
let resourceInputs = {};
|
|
213
|
+
opts = opts || {};
|
|
214
|
+
if (opts.id) {
|
|
215
|
+
const state = argsOrState;
|
|
216
|
+
resourceInputs["backupConfig"] = state ? state.backupConfig : undefined;
|
|
217
|
+
resourceInputs["backupSchedule"] = state ? state.backupSchedule : undefined;
|
|
218
|
+
resourceInputs["cluster"] = state ? state.cluster : undefined;
|
|
219
|
+
resourceInputs["deactivated"] = state ? state.deactivated : undefined;
|
|
220
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
221
|
+
resourceInputs["etag"] = state ? state.etag : undefined;
|
|
222
|
+
resourceInputs["labels"] = state ? state.labels : undefined;
|
|
223
|
+
resourceInputs["location"] = state ? state.location : undefined;
|
|
224
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
225
|
+
resourceInputs["project"] = state ? state.project : undefined;
|
|
226
|
+
resourceInputs["protectedPodCount"] = state ? state.protectedPodCount : undefined;
|
|
227
|
+
resourceInputs["retentionPolicy"] = state ? state.retentionPolicy : undefined;
|
|
228
|
+
resourceInputs["uid"] = state ? state.uid : undefined;
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
const args = argsOrState;
|
|
232
|
+
if ((!args || args.cluster === undefined) && !opts.urn) {
|
|
233
|
+
throw new Error("Missing required property 'cluster'");
|
|
234
|
+
}
|
|
235
|
+
if ((!args || args.location === undefined) && !opts.urn) {
|
|
236
|
+
throw new Error("Missing required property 'location'");
|
|
237
|
+
}
|
|
238
|
+
resourceInputs["backupConfig"] = args ? args.backupConfig : undefined;
|
|
239
|
+
resourceInputs["backupSchedule"] = args ? args.backupSchedule : undefined;
|
|
240
|
+
resourceInputs["cluster"] = args ? args.cluster : undefined;
|
|
241
|
+
resourceInputs["deactivated"] = args ? args.deactivated : undefined;
|
|
242
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
243
|
+
resourceInputs["labels"] = args ? args.labels : undefined;
|
|
244
|
+
resourceInputs["location"] = args ? args.location : undefined;
|
|
245
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
246
|
+
resourceInputs["project"] = args ? args.project : undefined;
|
|
247
|
+
resourceInputs["retentionPolicy"] = args ? args.retentionPolicy : undefined;
|
|
248
|
+
resourceInputs["etag"] = undefined /*out*/;
|
|
249
|
+
resourceInputs["protectedPodCount"] = undefined /*out*/;
|
|
250
|
+
resourceInputs["uid"] = undefined /*out*/;
|
|
251
|
+
}
|
|
252
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
253
|
+
super(BackupPlan.__pulumiType, name, resourceInputs, opts);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
exports.BackupPlan = BackupPlan;
|
|
257
|
+
/** @internal */
|
|
258
|
+
BackupPlan.__pulumiType = 'gcp:gkebackup/backupPlan:BackupPlan';
|
|
259
|
+
//# sourceMappingURL=backupPlan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backupPlan.js","sourceRoot":"","sources":["../../gkebackup/backupPlan.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmLG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;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;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AAhJL,gCAiJC;AAnIG,gBAAgB;AACO,uBAAY,GAAG,qCAAqC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.BackupPlan = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
exports.BackupPlan = null;
|
|
9
|
+
utilities.lazyLoad(exports, ["BackupPlan"], () => require("./backupPlan"));
|
|
10
|
+
const _module = {
|
|
11
|
+
version: utilities.getVersion(),
|
|
12
|
+
construct: (name, type, urn) => {
|
|
13
|
+
switch (type) {
|
|
14
|
+
case "gcp:gkebackup/backupPlan:BackupPlan":
|
|
15
|
+
return new exports.BackupPlan(name, undefined, { urn });
|
|
16
|
+
default:
|
|
17
|
+
throw new Error(`unknown resource type ${type}`);
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
pulumi.runtime.registerResourceModule("gcp", "gkebackup/backupPlan", _module);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|