/
datastream.go
609 lines (536 loc) · 40.1 KB
/
datastream.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
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
// 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 akamai
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// ## Import
//
// Basic usagehcl resource "akamai_datastream" "example" {
//
// # (resource arguments)
//
// } You can import your Akamai DataStream configuration using a stream version ID. For example
//
// ```sh
//
// $ pulumi import akamai:index/datastream:Datastream example 1234
//
// ```
//
// ~> **IMPORTANT:** For security reasons, this command doesn't import any secrets you specify for your connector. To make sure the state file includes complete data, use this resource to manually add the arguments marked **Secret** above.
type Datastream struct {
pulumi.CustomResourceState
// Whether you want to start activating the stream when applying the resource. Either `true` for activating the stream upon sending the request or `false` for leaving the stream inactive after the request.
Active pulumi.BoolOutput `pulumi:"active"`
// Specify details about the Azure Storage connector configuration in a data stream. Note that currently DataStream supports only streaming data to [block objects](https://docs.microsoft.com/en-us/rest/api/storageservices/understanding-block-blobs--append-blobs--and-page-blobs). The argument includes these sub-arguments:
AzureConnector DatastreamAzureConnectorPtrOutput `pulumi:"azureConnector"`
// Provides information about the log line configuration, log file format, names of log files sent, and file delivery. The argument includes these sub-arguments:
Config DatastreamConfigOutput `pulumi:"config"`
// Identifies the contract that has access to the product.
ContractId pulumi.StringOutput `pulumi:"contractId"`
// The username who created the stream
CreatedBy pulumi.StringOutput `pulumi:"createdBy"`
// The date and time when the stream was created
CreatedDate pulumi.StringOutput `pulumi:"createdDate"`
// Specify details about the Datadog connector in a stream, including:
DatadogConnector DatastreamDatadogConnectorPtrOutput `pulumi:"datadogConnector"`
// Identifiers of the data set fields within the template that you want to receive in logs. The order of the identifiers define how the value for these fields appears in the log lines. See [Data set parameters](https://techdocs.akamai.com/datastream2/reference/data-set-parameters-1).
DatasetFieldsIds pulumi.IntArrayOutput `pulumi:"datasetFieldsIds"`
// A list of email addresses you want to notify about activations and deactivations of the stream.
EmailIds pulumi.StringArrayOutput `pulumi:"emailIds"`
// Specify details about the Google Cloud Storage connector you can use in a stream. When validating this connector, DataStream uses the private access key to create an `Akamai_access_verification_<timestamp>.txt` object file in your GCS bucket. You can only see this file if the validation process is successful, and you have access to the Google Cloud Storage bucket where you are trying to send logs. The argument includes these sub-arguments:
GcsConnector DatastreamGcsConnectorPtrOutput `pulumi:"gcsConnector"`
// Identifies the group that has access to the product and this stream configuration.
GroupId pulumi.StringOutput `pulumi:"groupId"`
// The name of the user group for which the stream was created
GroupName pulumi.StringOutput `pulumi:"groupName"`
// Specify details about the custom HTTPS endpoint you can use as a connector for a stream, including:
HttpsConnector DatastreamHttpsConnectorPtrOutput `pulumi:"httpsConnector"`
// The username who modified the stream
ModifiedBy pulumi.StringOutput `pulumi:"modifiedBy"`
// The date and time when the stream was modified
ModifiedDate pulumi.StringOutput `pulumi:"modifiedDate"`
// Specify details about the Oracle Cloud Storage connector in a stream. When validating this connector, DataStream uses the provided `accessKey` and `secretAccessKey` values and tries to save an `Akamai_access_verification_<timestamp>.txt` file in your Oracle Cloud Storage folder. You can only see this file if the validation process is successful, and you have access to the Oracle Cloud Storage bucket and folder that you’re trying to send logs to.
OracleConnector DatastreamOracleConnectorPtrOutput `pulumi:"oracleConnector"`
// The configuration in JSON format that can be copy-pasted into PAPI configuration to enable datastream behavior
PapiJson pulumi.StringOutput `pulumi:"papiJson"`
// The ID of the product for which the stream was created
ProductId pulumi.StringOutput `pulumi:"productId"`
// The name of the product for which the stream was created
ProductName pulumi.StringOutput `pulumi:"productName"`
// Identifies the properties that you want to monitor in the stream. Note that a stream can only log data for active properties.
PropertyIds pulumi.StringArrayOutput `pulumi:"propertyIds"`
// Specify details about the Amazon S3 connector in a stream. When validating this connector, DataStream uses the provided `accessKey` and `secretAccessKey` values and saves an `akamai_write_test_2147483647.txt` file in your Amazon S3 folder. You can only see this file if validation succeeds, and you have access to the Amazon S3 bucket and folder that you’re trying to send logs to. The argument includes these sub-arguments:
S3Connector DatastreamS3ConnectorPtrOutput `pulumi:"s3Connector"`
// Specify details about the Splunk connector in your stream. Note that currently DataStream supports only endpoint URLs ending with `collector/raw`. The argument includes these sub-arguments:
SplunkConnector DatastreamSplunkConnectorPtrOutput `pulumi:"splunkConnector"`
// The name of the stream.
StreamName pulumi.StringOutput `pulumi:"streamName"`
// The type of stream that you want to create. Currently, `RAW_LOGS` is the only possible stream type.
StreamType pulumi.StringOutput `pulumi:"streamType"`
// Identifies the configuration version of the stream
StreamVersionId pulumi.IntOutput `pulumi:"streamVersionId"`
// Specify details about the Sumo Logic connector in a stream, including:
SumologicConnector DatastreamSumologicConnectorPtrOutput `pulumi:"sumologicConnector"`
// The name of the data set template available for the product that you want to use in the stream. Currently, `EDGE_LOGS` is the only data set template available.
TemplateName pulumi.StringOutput `pulumi:"templateName"`
}
// NewDatastream registers a new resource with the given unique name, arguments, and options.
func NewDatastream(ctx *pulumi.Context,
name string, args *DatastreamArgs, opts ...pulumi.ResourceOption) (*Datastream, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Active == nil {
return nil, errors.New("invalid value for required argument 'Active'")
}
if args.Config == nil {
return nil, errors.New("invalid value for required argument 'Config'")
}
if args.ContractId == nil {
return nil, errors.New("invalid value for required argument 'ContractId'")
}
if args.DatasetFieldsIds == nil {
return nil, errors.New("invalid value for required argument 'DatasetFieldsIds'")
}
if args.GroupId == nil {
return nil, errors.New("invalid value for required argument 'GroupId'")
}
if args.PropertyIds == nil {
return nil, errors.New("invalid value for required argument 'PropertyIds'")
}
if args.StreamName == nil {
return nil, errors.New("invalid value for required argument 'StreamName'")
}
if args.StreamType == nil {
return nil, errors.New("invalid value for required argument 'StreamType'")
}
if args.TemplateName == nil {
return nil, errors.New("invalid value for required argument 'TemplateName'")
}
var resource Datastream
err := ctx.RegisterResource("akamai:index/datastream:Datastream", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetDatastream gets an existing Datastream 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 GetDatastream(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *DatastreamState, opts ...pulumi.ResourceOption) (*Datastream, error) {
var resource Datastream
err := ctx.ReadResource("akamai:index/datastream:Datastream", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Datastream resources.
type datastreamState struct {
// Whether you want to start activating the stream when applying the resource. Either `true` for activating the stream upon sending the request or `false` for leaving the stream inactive after the request.
Active *bool `pulumi:"active"`
// Specify details about the Azure Storage connector configuration in a data stream. Note that currently DataStream supports only streaming data to [block objects](https://docs.microsoft.com/en-us/rest/api/storageservices/understanding-block-blobs--append-blobs--and-page-blobs). The argument includes these sub-arguments:
AzureConnector *DatastreamAzureConnector `pulumi:"azureConnector"`
// Provides information about the log line configuration, log file format, names of log files sent, and file delivery. The argument includes these sub-arguments:
Config *DatastreamConfig `pulumi:"config"`
// Identifies the contract that has access to the product.
ContractId *string `pulumi:"contractId"`
// The username who created the stream
CreatedBy *string `pulumi:"createdBy"`
// The date and time when the stream was created
CreatedDate *string `pulumi:"createdDate"`
// Specify details about the Datadog connector in a stream, including:
DatadogConnector *DatastreamDatadogConnector `pulumi:"datadogConnector"`
// Identifiers of the data set fields within the template that you want to receive in logs. The order of the identifiers define how the value for these fields appears in the log lines. See [Data set parameters](https://techdocs.akamai.com/datastream2/reference/data-set-parameters-1).
DatasetFieldsIds []int `pulumi:"datasetFieldsIds"`
// A list of email addresses you want to notify about activations and deactivations of the stream.
EmailIds []string `pulumi:"emailIds"`
// Specify details about the Google Cloud Storage connector you can use in a stream. When validating this connector, DataStream uses the private access key to create an `Akamai_access_verification_<timestamp>.txt` object file in your GCS bucket. You can only see this file if the validation process is successful, and you have access to the Google Cloud Storage bucket where you are trying to send logs. The argument includes these sub-arguments:
GcsConnector *DatastreamGcsConnector `pulumi:"gcsConnector"`
// Identifies the group that has access to the product and this stream configuration.
GroupId *string `pulumi:"groupId"`
// The name of the user group for which the stream was created
GroupName *string `pulumi:"groupName"`
// Specify details about the custom HTTPS endpoint you can use as a connector for a stream, including:
HttpsConnector *DatastreamHttpsConnector `pulumi:"httpsConnector"`
// The username who modified the stream
ModifiedBy *string `pulumi:"modifiedBy"`
// The date and time when the stream was modified
ModifiedDate *string `pulumi:"modifiedDate"`
// Specify details about the Oracle Cloud Storage connector in a stream. When validating this connector, DataStream uses the provided `accessKey` and `secretAccessKey` values and tries to save an `Akamai_access_verification_<timestamp>.txt` file in your Oracle Cloud Storage folder. You can only see this file if the validation process is successful, and you have access to the Oracle Cloud Storage bucket and folder that you’re trying to send logs to.
OracleConnector *DatastreamOracleConnector `pulumi:"oracleConnector"`
// The configuration in JSON format that can be copy-pasted into PAPI configuration to enable datastream behavior
PapiJson *string `pulumi:"papiJson"`
// The ID of the product for which the stream was created
ProductId *string `pulumi:"productId"`
// The name of the product for which the stream was created
ProductName *string `pulumi:"productName"`
// Identifies the properties that you want to monitor in the stream. Note that a stream can only log data for active properties.
PropertyIds []string `pulumi:"propertyIds"`
// Specify details about the Amazon S3 connector in a stream. When validating this connector, DataStream uses the provided `accessKey` and `secretAccessKey` values and saves an `akamai_write_test_2147483647.txt` file in your Amazon S3 folder. You can only see this file if validation succeeds, and you have access to the Amazon S3 bucket and folder that you’re trying to send logs to. The argument includes these sub-arguments:
S3Connector *DatastreamS3Connector `pulumi:"s3Connector"`
// Specify details about the Splunk connector in your stream. Note that currently DataStream supports only endpoint URLs ending with `collector/raw`. The argument includes these sub-arguments:
SplunkConnector *DatastreamSplunkConnector `pulumi:"splunkConnector"`
// The name of the stream.
StreamName *string `pulumi:"streamName"`
// The type of stream that you want to create. Currently, `RAW_LOGS` is the only possible stream type.
StreamType *string `pulumi:"streamType"`
// Identifies the configuration version of the stream
StreamVersionId *int `pulumi:"streamVersionId"`
// Specify details about the Sumo Logic connector in a stream, including:
SumologicConnector *DatastreamSumologicConnector `pulumi:"sumologicConnector"`
// The name of the data set template available for the product that you want to use in the stream. Currently, `EDGE_LOGS` is the only data set template available.
TemplateName *string `pulumi:"templateName"`
}
type DatastreamState struct {
// Whether you want to start activating the stream when applying the resource. Either `true` for activating the stream upon sending the request or `false` for leaving the stream inactive after the request.
Active pulumi.BoolPtrInput
// Specify details about the Azure Storage connector configuration in a data stream. Note that currently DataStream supports only streaming data to [block objects](https://docs.microsoft.com/en-us/rest/api/storageservices/understanding-block-blobs--append-blobs--and-page-blobs). The argument includes these sub-arguments:
AzureConnector DatastreamAzureConnectorPtrInput
// Provides information about the log line configuration, log file format, names of log files sent, and file delivery. The argument includes these sub-arguments:
Config DatastreamConfigPtrInput
// Identifies the contract that has access to the product.
ContractId pulumi.StringPtrInput
// The username who created the stream
CreatedBy pulumi.StringPtrInput
// The date and time when the stream was created
CreatedDate pulumi.StringPtrInput
// Specify details about the Datadog connector in a stream, including:
DatadogConnector DatastreamDatadogConnectorPtrInput
// Identifiers of the data set fields within the template that you want to receive in logs. The order of the identifiers define how the value for these fields appears in the log lines. See [Data set parameters](https://techdocs.akamai.com/datastream2/reference/data-set-parameters-1).
DatasetFieldsIds pulumi.IntArrayInput
// A list of email addresses you want to notify about activations and deactivations of the stream.
EmailIds pulumi.StringArrayInput
// Specify details about the Google Cloud Storage connector you can use in a stream. When validating this connector, DataStream uses the private access key to create an `Akamai_access_verification_<timestamp>.txt` object file in your GCS bucket. You can only see this file if the validation process is successful, and you have access to the Google Cloud Storage bucket where you are trying to send logs. The argument includes these sub-arguments:
GcsConnector DatastreamGcsConnectorPtrInput
// Identifies the group that has access to the product and this stream configuration.
GroupId pulumi.StringPtrInput
// The name of the user group for which the stream was created
GroupName pulumi.StringPtrInput
// Specify details about the custom HTTPS endpoint you can use as a connector for a stream, including:
HttpsConnector DatastreamHttpsConnectorPtrInput
// The username who modified the stream
ModifiedBy pulumi.StringPtrInput
// The date and time when the stream was modified
ModifiedDate pulumi.StringPtrInput
// Specify details about the Oracle Cloud Storage connector in a stream. When validating this connector, DataStream uses the provided `accessKey` and `secretAccessKey` values and tries to save an `Akamai_access_verification_<timestamp>.txt` file in your Oracle Cloud Storage folder. You can only see this file if the validation process is successful, and you have access to the Oracle Cloud Storage bucket and folder that you’re trying to send logs to.
OracleConnector DatastreamOracleConnectorPtrInput
// The configuration in JSON format that can be copy-pasted into PAPI configuration to enable datastream behavior
PapiJson pulumi.StringPtrInput
// The ID of the product for which the stream was created
ProductId pulumi.StringPtrInput
// The name of the product for which the stream was created
ProductName pulumi.StringPtrInput
// Identifies the properties that you want to monitor in the stream. Note that a stream can only log data for active properties.
PropertyIds pulumi.StringArrayInput
// Specify details about the Amazon S3 connector in a stream. When validating this connector, DataStream uses the provided `accessKey` and `secretAccessKey` values and saves an `akamai_write_test_2147483647.txt` file in your Amazon S3 folder. You can only see this file if validation succeeds, and you have access to the Amazon S3 bucket and folder that you’re trying to send logs to. The argument includes these sub-arguments:
S3Connector DatastreamS3ConnectorPtrInput
// Specify details about the Splunk connector in your stream. Note that currently DataStream supports only endpoint URLs ending with `collector/raw`. The argument includes these sub-arguments:
SplunkConnector DatastreamSplunkConnectorPtrInput
// The name of the stream.
StreamName pulumi.StringPtrInput
// The type of stream that you want to create. Currently, `RAW_LOGS` is the only possible stream type.
StreamType pulumi.StringPtrInput
// Identifies the configuration version of the stream
StreamVersionId pulumi.IntPtrInput
// Specify details about the Sumo Logic connector in a stream, including:
SumologicConnector DatastreamSumologicConnectorPtrInput
// The name of the data set template available for the product that you want to use in the stream. Currently, `EDGE_LOGS` is the only data set template available.
TemplateName pulumi.StringPtrInput
}
func (DatastreamState) ElementType() reflect.Type {
return reflect.TypeOf((*datastreamState)(nil)).Elem()
}
type datastreamArgs struct {
// Whether you want to start activating the stream when applying the resource. Either `true` for activating the stream upon sending the request or `false` for leaving the stream inactive after the request.
Active bool `pulumi:"active"`
// Specify details about the Azure Storage connector configuration in a data stream. Note that currently DataStream supports only streaming data to [block objects](https://docs.microsoft.com/en-us/rest/api/storageservices/understanding-block-blobs--append-blobs--and-page-blobs). The argument includes these sub-arguments:
AzureConnector *DatastreamAzureConnector `pulumi:"azureConnector"`
// Provides information about the log line configuration, log file format, names of log files sent, and file delivery. The argument includes these sub-arguments:
Config DatastreamConfig `pulumi:"config"`
// Identifies the contract that has access to the product.
ContractId string `pulumi:"contractId"`
// Specify details about the Datadog connector in a stream, including:
DatadogConnector *DatastreamDatadogConnector `pulumi:"datadogConnector"`
// Identifiers of the data set fields within the template that you want to receive in logs. The order of the identifiers define how the value for these fields appears in the log lines. See [Data set parameters](https://techdocs.akamai.com/datastream2/reference/data-set-parameters-1).
DatasetFieldsIds []int `pulumi:"datasetFieldsIds"`
// A list of email addresses you want to notify about activations and deactivations of the stream.
EmailIds []string `pulumi:"emailIds"`
// Specify details about the Google Cloud Storage connector you can use in a stream. When validating this connector, DataStream uses the private access key to create an `Akamai_access_verification_<timestamp>.txt` object file in your GCS bucket. You can only see this file if the validation process is successful, and you have access to the Google Cloud Storage bucket where you are trying to send logs. The argument includes these sub-arguments:
GcsConnector *DatastreamGcsConnector `pulumi:"gcsConnector"`
// Identifies the group that has access to the product and this stream configuration.
GroupId string `pulumi:"groupId"`
// Specify details about the custom HTTPS endpoint you can use as a connector for a stream, including:
HttpsConnector *DatastreamHttpsConnector `pulumi:"httpsConnector"`
// Specify details about the Oracle Cloud Storage connector in a stream. When validating this connector, DataStream uses the provided `accessKey` and `secretAccessKey` values and tries to save an `Akamai_access_verification_<timestamp>.txt` file in your Oracle Cloud Storage folder. You can only see this file if the validation process is successful, and you have access to the Oracle Cloud Storage bucket and folder that you’re trying to send logs to.
OracleConnector *DatastreamOracleConnector `pulumi:"oracleConnector"`
// Identifies the properties that you want to monitor in the stream. Note that a stream can only log data for active properties.
PropertyIds []string `pulumi:"propertyIds"`
// Specify details about the Amazon S3 connector in a stream. When validating this connector, DataStream uses the provided `accessKey` and `secretAccessKey` values and saves an `akamai_write_test_2147483647.txt` file in your Amazon S3 folder. You can only see this file if validation succeeds, and you have access to the Amazon S3 bucket and folder that you’re trying to send logs to. The argument includes these sub-arguments:
S3Connector *DatastreamS3Connector `pulumi:"s3Connector"`
// Specify details about the Splunk connector in your stream. Note that currently DataStream supports only endpoint URLs ending with `collector/raw`. The argument includes these sub-arguments:
SplunkConnector *DatastreamSplunkConnector `pulumi:"splunkConnector"`
// The name of the stream.
StreamName string `pulumi:"streamName"`
// The type of stream that you want to create. Currently, `RAW_LOGS` is the only possible stream type.
StreamType string `pulumi:"streamType"`
// Specify details about the Sumo Logic connector in a stream, including:
SumologicConnector *DatastreamSumologicConnector `pulumi:"sumologicConnector"`
// The name of the data set template available for the product that you want to use in the stream. Currently, `EDGE_LOGS` is the only data set template available.
TemplateName string `pulumi:"templateName"`
}
// The set of arguments for constructing a Datastream resource.
type DatastreamArgs struct {
// Whether you want to start activating the stream when applying the resource. Either `true` for activating the stream upon sending the request or `false` for leaving the stream inactive after the request.
Active pulumi.BoolInput
// Specify details about the Azure Storage connector configuration in a data stream. Note that currently DataStream supports only streaming data to [block objects](https://docs.microsoft.com/en-us/rest/api/storageservices/understanding-block-blobs--append-blobs--and-page-blobs). The argument includes these sub-arguments:
AzureConnector DatastreamAzureConnectorPtrInput
// Provides information about the log line configuration, log file format, names of log files sent, and file delivery. The argument includes these sub-arguments:
Config DatastreamConfigInput
// Identifies the contract that has access to the product.
ContractId pulumi.StringInput
// Specify details about the Datadog connector in a stream, including:
DatadogConnector DatastreamDatadogConnectorPtrInput
// Identifiers of the data set fields within the template that you want to receive in logs. The order of the identifiers define how the value for these fields appears in the log lines. See [Data set parameters](https://techdocs.akamai.com/datastream2/reference/data-set-parameters-1).
DatasetFieldsIds pulumi.IntArrayInput
// A list of email addresses you want to notify about activations and deactivations of the stream.
EmailIds pulumi.StringArrayInput
// Specify details about the Google Cloud Storage connector you can use in a stream. When validating this connector, DataStream uses the private access key to create an `Akamai_access_verification_<timestamp>.txt` object file in your GCS bucket. You can only see this file if the validation process is successful, and you have access to the Google Cloud Storage bucket where you are trying to send logs. The argument includes these sub-arguments:
GcsConnector DatastreamGcsConnectorPtrInput
// Identifies the group that has access to the product and this stream configuration.
GroupId pulumi.StringInput
// Specify details about the custom HTTPS endpoint you can use as a connector for a stream, including:
HttpsConnector DatastreamHttpsConnectorPtrInput
// Specify details about the Oracle Cloud Storage connector in a stream. When validating this connector, DataStream uses the provided `accessKey` and `secretAccessKey` values and tries to save an `Akamai_access_verification_<timestamp>.txt` file in your Oracle Cloud Storage folder. You can only see this file if the validation process is successful, and you have access to the Oracle Cloud Storage bucket and folder that you’re trying to send logs to.
OracleConnector DatastreamOracleConnectorPtrInput
// Identifies the properties that you want to monitor in the stream. Note that a stream can only log data for active properties.
PropertyIds pulumi.StringArrayInput
// Specify details about the Amazon S3 connector in a stream. When validating this connector, DataStream uses the provided `accessKey` and `secretAccessKey` values and saves an `akamai_write_test_2147483647.txt` file in your Amazon S3 folder. You can only see this file if validation succeeds, and you have access to the Amazon S3 bucket and folder that you’re trying to send logs to. The argument includes these sub-arguments:
S3Connector DatastreamS3ConnectorPtrInput
// Specify details about the Splunk connector in your stream. Note that currently DataStream supports only endpoint URLs ending with `collector/raw`. The argument includes these sub-arguments:
SplunkConnector DatastreamSplunkConnectorPtrInput
// The name of the stream.
StreamName pulumi.StringInput
// The type of stream that you want to create. Currently, `RAW_LOGS` is the only possible stream type.
StreamType pulumi.StringInput
// Specify details about the Sumo Logic connector in a stream, including:
SumologicConnector DatastreamSumologicConnectorPtrInput
// The name of the data set template available for the product that you want to use in the stream. Currently, `EDGE_LOGS` is the only data set template available.
TemplateName pulumi.StringInput
}
func (DatastreamArgs) ElementType() reflect.Type {
return reflect.TypeOf((*datastreamArgs)(nil)).Elem()
}
type DatastreamInput interface {
pulumi.Input
ToDatastreamOutput() DatastreamOutput
ToDatastreamOutputWithContext(ctx context.Context) DatastreamOutput
}
func (*Datastream) ElementType() reflect.Type {
return reflect.TypeOf((**Datastream)(nil)).Elem()
}
func (i *Datastream) ToDatastreamOutput() DatastreamOutput {
return i.ToDatastreamOutputWithContext(context.Background())
}
func (i *Datastream) ToDatastreamOutputWithContext(ctx context.Context) DatastreamOutput {
return pulumi.ToOutputWithContext(ctx, i).(DatastreamOutput)
}
// DatastreamArrayInput is an input type that accepts DatastreamArray and DatastreamArrayOutput values.
// You can construct a concrete instance of `DatastreamArrayInput` via:
//
// DatastreamArray{ DatastreamArgs{...} }
type DatastreamArrayInput interface {
pulumi.Input
ToDatastreamArrayOutput() DatastreamArrayOutput
ToDatastreamArrayOutputWithContext(context.Context) DatastreamArrayOutput
}
type DatastreamArray []DatastreamInput
func (DatastreamArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Datastream)(nil)).Elem()
}
func (i DatastreamArray) ToDatastreamArrayOutput() DatastreamArrayOutput {
return i.ToDatastreamArrayOutputWithContext(context.Background())
}
func (i DatastreamArray) ToDatastreamArrayOutputWithContext(ctx context.Context) DatastreamArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(DatastreamArrayOutput)
}
// DatastreamMapInput is an input type that accepts DatastreamMap and DatastreamMapOutput values.
// You can construct a concrete instance of `DatastreamMapInput` via:
//
// DatastreamMap{ "key": DatastreamArgs{...} }
type DatastreamMapInput interface {
pulumi.Input
ToDatastreamMapOutput() DatastreamMapOutput
ToDatastreamMapOutputWithContext(context.Context) DatastreamMapOutput
}
type DatastreamMap map[string]DatastreamInput
func (DatastreamMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Datastream)(nil)).Elem()
}
func (i DatastreamMap) ToDatastreamMapOutput() DatastreamMapOutput {
return i.ToDatastreamMapOutputWithContext(context.Background())
}
func (i DatastreamMap) ToDatastreamMapOutputWithContext(ctx context.Context) DatastreamMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(DatastreamMapOutput)
}
type DatastreamOutput struct{ *pulumi.OutputState }
func (DatastreamOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Datastream)(nil)).Elem()
}
func (o DatastreamOutput) ToDatastreamOutput() DatastreamOutput {
return o
}
func (o DatastreamOutput) ToDatastreamOutputWithContext(ctx context.Context) DatastreamOutput {
return o
}
// Whether you want to start activating the stream when applying the resource. Either `true` for activating the stream upon sending the request or `false` for leaving the stream inactive after the request.
func (o DatastreamOutput) Active() pulumi.BoolOutput {
return o.ApplyT(func(v *Datastream) pulumi.BoolOutput { return v.Active }).(pulumi.BoolOutput)
}
// Specify details about the Azure Storage connector configuration in a data stream. Note that currently DataStream supports only streaming data to [block objects](https://docs.microsoft.com/en-us/rest/api/storageservices/understanding-block-blobs--append-blobs--and-page-blobs). The argument includes these sub-arguments:
func (o DatastreamOutput) AzureConnector() DatastreamAzureConnectorPtrOutput {
return o.ApplyT(func(v *Datastream) DatastreamAzureConnectorPtrOutput { return v.AzureConnector }).(DatastreamAzureConnectorPtrOutput)
}
// Provides information about the log line configuration, log file format, names of log files sent, and file delivery. The argument includes these sub-arguments:
func (o DatastreamOutput) Config() DatastreamConfigOutput {
return o.ApplyT(func(v *Datastream) DatastreamConfigOutput { return v.Config }).(DatastreamConfigOutput)
}
// Identifies the contract that has access to the product.
func (o DatastreamOutput) ContractId() pulumi.StringOutput {
return o.ApplyT(func(v *Datastream) pulumi.StringOutput { return v.ContractId }).(pulumi.StringOutput)
}
// The username who created the stream
func (o DatastreamOutput) CreatedBy() pulumi.StringOutput {
return o.ApplyT(func(v *Datastream) pulumi.StringOutput { return v.CreatedBy }).(pulumi.StringOutput)
}
// The date and time when the stream was created
func (o DatastreamOutput) CreatedDate() pulumi.StringOutput {
return o.ApplyT(func(v *Datastream) pulumi.StringOutput { return v.CreatedDate }).(pulumi.StringOutput)
}
// Specify details about the Datadog connector in a stream, including:
func (o DatastreamOutput) DatadogConnector() DatastreamDatadogConnectorPtrOutput {
return o.ApplyT(func(v *Datastream) DatastreamDatadogConnectorPtrOutput { return v.DatadogConnector }).(DatastreamDatadogConnectorPtrOutput)
}
// Identifiers of the data set fields within the template that you want to receive in logs. The order of the identifiers define how the value for these fields appears in the log lines. See [Data set parameters](https://techdocs.akamai.com/datastream2/reference/data-set-parameters-1).
func (o DatastreamOutput) DatasetFieldsIds() pulumi.IntArrayOutput {
return o.ApplyT(func(v *Datastream) pulumi.IntArrayOutput { return v.DatasetFieldsIds }).(pulumi.IntArrayOutput)
}
// A list of email addresses you want to notify about activations and deactivations of the stream.
func (o DatastreamOutput) EmailIds() pulumi.StringArrayOutput {
return o.ApplyT(func(v *Datastream) pulumi.StringArrayOutput { return v.EmailIds }).(pulumi.StringArrayOutput)
}
// Specify details about the Google Cloud Storage connector you can use in a stream. When validating this connector, DataStream uses the private access key to create an `Akamai_access_verification_<timestamp>.txt` object file in your GCS bucket. You can only see this file if the validation process is successful, and you have access to the Google Cloud Storage bucket where you are trying to send logs. The argument includes these sub-arguments:
func (o DatastreamOutput) GcsConnector() DatastreamGcsConnectorPtrOutput {
return o.ApplyT(func(v *Datastream) DatastreamGcsConnectorPtrOutput { return v.GcsConnector }).(DatastreamGcsConnectorPtrOutput)
}
// Identifies the group that has access to the product and this stream configuration.
func (o DatastreamOutput) GroupId() pulumi.StringOutput {
return o.ApplyT(func(v *Datastream) pulumi.StringOutput { return v.GroupId }).(pulumi.StringOutput)
}
// The name of the user group for which the stream was created
func (o DatastreamOutput) GroupName() pulumi.StringOutput {
return o.ApplyT(func(v *Datastream) pulumi.StringOutput { return v.GroupName }).(pulumi.StringOutput)
}
// Specify details about the custom HTTPS endpoint you can use as a connector for a stream, including:
func (o DatastreamOutput) HttpsConnector() DatastreamHttpsConnectorPtrOutput {
return o.ApplyT(func(v *Datastream) DatastreamHttpsConnectorPtrOutput { return v.HttpsConnector }).(DatastreamHttpsConnectorPtrOutput)
}
// The username who modified the stream
func (o DatastreamOutput) ModifiedBy() pulumi.StringOutput {
return o.ApplyT(func(v *Datastream) pulumi.StringOutput { return v.ModifiedBy }).(pulumi.StringOutput)
}
// The date and time when the stream was modified
func (o DatastreamOutput) ModifiedDate() pulumi.StringOutput {
return o.ApplyT(func(v *Datastream) pulumi.StringOutput { return v.ModifiedDate }).(pulumi.StringOutput)
}
// Specify details about the Oracle Cloud Storage connector in a stream. When validating this connector, DataStream uses the provided `accessKey` and `secretAccessKey` values and tries to save an `Akamai_access_verification_<timestamp>.txt` file in your Oracle Cloud Storage folder. You can only see this file if the validation process is successful, and you have access to the Oracle Cloud Storage bucket and folder that you’re trying to send logs to.
func (o DatastreamOutput) OracleConnector() DatastreamOracleConnectorPtrOutput {
return o.ApplyT(func(v *Datastream) DatastreamOracleConnectorPtrOutput { return v.OracleConnector }).(DatastreamOracleConnectorPtrOutput)
}
// The configuration in JSON format that can be copy-pasted into PAPI configuration to enable datastream behavior
func (o DatastreamOutput) PapiJson() pulumi.StringOutput {
return o.ApplyT(func(v *Datastream) pulumi.StringOutput { return v.PapiJson }).(pulumi.StringOutput)
}
// The ID of the product for which the stream was created
func (o DatastreamOutput) ProductId() pulumi.StringOutput {
return o.ApplyT(func(v *Datastream) pulumi.StringOutput { return v.ProductId }).(pulumi.StringOutput)
}
// The name of the product for which the stream was created
func (o DatastreamOutput) ProductName() pulumi.StringOutput {
return o.ApplyT(func(v *Datastream) pulumi.StringOutput { return v.ProductName }).(pulumi.StringOutput)
}
// Identifies the properties that you want to monitor in the stream. Note that a stream can only log data for active properties.
func (o DatastreamOutput) PropertyIds() pulumi.StringArrayOutput {
return o.ApplyT(func(v *Datastream) pulumi.StringArrayOutput { return v.PropertyIds }).(pulumi.StringArrayOutput)
}
// Specify details about the Amazon S3 connector in a stream. When validating this connector, DataStream uses the provided `accessKey` and `secretAccessKey` values and saves an `akamai_write_test_2147483647.txt` file in your Amazon S3 folder. You can only see this file if validation succeeds, and you have access to the Amazon S3 bucket and folder that you’re trying to send logs to. The argument includes these sub-arguments:
func (o DatastreamOutput) S3Connector() DatastreamS3ConnectorPtrOutput {
return o.ApplyT(func(v *Datastream) DatastreamS3ConnectorPtrOutput { return v.S3Connector }).(DatastreamS3ConnectorPtrOutput)
}
// Specify details about the Splunk connector in your stream. Note that currently DataStream supports only endpoint URLs ending with `collector/raw`. The argument includes these sub-arguments:
func (o DatastreamOutput) SplunkConnector() DatastreamSplunkConnectorPtrOutput {
return o.ApplyT(func(v *Datastream) DatastreamSplunkConnectorPtrOutput { return v.SplunkConnector }).(DatastreamSplunkConnectorPtrOutput)
}
// The name of the stream.
func (o DatastreamOutput) StreamName() pulumi.StringOutput {
return o.ApplyT(func(v *Datastream) pulumi.StringOutput { return v.StreamName }).(pulumi.StringOutput)
}
// The type of stream that you want to create. Currently, `RAW_LOGS` is the only possible stream type.
func (o DatastreamOutput) StreamType() pulumi.StringOutput {
return o.ApplyT(func(v *Datastream) pulumi.StringOutput { return v.StreamType }).(pulumi.StringOutput)
}
// Identifies the configuration version of the stream
func (o DatastreamOutput) StreamVersionId() pulumi.IntOutput {
return o.ApplyT(func(v *Datastream) pulumi.IntOutput { return v.StreamVersionId }).(pulumi.IntOutput)
}
// Specify details about the Sumo Logic connector in a stream, including:
func (o DatastreamOutput) SumologicConnector() DatastreamSumologicConnectorPtrOutput {
return o.ApplyT(func(v *Datastream) DatastreamSumologicConnectorPtrOutput { return v.SumologicConnector }).(DatastreamSumologicConnectorPtrOutput)
}
// The name of the data set template available for the product that you want to use in the stream. Currently, `EDGE_LOGS` is the only data set template available.
func (o DatastreamOutput) TemplateName() pulumi.StringOutput {
return o.ApplyT(func(v *Datastream) pulumi.StringOutput { return v.TemplateName }).(pulumi.StringOutput)
}
type DatastreamArrayOutput struct{ *pulumi.OutputState }
func (DatastreamArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Datastream)(nil)).Elem()
}
func (o DatastreamArrayOutput) ToDatastreamArrayOutput() DatastreamArrayOutput {
return o
}
func (o DatastreamArrayOutput) ToDatastreamArrayOutputWithContext(ctx context.Context) DatastreamArrayOutput {
return o
}
func (o DatastreamArrayOutput) Index(i pulumi.IntInput) DatastreamOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Datastream {
return vs[0].([]*Datastream)[vs[1].(int)]
}).(DatastreamOutput)
}
type DatastreamMapOutput struct{ *pulumi.OutputState }
func (DatastreamMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Datastream)(nil)).Elem()
}
func (o DatastreamMapOutput) ToDatastreamMapOutput() DatastreamMapOutput {
return o
}
func (o DatastreamMapOutput) ToDatastreamMapOutputWithContext(ctx context.Context) DatastreamMapOutput {
return o
}
func (o DatastreamMapOutput) MapIndex(k pulumi.StringInput) DatastreamOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Datastream {
return vs[0].(map[string]*Datastream)[vs[1].(string)]
}).(DatastreamOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*DatastreamInput)(nil)).Elem(), &Datastream{})
pulumi.RegisterInputType(reflect.TypeOf((*DatastreamArrayInput)(nil)).Elem(), DatastreamArray{})
pulumi.RegisterInputType(reflect.TypeOf((*DatastreamMapInput)(nil)).Elem(), DatastreamMap{})
pulumi.RegisterOutputType(DatastreamOutput{})
pulumi.RegisterOutputType(DatastreamArrayOutput{})
pulumi.RegisterOutputType(DatastreamMapOutput{})
}