1// Code generated by smithy-go-codegen DO NOT EDIT.
2
3package types
4
5import (
6	"time"
7)
8
9// Describes a custom algorithm.
10type Algorithm struct {
11
12	// The Amazon Resource Name (ARN) of the algorithm.
13	AlgorithmArn *string
14
15	// The URI of the Docker container for the algorithm image.
16	AlgorithmImage *AlgorithmImage
17
18	// The date and time (in Unix time) that the algorithm was created.
19	CreationDateTime *time.Time
20
21	// Specifies the default hyperparameters, their ranges, and whether they are
22	// tunable. A tunable hyperparameter can have its value determined during
23	// hyperparameter optimization (HPO).
24	DefaultHyperParameterRanges *DefaultHyperParameterRanges
25
26	// Specifies the default hyperparameters.
27	DefaultHyperParameters map[string]string
28
29	// Specifies the default maximum number of training jobs and parallel training
30	// jobs.
31	DefaultResourceConfig map[string]string
32
33	// The date and time (in Unix time) that the algorithm was last updated.
34	LastUpdatedDateTime *time.Time
35
36	// The name of the algorithm.
37	Name *string
38
39	// The Amazon Resource Name (ARN) of the role.
40	RoleArn *string
41
42	// The training input mode.
43	TrainingInputMode *string
44}
45
46// Describes an algorithm image.
47type AlgorithmImage struct {
48
49	// The URI of the Docker container for the algorithm image.
50	//
51	// This member is required.
52	DockerURI *string
53
54	// The name of the algorithm image.
55	Name *string
56}
57
58// When the solution performs AutoML (performAutoML is true in CreateSolution),
59// Amazon Personalize determines which recipe, from the specified list, optimizes
60// the given metric. Amazon Personalize then uses that recipe for the solution.
61type AutoMLConfig struct {
62
63	// The metric to optimize.
64	MetricName *string
65
66	// The list of candidate recipes.
67	RecipeList []string
68}
69
70// When the solution performs AutoML (performAutoML is true in CreateSolution),
71// specifies the recipe that best optimized the specified metric.
72type AutoMLResult struct {
73
74	// The Amazon Resource Name (ARN) of the best recipe.
75	BestRecipeArn *string
76}
77
78// Contains information on a batch inference job.
79type BatchInferenceJob struct {
80
81	// The Amazon Resource Name (ARN) of the batch inference job.
82	BatchInferenceJobArn *string
83
84	// A string to string map of the configuration details of a batch inference job.
85	BatchInferenceJobConfig *BatchInferenceJobConfig
86
87	// The time at which the batch inference job was created.
88	CreationDateTime *time.Time
89
90	// If the batch inference job failed, the reason for the failure.
91	FailureReason *string
92
93	// The ARN of the filter used on the batch inference job.
94	FilterArn *string
95
96	// The Amazon S3 path that leads to the input data used to generate the batch
97	// inference job.
98	JobInput *BatchInferenceJobInput
99
100	// The name of the batch inference job.
101	JobName *string
102
103	// The Amazon S3 bucket that contains the output data generated by the batch
104	// inference job.
105	JobOutput *BatchInferenceJobOutput
106
107	// The time at which the batch inference job was last updated.
108	LastUpdatedDateTime *time.Time
109
110	// The number of recommendations generated by the batch inference job. This number
111	// includes the error messages generated for failed input records.
112	NumResults *int32
113
114	// The ARN of the Amazon Identity and Access Management (IAM) role that requested
115	// the batch inference job.
116	RoleArn *string
117
118	// The Amazon Resource Name (ARN) of the solution version from which the batch
119	// inference job was created.
120	SolutionVersionArn *string
121
122	// The status of the batch inference job. The status is one of the following
123	// values:
124	//
125	// * PENDING
126	//
127	// * IN PROGRESS
128	//
129	// * ACTIVE
130	//
131	// * CREATE FAILED
132	Status *string
133}
134
135// The configuration details of a batch inference job.
136type BatchInferenceJobConfig struct {
137
138	// A string to string map specifying the exploration configuration hyperparameters,
139	// including explorationWeight and explorationItemAgeCutOff, you want to use to
140	// configure the amount of item exploration Amazon Personalize uses when
141	// recommending items. See User-Personalization
142	// (https://docs.aws.amazon.com/personalize/latest/dg/native-recipe-new-item-USER_PERSONALIZATION.html).
143	ItemExplorationConfig map[string]string
144}
145
146// The input configuration of a batch inference job.
147type BatchInferenceJobInput struct {
148
149	// The URI of the Amazon S3 location that contains your input data. The Amazon S3
150	// bucket must be in the same region as the API endpoint you are calling.
151	//
152	// This member is required.
153	S3DataSource *S3DataConfig
154}
155
156// The output configuration parameters of a batch inference job.
157type BatchInferenceJobOutput struct {
158
159	// Information on the Amazon S3 bucket in which the batch inference job's output is
160	// stored.
161	//
162	// This member is required.
163	S3DataDestination *S3DataConfig
164}
165
166// A truncated version of the BatchInferenceJob datatype. The
167// ListBatchInferenceJobs operation returns a list of batch inference job
168// summaries.
169type BatchInferenceJobSummary struct {
170
171	// The Amazon Resource Name (ARN) of the batch inference job.
172	BatchInferenceJobArn *string
173
174	// The time at which the batch inference job was created.
175	CreationDateTime *time.Time
176
177	// If the batch inference job failed, the reason for the failure.
178	FailureReason *string
179
180	// The name of the batch inference job.
181	JobName *string
182
183	// The time at which the batch inference job was last updated.
184	LastUpdatedDateTime *time.Time
185
186	// The ARN of the solution version used by the batch inference job.
187	SolutionVersionArn *string
188
189	// The status of the batch inference job. The status is one of the following
190	// values:
191	//
192	// * PENDING
193	//
194	// * IN PROGRESS
195	//
196	// * ACTIVE
197	//
198	// * CREATE FAILED
199	Status *string
200}
201
202// Describes a deployed solution version, otherwise known as a campaign. For more
203// information on campaigns, see CreateCampaign.
204type Campaign struct {
205
206	// The Amazon Resource Name (ARN) of the campaign.
207	CampaignArn *string
208
209	// The configuration details of a campaign.
210	CampaignConfig *CampaignConfig
211
212	// The date and time (in Unix format) that the campaign was created.
213	CreationDateTime *time.Time
214
215	// If a campaign fails, the reason behind the failure.
216	FailureReason *string
217
218	// The date and time (in Unix format) that the campaign was last updated.
219	LastUpdatedDateTime *time.Time
220
221	// Provides a summary of the properties of a campaign update. For a complete
222	// listing, call the DescribeCampaign API.
223	LatestCampaignUpdate *CampaignUpdateSummary
224
225	// Specifies the requested minimum provisioned transactions (recommendations) per
226	// second.
227	MinProvisionedTPS *int32
228
229	// The name of the campaign.
230	Name *string
231
232	// The Amazon Resource Name (ARN) of a specific version of the solution.
233	SolutionVersionArn *string
234
235	// The status of the campaign. A campaign can be in one of the following states:
236	//
237	// *
238	// CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
239	//
240	// * DELETE
241	// PENDING > DELETE IN_PROGRESS
242	Status *string
243}
244
245// The configuration details of a campaign.
246type CampaignConfig struct {
247
248	// A string to string map specifying the exploration configuration hyperparameters,
249	// including explorationWeight and explorationItemAgeCutOff, you want to use to
250	// configure the amount of item exploration Amazon Personalize uses when
251	// recommending items. Provide itemExplorationConfig data only if your solution
252	// uses the User-Personalization
253	// (https://docs.aws.amazon.com/personalize/latest/dg/native-recipe-new-item-USER_PERSONALIZATION.html)
254	// recipe.
255	ItemExplorationConfig map[string]string
256}
257
258// Provides a summary of the properties of a campaign. For a complete listing, call
259// the DescribeCampaign API.
260type CampaignSummary struct {
261
262	// The Amazon Resource Name (ARN) of the campaign.
263	CampaignArn *string
264
265	// The date and time (in Unix time) that the campaign was created.
266	CreationDateTime *time.Time
267
268	// If a campaign fails, the reason behind the failure.
269	FailureReason *string
270
271	// The date and time (in Unix time) that the campaign was last updated.
272	LastUpdatedDateTime *time.Time
273
274	// The name of the campaign.
275	Name *string
276
277	// The status of the campaign. A campaign can be in one of the following states:
278	//
279	// *
280	// CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
281	//
282	// * DELETE
283	// PENDING > DELETE IN_PROGRESS
284	Status *string
285}
286
287// Provides a summary of the properties of a campaign update. For a complete
288// listing, call the DescribeCampaign API.
289type CampaignUpdateSummary struct {
290
291	// The configuration details of a campaign.
292	CampaignConfig *CampaignConfig
293
294	// The date and time (in Unix time) that the campaign update was created.
295	CreationDateTime *time.Time
296
297	// If a campaign update fails, the reason behind the failure.
298	FailureReason *string
299
300	// The date and time (in Unix time) that the campaign update was last updated.
301	LastUpdatedDateTime *time.Time
302
303	// Specifies the requested minimum provisioned transactions (recommendations) per
304	// second that Amazon Personalize will support.
305	MinProvisionedTPS *int32
306
307	// The Amazon Resource Name (ARN) of the deployed solution version.
308	SolutionVersionArn *string
309
310	// The status of the campaign update. A campaign update can be in one of the
311	// following states:
312	//
313	// * CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE
314	// FAILED
315	//
316	// * DELETE PENDING > DELETE IN_PROGRESS
317	Status *string
318}
319
320// Provides the name and range of a categorical hyperparameter.
321type CategoricalHyperParameterRange struct {
322
323	// The name of the hyperparameter.
324	Name *string
325
326	// A list of the categories for the hyperparameter.
327	Values []string
328}
329
330// Provides the name and range of a continuous hyperparameter.
331type ContinuousHyperParameterRange struct {
332
333	// The maximum allowable value for the hyperparameter.
334	MaxValue float64
335
336	// The minimum allowable value for the hyperparameter.
337	MinValue float64
338
339	// The name of the hyperparameter.
340	Name *string
341}
342
343// Provides metadata for a dataset.
344type Dataset struct {
345
346	// The creation date and time (in Unix time) of the dataset.
347	CreationDateTime *time.Time
348
349	// The Amazon Resource Name (ARN) of the dataset that you want metadata for.
350	DatasetArn *string
351
352	// The Amazon Resource Name (ARN) of the dataset group.
353	DatasetGroupArn *string
354
355	// One of the following values:
356	//
357	// * Interactions
358	//
359	// * Items
360	//
361	// * Users
362	DatasetType *string
363
364	// A time stamp that shows when the dataset was updated.
365	LastUpdatedDateTime *time.Time
366
367	// The name of the dataset.
368	Name *string
369
370	// The ARN of the associated schema.
371	SchemaArn *string
372
373	// The status of the dataset. A dataset can be in one of the following states:
374	//
375	// *
376	// CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
377	//
378	// * DELETE
379	// PENDING > DELETE IN_PROGRESS
380	Status *string
381}
382
383// Describes a job that exports a dataset to an Amazon S3 bucket. For more
384// information, see CreateDatasetExportJob. A dataset export job can be in one of
385// the following states:
386//
387// * CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or-
388// CREATE FAILED
389type DatasetExportJob struct {
390
391	// The creation date and time (in Unix time) of the dataset export job.
392	CreationDateTime *time.Time
393
394	// The Amazon Resource Name (ARN) of the dataset to export.
395	DatasetArn *string
396
397	// The Amazon Resource Name (ARN) of the dataset export job.
398	DatasetExportJobArn *string
399
400	// If a dataset export job fails, provides the reason why.
401	FailureReason *string
402
403	// The data to export, based on how you imported the data. You can choose to export
404	// BULK data that you imported using a dataset import job, PUT data that you
405	// imported incrementally (using the console, PutEvents, PutUsers and PutItems
406	// operations), or ALL for both types. The default value is PUT.
407	IngestionMode IngestionMode
408
409	// The name of the export job.
410	JobName *string
411
412	// The path to the Amazon S3 bucket where the job's output is stored. For example:
413	// s3://bucket-name/folder-name/
414	JobOutput *DatasetExportJobOutput
415
416	// The date and time (in Unix time) the status of the dataset export job was last
417	// updated.
418	LastUpdatedDateTime *time.Time
419
420	// The Amazon Resource Name (ARN) of the AWS Identity and Access Management service
421	// role that has permissions to add data to your output Amazon S3 bucket.
422	RoleArn *string
423
424	// The status of the dataset export job. A dataset export job can be in one of the
425	// following states:
426	//
427	// * CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE
428	// FAILED
429	Status *string
430}
431
432// The output configuration parameters of a dataset export job.
433type DatasetExportJobOutput struct {
434
435	// The configuration details of an Amazon S3 input or output bucket.
436	//
437	// This member is required.
438	S3DataDestination *S3DataConfig
439}
440
441// Provides a summary of the properties of a dataset export job. For a complete
442// listing, call the DescribeDatasetExportJob API.
443type DatasetExportJobSummary struct {
444
445	// The date and time (in Unix time) that the dataset export job was created.
446	CreationDateTime *time.Time
447
448	// The Amazon Resource Name (ARN) of the dataset export job.
449	DatasetExportJobArn *string
450
451	// If a dataset export job fails, the reason behind the failure.
452	FailureReason *string
453
454	// The name of the dataset export job.
455	JobName *string
456
457	// The date and time (in Unix time) that the dataset export job status was last
458	// updated.
459	LastUpdatedDateTime *time.Time
460
461	// The status of the dataset export job. A dataset export job can be in one of the
462	// following states:
463	//
464	// * CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE
465	// FAILED
466	Status *string
467}
468
469// A dataset group is a collection of related datasets (Interactions, User, and
470// Item). You create a dataset group by calling CreateDatasetGroup. You then create
471// a dataset and add it to a dataset group by calling CreateDataset. The dataset
472// group is used to create and train a solution by calling CreateSolution. A
473// dataset group can contain only one of each type of dataset. You can specify an
474// AWS Key Management Service (KMS) key to encrypt the datasets in the group.
475type DatasetGroup struct {
476
477	// The creation date and time (in Unix time) of the dataset group.
478	CreationDateTime *time.Time
479
480	// The Amazon Resource Name (ARN) of the dataset group.
481	DatasetGroupArn *string
482
483	// If creating a dataset group fails, provides the reason why.
484	FailureReason *string
485
486	// The Amazon Resource Name (ARN) of the KMS key used to encrypt the datasets.
487	KmsKeyArn *string
488
489	// The last update date and time (in Unix time) of the dataset group.
490	LastUpdatedDateTime *time.Time
491
492	// The name of the dataset group.
493	Name *string
494
495	// The ARN of the IAM role that has permissions to create the dataset group.
496	RoleArn *string
497
498	// The current status of the dataset group. A dataset group can be in one of the
499	// following states:
500	//
501	// * CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE
502	// FAILED
503	//
504	// * DELETE PENDING
505	Status *string
506}
507
508// Provides a summary of the properties of a dataset group. For a complete listing,
509// call the DescribeDatasetGroup API.
510type DatasetGroupSummary struct {
511
512	// The date and time (in Unix time) that the dataset group was created.
513	CreationDateTime *time.Time
514
515	// The Amazon Resource Name (ARN) of the dataset group.
516	DatasetGroupArn *string
517
518	// If creating a dataset group fails, the reason behind the failure.
519	FailureReason *string
520
521	// The date and time (in Unix time) that the dataset group was last updated.
522	LastUpdatedDateTime *time.Time
523
524	// The name of the dataset group.
525	Name *string
526
527	// The status of the dataset group. A dataset group can be in one of the following
528	// states:
529	//
530	// * CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
531	//
532	// *
533	// DELETE PENDING
534	Status *string
535}
536
537// Describes a job that imports training data from a data source (Amazon S3 bucket)
538// to an Amazon Personalize dataset. For more information, see
539// CreateDatasetImportJob. A dataset import job can be in one of the following
540// states:
541//
542// * CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
543type DatasetImportJob struct {
544
545	// The creation date and time (in Unix time) of the dataset import job.
546	CreationDateTime *time.Time
547
548	// The Amazon S3 bucket that contains the training data to import.
549	DataSource *DataSource
550
551	// The Amazon Resource Name (ARN) of the dataset that receives the imported data.
552	DatasetArn *string
553
554	// The ARN of the dataset import job.
555	DatasetImportJobArn *string
556
557	// If a dataset import job fails, provides the reason why.
558	FailureReason *string
559
560	// The name of the import job.
561	JobName *string
562
563	// The date and time (in Unix time) the dataset was last updated.
564	LastUpdatedDateTime *time.Time
565
566	// The ARN of the AWS Identity and Access Management (IAM) role that has
567	// permissions to read from the Amazon S3 data source.
568	RoleArn *string
569
570	// The status of the dataset import job. A dataset import job can be in one of the
571	// following states:
572	//
573	// * CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE
574	// FAILED
575	Status *string
576}
577
578// Provides a summary of the properties of a dataset import job. For a complete
579// listing, call the DescribeDatasetImportJob API.
580type DatasetImportJobSummary struct {
581
582	// The date and time (in Unix time) that the dataset import job was created.
583	CreationDateTime *time.Time
584
585	// The Amazon Resource Name (ARN) of the dataset import job.
586	DatasetImportJobArn *string
587
588	// If a dataset import job fails, the reason behind the failure.
589	FailureReason *string
590
591	// The name of the dataset import job.
592	JobName *string
593
594	// The date and time (in Unix time) that the dataset import job status was last
595	// updated.
596	LastUpdatedDateTime *time.Time
597
598	// The status of the dataset import job. A dataset import job can be in one of the
599	// following states:
600	//
601	// * CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE
602	// FAILED
603	Status *string
604}
605
606// Describes the schema for a dataset. For more information on schemas, see
607// CreateSchema.
608type DatasetSchema struct {
609
610	// The date and time (in Unix time) that the schema was created.
611	CreationDateTime *time.Time
612
613	// The date and time (in Unix time) that the schema was last updated.
614	LastUpdatedDateTime *time.Time
615
616	// The name of the schema.
617	Name *string
618
619	// The schema.
620	Schema *string
621
622	// The Amazon Resource Name (ARN) of the schema.
623	SchemaArn *string
624}
625
626// Provides a summary of the properties of a dataset schema. For a complete
627// listing, call the DescribeSchema API.
628type DatasetSchemaSummary struct {
629
630	// The date and time (in Unix time) that the schema was created.
631	CreationDateTime *time.Time
632
633	// The date and time (in Unix time) that the schema was last updated.
634	LastUpdatedDateTime *time.Time
635
636	// The name of the schema.
637	Name *string
638
639	// The Amazon Resource Name (ARN) of the schema.
640	SchemaArn *string
641}
642
643// Provides a summary of the properties of a dataset. For a complete listing, call
644// the DescribeDataset API.
645type DatasetSummary struct {
646
647	// The date and time (in Unix time) that the dataset was created.
648	CreationDateTime *time.Time
649
650	// The Amazon Resource Name (ARN) of the dataset.
651	DatasetArn *string
652
653	// The dataset type. One of the following values:
654	//
655	// * Interactions
656	//
657	// * Items
658	//
659	// *
660	// Users
661	//
662	// * Event-Interactions
663	DatasetType *string
664
665	// The date and time (in Unix time) that the dataset was last updated.
666	LastUpdatedDateTime *time.Time
667
668	// The name of the dataset.
669	Name *string
670
671	// The status of the dataset. A dataset can be in one of the following states:
672	//
673	// *
674	// CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
675	//
676	// * DELETE
677	// PENDING > DELETE IN_PROGRESS
678	Status *string
679}
680
681// Describes the data source that contains the data to upload to a dataset.
682type DataSource struct {
683
684	// The path to the Amazon S3 bucket where the data that you want to upload to your
685	// dataset is stored. For example: s3://bucket-name/folder-name/
686	DataLocation *string
687}
688
689// Provides the name and default range of a categorical hyperparameter and whether
690// the hyperparameter is tunable. A tunable hyperparameter can have its value
691// determined during hyperparameter optimization (HPO).
692type DefaultCategoricalHyperParameterRange struct {
693
694	// Whether the hyperparameter is tunable.
695	IsTunable bool
696
697	// The name of the hyperparameter.
698	Name *string
699
700	// A list of the categories for the hyperparameter.
701	Values []string
702}
703
704// Provides the name and default range of a continuous hyperparameter and whether
705// the hyperparameter is tunable. A tunable hyperparameter can have its value
706// determined during hyperparameter optimization (HPO).
707type DefaultContinuousHyperParameterRange struct {
708
709	// Whether the hyperparameter is tunable.
710	IsTunable bool
711
712	// The maximum allowable value for the hyperparameter.
713	MaxValue float64
714
715	// The minimum allowable value for the hyperparameter.
716	MinValue float64
717
718	// The name of the hyperparameter.
719	Name *string
720}
721
722// Specifies the hyperparameters and their default ranges. Hyperparameters can be
723// categorical, continuous, or integer-valued.
724type DefaultHyperParameterRanges struct {
725
726	// The categorical hyperparameters and their default ranges.
727	CategoricalHyperParameterRanges []DefaultCategoricalHyperParameterRange
728
729	// The continuous hyperparameters and their default ranges.
730	ContinuousHyperParameterRanges []DefaultContinuousHyperParameterRange
731
732	// The integer-valued hyperparameters and their default ranges.
733	IntegerHyperParameterRanges []DefaultIntegerHyperParameterRange
734}
735
736// Provides the name and default range of a integer-valued hyperparameter and
737// whether the hyperparameter is tunable. A tunable hyperparameter can have its
738// value determined during hyperparameter optimization (HPO).
739type DefaultIntegerHyperParameterRange struct {
740
741	// Indicates whether the hyperparameter is tunable.
742	IsTunable bool
743
744	// The maximum allowable value for the hyperparameter.
745	MaxValue int32
746
747	// The minimum allowable value for the hyperparameter.
748	MinValue int32
749
750	// The name of the hyperparameter.
751	Name *string
752}
753
754// Provides information about an event tracker.
755type EventTracker struct {
756
757	// The Amazon AWS account that owns the event tracker.
758	AccountId *string
759
760	// The date and time (in Unix format) that the event tracker was created.
761	CreationDateTime *time.Time
762
763	// The Amazon Resource Name (ARN) of the dataset group that receives the event
764	// data.
765	DatasetGroupArn *string
766
767	// The ARN of the event tracker.
768	EventTrackerArn *string
769
770	// The date and time (in Unix time) that the event tracker was last updated.
771	LastUpdatedDateTime *time.Time
772
773	// The name of the event tracker.
774	Name *string
775
776	// The status of the event tracker. An event tracker can be in one of the following
777	// states:
778	//
779	// * CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
780	//
781	// *
782	// DELETE PENDING > DELETE IN_PROGRESS
783	Status *string
784
785	// The ID of the event tracker. Include this ID in requests to the PutEvents
786	// (https://docs.aws.amazon.com/personalize/latest/dg/API_UBS_PutEvents.html) API.
787	TrackingId *string
788}
789
790// Provides a summary of the properties of an event tracker. For a complete
791// listing, call the DescribeEventTracker API.
792type EventTrackerSummary struct {
793
794	// The date and time (in Unix time) that the event tracker was created.
795	CreationDateTime *time.Time
796
797	// The Amazon Resource Name (ARN) of the event tracker.
798	EventTrackerArn *string
799
800	// The date and time (in Unix time) that the event tracker was last updated.
801	LastUpdatedDateTime *time.Time
802
803	// The name of the event tracker.
804	Name *string
805
806	// The status of the event tracker. An event tracker can be in one of the following
807	// states:
808	//
809	// * CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
810	//
811	// *
812	// DELETE PENDING > DELETE IN_PROGRESS
813	Status *string
814}
815
816// Provides feature transformation information. Feature transformation is the
817// process of modifying raw input data into a form more suitable for model
818// training.
819type FeatureTransformation struct {
820
821	// The creation date and time (in Unix time) of the feature transformation.
822	CreationDateTime *time.Time
823
824	// Provides the default parameters for feature transformation.
825	DefaultParameters map[string]string
826
827	// The Amazon Resource Name (ARN) of the FeatureTransformation object.
828	FeatureTransformationArn *string
829
830	// The last update date and time (in Unix time) of the feature transformation.
831	LastUpdatedDateTime *time.Time
832
833	// The name of the feature transformation.
834	Name *string
835
836	// The status of the feature transformation. A feature transformation can be in one
837	// of the following states:
838	//
839	// * CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or-
840	// CREATE FAILED
841	Status *string
842}
843
844// Contains information on a recommendation filter, including its ARN, status, and
845// filter expression.
846type Filter struct {
847
848	// The time at which the filter was created.
849	CreationDateTime *time.Time
850
851	// The ARN of the dataset group to which the filter belongs.
852	DatasetGroupArn *string
853
854	// If the filter failed, the reason for its failure.
855	FailureReason *string
856
857	// The ARN of the filter.
858	FilterArn *string
859
860	// Specifies the type of item interactions to filter out of recommendation results.
861	// The filter expression must follow specific format rules. For information about
862	// filter expression structure and syntax, see filter-expressions.
863	FilterExpression *string
864
865	// The time at which the filter was last updated.
866	LastUpdatedDateTime *time.Time
867
868	// The name of the filter.
869	Name *string
870
871	// The status of the filter.
872	Status *string
873}
874
875// A short summary of a filter's attributes.
876type FilterSummary struct {
877
878	// The time at which the filter was created.
879	CreationDateTime *time.Time
880
881	// The ARN of the dataset group to which the filter belongs.
882	DatasetGroupArn *string
883
884	// If the filter failed, the reason for the failure.
885	FailureReason *string
886
887	// The ARN of the filter.
888	FilterArn *string
889
890	// The time at which the filter was last updated.
891	LastUpdatedDateTime *time.Time
892
893	// The name of the filter.
894	Name *string
895
896	// The status of the filter.
897	Status *string
898}
899
900// Describes the properties for hyperparameter optimization (HPO).
901type HPOConfig struct {
902
903	// The hyperparameters and their allowable ranges.
904	AlgorithmHyperParameterRanges *HyperParameterRanges
905
906	// The metric to optimize during HPO. Amazon Personalize doesn't support
907	// configuring the hpoObjective at this time.
908	HpoObjective *HPOObjective
909
910	// Describes the resource configuration for HPO.
911	HpoResourceConfig *HPOResourceConfig
912}
913
914// The metric to optimize during hyperparameter optimization (HPO). Amazon
915// Personalize doesn't support configuring the hpoObjective at this time.
916type HPOObjective struct {
917
918	// The name of the metric.
919	MetricName *string
920
921	// A regular expression for finding the metric in the training job logs.
922	MetricRegex *string
923
924	// The type of the metric. Valid values are Maximize and Minimize.
925	Type *string
926}
927
928// Describes the resource configuration for hyperparameter optimization (HPO).
929type HPOResourceConfig struct {
930
931	// The maximum number of training jobs when you create a solution version. The
932	// maximum value for maxNumberOfTrainingJobs is 40.
933	MaxNumberOfTrainingJobs *string
934
935	// The maximum number of parallel training jobs when you create a solution version.
936	// The maximum value for maxParallelTrainingJobs is 10.
937	MaxParallelTrainingJobs *string
938}
939
940// Specifies the hyperparameters and their ranges. Hyperparameters can be
941// categorical, continuous, or integer-valued.
942type HyperParameterRanges struct {
943
944	// The categorical hyperparameters and their ranges.
945	CategoricalHyperParameterRanges []CategoricalHyperParameterRange
946
947	// The continuous hyperparameters and their ranges.
948	ContinuousHyperParameterRanges []ContinuousHyperParameterRange
949
950	// The integer-valued hyperparameters and their ranges.
951	IntegerHyperParameterRanges []IntegerHyperParameterRange
952}
953
954// Provides the name and range of an integer-valued hyperparameter.
955type IntegerHyperParameterRange struct {
956
957	// The maximum allowable value for the hyperparameter.
958	MaxValue int32
959
960	// The minimum allowable value for the hyperparameter.
961	MinValue int32
962
963	// The name of the hyperparameter.
964	Name *string
965}
966
967// Provides information about a recipe. Each recipe provides an algorithm that
968// Amazon Personalize uses in model training when you use the CreateSolution
969// operation.
970type Recipe struct {
971
972	// The Amazon Resource Name (ARN) of the algorithm that Amazon Personalize uses to
973	// train the model.
974	AlgorithmArn *string
975
976	// The date and time (in Unix format) that the recipe was created.
977	CreationDateTime *time.Time
978
979	// The description of the recipe.
980	Description *string
981
982	// The ARN of the FeatureTransformation object.
983	FeatureTransformationArn *string
984
985	// The date and time (in Unix format) that the recipe was last updated.
986	LastUpdatedDateTime *time.Time
987
988	// The name of the recipe.
989	Name *string
990
991	// The Amazon Resource Name (ARN) of the recipe.
992	RecipeArn *string
993
994	// One of the following values:
995	//
996	// * PERSONALIZED_RANKING
997	//
998	// * RELATED_ITEMS
999	//
1000	// *
1001	// USER_PERSONALIZATION
1002	RecipeType *string
1003
1004	// The status of the recipe.
1005	Status *string
1006}
1007
1008// Provides a summary of the properties of a recipe. For a complete listing, call
1009// the DescribeRecipe API.
1010type RecipeSummary struct {
1011
1012	// The date and time (in Unix time) that the recipe was created.
1013	CreationDateTime *time.Time
1014
1015	// The date and time (in Unix time) that the recipe was last updated.
1016	LastUpdatedDateTime *time.Time
1017
1018	// The name of the recipe.
1019	Name *string
1020
1021	// The Amazon Resource Name (ARN) of the recipe.
1022	RecipeArn *string
1023
1024	// The status of the recipe.
1025	Status *string
1026}
1027
1028// The configuration details of an Amazon S3 input or output bucket.
1029type S3DataConfig struct {
1030
1031	// The file path of the Amazon S3 bucket.
1032	//
1033	// This member is required.
1034	Path *string
1035
1036	// The Amazon Resource Name (ARN) of the Amazon Key Management Service (KMS) key
1037	// that Amazon Personalize uses to encrypt or decrypt the input and output files of
1038	// a batch inference job.
1039	KmsKeyArn *string
1040}
1041
1042// An object that provides information about a solution. A solution is a trained
1043// model that can be deployed as a campaign.
1044type Solution struct {
1045
1046	// When performAutoML is true, specifies the best recipe found.
1047	AutoMLResult *AutoMLResult
1048
1049	// The creation date and time (in Unix time) of the solution.
1050	CreationDateTime *time.Time
1051
1052	// The Amazon Resource Name (ARN) of the dataset group that provides the training
1053	// data.
1054	DatasetGroupArn *string
1055
1056	// The event type (for example, 'click' or 'like') that is used for training the
1057	// model. If no eventType is provided, Amazon Personalize uses all interactions for
1058	// training with equal weight regardless of type.
1059	EventType *string
1060
1061	// The date and time (in Unix time) that the solution was last updated.
1062	LastUpdatedDateTime *time.Time
1063
1064	// Describes the latest version of the solution, including the status and the ARN.
1065	LatestSolutionVersion *SolutionVersionSummary
1066
1067	// The name of the solution.
1068	Name *string
1069
1070	// When true, Amazon Personalize performs a search for the best
1071	// USER_PERSONALIZATION recipe from the list specified in the solution
1072	// configuration (recipeArn must not be specified). When false (the default),
1073	// Amazon Personalize uses recipeArn for training.
1074	PerformAutoML bool
1075
1076	// Whether to perform hyperparameter optimization (HPO) on the chosen recipe. The
1077	// default is false.
1078	PerformHPO bool
1079
1080	// The ARN of the recipe used to create the solution.
1081	RecipeArn *string
1082
1083	// The ARN of the solution.
1084	SolutionArn *string
1085
1086	// Describes the configuration properties for the solution.
1087	SolutionConfig *SolutionConfig
1088
1089	// The status of the solution. A solution can be in one of the following states:
1090	//
1091	// *
1092	// CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
1093	//
1094	// * DELETE
1095	// PENDING > DELETE IN_PROGRESS
1096	Status *string
1097}
1098
1099// Describes the configuration properties for the solution.
1100type SolutionConfig struct {
1101
1102	// Lists the hyperparameter names and ranges.
1103	AlgorithmHyperParameters map[string]string
1104
1105	// The AutoMLConfig object containing a list of recipes to search when AutoML is
1106	// performed.
1107	AutoMLConfig *AutoMLConfig
1108
1109	// Only events with a value greater than or equal to this threshold are used for
1110	// training a model.
1111	EventValueThreshold *string
1112
1113	// Lists the feature transformation parameters.
1114	FeatureTransformationParameters map[string]string
1115
1116	// Describes the properties for hyperparameter optimization (HPO).
1117	HpoConfig *HPOConfig
1118}
1119
1120// Provides a summary of the properties of a solution. For a complete listing, call
1121// the DescribeSolution API.
1122type SolutionSummary struct {
1123
1124	// The date and time (in Unix time) that the solution was created.
1125	CreationDateTime *time.Time
1126
1127	// The date and time (in Unix time) that the solution was last updated.
1128	LastUpdatedDateTime *time.Time
1129
1130	// The name of the solution.
1131	Name *string
1132
1133	// The Amazon Resource Name (ARN) of the solution.
1134	SolutionArn *string
1135
1136	// The status of the solution. A solution can be in one of the following states:
1137	//
1138	// *
1139	// CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
1140	//
1141	// * DELETE
1142	// PENDING > DELETE IN_PROGRESS
1143	Status *string
1144}
1145
1146// An object that provides information about a specific version of a Solution.
1147type SolutionVersion struct {
1148
1149	// The date and time (in Unix time) that this version of the solution was created.
1150	CreationDateTime *time.Time
1151
1152	// The Amazon Resource Name (ARN) of the dataset group providing the training data.
1153	DatasetGroupArn *string
1154
1155	// The event type (for example, 'click' or 'like') that is used for training the
1156	// model.
1157	EventType *string
1158
1159	// If training a solution version fails, the reason for the failure.
1160	FailureReason *string
1161
1162	// The date and time (in Unix time) that the solution was last updated.
1163	LastUpdatedDateTime *time.Time
1164
1165	// When true, Amazon Personalize searches for the most optimal recipe according to
1166	// the solution configuration. When false (the default), Amazon Personalize uses
1167	// recipeArn.
1168	PerformAutoML bool
1169
1170	// Whether to perform hyperparameter optimization (HPO) on the chosen recipe. The
1171	// default is false.
1172	PerformHPO bool
1173
1174	// The ARN of the recipe used in the solution.
1175	RecipeArn *string
1176
1177	// The ARN of the solution.
1178	SolutionArn *string
1179
1180	// Describes the configuration properties for the solution.
1181	SolutionConfig *SolutionConfig
1182
1183	// The ARN of the solution version.
1184	SolutionVersionArn *string
1185
1186	// The status of the solution version. A solution version can be in one of the
1187	// following states:
1188	//
1189	// * CREATE PENDING
1190	//
1191	// * CREATE IN_PROGRESS
1192	//
1193	// * ACTIVE
1194	//
1195	// * CREATE
1196	// FAILED
1197	Status *string
1198
1199	// The time used to train the model. You are billed for the time it takes to train
1200	// a model. This field is visible only after Amazon Personalize successfully trains
1201	// a model.
1202	TrainingHours *float64
1203
1204	// The scope of training to be performed when creating the solution version. The
1205	// FULL option trains the solution version based on the entirety of the input
1206	// solution's training data, while the UPDATE option processes only the data that
1207	// has changed in comparison to the input solution. Choose UPDATE when you want to
1208	// incrementally update your solution version instead of creating an entirely new
1209	// one. The UPDATE option can only be used when you already have an active solution
1210	// version created from the input solution using the FULL option and the input
1211	// solution was trained with the User-Personalization
1212	// (https://docs.aws.amazon.com/personalize/latest/dg/native-recipe-new-item-USER_PERSONALIZATION.html)
1213	// recipe or the HRNN-Coldstart
1214	// (https://docs.aws.amazon.com/personalize/latest/dg/native-recipe-hrnn-coldstart.html)
1215	// recipe.
1216	TrainingMode TrainingMode
1217
1218	// If hyperparameter optimization was performed, contains the hyperparameter values
1219	// of the best performing model.
1220	TunedHPOParams *TunedHPOParams
1221}
1222
1223// Provides a summary of the properties of a solution version. For a complete
1224// listing, call the DescribeSolutionVersion API.
1225type SolutionVersionSummary struct {
1226
1227	// The date and time (in Unix time) that this version of a solution was created.
1228	CreationDateTime *time.Time
1229
1230	// If a solution version fails, the reason behind the failure.
1231	FailureReason *string
1232
1233	// The date and time (in Unix time) that the solution version was last updated.
1234	LastUpdatedDateTime *time.Time
1235
1236	// The Amazon Resource Name (ARN) of the solution version.
1237	SolutionVersionArn *string
1238
1239	// The status of the solution version. A solution version can be in one of the
1240	// following states:
1241	//
1242	// * CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE
1243	// FAILED
1244	Status *string
1245}
1246
1247// If hyperparameter optimization (HPO) was performed, contains the hyperparameter
1248// values of the best performing model.
1249type TunedHPOParams struct {
1250
1251	// A list of the hyperparameter values of the best performing model.
1252	AlgorithmHyperParameters map[string]string
1253}
1254