/
models_0.ts
4580 lines (3901 loc) · 116 KB
/
models_0.ts
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
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// smithy-typescript generated code
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
import { CustomerProfilesServiceException as __BaseException } from "./CustomerProfilesServiceException";
/**
* <p>You do not have sufficient access to perform this action.</p>
*/
export class AccessDeniedException extends __BaseException {
readonly name: "AccessDeniedException" = "AccessDeniedException";
readonly $fault: "client" = "client";
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>) {
super({
name: "AccessDeniedException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, AccessDeniedException.prototype);
this.Message = opts.Message;
}
}
/**
* <p>A data type pair that consists of a <code>KeyName</code> and <code>Values</code> list that is
* used in conjunction with the
* <a href="https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html#customerprofiles-SearchProfiles-request-KeyName">KeyName</a>
* and
* <a href="https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html#customerprofiles-SearchProfiles-request-Values">Values</a>
* parameters to search for profiles using the <a href="https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html">SearchProfiles</a> API.</p>
*/
export interface AdditionalSearchKey {
/**
* <p>A searchable identifier of a customer profile.</p>
*/
KeyName: string | undefined;
/**
* <p>A list of key values.</p>
*/
Values: string[] | undefined;
}
export interface AddProfileKeyRequest {
/**
* <p>The unique identifier of a customer profile.</p>
*/
ProfileId: string | undefined;
/**
* <p>A searchable identifier of a customer profile. The predefined keys you can use
* include: _account, _profileId, _assetId, _caseId, _orderId, _fullName, _phone,
* _email, _ctrContactId, _marketoLeadId, _salesforceAccountId, _salesforceContactId,
* _salesforceAssetId, _zendeskUserId, _zendeskExternalId, _zendeskTicketId,
* _serviceNowSystemId, _serviceNowIncidentId, _segmentUserId, _shopifyCustomerId,
* _shopifyOrderId.</p>
*/
KeyName: string | undefined;
/**
* <p>A list of key values.</p>
*/
Values: string[] | undefined;
/**
* <p>The unique name of the domain.</p>
*/
DomainName: string | undefined;
}
export interface AddProfileKeyResponse {
/**
* <p>A searchable identifier of a customer profile.</p>
*/
KeyName?: string;
/**
* <p>A list of key values.</p>
*/
Values?: string[];
}
/**
* <p>The input you provided is invalid.</p>
*/
export class BadRequestException extends __BaseException {
readonly name: "BadRequestException" = "BadRequestException";
readonly $fault: "client" = "client";
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<BadRequestException, __BaseException>) {
super({
name: "BadRequestException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, BadRequestException.prototype);
this.Message = opts.Message;
}
}
/**
* <p>An internal service error occurred.</p>
*/
export class InternalServerException extends __BaseException {
readonly name: "InternalServerException" = "InternalServerException";
readonly $fault: "server" = "server";
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>) {
super({
name: "InternalServerException",
$fault: "server",
...opts,
});
Object.setPrototypeOf(this, InternalServerException.prototype);
this.Message = opts.Message;
}
}
/**
* <p>The requested resource does not exist, or access was denied.</p>
*/
export class ResourceNotFoundException extends __BaseException {
readonly name: "ResourceNotFoundException" = "ResourceNotFoundException";
readonly $fault: "client" = "client";
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>) {
super({
name: "ResourceNotFoundException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
this.Message = opts.Message;
}
}
/**
* <p>You exceeded the maximum number of requests.</p>
*/
export class ThrottlingException extends __BaseException {
readonly name: "ThrottlingException" = "ThrottlingException";
readonly $fault: "client" = "client";
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>) {
super({
name: "ThrottlingException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ThrottlingException.prototype);
this.Message = opts.Message;
}
}
/**
* <p>A generic address associated with the customer that is not mailing, shipping, or
* billing.</p>
*/
export interface Address {
/**
* <p>The first line of a customer address.</p>
*/
Address1?: string;
/**
* <p>The second line of a customer address.</p>
*/
Address2?: string;
/**
* <p>The third line of a customer address.</p>
*/
Address3?: string;
/**
* <p>The fourth line of a customer address.</p>
*/
Address4?: string;
/**
* <p>The city in which a customer lives.</p>
*/
City?: string;
/**
* <p>The county in which a customer lives.</p>
*/
County?: string;
/**
* <p>The state in which a customer lives.</p>
*/
State?: string;
/**
* <p>The province in which a customer lives.</p>
*/
Province?: string;
/**
* <p>The country in which a customer lives.</p>
*/
Country?: string;
/**
* <p>The postal code of a customer address.</p>
*/
PostalCode?: string;
}
/**
* <p>Batch defines the boundaries for ingestion for each step in <code>APPFLOW_INTEGRATION</code> workflow. <code>APPFLOW_INTEGRATION</code> workflow splits ingestion based on these boundaries.</p>
*/
export interface Batch {
/**
* <p>Start time of batch to split ingestion.</p>
*/
StartTime: Date | undefined;
/**
* <p>End time of batch to split ingestion.</p>
*/
EndTime: Date | undefined;
}
export enum SourceConnectorType {
MARKETO = "Marketo",
S3 = "S3",
SALESFORCE = "Salesforce",
SERVICENOW = "Servicenow",
ZENDESK = "Zendesk",
}
/**
* <p>Specifies the configuration used when importing incremental records from the
* source.</p>
*/
export interface IncrementalPullConfig {
/**
* <p>A field that specifies the date time or timestamp field as the criteria to use when
* importing incremental records from the source.</p>
*/
DatetimeTypeFieldName?: string;
}
/**
* <p>The properties that are applied when Marketo is being used as a source.</p>
*/
export interface MarketoSourceProperties {
/**
* <p>The object specified in the Marketo flow source.</p>
*/
Object: string | undefined;
}
/**
* <p>The properties that are applied when Amazon S3 is being used as the flow source.</p>
*/
export interface S3SourceProperties {
/**
* <p>The Amazon S3 bucket name where the source files are stored.</p>
*/
BucketName: string | undefined;
/**
* <p>The object key for the Amazon S3 bucket in which the source files are stored.</p>
*/
BucketPrefix?: string;
}
/**
* <p>The properties that are applied when Salesforce is being used as a source.</p>
*/
export interface SalesforceSourceProperties {
/**
* <p>The object specified in the Salesforce flow source.</p>
*/
Object: string | undefined;
/**
* <p>The flag that enables dynamic fetching of new (recently added) fields in the Salesforce
* objects while running a flow.</p>
*/
EnableDynamicFieldUpdate?: boolean;
/**
* <p>Indicates whether Amazon AppFlow includes deleted files in the flow run.</p>
*/
IncludeDeletedRecords?: boolean;
}
/**
* <p>The properties that are applied when ServiceNow is being used as a source.</p>
*/
export interface ServiceNowSourceProperties {
/**
* <p>The object specified in the ServiceNow flow source.</p>
*/
Object: string | undefined;
}
/**
* <p>The properties that are applied when using Zendesk as a flow source.</p>
*/
export interface ZendeskSourceProperties {
/**
* <p>The object specified in the Zendesk flow source.</p>
*/
Object: string | undefined;
}
/**
* <p>Specifies the information that is required to query a particular Amazon AppFlow connector.
* Customer Profiles supports Salesforce, Zendesk, Marketo, ServiceNow and Amazon S3.</p>
*/
export interface SourceConnectorProperties {
/**
* <p>The properties that are applied when Marketo is being used as a source.</p>
*/
Marketo?: MarketoSourceProperties;
/**
* <p>The properties that are applied when Amazon S3 is being used as the flow source.</p>
*/
S3?: S3SourceProperties;
/**
* <p>The properties that are applied when Salesforce is being used as a source.</p>
*/
Salesforce?: SalesforceSourceProperties;
/**
* <p>The properties that are applied when ServiceNow is being used as a source.</p>
*/
ServiceNow?: ServiceNowSourceProperties;
/**
* <p>The properties that are applied when using Zendesk as a flow source.</p>
*/
Zendesk?: ZendeskSourceProperties;
}
/**
* <p>Contains information about the configuration of the source connector used in the
* flow.</p>
*/
export interface SourceFlowConfig {
/**
* <p>The name of the AppFlow connector profile. This name must be unique for each connector
* profile in the AWS account.</p>
*/
ConnectorProfileName?: string;
/**
* <p>The type of connector, such as Salesforce, Marketo, and so on.</p>
*/
ConnectorType: SourceConnectorType | string | undefined;
/**
* <p>Defines the configuration for a scheduled incremental data pull. If a valid
* configuration is provided, the fields specified in the configuration are used when querying
* for the incremental data pull.</p>
*/
IncrementalPullConfig?: IncrementalPullConfig;
/**
* <p>Specifies the information that is required to query a particular source
* connector.</p>
*/
SourceConnectorProperties: SourceConnectorProperties | undefined;
}
export enum MarketoConnectorOperator {
ADDITION = "ADDITION",
BETWEEN = "BETWEEN",
DIVISION = "DIVISION",
GREATER_THAN = "GREATER_THAN",
LESS_THAN = "LESS_THAN",
MASK_ALL = "MASK_ALL",
MASK_FIRST_N = "MASK_FIRST_N",
MASK_LAST_N = "MASK_LAST_N",
MULTIPLICATION = "MULTIPLICATION",
NO_OP = "NO_OP",
PROJECTION = "PROJECTION",
SUBTRACTION = "SUBTRACTION",
VALIDATE_NON_NEGATIVE = "VALIDATE_NON_NEGATIVE",
VALIDATE_NON_NULL = "VALIDATE_NON_NULL",
VALIDATE_NON_ZERO = "VALIDATE_NON_ZERO",
VALIDATE_NUMERIC = "VALIDATE_NUMERIC",
}
export enum S3ConnectorOperator {
ADDITION = "ADDITION",
BETWEEN = "BETWEEN",
DIVISION = "DIVISION",
EQUAL_TO = "EQUAL_TO",
GREATER_THAN = "GREATER_THAN",
GREATER_THAN_OR_EQUAL_TO = "GREATER_THAN_OR_EQUAL_TO",
LESS_THAN = "LESS_THAN",
LESS_THAN_OR_EQUAL_TO = "LESS_THAN_OR_EQUAL_TO",
MASK_ALL = "MASK_ALL",
MASK_FIRST_N = "MASK_FIRST_N",
MASK_LAST_N = "MASK_LAST_N",
MULTIPLICATION = "MULTIPLICATION",
NOT_EQUAL_TO = "NOT_EQUAL_TO",
NO_OP = "NO_OP",
PROJECTION = "PROJECTION",
SUBTRACTION = "SUBTRACTION",
VALIDATE_NON_NEGATIVE = "VALIDATE_NON_NEGATIVE",
VALIDATE_NON_NULL = "VALIDATE_NON_NULL",
VALIDATE_NON_ZERO = "VALIDATE_NON_ZERO",
VALIDATE_NUMERIC = "VALIDATE_NUMERIC",
}
export enum SalesforceConnectorOperator {
ADDITION = "ADDITION",
BETWEEN = "BETWEEN",
CONTAINS = "CONTAINS",
DIVISION = "DIVISION",
EQUAL_TO = "EQUAL_TO",
GREATER_THAN = "GREATER_THAN",
GREATER_THAN_OR_EQUAL_TO = "GREATER_THAN_OR_EQUAL_TO",
LESS_THAN = "LESS_THAN",
LESS_THAN_OR_EQUAL_TO = "LESS_THAN_OR_EQUAL_TO",
MASK_ALL = "MASK_ALL",
MASK_FIRST_N = "MASK_FIRST_N",
MASK_LAST_N = "MASK_LAST_N",
MULTIPLICATION = "MULTIPLICATION",
NOT_EQUAL_TO = "NOT_EQUAL_TO",
NO_OP = "NO_OP",
PROJECTION = "PROJECTION",
SUBTRACTION = "SUBTRACTION",
VALIDATE_NON_NEGATIVE = "VALIDATE_NON_NEGATIVE",
VALIDATE_NON_NULL = "VALIDATE_NON_NULL",
VALIDATE_NON_ZERO = "VALIDATE_NON_ZERO",
VALIDATE_NUMERIC = "VALIDATE_NUMERIC",
}
export enum ServiceNowConnectorOperator {
ADDITION = "ADDITION",
BETWEEN = "BETWEEN",
CONTAINS = "CONTAINS",
DIVISION = "DIVISION",
EQUAL_TO = "EQUAL_TO",
GREATER_THAN = "GREATER_THAN",
GREATER_THAN_OR_EQUAL_TO = "GREATER_THAN_OR_EQUAL_TO",
LESS_THAN = "LESS_THAN",
LESS_THAN_OR_EQUAL_TO = "LESS_THAN_OR_EQUAL_TO",
MASK_ALL = "MASK_ALL",
MASK_FIRST_N = "MASK_FIRST_N",
MASK_LAST_N = "MASK_LAST_N",
MULTIPLICATION = "MULTIPLICATION",
NOT_EQUAL_TO = "NOT_EQUAL_TO",
NO_OP = "NO_OP",
PROJECTION = "PROJECTION",
SUBTRACTION = "SUBTRACTION",
VALIDATE_NON_NEGATIVE = "VALIDATE_NON_NEGATIVE",
VALIDATE_NON_NULL = "VALIDATE_NON_NULL",
VALIDATE_NON_ZERO = "VALIDATE_NON_ZERO",
VALIDATE_NUMERIC = "VALIDATE_NUMERIC",
}
export enum ZendeskConnectorOperator {
ADDITION = "ADDITION",
DIVISION = "DIVISION",
GREATER_THAN = "GREATER_THAN",
MASK_ALL = "MASK_ALL",
MASK_FIRST_N = "MASK_FIRST_N",
MASK_LAST_N = "MASK_LAST_N",
MULTIPLICATION = "MULTIPLICATION",
NO_OP = "NO_OP",
PROJECTION = "PROJECTION",
SUBTRACTION = "SUBTRACTION",
VALIDATE_NON_NEGATIVE = "VALIDATE_NON_NEGATIVE",
VALIDATE_NON_NULL = "VALIDATE_NON_NULL",
VALIDATE_NON_ZERO = "VALIDATE_NON_ZERO",
VALIDATE_NUMERIC = "VALIDATE_NUMERIC",
}
/**
* <p>The operation to be performed on the provided source fields.</p>
*/
export interface ConnectorOperator {
/**
* <p>The operation to be performed on the provided Marketo source fields.</p>
*/
Marketo?: MarketoConnectorOperator | string;
/**
* <p>The operation to be performed on the provided Amazon S3 source fields.</p>
*/
S3?: S3ConnectorOperator | string;
/**
* <p>The operation to be performed on the provided Salesforce source fields.</p>
*/
Salesforce?: SalesforceConnectorOperator | string;
/**
* <p>The operation to be performed on the provided ServiceNow source fields.</p>
*/
ServiceNow?: ServiceNowConnectorOperator | string;
/**
* <p>The operation to be performed on the provided Zendesk source fields.</p>
*/
Zendesk?: ZendeskConnectorOperator | string;
}
export enum OperatorPropertiesKeys {
CONCAT_FORMAT = "CONCAT_FORMAT",
DATA_TYPE = "DATA_TYPE",
DESTINATION_DATA_TYPE = "DESTINATION_DATA_TYPE",
LOWER_BOUND = "LOWER_BOUND",
MASK_LENGTH = "MASK_LENGTH",
MASK_VALUE = "MASK_VALUE",
MATH_OPERATION_FIELDS_ORDER = "MATH_OPERATION_FIELDS_ORDER",
SOURCE_DATA_TYPE = "SOURCE_DATA_TYPE",
SUBFIELD_CATEGORY_MAP = "SUBFIELD_CATEGORY_MAP",
TRUNCATE_LENGTH = "TRUNCATE_LENGTH",
UPPER_BOUND = "UPPER_BOUND",
VALIDATION_ACTION = "VALIDATION_ACTION",
VALUE = "VALUE",
VALUES = "VALUES",
}
export enum TaskType {
ARITHMETIC = "Arithmetic",
FILTER = "Filter",
MAP = "Map",
MASK = "Mask",
MERGE = "Merge",
TRUNCATE = "Truncate",
VALIDATE = "Validate",
}
/**
* <p>A class for modeling different type of tasks. Task implementation varies based on the
* TaskType.</p>
*/
export interface Task {
/**
* <p>The operation to be performed on the provided source fields.</p>
*/
ConnectorOperator?: ConnectorOperator;
/**
* <p>A field in a destination connector, or a field value against which Amazon AppFlow validates a
* source field.</p>
*/
DestinationField?: string;
/**
* <p>The source fields to which a particular task is applied.</p>
*/
SourceFields: string[] | undefined;
/**
* <p>A map used to store task-related information. The service looks for particular
* information based on the TaskType.</p>
*/
TaskProperties?: Record<string, string>;
/**
* <p>Specifies the particular task implementation that Amazon AppFlow performs.</p>
*/
TaskType: TaskType | string | undefined;
}
export enum DataPullMode {
COMPLETE = "Complete",
INCREMENTAL = "Incremental",
}
/**
* <p>Specifies the configuration details of a scheduled-trigger flow that you define.
* Currently, these settings only apply to the scheduled-trigger type.</p>
*/
export interface ScheduledTriggerProperties {
/**
* <p>The scheduling expression that determines the rate at which the schedule will run, for
* example rate (5 minutes).</p>
*/
ScheduleExpression: string | undefined;
/**
* <p>Specifies whether a scheduled flow has an incremental data transfer or a complete data
* transfer for each flow run.</p>
*/
DataPullMode?: DataPullMode | string;
/**
* <p>Specifies the scheduled start time for a scheduled-trigger flow.</p>
*/
ScheduleStartTime?: Date;
/**
* <p>Specifies the scheduled end time for a scheduled-trigger flow.</p>
*/
ScheduleEndTime?: Date;
/**
* <p>Specifies the time zone used when referring to the date and time of a
* scheduled-triggered flow, such as America/New_York.</p>
*/
Timezone?: string;
/**
* <p>Specifies the optional offset that is added to the time interval for a
* schedule-triggered flow.</p>
*/
ScheduleOffset?: number;
/**
* <p>Specifies the date range for the records to import from the connector in the first flow
* run.</p>
*/
FirstExecutionFrom?: Date;
}
/**
* <p>Specifies the configuration details that control the trigger for a flow. Currently,
* these settings only apply to the Scheduled trigger type.</p>
*/
export interface TriggerProperties {
/**
* <p>Specifies the configuration details of a schedule-triggered flow that you define.</p>
*/
Scheduled?: ScheduledTriggerProperties;
}
export enum TriggerType {
EVENT = "Event",
ONDEMAND = "OnDemand",
SCHEDULED = "Scheduled",
}
/**
* <p>The trigger settings that determine how and when Amazon AppFlow runs the specified
* flow.</p>
*/
export interface TriggerConfig {
/**
* <p>Specifies the type of flow trigger. It can be OnDemand, Scheduled, or Event.</p>
*/
TriggerType: TriggerType | string | undefined;
/**
* <p>Specifies the configuration details of a schedule-triggered flow that you define.
* Currently, these settings only apply to the Scheduled trigger type.</p>
*/
TriggerProperties?: TriggerProperties;
}
/**
* <p>The configurations that control how Customer Profiles retrieves data from the source,
* Amazon AppFlow. Customer Profiles uses this information to create an AppFlow flow on behalf of
* customers.</p>
*/
export interface FlowDefinition {
/**
* <p>A description of the flow you want to create.</p>
*/
Description?: string;
/**
* <p>The specified name of the flow. Use underscores (_) or hyphens (-) only. Spaces are not
* allowed.</p>
*/
FlowName: string | undefined;
/**
* <p>The Amazon Resource Name of the AWS Key Management Service (KMS) key you provide for encryption.</p>
*/
KmsArn: string | undefined;
/**
* <p>The configuration that controls how Customer Profiles retrieves data from the
* source.</p>
*/
SourceFlowConfig: SourceFlowConfig | undefined;
/**
* <p>A list of tasks that Customer Profiles performs while transferring the data in the flow
* run.</p>
*/
Tasks: Task[] | undefined;
/**
* <p>The trigger settings that determine how and when the flow runs.</p>
*/
TriggerConfig: TriggerConfig | undefined;
}
/**
* <p>Details for workflow of type <code>APPFLOW_INTEGRATION</code>.</p>
*/
export interface AppflowIntegration {
/**
* <p>The configurations that control how Customer Profiles retrieves data from the source,
* Amazon AppFlow. Customer Profiles uses this information to create an AppFlow flow on behalf of
* customers.</p>
*/
FlowDefinition: FlowDefinition | undefined;
/**
* <p>Batches in workflow of type <code>APPFLOW_INTEGRATION</code>.</p>
*/
Batches?: Batch[];
}
/**
* <p>Structure holding all <code>APPFLOW_INTEGRATION</code> specific workflow attributes.</p>
*/
export interface AppflowIntegrationWorkflowAttributes {
/**
* <p>Specifies the source connector type, such as Salesforce, ServiceNow, and Marketo. Indicates source of ingestion.</p>
*/
SourceConnectorType: SourceConnectorType | string | undefined;
/**
* <p>The name of the AppFlow connector profile used for ingestion.</p>
*/
ConnectorProfileName: string | undefined;
/**
* <p>The Amazon Resource Name (ARN) of the IAM role. Customer Profiles assumes this role to create resources on your behalf as part of workflow execution.</p>
*/
RoleArn?: string;
}
/**
* <p>Workflow specific execution metrics for <code>APPFLOW_INTEGRATION</code> workflow.</p>
*/
export interface AppflowIntegrationWorkflowMetrics {
/**
* <p>Number of records processed in <code>APPFLOW_INTEGRATION</code> workflow.</p>
*/
RecordsProcessed: number | undefined;
/**
* <p>Total steps completed in <code>APPFLOW_INTEGRATION</code> workflow.</p>
*/
StepsCompleted: number | undefined;
/**
* <p>Total steps in <code>APPFLOW_INTEGRATION</code> workflow.</p>
*/
TotalSteps: number | undefined;
}
export enum Status {
CANCELLED = "CANCELLED",
COMPLETE = "COMPLETE",
FAILED = "FAILED",
IN_PROGRESS = "IN_PROGRESS",
NOT_STARTED = "NOT_STARTED",
RETRY = "RETRY",
SPLIT = "SPLIT",
}
/**
* <p>Workflow step details for <code>APPFLOW_INTEGRATION</code> workflow.</p>
*/
export interface AppflowIntegrationWorkflowStep {
/**
* <p>Name of the flow created during execution of workflow step. <code>APPFLOW_INTEGRATION</code> workflow type creates an appflow flow during workflow step execution on the customers behalf.</p>
*/
FlowName: string | undefined;
/**
* <p>Workflow step status for <code>APPFLOW_INTEGRATION</code> workflow.</p>
*/
Status: Status | string | undefined;
/**
* <p>Message indicating execution of workflow step for <code>APPFLOW_INTEGRATION</code> workflow.</p>
*/
ExecutionMessage: string | undefined;
/**
* <p>Total number of records processed during execution of workflow step for <code>APPFLOW_INTEGRATION</code> workflow.</p>
*/
RecordsProcessed: number | undefined;
/**
* <p>Start datetime of records pulled in batch during execution of workflow step for <code>APPFLOW_INTEGRATION</code> workflow.</p>
*/
BatchRecordsStartTime: string | undefined;
/**
* <p>End datetime of records pulled in batch during execution of workflow step for <code>APPFLOW_INTEGRATION</code> workflow.</p>
*/
BatchRecordsEndTime: string | undefined;
/**
* <p>Creation timestamp of workflow step for <code>APPFLOW_INTEGRATION</code> workflow.</p>
*/
CreatedAt: Date | undefined;
/**
* <p>Last updated timestamp for workflow step for <code>APPFLOW_INTEGRATION</code> workflow.</p>
*/
LastUpdatedAt: Date | undefined;
}
export enum ConflictResolvingModel {
RECENCY = "RECENCY",
SOURCE = "SOURCE",
}
/**
* <p>How the auto-merging process should resolve conflicts between different profiles.</p>
*/
export interface ConflictResolution {
/**
* <p>How the auto-merging process should resolve conflicts between different profiles.</p>
* <ul>
* <li>
* <p>
* <code>RECENCY</code>: Uses the data that was most recently updated.</p>
* </li>
* <li>
* <p>
* <code>SOURCE</code>: Uses the data from a specific source. For example, if a
* company has been aquired or two departments have merged, data from the specified
* source is used. If two duplicate profiles are from the same source, then
* <code>RECENCY</code> is used again.</p>
* </li>
* </ul>
*/
ConflictResolvingModel: ConflictResolvingModel | string | undefined;
/**
* <p>The <code>ObjectType</code> name that is used to resolve profile merging conflicts when
* choosing <code>SOURCE</code> as the <code>ConflictResolvingModel</code>.</p>
*/
SourceName?: string;
}
/**
* <p>The matching criteria to be used during the auto-merging process. </p>
*/
export interface Consolidation {
/**
* <p>A list of matching criteria.</p>
*/
MatchingAttributesList: string[][] | undefined;
}
/**
* <p>Configuration settings for how to perform the auto-merging of profiles.</p>
*/
export interface AutoMerging {
/**
* <p>The flag that enables the auto-merging of duplicate profiles.</p>
*/
Enabled: boolean | undefined;
/**
* <p>A list of matching attributes that represent matching criteria. If two profiles meet at
* least one of the requirements in the matching attributes list, they will be merged.</p>
*/
Consolidation?: Consolidation;
/**
* <p>How the auto-merging process should resolve conflicts between different profiles. For
* example, if Profile A and Profile B have the same <code>FirstName</code> and
* <code>LastName</code> (and that is the matching criteria), which
* <code>EmailAddress</code> should be used? </p>
*/
ConflictResolution?: ConflictResolution;
/**
* <p>A number between 0 and 1 that represents the minimum confidence score required for
* profiles within a matching group to be merged during the auto-merge process. A higher
* score means higher similarity required to merge profiles. </p>
*/
MinAllowedConfidenceScoreForMerging?: number;
}
/**
* <p>Configuration information about the S3 bucket where Identity Resolution Jobs write result files.</p>
*/
export interface S3ExportingConfig {
/**
* <p>The name of the S3 bucket where Identity Resolution Jobs write result files.</p>
*/
S3BucketName: string | undefined;
/**
* <p>The S3 key name of the location where Identity Resolution Jobs write result files.</p>
*/
S3KeyName?: string;
}
/**
* <p>Configuration information about the S3 bucket where Identity Resolution Jobs writes result files. </p>
* <note>
* <p>You need to give Customer Profiles service principal write permission to your S3 bucket.
* Otherwise, you'll get an exception in the API response. For an example policy, see
* <a href="https://docs.aws.amazon.com/connect/latest/adminguide/cross-service-confused-deputy-prevention.html#customer-profiles-cross-service">Amazon Connect Customer Profiles cross-service confused deputy prevention</a>. </p>
* </note>
*/
export interface ExportingConfig {
/**
* <p>The S3 location where Identity Resolution Jobs write result files.</p>
*/
S3Exporting?: S3ExportingConfig;
}
export enum JobScheduleDayOfTheWeek {
FRIDAY = "FRIDAY",
MONDAY = "MONDAY",
SATURDAY = "SATURDAY",
SUNDAY = "SUNDAY",
THURSDAY = "THURSDAY",
TUESDAY = "TUESDAY",
WEDNESDAY = "WEDNESDAY",
}
/**
* <p>The day and time when do you want to start the Identity Resolution Job every week.</p>
*/
export interface JobSchedule {
/**
* <p>The day when the Identity Resolution Job should run every week.</p>
*/
DayOfTheWeek: JobScheduleDayOfTheWeek | string | undefined;
/**
* <p>The time when the Identity Resolution Job should run every week.</p>
*/
Time: string | undefined;
}
/**
* <p>The flag that enables the matching process of duplicate profiles.</p>
*/
export interface MatchingRequest {
/**
* <p>The flag that enables the matching process of duplicate profiles.</p>
*/
Enabled: boolean | undefined;
/**
* <p>The day and time when do you want to start the Identity Resolution Job every week.</p>
*/
JobSchedule?: JobSchedule;
/**
* <p>Configuration information about the auto-merging process.</p>
*/
AutoMerging?: AutoMerging;
/**
* <p>Configuration information for exporting Identity Resolution results, for example, to an S3
* bucket.</p>
*/
ExportingConfig?: ExportingConfig;
}
export interface CreateDomainRequest {
/**
* <p>The unique name of the domain.</p>
*/
DomainName: string | undefined;
/**
* <p>The default number of days until the data within the domain expires.</p>
*/
DefaultExpirationDays: number | undefined;
/**
* <p>The default encryption key, which is an AWS managed key, is used when no specific type
* of encryption key is specified. It is used to encrypt all data before it is placed in
* permanent or semi-permanent storage.</p>
*/
DefaultEncryptionKey?: string;
/**
* <p>The URL of the SQS dead letter queue, which is used for reporting errors associated with
* ingesting data from third party applications. You must set up a policy on the
* DeadLetterQueue for the SendMessage operation to enable Amazon Connect Customer Profiles to send
* messages to the DeadLetterQueue.</p>