/
organizationSink.go
489 lines (433 loc) · 23.7 KB
/
organizationSink.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package logging
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Manages a organization-level logging sink. For more information see:
// * [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/organizations.sinks)
// * How-to Guides
// - [Exporting Logs](https://cloud.google.com/logging/docs/export)
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "fmt"
//
// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/logging"
// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/projects"
// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/storage"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := storage.NewBucket(ctx, "log-bucket", &storage.BucketArgs{
// Name: pulumi.String("organization-logging-bucket"),
// Location: pulumi.String("US"),
// })
// if err != nil {
// return err
// }
// _, err = logging.NewOrganizationSink(ctx, "my-sink", &logging.OrganizationSinkArgs{
// Name: pulumi.String("my-sink"),
// Description: pulumi.String("some explanation on what this is"),
// OrgId: pulumi.String("123456789"),
// Destination: log_bucket.Name.ApplyT(func(name string) (string, error) {
// return fmt.Sprintf("storage.googleapis.com/%v", name), nil
// }).(pulumi.StringOutput),
// Filter: pulumi.String("resource.type = gce_instance AND severity >= WARNING"),
// })
// if err != nil {
// return err
// }
// _, err = projects.NewIAMMember(ctx, "log-writer", &projects.IAMMemberArgs{
// Project: pulumi.String("your-project-id"),
// Role: pulumi.String("roles/storage.objectCreator"),
// Member: my_sink.WriterIdentity,
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// Organization-level logging sinks can be imported using this format:
//
// * `organizations/{{organization_id}}/sinks/{{sink_id}}`
//
// When using the `pulumi import` command, organization-level logging sinks can be imported using one of the formats above. For example:
//
// ```sh
// $ pulumi import gcp:logging/organizationSink:OrganizationSink default organizations/{{organization_id}}/sinks/{{sink_id}}
// ```
type OrganizationSink struct {
pulumi.CustomResourceState
// Options that affect sinks exporting data to BigQuery. Structure documented below.
BigqueryOptions OrganizationSinkBigqueryOptionsOutput `pulumi:"bigqueryOptions"`
// A description of this sink. The maximum length of the description is 8000 characters.
Description pulumi.StringPtrOutput `pulumi:"description"`
// The destination of the sink (or, in other words, where logs are written to). Can be a Cloud Storage bucket, a PubSub topic, a BigQuery dataset, a Cloud Logging bucket, or a Google Cloud project. Examples:
//
// - `storage.googleapis.com/[GCS_BUCKET]`
// - `bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]`
// - `pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]`
// - `logging.googleapis.com/projects/[PROJECT_ID]/locations/global/buckets/[BUCKET_ID]`
// - `logging.googleapis.com/projects/[PROJECT_ID]`
//
// The writer associated with the sink must have access to write to the above resource.
Destination pulumi.StringOutput `pulumi:"destination"`
// If set to True, then this sink is disabled and it does not export any log entries.
Disabled pulumi.BoolPtrOutput `pulumi:"disabled"`
// Log entries that match any of the exclusion filters will not be exported. If a log entry is matched by both `filter` and one of `exclusions.filter`, it will not be exported. Can be repeated multiple times for multiple exclusions. Structure is documented below.
Exclusions OrganizationSinkExclusionArrayOutput `pulumi:"exclusions"`
// The filter to apply when exporting logs. Only log entries that match the filter are exported.
// See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced_filters) for information on how to
// write a filter.
Filter pulumi.StringPtrOutput `pulumi:"filter"`
// Whether or not to include children organizations in the sink export. If true, logs
// associated with child projects are also exported; otherwise only logs relating to the provided organization are included.
IncludeChildren pulumi.BoolPtrOutput `pulumi:"includeChildren"`
// The name of the logging sink.
Name pulumi.StringOutput `pulumi:"name"`
// The numeric ID of the organization to be exported to the sink.
OrgId pulumi.StringOutput `pulumi:"orgId"`
// The identity associated with this sink. This identity must be granted write access to the
// configured `destination`.
WriterIdentity pulumi.StringOutput `pulumi:"writerIdentity"`
}
// NewOrganizationSink registers a new resource with the given unique name, arguments, and options.
func NewOrganizationSink(ctx *pulumi.Context,
name string, args *OrganizationSinkArgs, opts ...pulumi.ResourceOption) (*OrganizationSink, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Destination == nil {
return nil, errors.New("invalid value for required argument 'Destination'")
}
if args.OrgId == nil {
return nil, errors.New("invalid value for required argument 'OrgId'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource OrganizationSink
err := ctx.RegisterResource("gcp:logging/organizationSink:OrganizationSink", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetOrganizationSink gets an existing OrganizationSink resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetOrganizationSink(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *OrganizationSinkState, opts ...pulumi.ResourceOption) (*OrganizationSink, error) {
var resource OrganizationSink
err := ctx.ReadResource("gcp:logging/organizationSink:OrganizationSink", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering OrganizationSink resources.
type organizationSinkState struct {
// Options that affect sinks exporting data to BigQuery. Structure documented below.
BigqueryOptions *OrganizationSinkBigqueryOptions `pulumi:"bigqueryOptions"`
// A description of this sink. The maximum length of the description is 8000 characters.
Description *string `pulumi:"description"`
// The destination of the sink (or, in other words, where logs are written to). Can be a Cloud Storage bucket, a PubSub topic, a BigQuery dataset, a Cloud Logging bucket, or a Google Cloud project. Examples:
//
// - `storage.googleapis.com/[GCS_BUCKET]`
// - `bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]`
// - `pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]`
// - `logging.googleapis.com/projects/[PROJECT_ID]/locations/global/buckets/[BUCKET_ID]`
// - `logging.googleapis.com/projects/[PROJECT_ID]`
//
// The writer associated with the sink must have access to write to the above resource.
Destination *string `pulumi:"destination"`
// If set to True, then this sink is disabled and it does not export any log entries.
Disabled *bool `pulumi:"disabled"`
// Log entries that match any of the exclusion filters will not be exported. If a log entry is matched by both `filter` and one of `exclusions.filter`, it will not be exported. Can be repeated multiple times for multiple exclusions. Structure is documented below.
Exclusions []OrganizationSinkExclusion `pulumi:"exclusions"`
// The filter to apply when exporting logs. Only log entries that match the filter are exported.
// See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced_filters) for information on how to
// write a filter.
Filter *string `pulumi:"filter"`
// Whether or not to include children organizations in the sink export. If true, logs
// associated with child projects are also exported; otherwise only logs relating to the provided organization are included.
IncludeChildren *bool `pulumi:"includeChildren"`
// The name of the logging sink.
Name *string `pulumi:"name"`
// The numeric ID of the organization to be exported to the sink.
OrgId *string `pulumi:"orgId"`
// The identity associated with this sink. This identity must be granted write access to the
// configured `destination`.
WriterIdentity *string `pulumi:"writerIdentity"`
}
type OrganizationSinkState struct {
// Options that affect sinks exporting data to BigQuery. Structure documented below.
BigqueryOptions OrganizationSinkBigqueryOptionsPtrInput
// A description of this sink. The maximum length of the description is 8000 characters.
Description pulumi.StringPtrInput
// The destination of the sink (or, in other words, where logs are written to). Can be a Cloud Storage bucket, a PubSub topic, a BigQuery dataset, a Cloud Logging bucket, or a Google Cloud project. Examples:
//
// - `storage.googleapis.com/[GCS_BUCKET]`
// - `bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]`
// - `pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]`
// - `logging.googleapis.com/projects/[PROJECT_ID]/locations/global/buckets/[BUCKET_ID]`
// - `logging.googleapis.com/projects/[PROJECT_ID]`
//
// The writer associated with the sink must have access to write to the above resource.
Destination pulumi.StringPtrInput
// If set to True, then this sink is disabled and it does not export any log entries.
Disabled pulumi.BoolPtrInput
// Log entries that match any of the exclusion filters will not be exported. If a log entry is matched by both `filter` and one of `exclusions.filter`, it will not be exported. Can be repeated multiple times for multiple exclusions. Structure is documented below.
Exclusions OrganizationSinkExclusionArrayInput
// The filter to apply when exporting logs. Only log entries that match the filter are exported.
// See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced_filters) for information on how to
// write a filter.
Filter pulumi.StringPtrInput
// Whether or not to include children organizations in the sink export. If true, logs
// associated with child projects are also exported; otherwise only logs relating to the provided organization are included.
IncludeChildren pulumi.BoolPtrInput
// The name of the logging sink.
Name pulumi.StringPtrInput
// The numeric ID of the organization to be exported to the sink.
OrgId pulumi.StringPtrInput
// The identity associated with this sink. This identity must be granted write access to the
// configured `destination`.
WriterIdentity pulumi.StringPtrInput
}
func (OrganizationSinkState) ElementType() reflect.Type {
return reflect.TypeOf((*organizationSinkState)(nil)).Elem()
}
type organizationSinkArgs struct {
// Options that affect sinks exporting data to BigQuery. Structure documented below.
BigqueryOptions *OrganizationSinkBigqueryOptions `pulumi:"bigqueryOptions"`
// A description of this sink. The maximum length of the description is 8000 characters.
Description *string `pulumi:"description"`
// The destination of the sink (or, in other words, where logs are written to). Can be a Cloud Storage bucket, a PubSub topic, a BigQuery dataset, a Cloud Logging bucket, or a Google Cloud project. Examples:
//
// - `storage.googleapis.com/[GCS_BUCKET]`
// - `bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]`
// - `pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]`
// - `logging.googleapis.com/projects/[PROJECT_ID]/locations/global/buckets/[BUCKET_ID]`
// - `logging.googleapis.com/projects/[PROJECT_ID]`
//
// The writer associated with the sink must have access to write to the above resource.
Destination string `pulumi:"destination"`
// If set to True, then this sink is disabled and it does not export any log entries.
Disabled *bool `pulumi:"disabled"`
// Log entries that match any of the exclusion filters will not be exported. If a log entry is matched by both `filter` and one of `exclusions.filter`, it will not be exported. Can be repeated multiple times for multiple exclusions. Structure is documented below.
Exclusions []OrganizationSinkExclusion `pulumi:"exclusions"`
// The filter to apply when exporting logs. Only log entries that match the filter are exported.
// See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced_filters) for information on how to
// write a filter.
Filter *string `pulumi:"filter"`
// Whether or not to include children organizations in the sink export. If true, logs
// associated with child projects are also exported; otherwise only logs relating to the provided organization are included.
IncludeChildren *bool `pulumi:"includeChildren"`
// The name of the logging sink.
Name *string `pulumi:"name"`
// The numeric ID of the organization to be exported to the sink.
OrgId string `pulumi:"orgId"`
}
// The set of arguments for constructing a OrganizationSink resource.
type OrganizationSinkArgs struct {
// Options that affect sinks exporting data to BigQuery. Structure documented below.
BigqueryOptions OrganizationSinkBigqueryOptionsPtrInput
// A description of this sink. The maximum length of the description is 8000 characters.
Description pulumi.StringPtrInput
// The destination of the sink (or, in other words, where logs are written to). Can be a Cloud Storage bucket, a PubSub topic, a BigQuery dataset, a Cloud Logging bucket, or a Google Cloud project. Examples:
//
// - `storage.googleapis.com/[GCS_BUCKET]`
// - `bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]`
// - `pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]`
// - `logging.googleapis.com/projects/[PROJECT_ID]/locations/global/buckets/[BUCKET_ID]`
// - `logging.googleapis.com/projects/[PROJECT_ID]`
//
// The writer associated with the sink must have access to write to the above resource.
Destination pulumi.StringInput
// If set to True, then this sink is disabled and it does not export any log entries.
Disabled pulumi.BoolPtrInput
// Log entries that match any of the exclusion filters will not be exported. If a log entry is matched by both `filter` and one of `exclusions.filter`, it will not be exported. Can be repeated multiple times for multiple exclusions. Structure is documented below.
Exclusions OrganizationSinkExclusionArrayInput
// The filter to apply when exporting logs. Only log entries that match the filter are exported.
// See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced_filters) for information on how to
// write a filter.
Filter pulumi.StringPtrInput
// Whether or not to include children organizations in the sink export. If true, logs
// associated with child projects are also exported; otherwise only logs relating to the provided organization are included.
IncludeChildren pulumi.BoolPtrInput
// The name of the logging sink.
Name pulumi.StringPtrInput
// The numeric ID of the organization to be exported to the sink.
OrgId pulumi.StringInput
}
func (OrganizationSinkArgs) ElementType() reflect.Type {
return reflect.TypeOf((*organizationSinkArgs)(nil)).Elem()
}
type OrganizationSinkInput interface {
pulumi.Input
ToOrganizationSinkOutput() OrganizationSinkOutput
ToOrganizationSinkOutputWithContext(ctx context.Context) OrganizationSinkOutput
}
func (*OrganizationSink) ElementType() reflect.Type {
return reflect.TypeOf((**OrganizationSink)(nil)).Elem()
}
func (i *OrganizationSink) ToOrganizationSinkOutput() OrganizationSinkOutput {
return i.ToOrganizationSinkOutputWithContext(context.Background())
}
func (i *OrganizationSink) ToOrganizationSinkOutputWithContext(ctx context.Context) OrganizationSinkOutput {
return pulumi.ToOutputWithContext(ctx, i).(OrganizationSinkOutput)
}
// OrganizationSinkArrayInput is an input type that accepts OrganizationSinkArray and OrganizationSinkArrayOutput values.
// You can construct a concrete instance of `OrganizationSinkArrayInput` via:
//
// OrganizationSinkArray{ OrganizationSinkArgs{...} }
type OrganizationSinkArrayInput interface {
pulumi.Input
ToOrganizationSinkArrayOutput() OrganizationSinkArrayOutput
ToOrganizationSinkArrayOutputWithContext(context.Context) OrganizationSinkArrayOutput
}
type OrganizationSinkArray []OrganizationSinkInput
func (OrganizationSinkArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*OrganizationSink)(nil)).Elem()
}
func (i OrganizationSinkArray) ToOrganizationSinkArrayOutput() OrganizationSinkArrayOutput {
return i.ToOrganizationSinkArrayOutputWithContext(context.Background())
}
func (i OrganizationSinkArray) ToOrganizationSinkArrayOutputWithContext(ctx context.Context) OrganizationSinkArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(OrganizationSinkArrayOutput)
}
// OrganizationSinkMapInput is an input type that accepts OrganizationSinkMap and OrganizationSinkMapOutput values.
// You can construct a concrete instance of `OrganizationSinkMapInput` via:
//
// OrganizationSinkMap{ "key": OrganizationSinkArgs{...} }
type OrganizationSinkMapInput interface {
pulumi.Input
ToOrganizationSinkMapOutput() OrganizationSinkMapOutput
ToOrganizationSinkMapOutputWithContext(context.Context) OrganizationSinkMapOutput
}
type OrganizationSinkMap map[string]OrganizationSinkInput
func (OrganizationSinkMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*OrganizationSink)(nil)).Elem()
}
func (i OrganizationSinkMap) ToOrganizationSinkMapOutput() OrganizationSinkMapOutput {
return i.ToOrganizationSinkMapOutputWithContext(context.Background())
}
func (i OrganizationSinkMap) ToOrganizationSinkMapOutputWithContext(ctx context.Context) OrganizationSinkMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(OrganizationSinkMapOutput)
}
type OrganizationSinkOutput struct{ *pulumi.OutputState }
func (OrganizationSinkOutput) ElementType() reflect.Type {
return reflect.TypeOf((**OrganizationSink)(nil)).Elem()
}
func (o OrganizationSinkOutput) ToOrganizationSinkOutput() OrganizationSinkOutput {
return o
}
func (o OrganizationSinkOutput) ToOrganizationSinkOutputWithContext(ctx context.Context) OrganizationSinkOutput {
return o
}
// Options that affect sinks exporting data to BigQuery. Structure documented below.
func (o OrganizationSinkOutput) BigqueryOptions() OrganizationSinkBigqueryOptionsOutput {
return o.ApplyT(func(v *OrganizationSink) OrganizationSinkBigqueryOptionsOutput { return v.BigqueryOptions }).(OrganizationSinkBigqueryOptionsOutput)
}
// A description of this sink. The maximum length of the description is 8000 characters.
func (o OrganizationSinkOutput) Description() pulumi.StringPtrOutput {
return o.ApplyT(func(v *OrganizationSink) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput)
}
// The destination of the sink (or, in other words, where logs are written to). Can be a Cloud Storage bucket, a PubSub topic, a BigQuery dataset, a Cloud Logging bucket, or a Google Cloud project. Examples:
//
// - `storage.googleapis.com/[GCS_BUCKET]`
// - `bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]`
// - `pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]`
// - `logging.googleapis.com/projects/[PROJECT_ID]/locations/global/buckets/[BUCKET_ID]`
// - `logging.googleapis.com/projects/[PROJECT_ID]`
//
// The writer associated with the sink must have access to write to the above resource.
func (o OrganizationSinkOutput) Destination() pulumi.StringOutput {
return o.ApplyT(func(v *OrganizationSink) pulumi.StringOutput { return v.Destination }).(pulumi.StringOutput)
}
// If set to True, then this sink is disabled and it does not export any log entries.
func (o OrganizationSinkOutput) Disabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *OrganizationSink) pulumi.BoolPtrOutput { return v.Disabled }).(pulumi.BoolPtrOutput)
}
// Log entries that match any of the exclusion filters will not be exported. If a log entry is matched by both `filter` and one of `exclusions.filter`, it will not be exported. Can be repeated multiple times for multiple exclusions. Structure is documented below.
func (o OrganizationSinkOutput) Exclusions() OrganizationSinkExclusionArrayOutput {
return o.ApplyT(func(v *OrganizationSink) OrganizationSinkExclusionArrayOutput { return v.Exclusions }).(OrganizationSinkExclusionArrayOutput)
}
// The filter to apply when exporting logs. Only log entries that match the filter are exported.
// See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced_filters) for information on how to
// write a filter.
func (o OrganizationSinkOutput) Filter() pulumi.StringPtrOutput {
return o.ApplyT(func(v *OrganizationSink) pulumi.StringPtrOutput { return v.Filter }).(pulumi.StringPtrOutput)
}
// Whether or not to include children organizations in the sink export. If true, logs
// associated with child projects are also exported; otherwise only logs relating to the provided organization are included.
func (o OrganizationSinkOutput) IncludeChildren() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *OrganizationSink) pulumi.BoolPtrOutput { return v.IncludeChildren }).(pulumi.BoolPtrOutput)
}
// The name of the logging sink.
func (o OrganizationSinkOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *OrganizationSink) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// The numeric ID of the organization to be exported to the sink.
func (o OrganizationSinkOutput) OrgId() pulumi.StringOutput {
return o.ApplyT(func(v *OrganizationSink) pulumi.StringOutput { return v.OrgId }).(pulumi.StringOutput)
}
// The identity associated with this sink. This identity must be granted write access to the
// configured `destination`.
func (o OrganizationSinkOutput) WriterIdentity() pulumi.StringOutput {
return o.ApplyT(func(v *OrganizationSink) pulumi.StringOutput { return v.WriterIdentity }).(pulumi.StringOutput)
}
type OrganizationSinkArrayOutput struct{ *pulumi.OutputState }
func (OrganizationSinkArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*OrganizationSink)(nil)).Elem()
}
func (o OrganizationSinkArrayOutput) ToOrganizationSinkArrayOutput() OrganizationSinkArrayOutput {
return o
}
func (o OrganizationSinkArrayOutput) ToOrganizationSinkArrayOutputWithContext(ctx context.Context) OrganizationSinkArrayOutput {
return o
}
func (o OrganizationSinkArrayOutput) Index(i pulumi.IntInput) OrganizationSinkOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *OrganizationSink {
return vs[0].([]*OrganizationSink)[vs[1].(int)]
}).(OrganizationSinkOutput)
}
type OrganizationSinkMapOutput struct{ *pulumi.OutputState }
func (OrganizationSinkMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*OrganizationSink)(nil)).Elem()
}
func (o OrganizationSinkMapOutput) ToOrganizationSinkMapOutput() OrganizationSinkMapOutput {
return o
}
func (o OrganizationSinkMapOutput) ToOrganizationSinkMapOutputWithContext(ctx context.Context) OrganizationSinkMapOutput {
return o
}
func (o OrganizationSinkMapOutput) MapIndex(k pulumi.StringInput) OrganizationSinkOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *OrganizationSink {
return vs[0].(map[string]*OrganizationSink)[vs[1].(string)]
}).(OrganizationSinkOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*OrganizationSinkInput)(nil)).Elem(), &OrganizationSink{})
pulumi.RegisterInputType(reflect.TypeOf((*OrganizationSinkArrayInput)(nil)).Elem(), OrganizationSinkArray{})
pulumi.RegisterInputType(reflect.TypeOf((*OrganizationSinkMapInput)(nil)).Elem(), OrganizationSinkMap{})
pulumi.RegisterOutputType(OrganizationSinkOutput{})
pulumi.RegisterOutputType(OrganizationSinkArrayOutput{})
pulumi.RegisterOutputType(OrganizationSinkMapOutput{})
}