/
classificationJob.go
465 lines (403 loc) · 27 KB
/
classificationJob.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
// 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 macie2
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Provides a resource to manage an [AWS Macie Classification Job](https://docs.aws.amazon.com/macie/latest/APIReference/jobs.html).
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-aws/sdk/v5/go/aws/macie2"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// testAccount, err := macie2.NewAccount(ctx, "testAccount", nil)
// if err != nil {
// return err
// }
// _, err = macie2.NewClassificationJob(ctx, "testClassificationJob", &macie2.ClassificationJobArgs{
// JobType: pulumi.String("ONE_TIME"),
// S3JobDefinition: &macie2.ClassificationJobS3JobDefinitionArgs{
// BucketDefinitions: macie2.ClassificationJobS3JobDefinitionBucketDefinitionArray{
// &macie2.ClassificationJobS3JobDefinitionBucketDefinitionArgs{
// AccountId: pulumi.String("ACCOUNT ID"),
// Buckets: pulumi.StringArray{
// pulumi.String("S3 BUCKET NAME"),
// },
// },
// },
// },
// }, pulumi.DependsOn([]pulumi.Resource{
// testAccount,
// }))
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// `aws_macie2_classification_job` can be imported using the id, e.g.,
//
// ```sh
//
// $ pulumi import aws:macie2/classificationJob:ClassificationJob example abcd1
//
// ```
type ClassificationJob struct {
pulumi.CustomResourceState
// The date and time, in UTC and extended RFC 3339 format, when the job was created.
CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
// The custom data identifiers to use for data analysis and classification.
CustomDataIdentifierIds pulumi.StringArrayOutput `pulumi:"customDataIdentifierIds"`
// A custom description of the job. The description can contain as many as 200 characters.
Description pulumi.StringOutput `pulumi:"description"`
// Specifies whether to analyze all existing, eligible objects immediately after the job is created.
InitialRun pulumi.BoolPtrOutput `pulumi:"initialRun"`
JobArn pulumi.StringOutput `pulumi:"jobArn"`
JobId pulumi.StringOutput `pulumi:"jobId"`
// The status for the job. Valid values are: `CANCELLED`, `RUNNING` and `USER_PAUSED`
JobStatus pulumi.StringOutput `pulumi:"jobStatus"`
// The schedule for running the job. Valid values are: `ONE_TIME` - Run the job only once. If you specify this value, don't specify a value for the `scheduleFrequency` property. `SCHEDULED` - Run the job on a daily, weekly, or monthly basis. If you specify this value, use the `scheduleFrequency` property to define the recurrence pattern for the job.
JobType pulumi.StringOutput `pulumi:"jobType"`
// A custom name for the job. The name can contain as many as 500 characters. If omitted, the provider will assign a random, unique name. Conflicts with `namePrefix`.
Name pulumi.StringOutput `pulumi:"name"`
// Creates a unique name beginning with the specified prefix. Conflicts with `name`.
NamePrefix pulumi.StringOutput `pulumi:"namePrefix"`
// The S3 buckets that contain the objects to analyze, and the scope of that analysis. (documented below)
S3JobDefinition ClassificationJobS3JobDefinitionOutput `pulumi:"s3JobDefinition"`
// The sampling depth, as a percentage, to apply when processing objects. This value determines the percentage of eligible objects that the job analyzes. If this value is less than 100, Amazon Macie selects the objects to analyze at random, up to the specified percentage, and analyzes all the data in those objects.
SamplingPercentage pulumi.IntOutput `pulumi:"samplingPercentage"`
// The recurrence pattern for running the job. To run the job only once, don't specify a value for this property and set the value for the `jobType` property to `ONE_TIME`. (documented below)
ScheduleFrequency ClassificationJobScheduleFrequencyOutput `pulumi:"scheduleFrequency"`
// A map of key-value pairs that specifies the tags to associate with the job. A job can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.
Tags pulumi.StringMapOutput `pulumi:"tags"`
TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
// If the current status of the job is `USER_PAUSED`, specifies when the job was paused and when the job or job run will expire and be cancelled if it isn't resumed. This value is present only if the value for `job-status` is `USER_PAUSED`.
UserPausedDetails ClassificationJobUserPausedDetailArrayOutput `pulumi:"userPausedDetails"`
}
// NewClassificationJob registers a new resource with the given unique name, arguments, and options.
func NewClassificationJob(ctx *pulumi.Context,
name string, args *ClassificationJobArgs, opts ...pulumi.ResourceOption) (*ClassificationJob, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.JobType == nil {
return nil, errors.New("invalid value for required argument 'JobType'")
}
if args.S3JobDefinition == nil {
return nil, errors.New("invalid value for required argument 'S3JobDefinition'")
}
var resource ClassificationJob
err := ctx.RegisterResource("aws:macie2/classificationJob:ClassificationJob", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetClassificationJob gets an existing ClassificationJob 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 GetClassificationJob(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *ClassificationJobState, opts ...pulumi.ResourceOption) (*ClassificationJob, error) {
var resource ClassificationJob
err := ctx.ReadResource("aws:macie2/classificationJob:ClassificationJob", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering ClassificationJob resources.
type classificationJobState struct {
// The date and time, in UTC and extended RFC 3339 format, when the job was created.
CreatedAt *string `pulumi:"createdAt"`
// The custom data identifiers to use for data analysis and classification.
CustomDataIdentifierIds []string `pulumi:"customDataIdentifierIds"`
// A custom description of the job. The description can contain as many as 200 characters.
Description *string `pulumi:"description"`
// Specifies whether to analyze all existing, eligible objects immediately after the job is created.
InitialRun *bool `pulumi:"initialRun"`
JobArn *string `pulumi:"jobArn"`
JobId *string `pulumi:"jobId"`
// The status for the job. Valid values are: `CANCELLED`, `RUNNING` and `USER_PAUSED`
JobStatus *string `pulumi:"jobStatus"`
// The schedule for running the job. Valid values are: `ONE_TIME` - Run the job only once. If you specify this value, don't specify a value for the `scheduleFrequency` property. `SCHEDULED` - Run the job on a daily, weekly, or monthly basis. If you specify this value, use the `scheduleFrequency` property to define the recurrence pattern for the job.
JobType *string `pulumi:"jobType"`
// A custom name for the job. The name can contain as many as 500 characters. If omitted, the provider will assign a random, unique name. Conflicts with `namePrefix`.
Name *string `pulumi:"name"`
// Creates a unique name beginning with the specified prefix. Conflicts with `name`.
NamePrefix *string `pulumi:"namePrefix"`
// The S3 buckets that contain the objects to analyze, and the scope of that analysis. (documented below)
S3JobDefinition *ClassificationJobS3JobDefinition `pulumi:"s3JobDefinition"`
// The sampling depth, as a percentage, to apply when processing objects. This value determines the percentage of eligible objects that the job analyzes. If this value is less than 100, Amazon Macie selects the objects to analyze at random, up to the specified percentage, and analyzes all the data in those objects.
SamplingPercentage *int `pulumi:"samplingPercentage"`
// The recurrence pattern for running the job. To run the job only once, don't specify a value for this property and set the value for the `jobType` property to `ONE_TIME`. (documented below)
ScheduleFrequency *ClassificationJobScheduleFrequency `pulumi:"scheduleFrequency"`
// A map of key-value pairs that specifies the tags to associate with the job. A job can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.
Tags map[string]string `pulumi:"tags"`
TagsAll map[string]string `pulumi:"tagsAll"`
// If the current status of the job is `USER_PAUSED`, specifies when the job was paused and when the job or job run will expire and be cancelled if it isn't resumed. This value is present only if the value for `job-status` is `USER_PAUSED`.
UserPausedDetails []ClassificationJobUserPausedDetail `pulumi:"userPausedDetails"`
}
type ClassificationJobState struct {
// The date and time, in UTC and extended RFC 3339 format, when the job was created.
CreatedAt pulumi.StringPtrInput
// The custom data identifiers to use for data analysis and classification.
CustomDataIdentifierIds pulumi.StringArrayInput
// A custom description of the job. The description can contain as many as 200 characters.
Description pulumi.StringPtrInput
// Specifies whether to analyze all existing, eligible objects immediately after the job is created.
InitialRun pulumi.BoolPtrInput
JobArn pulumi.StringPtrInput
JobId pulumi.StringPtrInput
// The status for the job. Valid values are: `CANCELLED`, `RUNNING` and `USER_PAUSED`
JobStatus pulumi.StringPtrInput
// The schedule for running the job. Valid values are: `ONE_TIME` - Run the job only once. If you specify this value, don't specify a value for the `scheduleFrequency` property. `SCHEDULED` - Run the job on a daily, weekly, or monthly basis. If you specify this value, use the `scheduleFrequency` property to define the recurrence pattern for the job.
JobType pulumi.StringPtrInput
// A custom name for the job. The name can contain as many as 500 characters. If omitted, the provider will assign a random, unique name. Conflicts with `namePrefix`.
Name pulumi.StringPtrInput
// Creates a unique name beginning with the specified prefix. Conflicts with `name`.
NamePrefix pulumi.StringPtrInput
// The S3 buckets that contain the objects to analyze, and the scope of that analysis. (documented below)
S3JobDefinition ClassificationJobS3JobDefinitionPtrInput
// The sampling depth, as a percentage, to apply when processing objects. This value determines the percentage of eligible objects that the job analyzes. If this value is less than 100, Amazon Macie selects the objects to analyze at random, up to the specified percentage, and analyzes all the data in those objects.
SamplingPercentage pulumi.IntPtrInput
// The recurrence pattern for running the job. To run the job only once, don't specify a value for this property and set the value for the `jobType` property to `ONE_TIME`. (documented below)
ScheduleFrequency ClassificationJobScheduleFrequencyPtrInput
// A map of key-value pairs that specifies the tags to associate with the job. A job can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.
Tags pulumi.StringMapInput
TagsAll pulumi.StringMapInput
// If the current status of the job is `USER_PAUSED`, specifies when the job was paused and when the job or job run will expire and be cancelled if it isn't resumed. This value is present only if the value for `job-status` is `USER_PAUSED`.
UserPausedDetails ClassificationJobUserPausedDetailArrayInput
}
func (ClassificationJobState) ElementType() reflect.Type {
return reflect.TypeOf((*classificationJobState)(nil)).Elem()
}
type classificationJobArgs struct {
// The custom data identifiers to use for data analysis and classification.
CustomDataIdentifierIds []string `pulumi:"customDataIdentifierIds"`
// A custom description of the job. The description can contain as many as 200 characters.
Description *string `pulumi:"description"`
// Specifies whether to analyze all existing, eligible objects immediately after the job is created.
InitialRun *bool `pulumi:"initialRun"`
// The status for the job. Valid values are: `CANCELLED`, `RUNNING` and `USER_PAUSED`
JobStatus *string `pulumi:"jobStatus"`
// The schedule for running the job. Valid values are: `ONE_TIME` - Run the job only once. If you specify this value, don't specify a value for the `scheduleFrequency` property. `SCHEDULED` - Run the job on a daily, weekly, or monthly basis. If you specify this value, use the `scheduleFrequency` property to define the recurrence pattern for the job.
JobType string `pulumi:"jobType"`
// A custom name for the job. The name can contain as many as 500 characters. If omitted, the provider will assign a random, unique name. Conflicts with `namePrefix`.
Name *string `pulumi:"name"`
// Creates a unique name beginning with the specified prefix. Conflicts with `name`.
NamePrefix *string `pulumi:"namePrefix"`
// The S3 buckets that contain the objects to analyze, and the scope of that analysis. (documented below)
S3JobDefinition ClassificationJobS3JobDefinition `pulumi:"s3JobDefinition"`
// The sampling depth, as a percentage, to apply when processing objects. This value determines the percentage of eligible objects that the job analyzes. If this value is less than 100, Amazon Macie selects the objects to analyze at random, up to the specified percentage, and analyzes all the data in those objects.
SamplingPercentage *int `pulumi:"samplingPercentage"`
// The recurrence pattern for running the job. To run the job only once, don't specify a value for this property and set the value for the `jobType` property to `ONE_TIME`. (documented below)
ScheduleFrequency *ClassificationJobScheduleFrequency `pulumi:"scheduleFrequency"`
// A map of key-value pairs that specifies the tags to associate with the job. A job can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.
Tags map[string]string `pulumi:"tags"`
}
// The set of arguments for constructing a ClassificationJob resource.
type ClassificationJobArgs struct {
// The custom data identifiers to use for data analysis and classification.
CustomDataIdentifierIds pulumi.StringArrayInput
// A custom description of the job. The description can contain as many as 200 characters.
Description pulumi.StringPtrInput
// Specifies whether to analyze all existing, eligible objects immediately after the job is created.
InitialRun pulumi.BoolPtrInput
// The status for the job. Valid values are: `CANCELLED`, `RUNNING` and `USER_PAUSED`
JobStatus pulumi.StringPtrInput
// The schedule for running the job. Valid values are: `ONE_TIME` - Run the job only once. If you specify this value, don't specify a value for the `scheduleFrequency` property. `SCHEDULED` - Run the job on a daily, weekly, or monthly basis. If you specify this value, use the `scheduleFrequency` property to define the recurrence pattern for the job.
JobType pulumi.StringInput
// A custom name for the job. The name can contain as many as 500 characters. If omitted, the provider will assign a random, unique name. Conflicts with `namePrefix`.
Name pulumi.StringPtrInput
// Creates a unique name beginning with the specified prefix. Conflicts with `name`.
NamePrefix pulumi.StringPtrInput
// The S3 buckets that contain the objects to analyze, and the scope of that analysis. (documented below)
S3JobDefinition ClassificationJobS3JobDefinitionInput
// The sampling depth, as a percentage, to apply when processing objects. This value determines the percentage of eligible objects that the job analyzes. If this value is less than 100, Amazon Macie selects the objects to analyze at random, up to the specified percentage, and analyzes all the data in those objects.
SamplingPercentage pulumi.IntPtrInput
// The recurrence pattern for running the job. To run the job only once, don't specify a value for this property and set the value for the `jobType` property to `ONE_TIME`. (documented below)
ScheduleFrequency ClassificationJobScheduleFrequencyPtrInput
// A map of key-value pairs that specifies the tags to associate with the job. A job can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.
Tags pulumi.StringMapInput
}
func (ClassificationJobArgs) ElementType() reflect.Type {
return reflect.TypeOf((*classificationJobArgs)(nil)).Elem()
}
type ClassificationJobInput interface {
pulumi.Input
ToClassificationJobOutput() ClassificationJobOutput
ToClassificationJobOutputWithContext(ctx context.Context) ClassificationJobOutput
}
func (*ClassificationJob) ElementType() reflect.Type {
return reflect.TypeOf((**ClassificationJob)(nil)).Elem()
}
func (i *ClassificationJob) ToClassificationJobOutput() ClassificationJobOutput {
return i.ToClassificationJobOutputWithContext(context.Background())
}
func (i *ClassificationJob) ToClassificationJobOutputWithContext(ctx context.Context) ClassificationJobOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClassificationJobOutput)
}
// ClassificationJobArrayInput is an input type that accepts ClassificationJobArray and ClassificationJobArrayOutput values.
// You can construct a concrete instance of `ClassificationJobArrayInput` via:
//
// ClassificationJobArray{ ClassificationJobArgs{...} }
type ClassificationJobArrayInput interface {
pulumi.Input
ToClassificationJobArrayOutput() ClassificationJobArrayOutput
ToClassificationJobArrayOutputWithContext(context.Context) ClassificationJobArrayOutput
}
type ClassificationJobArray []ClassificationJobInput
func (ClassificationJobArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*ClassificationJob)(nil)).Elem()
}
func (i ClassificationJobArray) ToClassificationJobArrayOutput() ClassificationJobArrayOutput {
return i.ToClassificationJobArrayOutputWithContext(context.Background())
}
func (i ClassificationJobArray) ToClassificationJobArrayOutputWithContext(ctx context.Context) ClassificationJobArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClassificationJobArrayOutput)
}
// ClassificationJobMapInput is an input type that accepts ClassificationJobMap and ClassificationJobMapOutput values.
// You can construct a concrete instance of `ClassificationJobMapInput` via:
//
// ClassificationJobMap{ "key": ClassificationJobArgs{...} }
type ClassificationJobMapInput interface {
pulumi.Input
ToClassificationJobMapOutput() ClassificationJobMapOutput
ToClassificationJobMapOutputWithContext(context.Context) ClassificationJobMapOutput
}
type ClassificationJobMap map[string]ClassificationJobInput
func (ClassificationJobMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*ClassificationJob)(nil)).Elem()
}
func (i ClassificationJobMap) ToClassificationJobMapOutput() ClassificationJobMapOutput {
return i.ToClassificationJobMapOutputWithContext(context.Background())
}
func (i ClassificationJobMap) ToClassificationJobMapOutputWithContext(ctx context.Context) ClassificationJobMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClassificationJobMapOutput)
}
type ClassificationJobOutput struct{ *pulumi.OutputState }
func (ClassificationJobOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ClassificationJob)(nil)).Elem()
}
func (o ClassificationJobOutput) ToClassificationJobOutput() ClassificationJobOutput {
return o
}
func (o ClassificationJobOutput) ToClassificationJobOutputWithContext(ctx context.Context) ClassificationJobOutput {
return o
}
// The date and time, in UTC and extended RFC 3339 format, when the job was created.
func (o ClassificationJobOutput) CreatedAt() pulumi.StringOutput {
return o.ApplyT(func(v *ClassificationJob) pulumi.StringOutput { return v.CreatedAt }).(pulumi.StringOutput)
}
// The custom data identifiers to use for data analysis and classification.
func (o ClassificationJobOutput) CustomDataIdentifierIds() pulumi.StringArrayOutput {
return o.ApplyT(func(v *ClassificationJob) pulumi.StringArrayOutput { return v.CustomDataIdentifierIds }).(pulumi.StringArrayOutput)
}
// A custom description of the job. The description can contain as many as 200 characters.
func (o ClassificationJobOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v *ClassificationJob) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput)
}
// Specifies whether to analyze all existing, eligible objects immediately after the job is created.
func (o ClassificationJobOutput) InitialRun() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *ClassificationJob) pulumi.BoolPtrOutput { return v.InitialRun }).(pulumi.BoolPtrOutput)
}
func (o ClassificationJobOutput) JobArn() pulumi.StringOutput {
return o.ApplyT(func(v *ClassificationJob) pulumi.StringOutput { return v.JobArn }).(pulumi.StringOutput)
}
func (o ClassificationJobOutput) JobId() pulumi.StringOutput {
return o.ApplyT(func(v *ClassificationJob) pulumi.StringOutput { return v.JobId }).(pulumi.StringOutput)
}
// The status for the job. Valid values are: `CANCELLED`, `RUNNING` and `USER_PAUSED`
func (o ClassificationJobOutput) JobStatus() pulumi.StringOutput {
return o.ApplyT(func(v *ClassificationJob) pulumi.StringOutput { return v.JobStatus }).(pulumi.StringOutput)
}
// The schedule for running the job. Valid values are: `ONE_TIME` - Run the job only once. If you specify this value, don't specify a value for the `scheduleFrequency` property. `SCHEDULED` - Run the job on a daily, weekly, or monthly basis. If you specify this value, use the `scheduleFrequency` property to define the recurrence pattern for the job.
func (o ClassificationJobOutput) JobType() pulumi.StringOutput {
return o.ApplyT(func(v *ClassificationJob) pulumi.StringOutput { return v.JobType }).(pulumi.StringOutput)
}
// A custom name for the job. The name can contain as many as 500 characters. If omitted, the provider will assign a random, unique name. Conflicts with `namePrefix`.
func (o ClassificationJobOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *ClassificationJob) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// Creates a unique name beginning with the specified prefix. Conflicts with `name`.
func (o ClassificationJobOutput) NamePrefix() pulumi.StringOutput {
return o.ApplyT(func(v *ClassificationJob) pulumi.StringOutput { return v.NamePrefix }).(pulumi.StringOutput)
}
// The S3 buckets that contain the objects to analyze, and the scope of that analysis. (documented below)
func (o ClassificationJobOutput) S3JobDefinition() ClassificationJobS3JobDefinitionOutput {
return o.ApplyT(func(v *ClassificationJob) ClassificationJobS3JobDefinitionOutput { return v.S3JobDefinition }).(ClassificationJobS3JobDefinitionOutput)
}
// The sampling depth, as a percentage, to apply when processing objects. This value determines the percentage of eligible objects that the job analyzes. If this value is less than 100, Amazon Macie selects the objects to analyze at random, up to the specified percentage, and analyzes all the data in those objects.
func (o ClassificationJobOutput) SamplingPercentage() pulumi.IntOutput {
return o.ApplyT(func(v *ClassificationJob) pulumi.IntOutput { return v.SamplingPercentage }).(pulumi.IntOutput)
}
// The recurrence pattern for running the job. To run the job only once, don't specify a value for this property and set the value for the `jobType` property to `ONE_TIME`. (documented below)
func (o ClassificationJobOutput) ScheduleFrequency() ClassificationJobScheduleFrequencyOutput {
return o.ApplyT(func(v *ClassificationJob) ClassificationJobScheduleFrequencyOutput { return v.ScheduleFrequency }).(ClassificationJobScheduleFrequencyOutput)
}
// A map of key-value pairs that specifies the tags to associate with the job. A job can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.
func (o ClassificationJobOutput) Tags() pulumi.StringMapOutput {
return o.ApplyT(func(v *ClassificationJob) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput)
}
func (o ClassificationJobOutput) TagsAll() pulumi.StringMapOutput {
return o.ApplyT(func(v *ClassificationJob) pulumi.StringMapOutput { return v.TagsAll }).(pulumi.StringMapOutput)
}
// If the current status of the job is `USER_PAUSED`, specifies when the job was paused and when the job or job run will expire and be cancelled if it isn't resumed. This value is present only if the value for `job-status` is `USER_PAUSED`.
func (o ClassificationJobOutput) UserPausedDetails() ClassificationJobUserPausedDetailArrayOutput {
return o.ApplyT(func(v *ClassificationJob) ClassificationJobUserPausedDetailArrayOutput { return v.UserPausedDetails }).(ClassificationJobUserPausedDetailArrayOutput)
}
type ClassificationJobArrayOutput struct{ *pulumi.OutputState }
func (ClassificationJobArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*ClassificationJob)(nil)).Elem()
}
func (o ClassificationJobArrayOutput) ToClassificationJobArrayOutput() ClassificationJobArrayOutput {
return o
}
func (o ClassificationJobArrayOutput) ToClassificationJobArrayOutputWithContext(ctx context.Context) ClassificationJobArrayOutput {
return o
}
func (o ClassificationJobArrayOutput) Index(i pulumi.IntInput) ClassificationJobOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ClassificationJob {
return vs[0].([]*ClassificationJob)[vs[1].(int)]
}).(ClassificationJobOutput)
}
type ClassificationJobMapOutput struct{ *pulumi.OutputState }
func (ClassificationJobMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*ClassificationJob)(nil)).Elem()
}
func (o ClassificationJobMapOutput) ToClassificationJobMapOutput() ClassificationJobMapOutput {
return o
}
func (o ClassificationJobMapOutput) ToClassificationJobMapOutputWithContext(ctx context.Context) ClassificationJobMapOutput {
return o
}
func (o ClassificationJobMapOutput) MapIndex(k pulumi.StringInput) ClassificationJobOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ClassificationJob {
return vs[0].(map[string]*ClassificationJob)[vs[1].(string)]
}).(ClassificationJobOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*ClassificationJobInput)(nil)).Elem(), &ClassificationJob{})
pulumi.RegisterInputType(reflect.TypeOf((*ClassificationJobArrayInput)(nil)).Elem(), ClassificationJobArray{})
pulumi.RegisterInputType(reflect.TypeOf((*ClassificationJobMapInput)(nil)).Elem(), ClassificationJobMap{})
pulumi.RegisterOutputType(ClassificationJobOutput{})
pulumi.RegisterOutputType(ClassificationJobArrayOutput{})
pulumi.RegisterOutputType(ClassificationJobMapOutput{})
}