aws-sdk-elementalinference 1.25.0 → 1.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -106,6 +106,99 @@ module Aws::ElementalInference
106
106
  include Aws::Structure
107
107
  end
108
108
 
109
+ # An Amazon Bedrock model to invoke. Elemental Inference invokes the
110
+ # model in your account by assuming the feed's access role, so a feed
111
+ # that runs this function must specify an accessRoleArn. The invocation
112
+ # is subject to your Amazon Bedrock quotas and appears on your bill.
113
+ #
114
+ # @!attribute [rw] api
115
+ # The Amazon Bedrock API to call. The only valid value is
116
+ # INVOKE\_MODEL.
117
+ # @return [String]
118
+ #
119
+ # @!attribute [rw] model
120
+ # The model to invoke. Specify one of the following:
121
+ #
122
+ # * A model ID.
123
+ #
124
+ # * An inference profile ID.
125
+ #
126
+ # * The ARN of a custom model.
127
+ #
128
+ # * The ARN of a provisioned model.
129
+ #
130
+ # Elemental Inference invokes the model in the Region of the feed. To
131
+ # use a model in other Regions, specify a cross-Region inference
132
+ # profile ID. A custom or provisioned model must be in the Region of
133
+ # the feed.
134
+ #
135
+ # The request expression must produce a request body that this model
136
+ # accepts, and the model must accept the kind of media that the
137
+ # request expression references. For example, a text-only model can't
138
+ # accept a request that references media.frames.
139
+ # @return [String]
140
+ #
141
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/BedrockFunctionTarget AWS API Documentation
142
+ #
143
+ class BedrockFunctionTarget < Struct.new(
144
+ :api,
145
+ :model)
146
+ SENSITIVE = []
147
+ include Aws::Structure
148
+ end
149
+
150
+ # A question that you ask Elemental Inference, which answers by choosing
151
+ # one of its options. You specify it in the chooseOne array of a
152
+ # question set.
153
+ #
154
+ # @!attribute [rw] name
155
+ # A name for the question. The name must be unique among all the
156
+ # questions in the version, across all question types. The name can be
157
+ # up to 64 characters. It must start with a letter or an underscore,
158
+ # and can contain only the letters A-Z and a-z, the digits 0-9, and
159
+ # underscores.
160
+ # @return [String]
161
+ #
162
+ # @!attribute [rw] question
163
+ # The text of the question. The text can be up to 256 bytes, encoded
164
+ # in UTF-8. It can contain letters in any language, combining marks,
165
+ # digits, spaces, and the following characters: `. , ? ! ' " ( ) - : ;
166
+ # / & %`, plus the curly apostrophe and quotation marks (U+2019,
167
+ # U+201C, and U+201D).
168
+ # @return [String]
169
+ #
170
+ # @!attribute [rw] options
171
+ # The options that Elemental Inference chooses from. You can specify
172
+ # from 2 to 26 options. The question counts as one item toward the
173
+ # limit of 100 scored items in a version, regardless of how many
174
+ # options it has.
175
+ # @return [Array<Types::QuestionOption>]
176
+ #
177
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/ChooseOneQuestion AWS API Documentation
178
+ #
179
+ class ChooseOneQuestion < Struct.new(
180
+ :name,
181
+ :question,
182
+ :options)
183
+ SENSITIVE = []
184
+ include Aws::Structure
185
+ end
186
+
187
+ # The perClip trigger, which runs the function each time an event
188
+ # clipping output reports events. Events that the output reports
189
+ # together share one run, and media.clip.events contains all of them. To
190
+ # choose this trigger, set perClip to an empty object.
191
+ #
192
+ # Specify clippingSettings to name the event clipping output that
193
+ # reports the events. You can't use this trigger with a function that
194
+ # references media.transcript or media.contextual.
195
+ #
196
+ # @api private
197
+ #
198
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/ClipTrigger AWS API Documentation
199
+ #
200
+ class ClipTrigger < Aws::EmptyStructure; end
201
+
109
202
  # A type of OutputConfig, used when the output in a feed is for the clip
110
203
  # feature.
111
204
  #
@@ -134,6 +227,26 @@ module Aws::ElementalInference
134
227
  include Aws::Structure
135
228
  end
136
229
 
230
+ # The event clipping output on this feed that provides events for a
231
+ # perClip trigger and media.clip for a function. Specify this structure
232
+ # for a perClip trigger, and for a function that references media.clip
233
+ # on a fixedInterval trigger.
234
+ #
235
+ # If the function output is ENABLED, the output that you name must also
236
+ # be ENABLED.
237
+ #
238
+ # @!attribute [rw] output_name
239
+ # The name of an ENABLED event clipping output on this feed.
240
+ # @return [String]
241
+ #
242
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/ClippingSettings AWS API Documentation
243
+ #
244
+ class ClippingSettings < Struct.new(
245
+ :output_name)
246
+ SENSITIVE = []
247
+ include Aws::Structure
248
+ end
249
+
137
250
  # Contains information about one competitor in a fixture. It is used in
138
251
  # the FixtureSummary that is in the SearchFixtures response.
139
252
  #
@@ -202,13 +315,49 @@ module Aws::ElementalInference
202
315
  #
203
316
  # * DISABLED – Elemental Inference doesn't populate the people,
204
317
  # environments, brands, and on-screen text fields.
318
+ #
319
+ # If you specify `customQuestions`, you must set this property to
320
+ # DISABLED.
205
321
  # @return [String]
206
322
  #
323
+ # @!attribute [rw] custom_questions
324
+ # The question sets that you ask Elemental Inference about each shot,
325
+ # each scene, or both, in this output.
326
+ #
327
+ # If you specify customQuestions, you must also set extendedAnalysis
328
+ # to DISABLED. If you omit extendedAnalysis, it defaults to ENABLED,
329
+ # and the request fails.
330
+ #
331
+ # While a feed references a version of a question set, you can't
332
+ # delete that version or the question set.
333
+ # @return [Types::CustomQuestionsConfig]
334
+ #
207
335
  # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/ContextualMetadataConfig AWS API Documentation
208
336
  #
209
337
  class ContextualMetadataConfig < Struct.new(
210
338
  :summary_generation,
211
- :extended_analysis)
339
+ :extended_analysis,
340
+ :custom_questions)
341
+ SENSITIVE = []
342
+ include Aws::Structure
343
+ end
344
+
345
+ # The contextual metadata output on this feed that provides scenes for a
346
+ # perScene trigger and media.contextual for a function. Specify this
347
+ # structure for a perScene trigger, and for a function that references
348
+ # media.contextual on a perShot trigger.
349
+ #
350
+ # If the function output is ENABLED, the output that you name must also
351
+ # be ENABLED.
352
+ #
353
+ # @!attribute [rw] output_name
354
+ # The name of an ENABLED contextual metadata output on this feed.
355
+ # @return [String]
356
+ #
357
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/ContextualMetadataSettings AWS API Documentation
358
+ #
359
+ class ContextualMetadataSettings < Struct.new(
360
+ :output_name)
212
361
  SENSITIVE = []
213
362
  include Aws::Structure
214
363
  end
@@ -382,6 +531,173 @@ module Aws::ElementalInference
382
531
  include Aws::Structure
383
532
  end
384
533
 
534
+ # @!attribute [rw] name
535
+ # A name for this function.
536
+ # @return [String]
537
+ #
538
+ # @!attribute [rw] target
539
+ # The destination for the request that the function builds.
540
+ # @return [Types::FunctionTarget]
541
+ #
542
+ # @!attribute [rw] request_expression
543
+ # The JSONata expression that builds the request. Elemental Inference
544
+ # evaluates it against the media object of the feed, which holds the
545
+ # media and metadata that the function asked for. Maximum length:
546
+ # 5,120 characters.
547
+ #
548
+ # When you save the function, Elemental Inference evaluates the
549
+ # expression against sample media and rejects it if the evaluation
550
+ # fails. For a Bedrock target, the result must be a JSON object;
551
+ # Elemental Inference doesn't check that the object is a valid
552
+ # request body for the model. The expression can reference at most one
553
+ # of media.transcript, media.contextual, and media.clip. For a
554
+ # passthrough target, it can't reference media.frames.
555
+ # @return [String]
556
+ #
557
+ # @!attribute [rw] response_expression
558
+ # The JSONata expression that selects what to store. Elemental
559
+ # Inference evaluates it against the result as its root: the model
560
+ # response for a Bedrock target, or the output of the request
561
+ # expression for a passthrough target. If a function has no response
562
+ # expression, Elemental Inference stores the entire result. Maximum
563
+ # length: 5,120 characters.
564
+ #
565
+ # When you save the function, Elemental Inference checks that the
566
+ # expression is valid JSONata. For a passthrough target, it also
567
+ # evaluates the request and response expressions together against
568
+ # sample media, and rejects them if they produce no value.
569
+ # @return [String]
570
+ #
571
+ # @!attribute [rw] description
572
+ # The description of the function. Maximum length: 1,024 characters.
573
+ # @return [String]
574
+ #
575
+ # @!attribute [rw] event_bridge_delivery
576
+ # Specifies whether Elemental Inference also sends this function's
577
+ # results to Amazon EventBridge. Elemental Inference sends a result
578
+ # only when the result is a JSON object with a top-level `eventBridge`
579
+ # field set to `true`. It sends the result, unchanged, as a Function
580
+ # Metadata Generated event to the default event bus in your account,
581
+ # after the result is available from GetMetadata. If the result is
582
+ # larger than 64 KB, the event has `resultOmitted` set to `true` in
583
+ # place of the result.
584
+ #
585
+ # Valid values:
586
+ #
587
+ # * ENABLED – Elemental Inference sends each marked result as an
588
+ # event.
589
+ #
590
+ # * DISABLED (default) – Elemental Inference doesn't send events.
591
+ #
592
+ # For a Bedrock target, ENABLED requires a response expression,
593
+ # because the model response itself never has a top-level
594
+ # `eventBridge` field. A feed output that runs a function with ENABLED
595
+ # can't use a fixedInterval trigger shorter than 4 seconds.
596
+ # @return [String]
597
+ #
598
+ # @!attribute [rw] tags
599
+ # The tags to associate with this function.
600
+ # @return [Hash<String,String>]
601
+ #
602
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/CreateFunctionRequest AWS API Documentation
603
+ #
604
+ class CreateFunctionRequest < Struct.new(
605
+ :name,
606
+ :target,
607
+ :request_expression,
608
+ :response_expression,
609
+ :description,
610
+ :event_bridge_delivery,
611
+ :tags)
612
+ SENSITIVE = [:request_expression, :response_expression, :description]
613
+ include Aws::Structure
614
+ end
615
+
616
+ # @!attribute [rw] name
617
+ # The name of the function.
618
+ # @return [String]
619
+ #
620
+ # @!attribute [rw] target
621
+ # The destination for the request that the function builds.
622
+ # @return [Types::FunctionTarget]
623
+ #
624
+ # @!attribute [rw] request_expression
625
+ # The JSONata expression that builds the request. Elemental Inference
626
+ # evaluates it against the media object of the feed, which holds the
627
+ # media and metadata that the function asked for.
628
+ # @return [String]
629
+ #
630
+ # @!attribute [rw] response_expression
631
+ # The JSONata expression that selects what to store. Elemental
632
+ # Inference evaluates it against the result as its root: the model
633
+ # response for a Bedrock target, or the output of the request
634
+ # expression for a passthrough target. If a function has no response
635
+ # expression, Elemental Inference stores the entire result.
636
+ # @return [String]
637
+ #
638
+ # @!attribute [rw] description
639
+ # The description of the function.
640
+ # @return [String]
641
+ #
642
+ # @!attribute [rw] event_bridge_delivery
643
+ # Indicates whether Elemental Inference also sends this function's
644
+ # results to Amazon EventBridge. With ENABLED, each result that is a
645
+ # JSON object with a top-level `eventBridge` field set to `true` is
646
+ # also sent as a Function Metadata Generated event to the default
647
+ # event bus in your account.
648
+ # @return [String]
649
+ #
650
+ # @!attribute [rw] arn
651
+ # The ARN of the function.
652
+ # @return [String]
653
+ #
654
+ # @!attribute [rw] id
655
+ # The ID of the function.
656
+ # @return [String]
657
+ #
658
+ # @!attribute [rw] status
659
+ # The status of the function. A successful request returns CREATING.
660
+ # The function is ready to use as soon as the request succeeds.
661
+ # @return [String]
662
+ #
663
+ # @!attribute [rw] references
664
+ # The IDs of the feeds that have a function output, enabled or
665
+ # disabled, that references this function. While this list isn't
666
+ # empty, the function can't be deleted, and its name and target
667
+ # can't be changed.
668
+ # @return [Array<String>]
669
+ #
670
+ # @!attribute [rw] context_types
671
+ # The kinds of media context that this function uses. Elemental
672
+ # Inference derives this field from the media paths that the request
673
+ # expression references; you can't set it. An empty list means that
674
+ # the expression references no media, so Elemental Inference supplies
675
+ # none at run time.
676
+ # @return [Array<String>]
677
+ #
678
+ # @!attribute [rw] tags
679
+ # The tags associated with the function.
680
+ # @return [Hash<String,String>]
681
+ #
682
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/CreateFunctionResponse AWS API Documentation
683
+ #
684
+ class CreateFunctionResponse < Struct.new(
685
+ :name,
686
+ :target,
687
+ :request_expression,
688
+ :response_expression,
689
+ :description,
690
+ :event_bridge_delivery,
691
+ :arn,
692
+ :id,
693
+ :status,
694
+ :references,
695
+ :context_types,
696
+ :tags)
697
+ SENSITIVE = [:request_expression, :response_expression, :description]
698
+ include Aws::Structure
699
+ end
700
+
385
701
  # Contains configuration information about one output in a feed. It is
386
702
  # used in the AssociateFeed and the CreateFeed actions.
387
703
  #
@@ -415,6 +731,250 @@ module Aws::ElementalInference
415
731
  include Aws::Structure
416
732
  end
417
733
 
734
+ # @!attribute [rw] yes_no
735
+ # An array of questions that Elemental Inference answers with yes or
736
+ # no. You can specify up to 50 yesNo questions. An empty array is the
737
+ # same as omitting this property.
738
+ # @return [Array<Types::YesNoQuestion>]
739
+ #
740
+ # @!attribute [rw] yes_no_per_option
741
+ # An array of questions that you ask about each of their options.
742
+ # Elemental Inference answers yes or no for each option. You can
743
+ # specify up to 10 yesNoPerOption questions. An empty array is the
744
+ # same as omitting this property.
745
+ # @return [Array<Types::YesNoPerOptionQuestion>]
746
+ #
747
+ # @!attribute [rw] choose_one
748
+ # An array of questions that Elemental Inference answers by choosing
749
+ # one of their options. You can specify up to 10 chooseOne questions.
750
+ # An empty array is the same as omitting this property.
751
+ # @return [Array<Types::ChooseOneQuestion>]
752
+ #
753
+ # @!attribute [rw] name
754
+ # A user-friendly name for this question set.
755
+ # @return [String]
756
+ #
757
+ # @!attribute [rw] tags
758
+ # Optional tags to associate with the question set. You can also add
759
+ # tags later, using TagResource.
760
+ # @return [Hash<String,String>]
761
+ #
762
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/CreateQuestionSetRequest AWS API Documentation
763
+ #
764
+ class CreateQuestionSetRequest < Struct.new(
765
+ :yes_no,
766
+ :yes_no_per_option,
767
+ :choose_one,
768
+ :name,
769
+ :tags)
770
+ SENSITIVE = []
771
+ include Aws::Structure
772
+ end
773
+
774
+ # @!attribute [rw] yes_no
775
+ # The yesNo questions that you specified in the request, in the order
776
+ # that you specified them. Elemental Inference doesn't return this
777
+ # property if the request didn't include any yesNo questions.
778
+ # @return [Array<Types::YesNoQuestion>]
779
+ #
780
+ # @!attribute [rw] yes_no_per_option
781
+ # The yesNoPerOption questions that you specified in the request, in
782
+ # the order that you specified them. Elemental Inference doesn't
783
+ # return this property if the request didn't include any
784
+ # yesNoPerOption questions.
785
+ # @return [Array<Types::YesNoPerOptionQuestion>]
786
+ #
787
+ # @!attribute [rw] choose_one
788
+ # The chooseOne questions that you specified in the request, in the
789
+ # order that you specified them. Elemental Inference doesn't return
790
+ # this property if the request didn't include any chooseOne
791
+ # questions.
792
+ # @return [Array<Types::ChooseOneQuestion>]
793
+ #
794
+ # @!attribute [rw] arn
795
+ # The ARN of the question set.
796
+ # @return [String]
797
+ #
798
+ # @!attribute [rw] id
799
+ # A unique ID that Elemental Inference assigns to the question set.
800
+ # @return [String]
801
+ #
802
+ # @!attribute [rw] name
803
+ # The name that you specified in the request.
804
+ # @return [String]
805
+ #
806
+ # @!attribute [rw] version
807
+ # The version that this response describes. For CreateQuestionSet, the
808
+ # version is always DRAFT.
809
+ # @return [String]
810
+ #
811
+ # @!attribute [rw] description
812
+ # The description of the version. Elemental Inference doesn't return
813
+ # this property for CreateQuestionSet, because the DRAFT version has
814
+ # no description.
815
+ # @return [String]
816
+ #
817
+ # @!attribute [rw] latest_version
818
+ # The number of the highest version that you have published for this
819
+ # question set. Elemental Inference doesn't return this property for
820
+ # CreateQuestionSet, because a new question set has no published
821
+ # versions.
822
+ # @return [String]
823
+ #
824
+ # @!attribute [rw] sha256
825
+ # The SHA-256 hash of the DRAFT version, as 64 lowercase hexadecimal
826
+ # characters. The hash covers the name of the question set and its
827
+ # questions. You can specify this value in a CreateQuestionSetVersion
828
+ # request, so that Elemental Inference publishes DRAFT only if it
829
+ # hasn't changed.
830
+ # @return [String]
831
+ #
832
+ # @!attribute [rw] references
833
+ # A list of feed IDs that reference this version of the question set.
834
+ # For a new question set, the list is empty.
835
+ # @return [Array<String>]
836
+ #
837
+ # @!attribute [rw] tags
838
+ # Any tags that you included when you created the question set.
839
+ # @return [Hash<String,String>]
840
+ #
841
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/CreateQuestionSetResponse AWS API Documentation
842
+ #
843
+ class CreateQuestionSetResponse < Struct.new(
844
+ :yes_no,
845
+ :yes_no_per_option,
846
+ :choose_one,
847
+ :arn,
848
+ :id,
849
+ :name,
850
+ :version,
851
+ :description,
852
+ :latest_version,
853
+ :sha256,
854
+ :references,
855
+ :tags)
856
+ SENSITIVE = []
857
+ include Aws::Structure
858
+ end
859
+
860
+ # @!attribute [rw] id
861
+ # The ID of the question set whose DRAFT version you want to publish.
862
+ # @return [String]
863
+ #
864
+ # @!attribute [rw] sha256
865
+ # The SHA-256 hash of the DRAFT version that you want to publish, as
866
+ # returned by GetQuestionSet or UpdateQuestionSet. If you specify this
867
+ # value, Elemental Inference publishes DRAFT only if its current hash
868
+ # matches. If it doesn't match, because DRAFT changed after you
869
+ # retrieved it, the request fails with ConflictException.
870
+ #
871
+ # If you don't specify this value, Elemental Inference publishes
872
+ # DRAFT as it is when it receives the request.
873
+ # @return [String]
874
+ #
875
+ # @!attribute [rw] description
876
+ # A description of the new version. You can't change the description
877
+ # after Elemental Inference publishes the version. If DRAFT hasn't
878
+ # changed since the latest version, Elemental Inference ignores this
879
+ # value and returns the latest version with its existing description.
880
+ #
881
+ # The description can be up to 256 characters. It can contain the
882
+ # letters A-Z and a-z, the digits 0-9, underscores, spaces, and the
883
+ # following characters: `- . ' , @ : ;`.
884
+ # @return [String]
885
+ #
886
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/CreateQuestionSetVersionRequest AWS API Documentation
887
+ #
888
+ class CreateQuestionSetVersionRequest < Struct.new(
889
+ :id,
890
+ :sha256,
891
+ :description)
892
+ SENSITIVE = []
893
+ include Aws::Structure
894
+ end
895
+
896
+ # @!attribute [rw] yes_no
897
+ # The yesNo questions in this version. Elemental Inference doesn't
898
+ # return this property if the version has no yesNo questions.
899
+ # @return [Array<Types::YesNoQuestion>]
900
+ #
901
+ # @!attribute [rw] yes_no_per_option
902
+ # The yesNoPerOption questions in this version. Elemental Inference
903
+ # doesn't return this property if the version has no yesNoPerOption
904
+ # questions.
905
+ # @return [Array<Types::YesNoPerOptionQuestion>]
906
+ #
907
+ # @!attribute [rw] choose_one
908
+ # The chooseOne questions in this version. Elemental Inference
909
+ # doesn't return this property if the version has no chooseOne
910
+ # questions.
911
+ # @return [Array<Types::ChooseOneQuestion>]
912
+ #
913
+ # @!attribute [rw] arn
914
+ # The ARN of the question set.
915
+ # @return [String]
916
+ #
917
+ # @!attribute [rw] id
918
+ # The ID of the question set.
919
+ # @return [String]
920
+ #
921
+ # @!attribute [rw] name
922
+ # The name of the question set at this version.
923
+ # @return [String]
924
+ #
925
+ # @!attribute [rw] version
926
+ # The number of the version that Elemental Inference published. If
927
+ # DRAFT hadn't changed since the latest version, this is the number
928
+ # of that existing version.
929
+ # @return [String]
930
+ #
931
+ # @!attribute [rw] description
932
+ # The description of the version. For a new version, this is the
933
+ # description that you specified in the request. If DRAFT hadn't
934
+ # changed since the latest version, this is the description of that
935
+ # existing version. Elemental Inference doesn't return this property
936
+ # if the version has no description.
937
+ # @return [String]
938
+ #
939
+ # @!attribute [rw] latest_version
940
+ # The number of the highest version that you have published for this
941
+ # question set. It's the same as version.
942
+ # @return [String]
943
+ #
944
+ # @!attribute [rw] sha256
945
+ # The SHA-256 hash of the version, as 64 lowercase hexadecimal
946
+ # characters. It's the same as the hash of the DRAFT version that
947
+ # Elemental Inference published.
948
+ # @return [String]
949
+ #
950
+ # @!attribute [rw] references
951
+ # A list of feed IDs that reference this version of the question set.
952
+ # For a new version, the list is empty.
953
+ # @return [Array<String>]
954
+ #
955
+ # @!attribute [rw] tags
956
+ # Any tags associated with the question set.
957
+ # @return [Hash<String,String>]
958
+ #
959
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/CreateQuestionSetVersionResponse AWS API Documentation
960
+ #
961
+ class CreateQuestionSetVersionResponse < Struct.new(
962
+ :yes_no,
963
+ :yes_no_per_option,
964
+ :choose_one,
965
+ :arn,
966
+ :id,
967
+ :name,
968
+ :version,
969
+ :description,
970
+ :latest_version,
971
+ :sha256,
972
+ :references,
973
+ :tags)
974
+ SENSITIVE = []
975
+ include Aws::Structure
976
+ end
977
+
418
978
  # @!attribute [rw] id
419
979
  # Specifies the ID of the feed that you want to add the schedule
420
980
  # action to.
@@ -499,6 +1059,29 @@ module Aws::ElementalInference
499
1059
  include Aws::Structure
500
1060
  end
501
1061
 
1062
+ # The question sets that you ask Elemental Inference about the media in
1063
+ # a contextual metadata output. You must specify at least one of shot or
1064
+ # scene. They can reference the same version of the same question set.
1065
+ #
1066
+ # @!attribute [rw] shot
1067
+ # The version of a question set to ask Elemental Inference about each
1068
+ # shot.
1069
+ # @return [Types::QuestionSetReference]
1070
+ #
1071
+ # @!attribute [rw] scene
1072
+ # The version of a question set to ask Elemental Inference about each
1073
+ # scene.
1074
+ # @return [Types::QuestionSetReference]
1075
+ #
1076
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/CustomQuestionsConfig AWS API Documentation
1077
+ #
1078
+ class CustomQuestionsConfig < Struct.new(
1079
+ :shot,
1080
+ :scene)
1081
+ SENSITIVE = []
1082
+ include Aws::Structure
1083
+ end
1084
+
502
1085
  # Contains the data source configuration for a clipping output. It
503
1086
  # identifies the fixture whose event data Elemental Inference maps onto
504
1087
  # the clipping metadata. It is used in the dataSourceConfiguration
@@ -603,16 +1186,103 @@ module Aws::ElementalInference
603
1186
  end
604
1187
 
605
1188
  # @!attribute [rw] id
606
- # The ID of the feed that holds the schedule action.
607
- # @return [String]
608
- #
609
- # @!attribute [rw] action_name
610
- # The name of the schedule action that you want to delete.
1189
+ # The ID of the function.
611
1190
  # @return [String]
612
1191
  #
613
- # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/DeleteScheduleActionRequest AWS API Documentation
1192
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/DeleteFunctionRequest AWS API Documentation
614
1193
  #
615
- class DeleteScheduleActionRequest < Struct.new(
1194
+ class DeleteFunctionRequest < Struct.new(
1195
+ :id)
1196
+ SENSITIVE = []
1197
+ include Aws::Structure
1198
+ end
1199
+
1200
+ # @!attribute [rw] arn
1201
+ # The ARN of the function.
1202
+ # @return [String]
1203
+ #
1204
+ # @!attribute [rw] id
1205
+ # The ID of the function.
1206
+ # @return [String]
1207
+ #
1208
+ # @!attribute [rw] status
1209
+ # The status of the function. A successful request returns DELETING.
1210
+ # Elemental Inference removes the function before it returns the
1211
+ # response.
1212
+ # @return [String]
1213
+ #
1214
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/DeleteFunctionResponse AWS API Documentation
1215
+ #
1216
+ class DeleteFunctionResponse < Struct.new(
1217
+ :arn,
1218
+ :id,
1219
+ :status)
1220
+ SENSITIVE = []
1221
+ include Aws::Structure
1222
+ end
1223
+
1224
+ # @!attribute [rw] id
1225
+ # The ID of the question set to delete.
1226
+ # @return [String]
1227
+ #
1228
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/DeleteQuestionSetRequest AWS API Documentation
1229
+ #
1230
+ class DeleteQuestionSetRequest < Struct.new(
1231
+ :id)
1232
+ SENSITIVE = []
1233
+ include Aws::Structure
1234
+ end
1235
+
1236
+ # @!attribute [rw] arn
1237
+ # The ARN of the deleted question set.
1238
+ # @return [String]
1239
+ #
1240
+ # @!attribute [rw] id
1241
+ # The ID of the deleted question set.
1242
+ # @return [String]
1243
+ #
1244
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/DeleteQuestionSetResponse AWS API Documentation
1245
+ #
1246
+ class DeleteQuestionSetResponse < Struct.new(
1247
+ :arn,
1248
+ :id)
1249
+ SENSITIVE = []
1250
+ include Aws::Structure
1251
+ end
1252
+
1253
+ # @!attribute [rw] id
1254
+ # The ID of the question set that contains the version.
1255
+ # @return [String]
1256
+ #
1257
+ # @!attribute [rw] question_set_version
1258
+ # The number of the published version to delete. You can't specify
1259
+ # DRAFT.
1260
+ # @return [String]
1261
+ #
1262
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/DeleteQuestionSetVersionRequest AWS API Documentation
1263
+ #
1264
+ class DeleteQuestionSetVersionRequest < Struct.new(
1265
+ :id,
1266
+ :question_set_version)
1267
+ SENSITIVE = []
1268
+ include Aws::Structure
1269
+ end
1270
+
1271
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/DeleteQuestionSetVersionResponse AWS API Documentation
1272
+ #
1273
+ class DeleteQuestionSetVersionResponse < Aws::EmptyStructure; end
1274
+
1275
+ # @!attribute [rw] id
1276
+ # The ID of the feed that holds the schedule action.
1277
+ # @return [String]
1278
+ #
1279
+ # @!attribute [rw] action_name
1280
+ # The name of the schedule action that you want to delete.
1281
+ # @return [String]
1282
+ #
1283
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/DeleteScheduleActionRequest AWS API Documentation
1284
+ #
1285
+ class DeleteScheduleActionRequest < Struct.new(
616
1286
  :id,
617
1287
  :action_name)
618
1288
  SENSITIVE = []
@@ -788,6 +1458,30 @@ module Aws::ElementalInference
788
1458
  include Aws::Structure
789
1459
  end
790
1460
 
1461
+ # The settings of the fixedInterval trigger, which runs the function
1462
+ # once for every intervalSeconds of content. A function that references
1463
+ # media.transcript must use this trigger. You can't use this trigger
1464
+ # with a function that references media.contextual.
1465
+ #
1466
+ # If the function references media.transcript, specify
1467
+ # subtitlingSettings. If the function references media.clip, specify
1468
+ # clippingSettings. Each run then receives the events that the event
1469
+ # clipping output reported during the interval, in media.clip.events.
1470
+ #
1471
+ # @!attribute [rw] interval_seconds
1472
+ # The amount of content, in seconds, between runs of the function.
1473
+ # Valid range: 1 to 60. For a function with eventBridgeDelivery set to
1474
+ # ENABLED, the minimum is 4.
1475
+ # @return [Integer]
1476
+ #
1477
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/FixedIntervalTrigger AWS API Documentation
1478
+ #
1479
+ class FixedIntervalTrigger < Struct.new(
1480
+ :interval_seconds)
1481
+ SENSITIVE = []
1482
+ include Aws::Structure
1483
+ end
1484
+
791
1485
  # Sets the time at which a schedule action runs once. This is a type of
792
1486
  # ScheduleActionStartConfiguration.
793
1487
  #
@@ -860,6 +1554,221 @@ module Aws::ElementalInference
860
1554
  include Aws::Structure
861
1555
  end
862
1556
 
1557
+ # Specifies how Elemental Inference chooses frames from the media of
1558
+ # each run, and how many frames it chooses. The media of a run is the
1559
+ # interval, shot, scene, or clips that the run covers.
1560
+ #
1561
+ # @!attribute [rw] mode
1562
+ # Which frames of the window to send: FIRST (the first frames),
1563
+ # UNIFORM (frames spread evenly across the window), or LAST (the last
1564
+ # frames).
1565
+ # @return [String]
1566
+ #
1567
+ # @!attribute [rw] count
1568
+ # The number of frames to send on each run. Valid range: 1 to 64. The
1569
+ # default is 1. Each frame adds to the size of the model request and
1570
+ # to what the model charges for it.
1571
+ # @return [Integer]
1572
+ #
1573
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/FrameSamplingStrategy AWS API Documentation
1574
+ #
1575
+ class FrameSamplingStrategy < Struct.new(
1576
+ :mode,
1577
+ :count)
1578
+ SENSITIVE = []
1579
+ include Aws::Structure
1580
+ end
1581
+
1582
+ # The frames that a function receives in media.frames on each run: which
1583
+ # frames, how many, and at what size. Elemental Inference applies these
1584
+ # settings only to a function that references media.frames.
1585
+ #
1586
+ # When you add or change the function output, Elemental Inference
1587
+ # estimates the size of the frames and rejects settings whose frames
1588
+ # won't fit in one model request. To send more frames in each request,
1589
+ # specify a smaller frameSize.
1590
+ #
1591
+ # @!attribute [rw] frame_sampling
1592
+ # The method for choosing which frames to send.
1593
+ # @return [Types::FrameSamplingStrategy]
1594
+ #
1595
+ # @!attribute [rw] frame_size
1596
+ # The size to resize each frame to. If you omit this structure, frames
1597
+ # keep their source size. Smaller frames reduce the size of the model
1598
+ # request.
1599
+ # @return [Types::FrameSize]
1600
+ #
1601
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/FrameSettings AWS API Documentation
1602
+ #
1603
+ class FrameSettings < Struct.new(
1604
+ :frame_sampling,
1605
+ :frame_size)
1606
+ SENSITIVE = []
1607
+ include Aws::Structure
1608
+ end
1609
+
1610
+ # The dimensions, in pixels, of each frame that a function sends.
1611
+ # Elemental Inference resizes each frame to exactly this width and
1612
+ # height.
1613
+ #
1614
+ # @!attribute [rw] width_pixels
1615
+ # The width of each frame, in pixels. Valid range: 1 to 1280.
1616
+ # @return [Integer]
1617
+ #
1618
+ # @!attribute [rw] height_pixels
1619
+ # The height of each frame, in pixels. Valid range: 1 to 720.
1620
+ # @return [Integer]
1621
+ #
1622
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/FrameSize AWS API Documentation
1623
+ #
1624
+ class FrameSize < Struct.new(
1625
+ :width_pixels,
1626
+ :height_pixels)
1627
+ SENSITIVE = []
1628
+ include Aws::Structure
1629
+ end
1630
+
1631
+ # The output configuration settings for a function. Use this structure
1632
+ # to run a function on this feed. The name of the output is the name
1633
+ # that you pass to GetMetadata to read the results.
1634
+ #
1635
+ # Include the settings that the function's media context and trigger
1636
+ # require. Elemental Inference ignores settings that neither uses. It
1637
+ # also rejects settings whose frames are estimated to exceed the size of
1638
+ # a single model request.
1639
+ #
1640
+ # A feed that has an enabled function output must also have an enabled
1641
+ # cropping, clipping, subtitling, or contextual metadata output. A feed
1642
+ # that runs a function with a Bedrock target must specify an
1643
+ # accessRoleArn.
1644
+ #
1645
+ # @!attribute [rw] function_arn
1646
+ # The ARN of the function to run. The function must exist in the same
1647
+ # account and the same Region as the feed.
1648
+ # @return [String]
1649
+ #
1650
+ # @!attribute [rw] trigger
1651
+ # Determines when the function runs.
1652
+ # @return [Types::Trigger]
1653
+ #
1654
+ # @!attribute [rw] frame_settings
1655
+ # The frames to send on each run: how many, which ones, and at what
1656
+ # size. Applies to a function that references media.frames. If you
1657
+ # omit this structure, Elemental Inference sends the first frame of
1658
+ # the window, at its source size.
1659
+ # @return [Types::FrameSettings]
1660
+ #
1661
+ # @!attribute [rw] subtitling_settings
1662
+ # The smart subtitles output on this feed to read the transcript from.
1663
+ # Required for a function that references media.transcript.
1664
+ # @return [Types::SubtitlingSettings]
1665
+ #
1666
+ # @!attribute [rw] contextual_metadata_settings
1667
+ # The contextual metadata output on this feed to read scenes and
1668
+ # classifications from. Required for a perScene trigger, and for a
1669
+ # function that references media.contextual on a perShot trigger.
1670
+ # @return [Types::ContextualMetadataSettings]
1671
+ #
1672
+ # @!attribute [rw] clipping_settings
1673
+ # The event clipping output on this feed to read clips from. Required
1674
+ # for a perClip trigger, and for a function that references
1675
+ # media.clip.
1676
+ # @return [Types::ClippingSettings]
1677
+ #
1678
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/FunctionConfig AWS API Documentation
1679
+ #
1680
+ class FunctionConfig < Struct.new(
1681
+ :function_arn,
1682
+ :trigger,
1683
+ :frame_settings,
1684
+ :subtitling_settings,
1685
+ :contextual_metadata_settings,
1686
+ :clipping_settings)
1687
+ SENSITIVE = []
1688
+ include Aws::Structure
1689
+ end
1690
+
1691
+ # Contains identifying and configuration details for a function,
1692
+ # including its name, target, status, and derived media context.
1693
+ #
1694
+ # @!attribute [rw] arn
1695
+ # The ARN of the function.
1696
+ # @return [String]
1697
+ #
1698
+ # @!attribute [rw] id
1699
+ # The ID of the function.
1700
+ # @return [String]
1701
+ #
1702
+ # @!attribute [rw] name
1703
+ # The name of the function.
1704
+ # @return [String]
1705
+ #
1706
+ # @!attribute [rw] description
1707
+ # The description of the function.
1708
+ # @return [String]
1709
+ #
1710
+ # @!attribute [rw] status
1711
+ # The status of the function.
1712
+ # @return [String]
1713
+ #
1714
+ # @!attribute [rw] target
1715
+ # The destination for the request that the function builds.
1716
+ # @return [Types::FunctionTarget]
1717
+ #
1718
+ # @!attribute [rw] context_types
1719
+ # The kinds of media context that this function uses. Elemental
1720
+ # Inference derives this field from the media paths that the request
1721
+ # expression references; you can't set it. An empty list means that
1722
+ # the expression references no media, so Elemental Inference supplies
1723
+ # none at run time.
1724
+ # @return [Array<String>]
1725
+ #
1726
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/FunctionSummary AWS API Documentation
1727
+ #
1728
+ class FunctionSummary < Struct.new(
1729
+ :arn,
1730
+ :id,
1731
+ :name,
1732
+ :description,
1733
+ :status,
1734
+ :target,
1735
+ :context_types)
1736
+ SENSITIVE = [:description]
1737
+ include Aws::Structure
1738
+ end
1739
+
1740
+ # The destination for the request that a function builds. Specify
1741
+ # exactly one member.
1742
+ #
1743
+ # @note FunctionTarget is a union - when making an API calls you must set exactly one of the members.
1744
+ #
1745
+ # @note FunctionTarget is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of FunctionTarget corresponding to the set member.
1746
+ #
1747
+ # @!attribute [rw] bedrock
1748
+ # Send the request to an Amazon Bedrock model.
1749
+ # @return [Types::BedrockFunctionTarget]
1750
+ #
1751
+ # @!attribute [rw] passthrough
1752
+ # Send the request nowhere. Use this target to reshape the metadata
1753
+ # that Elemental Inference already produces, with no model invocation
1754
+ # and no model charges.
1755
+ # @return [Types::PassthroughFunctionTarget]
1756
+ #
1757
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/FunctionTarget AWS API Documentation
1758
+ #
1759
+ class FunctionTarget < Struct.new(
1760
+ :bedrock,
1761
+ :passthrough,
1762
+ :unknown)
1763
+ SENSITIVE = []
1764
+ include Aws::Structure
1765
+ include Aws::Structure::Union
1766
+
1767
+ class Bedrock < FunctionTarget; end
1768
+ class Passthrough < FunctionTarget; end
1769
+ class Unknown < FunctionTarget; end
1770
+ end
1771
+
863
1772
  # The request timed out before the service returned a response. This is
864
1773
  # a temporary condition. Retry the request. If the problem persists,
865
1774
  # contact AWS Support.
@@ -1078,6 +1987,102 @@ module Aws::ElementalInference
1078
1987
  include Aws::Structure
1079
1988
  end
1080
1989
 
1990
+ # @!attribute [rw] id
1991
+ # The ID of the function.
1992
+ # @return [String]
1993
+ #
1994
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/GetFunctionRequest AWS API Documentation
1995
+ #
1996
+ class GetFunctionRequest < Struct.new(
1997
+ :id)
1998
+ SENSITIVE = []
1999
+ include Aws::Structure
2000
+ end
2001
+
2002
+ # @!attribute [rw] name
2003
+ # The name of the function.
2004
+ # @return [String]
2005
+ #
2006
+ # @!attribute [rw] target
2007
+ # The destination for the request that the function builds.
2008
+ # @return [Types::FunctionTarget]
2009
+ #
2010
+ # @!attribute [rw] request_expression
2011
+ # The JSONata expression that builds the request. Elemental Inference
2012
+ # evaluates it against the media object of the feed, which holds the
2013
+ # media and metadata that the function asked for.
2014
+ # @return [String]
2015
+ #
2016
+ # @!attribute [rw] response_expression
2017
+ # The JSONata expression that selects what to store. Elemental
2018
+ # Inference evaluates it against the result as its root: the model
2019
+ # response for a Bedrock target, or the output of the request
2020
+ # expression for a passthrough target. If a function has no response
2021
+ # expression, Elemental Inference stores the entire result.
2022
+ # @return [String]
2023
+ #
2024
+ # @!attribute [rw] description
2025
+ # The description of the function.
2026
+ # @return [String]
2027
+ #
2028
+ # @!attribute [rw] event_bridge_delivery
2029
+ # Indicates whether Elemental Inference also sends this function's
2030
+ # results to Amazon EventBridge. With ENABLED, each result that is a
2031
+ # JSON object with a top-level `eventBridge` field set to `true` is
2032
+ # also sent as a Function Metadata Generated event to the default
2033
+ # event bus in your account.
2034
+ # @return [String]
2035
+ #
2036
+ # @!attribute [rw] arn
2037
+ # The ARN of the function.
2038
+ # @return [String]
2039
+ #
2040
+ # @!attribute [rw] id
2041
+ # The ID of the function.
2042
+ # @return [String]
2043
+ #
2044
+ # @!attribute [rw] status
2045
+ # The status of the function.
2046
+ # @return [String]
2047
+ #
2048
+ # @!attribute [rw] references
2049
+ # The IDs of the feeds that have a function output, enabled or
2050
+ # disabled, that references this function. While this list isn't
2051
+ # empty, the function can't be deleted, and its name and target
2052
+ # can't be changed.
2053
+ # @return [Array<String>]
2054
+ #
2055
+ # @!attribute [rw] context_types
2056
+ # The kinds of media context that this function uses. Elemental
2057
+ # Inference derives this field from the media paths that the request
2058
+ # expression references; you can't set it. An empty list means that
2059
+ # the expression references no media, so Elemental Inference supplies
2060
+ # none at run time.
2061
+ # @return [Array<String>]
2062
+ #
2063
+ # @!attribute [rw] tags
2064
+ # The tags associated with the function.
2065
+ # @return [Hash<String,String>]
2066
+ #
2067
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/GetFunctionResponse AWS API Documentation
2068
+ #
2069
+ class GetFunctionResponse < Struct.new(
2070
+ :name,
2071
+ :target,
2072
+ :request_expression,
2073
+ :response_expression,
2074
+ :description,
2075
+ :event_bridge_delivery,
2076
+ :arn,
2077
+ :id,
2078
+ :status,
2079
+ :references,
2080
+ :context_types,
2081
+ :tags)
2082
+ SENSITIVE = [:request_expression, :response_expression, :description]
2083
+ include Aws::Structure
2084
+ end
2085
+
1081
2086
  # Contains configuration information about one output in a feed. It is
1082
2087
  # used in the GetFeed response.
1083
2088
  #
@@ -1121,6 +2126,110 @@ module Aws::ElementalInference
1121
2126
  include Aws::Structure
1122
2127
  end
1123
2128
 
2129
+ # @!attribute [rw] id
2130
+ # The ID of the question set to retrieve.
2131
+ # @return [String]
2132
+ #
2133
+ # @!attribute [rw] question_set_version
2134
+ # The version of the question set to retrieve: DRAFT or the number of
2135
+ # a published version. If you don't specify a version, Elemental
2136
+ # Inference returns DRAFT.
2137
+ # @return [String]
2138
+ #
2139
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/GetQuestionSetRequest AWS API Documentation
2140
+ #
2141
+ class GetQuestionSetRequest < Struct.new(
2142
+ :id,
2143
+ :question_set_version)
2144
+ SENSITIVE = []
2145
+ include Aws::Structure
2146
+ end
2147
+
2148
+ # @!attribute [rw] yes_no
2149
+ # The yesNo questions in this version. Elemental Inference doesn't
2150
+ # return this property if the version has no yesNo questions.
2151
+ # @return [Array<Types::YesNoQuestion>]
2152
+ #
2153
+ # @!attribute [rw] yes_no_per_option
2154
+ # The yesNoPerOption questions in this version. Elemental Inference
2155
+ # doesn't return this property if the version has no yesNoPerOption
2156
+ # questions.
2157
+ # @return [Array<Types::YesNoPerOptionQuestion>]
2158
+ #
2159
+ # @!attribute [rw] choose_one
2160
+ # The chooseOne questions in this version. Elemental Inference
2161
+ # doesn't return this property if the version has no chooseOne
2162
+ # questions.
2163
+ # @return [Array<Types::ChooseOneQuestion>]
2164
+ #
2165
+ # @!attribute [rw] arn
2166
+ # The ARN of the question set.
2167
+ # @return [String]
2168
+ #
2169
+ # @!attribute [rw] id
2170
+ # The ID of the question set.
2171
+ # @return [String]
2172
+ #
2173
+ # @!attribute [rw] name
2174
+ # The name of the question set at this version. For a published
2175
+ # version, this is the name that the question set had when the version
2176
+ # was published.
2177
+ # @return [String]
2178
+ #
2179
+ # @!attribute [rw] version
2180
+ # The version that this response describes: DRAFT or the number of a
2181
+ # published version.
2182
+ # @return [String]
2183
+ #
2184
+ # @!attribute [rw] description
2185
+ # The description that you specified when you published this version.
2186
+ # Elemental Inference doesn't return this property for DRAFT, or for
2187
+ # a version that you published without a description.
2188
+ # @return [String]
2189
+ #
2190
+ # @!attribute [rw] latest_version
2191
+ # The number of the highest version that you have published for this
2192
+ # question set, even if you have since deleted that version. Elemental
2193
+ # Inference doesn't return this property if you haven't published a
2194
+ # version.
2195
+ # @return [String]
2196
+ #
2197
+ # @!attribute [rw] sha256
2198
+ # The SHA-256 hash of this version, as 64 lowercase hexadecimal
2199
+ # characters. The hash covers the name of the question set and its
2200
+ # questions at this version. For DRAFT, you can specify this value in
2201
+ # a CreateQuestionSetVersion request, so that Elemental Inference
2202
+ # publishes DRAFT only if it hasn't changed.
2203
+ # @return [String]
2204
+ #
2205
+ # @!attribute [rw] references
2206
+ # A list of feed IDs that reference this version of the question set.
2207
+ # The list doesn't include feeds that reference other versions.
2208
+ # @return [Array<String>]
2209
+ #
2210
+ # @!attribute [rw] tags
2211
+ # The tags associated with the question set.
2212
+ # @return [Hash<String,String>]
2213
+ #
2214
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/GetQuestionSetResponse AWS API Documentation
2215
+ #
2216
+ class GetQuestionSetResponse < Struct.new(
2217
+ :yes_no,
2218
+ :yes_no_per_option,
2219
+ :choose_one,
2220
+ :arn,
2221
+ :id,
2222
+ :name,
2223
+ :version,
2224
+ :description,
2225
+ :latest_version,
2226
+ :sha256,
2227
+ :references,
2228
+ :tags)
2229
+ SENSITIVE = []
2230
+ include Aws::Structure
2231
+ end
2232
+
1124
2233
  # An internal server error occurred. This is a temporary condition and
1125
2234
  # the request can be retried. If the problem persists, contact AWS
1126
2235
  # Support.
@@ -1195,31 +2304,143 @@ module Aws::ElementalInference
1195
2304
  # the ListFeeds request a second time and specify the NextToken value.
1196
2305
  # @return [String]
1197
2306
  #
1198
- # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/ListFeedsRequest AWS API Documentation
2307
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/ListFeedsRequest AWS API Documentation
2308
+ #
2309
+ class ListFeedsRequest < Struct.new(
2310
+ :max_results,
2311
+ :next_token)
2312
+ SENSITIVE = []
2313
+ include Aws::Structure
2314
+ end
2315
+
2316
+ # @!attribute [rw] feeds
2317
+ # A list of FeedSummary objects.
2318
+ # @return [Array<Types::FeedSummary>]
2319
+ #
2320
+ # @!attribute [rw] next_token
2321
+ # The token that identifies the batch of results that you want to see.
2322
+ # For example, you submit a list request with MaxResults set at 5. The
2323
+ # service returns the first batch of results (up to 5) and a NextToken
2324
+ # value. To see the next batch of results, you can submit the list
2325
+ # request a second time and specify the NextToken value.
2326
+ # @return [String]
2327
+ #
2328
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/ListFeedsResponse AWS API Documentation
2329
+ #
2330
+ class ListFeedsResponse < Struct.new(
2331
+ :feeds,
2332
+ :next_token)
2333
+ SENSITIVE = []
2334
+ include Aws::Structure
2335
+ end
2336
+
2337
+ # @!attribute [rw] max_results
2338
+ # The maximum number of functions to return in one response. Valid
2339
+ # range: 1 to 100. The default is 100.
2340
+ # @return [Integer]
2341
+ #
2342
+ # @!attribute [rw] next_token
2343
+ # The token that identifies the page of results to return. Use the
2344
+ # nextToken value from a previous response.
2345
+ # @return [String]
2346
+ #
2347
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/ListFunctionsRequest AWS API Documentation
2348
+ #
2349
+ class ListFunctionsRequest < Struct.new(
2350
+ :max_results,
2351
+ :next_token)
2352
+ SENSITIVE = []
2353
+ include Aws::Structure
2354
+ end
2355
+
2356
+ # @!attribute [rw] functions
2357
+ # An array of function summaries.
2358
+ # @return [Array<Types::FunctionSummary>]
2359
+ #
2360
+ # @!attribute [rw] next_token
2361
+ # The token to use in a subsequent request to get the next page of
2362
+ # results. This field is absent when there are no more results.
2363
+ # @return [String]
2364
+ #
2365
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/ListFunctionsResponse AWS API Documentation
2366
+ #
2367
+ class ListFunctionsResponse < Struct.new(
2368
+ :functions,
2369
+ :next_token)
2370
+ SENSITIVE = []
2371
+ include Aws::Structure
2372
+ end
2373
+
2374
+ # @!attribute [rw] id
2375
+ # The ID of the question set whose versions you want to list.
2376
+ # @return [String]
2377
+ #
2378
+ # @!attribute [rw] max_results
2379
+ # The maximum number of results to return per API request. Valid
2380
+ # range: 1 to 100.
2381
+ # @return [Integer]
2382
+ #
2383
+ # @!attribute [rw] next_token
2384
+ # The token that identifies the next batch of results to return.
2385
+ # @return [String]
2386
+ #
2387
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/ListQuestionSetVersionsRequest AWS API Documentation
2388
+ #
2389
+ class ListQuestionSetVersionsRequest < Struct.new(
2390
+ :id,
2391
+ :max_results,
2392
+ :next_token)
2393
+ SENSITIVE = []
2394
+ include Aws::Structure
2395
+ end
2396
+
2397
+ # @!attribute [rw] versions
2398
+ # A list of QuestionSetVersionSummary objects.
2399
+ # @return [Array<Types::QuestionSetVersionSummary>]
2400
+ #
2401
+ # @!attribute [rw] next_token
2402
+ # The token to use to retrieve the next batch of results.
2403
+ # @return [String]
2404
+ #
2405
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/ListQuestionSetVersionsResponse AWS API Documentation
2406
+ #
2407
+ class ListQuestionSetVersionsResponse < Struct.new(
2408
+ :versions,
2409
+ :next_token)
2410
+ SENSITIVE = []
2411
+ include Aws::Structure
2412
+ end
2413
+
2414
+ # @!attribute [rw] max_results
2415
+ # The maximum number of results to return per API request. Valid
2416
+ # range: 1 to 100.
2417
+ # @return [Integer]
2418
+ #
2419
+ # @!attribute [rw] next_token
2420
+ # The token that identifies the next batch of results to return.
2421
+ # @return [String]
2422
+ #
2423
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/ListQuestionSetsRequest AWS API Documentation
1199
2424
  #
1200
- class ListFeedsRequest < Struct.new(
2425
+ class ListQuestionSetsRequest < Struct.new(
1201
2426
  :max_results,
1202
2427
  :next_token)
1203
2428
  SENSITIVE = []
1204
2429
  include Aws::Structure
1205
2430
  end
1206
2431
 
1207
- # @!attribute [rw] feeds
1208
- # A list of FeedSummary objects.
1209
- # @return [Array<Types::FeedSummary>]
2432
+ # @!attribute [rw] question_sets
2433
+ # A list of QuestionSetSummary objects.
2434
+ # @return [Array<Types::QuestionSetSummary>]
1210
2435
  #
1211
2436
  # @!attribute [rw] next_token
1212
- # The token that identifies the batch of results that you want to see.
1213
- # For example, you submit a list request with MaxResults set at 5. The
1214
- # service returns the first batch of results (up to 5) and a NextToken
1215
- # value. To see the next batch of results, you can submit the list
1216
- # request a second time and specify the NextToken value.
2437
+ # The token to use to retrieve the next batch of results.
1217
2438
  # @return [String]
1218
2439
  #
1219
- # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/ListFeedsResponse AWS API Documentation
2440
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/ListQuestionSetsResponse AWS API Documentation
1220
2441
  #
1221
- class ListFeedsResponse < Struct.new(
1222
- :feeds,
2442
+ class ListQuestionSetsResponse < Struct.new(
2443
+ :question_sets,
1223
2444
  :next_token)
1224
2445
  SENSITIVE = []
1225
2446
  include Aws::Structure
@@ -1317,6 +2538,10 @@ module Aws::ElementalInference
1317
2538
  # feature.
1318
2539
  # @return [Types::ContextualMetadataConfig]
1319
2540
  #
2541
+ # @!attribute [rw] function
2542
+ # The output config type that applies to a function.
2543
+ # @return [Types::FunctionConfig]
2544
+ #
1320
2545
  # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/OutputConfig AWS API Documentation
1321
2546
  #
1322
2547
  class OutputConfig < Struct.new(
@@ -1324,6 +2549,7 @@ module Aws::ElementalInference
1324
2549
  :clipping,
1325
2550
  :subtitling,
1326
2551
  :contextual_metadata,
2552
+ :function,
1327
2553
  :unknown)
1328
2554
  SENSITIVE = []
1329
2555
  include Aws::Structure
@@ -1333,9 +2559,24 @@ module Aws::ElementalInference
1333
2559
  class Clipping < OutputConfig; end
1334
2560
  class Subtitling < OutputConfig; end
1335
2561
  class ContextualMetadata < OutputConfig; end
2562
+ class Function < OutputConfig; end
1336
2563
  class Unknown < OutputConfig; end
1337
2564
  end
1338
2565
 
2566
+ # A target that invokes nothing. Elemental Inference evaluates your
2567
+ # request expression, then evaluates your response expression against
2568
+ # that result. If the function has no response expression, Elemental
2569
+ # Inference stores the result of the request expression.
2570
+ #
2571
+ # A passthrough function can't reference media.frames. It also needs no
2572
+ # access role on the feed.
2573
+ #
2574
+ # @api private
2575
+ #
2576
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/PassthroughFunctionTarget AWS API Documentation
2577
+ #
2578
+ class PassthroughFunctionTarget < Aws::EmptyStructure; end
2579
+
1339
2580
  # @!attribute [rw] id
1340
2581
  # The ID of the feed to attach the policy to.
1341
2582
  # @return [String]
@@ -1357,6 +2598,127 @@ module Aws::ElementalInference
1357
2598
  #
1358
2599
  class PutFeedPolicyResponse < Aws::EmptyStructure; end
1359
2600
 
2601
+ # An option in a yesNoPerOption question or a chooseOne question.
2602
+ #
2603
+ # @!attribute [rw] name
2604
+ # A name for the option. The name must be unique among the options of
2605
+ # the question. The name can be up to 64 characters. It must start
2606
+ # with a letter or an underscore, and can contain only the letters A-Z
2607
+ # and a-z, the digits 0-9, and underscores.
2608
+ # @return [String]
2609
+ #
2610
+ # @!attribute [rw] text
2611
+ # The text of the option. The text must be unique among the options of
2612
+ # the question, ignoring case. The text can be up to 16 bytes, encoded
2613
+ # in UTF-8. It can contain the same characters as the text of a
2614
+ # question.
2615
+ # @return [String]
2616
+ #
2617
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/QuestionOption AWS API Documentation
2618
+ #
2619
+ class QuestionOption < Struct.new(
2620
+ :name,
2621
+ :text)
2622
+ SENSITIVE = []
2623
+ include Aws::Structure
2624
+ end
2625
+
2626
+ # Identifies one version of a question set. You specify it in
2627
+ # CustomQuestionsConfig.
2628
+ #
2629
+ # @!attribute [rw] question_set_id
2630
+ # The ID of the question set. The question set must be in your
2631
+ # account.
2632
+ # @return [String]
2633
+ #
2634
+ # @!attribute [rw] version
2635
+ # The version of the question set: DRAFT or the number of a published
2636
+ # version. The version must exist.
2637
+ #
2638
+ # If you specify DRAFT, the output uses the current DRAFT questions
2639
+ # and picks up changes that you make later by using UpdateQuestionSet.
2640
+ # To keep the questions for the output fixed, specify a published
2641
+ # version.
2642
+ # @return [String]
2643
+ #
2644
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/QuestionSetReference AWS API Documentation
2645
+ #
2646
+ class QuestionSetReference < Struct.new(
2647
+ :question_set_id,
2648
+ :version)
2649
+ SENSITIVE = []
2650
+ include Aws::Structure
2651
+ end
2652
+
2653
+ # Contains summary information about a question set. Used in the
2654
+ # ListQuestionSets response.
2655
+ #
2656
+ # @!attribute [rw] arn
2657
+ # The ARN of the question set.
2658
+ # @return [String]
2659
+ #
2660
+ # @!attribute [rw] id
2661
+ # The ID of the question set.
2662
+ # @return [String]
2663
+ #
2664
+ # @!attribute [rw] name
2665
+ # The name of the question set.
2666
+ # @return [String]
2667
+ #
2668
+ # @!attribute [rw] latest_version
2669
+ # The number of the highest version that you have published for this
2670
+ # question set, even if you have since deleted that version. Elemental
2671
+ # Inference doesn't return this property if you haven't published a
2672
+ # version.
2673
+ # @return [String]
2674
+ #
2675
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/QuestionSetSummary AWS API Documentation
2676
+ #
2677
+ class QuestionSetSummary < Struct.new(
2678
+ :arn,
2679
+ :id,
2680
+ :name,
2681
+ :latest_version)
2682
+ SENSITIVE = []
2683
+ include Aws::Structure
2684
+ end
2685
+
2686
+ # Contains summary information about one version of a question set. Used
2687
+ # in the ListQuestionSetVersions response.
2688
+ #
2689
+ # @!attribute [rw] version
2690
+ # The version: DRAFT or the number of a published version.
2691
+ # @return [String]
2692
+ #
2693
+ # @!attribute [rw] description
2694
+ # The description that you specified when you published this version.
2695
+ # Elemental Inference doesn't return this property for DRAFT, or for
2696
+ # a version that you published without a description.
2697
+ # @return [String]
2698
+ #
2699
+ # @!attribute [rw] sha256
2700
+ # The SHA-256 hash of this version, as 64 lowercase hexadecimal
2701
+ # characters. The hash covers the name of the question set and its
2702
+ # questions at this version.
2703
+ # @return [String]
2704
+ #
2705
+ # @!attribute [rw] last_modified_at
2706
+ # For DRAFT, the time when you created the question set or last
2707
+ # updated DRAFT. For a published version, the time when you published
2708
+ # it.
2709
+ # @return [Time]
2710
+ #
2711
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/QuestionSetVersionSummary AWS API Documentation
2712
+ #
2713
+ class QuestionSetVersionSummary < Struct.new(
2714
+ :version,
2715
+ :description,
2716
+ :sha256,
2717
+ :last_modified_at)
2718
+ SENSITIVE = []
2719
+ include Aws::Structure
2720
+ end
2721
+
1360
2722
  # Removes the game from an event clipping output at the action's
1361
2723
  # scheduled time. This is a type of ScheduleActionOperation, and the
1362
2724
  # output must be an event clipping output.
@@ -1386,6 +2748,21 @@ module Aws::ElementalInference
1386
2748
  include Aws::Structure
1387
2749
  end
1388
2750
 
2751
+ # The perScene trigger, which runs the function once for each scene that
2752
+ # a contextual metadata output reports. The function runs after the
2753
+ # scene ends, with the media of that scene. To choose this trigger, set
2754
+ # perScene to an empty object.
2755
+ #
2756
+ # Specify contextualMetadataSettings to name the contextual metadata
2757
+ # output that reports the scenes. You can't use this trigger with a
2758
+ # function that references media.transcript or media.clip.
2759
+ #
2760
+ # @api private
2761
+ #
2762
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/SceneTrigger AWS API Documentation
2763
+ #
2764
+ class SceneTrigger < Aws::EmptyStructure; end
2765
+
1389
2766
  # Describes one schedule action on a feed, including the changes it
1390
2767
  # makes and whether it has run yet. Elemental Inference returns this
1391
2768
  # structure in the ListScheduleActions operation.
@@ -1666,6 +3043,21 @@ module Aws::ElementalInference
1666
3043
  include Aws::Structure
1667
3044
  end
1668
3045
 
3046
+ # The perShot trigger, which runs the function once for each shot that
3047
+ # Elemental Inference detects in the video. The function runs after the
3048
+ # shot ends, with the media of that shot. To choose this trigger, set
3049
+ # perShot to an empty object. The feed must have a video input.
3050
+ #
3051
+ # You can't use this trigger with a function that references
3052
+ # media.transcript or media.clip. If the function references
3053
+ # media.contextual, specify contextualMetadataSettings.
3054
+ #
3055
+ # @api private
3056
+ #
3057
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/ShotTrigger AWS API Documentation
3058
+ #
3059
+ class ShotTrigger < Aws::EmptyStructure; end
3060
+
1669
3061
  # A type of OutputConfig, used when the output in a feed is for the
1670
3062
  # smart subtitling feature. Smart subtitling uses automatic speech
1671
3063
  # recognition (ASR) to generate live TTML subtitles from the audio in
@@ -1708,6 +3100,26 @@ module Aws::ElementalInference
1708
3100
  include Aws::Structure
1709
3101
  end
1710
3102
 
3103
+ # The smart subtitles output on this feed that a function reads
3104
+ # media.transcript from. Specify this structure for a function that
3105
+ # references media.transcript. That function must use a fixedInterval
3106
+ # trigger.
3107
+ #
3108
+ # If the function output is ENABLED, the output that you name must also
3109
+ # be ENABLED.
3110
+ #
3111
+ # @!attribute [rw] output_name
3112
+ # The name of an ENABLED smart subtitles output on this feed.
3113
+ # @return [String]
3114
+ #
3115
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/SubtitlingSettings AWS API Documentation
3116
+ #
3117
+ class SubtitlingSettings < Struct.new(
3118
+ :output_name)
3119
+ SENSITIVE = []
3120
+ include Aws::Structure
3121
+ end
3122
+
1711
3123
  # @!attribute [rw] resource_arn
1712
3124
  # The ARN of the resource where you want to add tags.
1713
3125
  # @return [String]
@@ -1764,6 +3176,56 @@ module Aws::ElementalInference
1764
3176
  include Aws::Structure
1765
3177
  end
1766
3178
 
3179
+ # Determines when a function runs. Specify exactly one member.
3180
+ #
3181
+ # @note Trigger is a union - when making an API calls you must set exactly one of the members.
3182
+ #
3183
+ # @note Trigger is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of Trigger corresponding to the set member.
3184
+ #
3185
+ # @!attribute [rw] fixed_interval
3186
+ # Run the function at a fixed interval of content. This is the only
3187
+ # trigger for a function that references media.transcript. Can't be
3188
+ # used with a function that references media.contextual.
3189
+ # @return [Types::FixedIntervalTrigger]
3190
+ #
3191
+ # @!attribute [rw] per_shot
3192
+ # Run the function once for each shot that Elemental Inference
3193
+ # detects. Can't be used with a function that references
3194
+ # media.transcript or media.clip.
3195
+ # @return [Types::ShotTrigger]
3196
+ #
3197
+ # @!attribute [rw] per_scene
3198
+ # Run the function once for each scene boundary that a contextual
3199
+ # metadata output reports. Requires contextualMetadataSettings. Can't
3200
+ # be used with a function that references media.transcript or
3201
+ # media.clip.
3202
+ # @return [Types::SceneTrigger]
3203
+ #
3204
+ # @!attribute [rw] per_clip
3205
+ # Run the function once for each clip that an event clipping output
3206
+ # detects. Requires clippingSettings. Can't be used with a function
3207
+ # that references media.transcript or media.contextual.
3208
+ # @return [Types::ClipTrigger]
3209
+ #
3210
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/Trigger AWS API Documentation
3211
+ #
3212
+ class Trigger < Struct.new(
3213
+ :fixed_interval,
3214
+ :per_shot,
3215
+ :per_scene,
3216
+ :per_clip,
3217
+ :unknown)
3218
+ SENSITIVE = []
3219
+ include Aws::Structure
3220
+ include Aws::Structure::Union
3221
+
3222
+ class FixedInterval < Trigger; end
3223
+ class PerShot < Trigger; end
3224
+ class PerScene < Trigger; end
3225
+ class PerClip < Trigger; end
3226
+ class Unknown < Trigger; end
3227
+ end
3228
+
1767
3229
  # @!attribute [rw] resource_arn
1768
3230
  # The ARN of the resource where you want to delete one or more tags.
1769
3231
  # @return [String]
@@ -1962,6 +3424,144 @@ module Aws::ElementalInference
1962
3424
  include Aws::Structure
1963
3425
  end
1964
3426
 
3427
+ # @!attribute [rw] id
3428
+ # The ID of the function.
3429
+ # @return [String]
3430
+ #
3431
+ # @!attribute [rw] name
3432
+ # A new name for the function. You can't change the name while the
3433
+ # function is referenced by a feed.
3434
+ # @return [String]
3435
+ #
3436
+ # @!attribute [rw] target
3437
+ # A new target for the function. You can't change the target while
3438
+ # the function is referenced by a feed.
3439
+ # @return [Types::FunctionTarget]
3440
+ #
3441
+ # @!attribute [rw] request_expression
3442
+ # A new request expression for the function. Elemental Inference
3443
+ # derives contextTypes again from the new expression. While a feed
3444
+ # references the function, the new expression must reference the same
3445
+ # media context as the current one.
3446
+ # @return [String]
3447
+ #
3448
+ # @!attribute [rw] response_expression
3449
+ # A new response expression for the function. To remove the response
3450
+ # expression, specify an empty string. A function with a Bedrock
3451
+ # target and eventBridgeDelivery set to ENABLED must keep a response
3452
+ # expression.
3453
+ # @return [String]
3454
+ #
3455
+ # @!attribute [rw] description
3456
+ # A new description for the function.
3457
+ # @return [String]
3458
+ #
3459
+ # @!attribute [rw] event_bridge_delivery
3460
+ # Specifies whether Elemental Inference also sends this function's
3461
+ # marked results to Amazon EventBridge, as described for
3462
+ # CreateFunction. If you omit this parameter, the current value is
3463
+ # kept. While a feed references the function, you can change this
3464
+ # value to DISABLED, but not to ENABLED.
3465
+ # @return [String]
3466
+ #
3467
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/UpdateFunctionRequest AWS API Documentation
3468
+ #
3469
+ class UpdateFunctionRequest < Struct.new(
3470
+ :id,
3471
+ :name,
3472
+ :target,
3473
+ :request_expression,
3474
+ :response_expression,
3475
+ :description,
3476
+ :event_bridge_delivery)
3477
+ SENSITIVE = [:request_expression, :response_expression, :description]
3478
+ include Aws::Structure
3479
+ end
3480
+
3481
+ # @!attribute [rw] name
3482
+ # The name of the function.
3483
+ # @return [String]
3484
+ #
3485
+ # @!attribute [rw] target
3486
+ # The destination for the request that the function builds.
3487
+ # @return [Types::FunctionTarget]
3488
+ #
3489
+ # @!attribute [rw] request_expression
3490
+ # The JSONata expression that builds the request. Elemental Inference
3491
+ # evaluates it against the media object of the feed, which holds the
3492
+ # media and metadata that the function asked for.
3493
+ # @return [String]
3494
+ #
3495
+ # @!attribute [rw] response_expression
3496
+ # The JSONata expression that selects what to store. Elemental
3497
+ # Inference evaluates it against the result as its root: the model
3498
+ # response for a Bedrock target, or the output of the request
3499
+ # expression for a passthrough target. If a function has no response
3500
+ # expression, Elemental Inference stores the entire result.
3501
+ # @return [String]
3502
+ #
3503
+ # @!attribute [rw] description
3504
+ # The description of the function.
3505
+ # @return [String]
3506
+ #
3507
+ # @!attribute [rw] event_bridge_delivery
3508
+ # Indicates whether Elemental Inference also sends this function's
3509
+ # results to Amazon EventBridge. With ENABLED, each result that is a
3510
+ # JSON object with a top-level `eventBridge` field set to `true` is
3511
+ # also sent as a Function Metadata Generated event to the default
3512
+ # event bus in your account.
3513
+ # @return [String]
3514
+ #
3515
+ # @!attribute [rw] arn
3516
+ # The ARN of the function.
3517
+ # @return [String]
3518
+ #
3519
+ # @!attribute [rw] id
3520
+ # The ID of the function.
3521
+ # @return [String]
3522
+ #
3523
+ # @!attribute [rw] status
3524
+ # The status of the function.
3525
+ # @return [String]
3526
+ #
3527
+ # @!attribute [rw] references
3528
+ # The IDs of the feeds that have a function output, enabled or
3529
+ # disabled, that references this function. While this list isn't
3530
+ # empty, the function can't be deleted, and its name and target
3531
+ # can't be changed.
3532
+ # @return [Array<String>]
3533
+ #
3534
+ # @!attribute [rw] context_types
3535
+ # The kinds of media context that this function uses. Elemental
3536
+ # Inference derives this field from the media paths that the request
3537
+ # expression references; you can't set it. An empty list means that
3538
+ # the expression references no media, so Elemental Inference supplies
3539
+ # none at run time.
3540
+ # @return [Array<String>]
3541
+ #
3542
+ # @!attribute [rw] tags
3543
+ # The tags associated with the function.
3544
+ # @return [Hash<String,String>]
3545
+ #
3546
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/UpdateFunctionResponse AWS API Documentation
3547
+ #
3548
+ class UpdateFunctionResponse < Struct.new(
3549
+ :name,
3550
+ :target,
3551
+ :request_expression,
3552
+ :response_expression,
3553
+ :description,
3554
+ :event_bridge_delivery,
3555
+ :arn,
3556
+ :id,
3557
+ :status,
3558
+ :references,
3559
+ :context_types,
3560
+ :tags)
3561
+ SENSITIVE = [:request_expression, :response_expression, :description]
3562
+ include Aws::Structure
3563
+ end
3564
+
1965
3565
  # Contains configuration information about one output in a feed. It is
1966
3566
  # used in the UpdateFeed action.
1967
3567
  #
@@ -2029,6 +3629,134 @@ module Aws::ElementalInference
2029
3629
  include Aws::Structure
2030
3630
  end
2031
3631
 
3632
+ # @!attribute [rw] id
3633
+ # The ID of the question set to update.
3634
+ # @return [String]
3635
+ #
3636
+ # @!attribute [rw] yes_no
3637
+ # An array of questions that Elemental Inference answers with yes or
3638
+ # no, to replace all the yesNo questions in DRAFT. You can specify up
3639
+ # to 50 yesNo questions. If not specified, the yesNo questions are not
3640
+ # changed. To remove all the yesNo questions, specify an empty array.
3641
+ # @return [Array<Types::YesNoQuestion>]
3642
+ #
3643
+ # @!attribute [rw] yes_no_per_option
3644
+ # An array of questions that you ask about each of their options, to
3645
+ # replace all the yesNoPerOption questions in DRAFT. You can specify
3646
+ # up to 10 yesNoPerOption questions. If not specified, the
3647
+ # yesNoPerOption questions are not changed. To remove all the
3648
+ # yesNoPerOption questions, specify an empty array.
3649
+ # @return [Array<Types::YesNoPerOptionQuestion>]
3650
+ #
3651
+ # @!attribute [rw] choose_one
3652
+ # An array of questions that Elemental Inference answers by choosing
3653
+ # one of their options, to replace all the chooseOne questions in
3654
+ # DRAFT. You can specify up to 10 chooseOne questions. If not
3655
+ # specified, the chooseOne questions are not changed. To remove all
3656
+ # the chooseOne questions, specify an empty array.
3657
+ # @return [Array<Types::ChooseOneQuestion>]
3658
+ #
3659
+ # @!attribute [rw] name
3660
+ # A new name for the question set. If not specified, the name is not
3661
+ # changed.
3662
+ # @return [String]
3663
+ #
3664
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/UpdateQuestionSetRequest AWS API Documentation
3665
+ #
3666
+ class UpdateQuestionSetRequest < Struct.new(
3667
+ :id,
3668
+ :yes_no,
3669
+ :yes_no_per_option,
3670
+ :choose_one,
3671
+ :name)
3672
+ SENSITIVE = []
3673
+ include Aws::Structure
3674
+ end
3675
+
3676
+ # @!attribute [rw] yes_no
3677
+ # The yesNo questions in this version. Elemental Inference doesn't
3678
+ # return this property if the version has no yesNo questions.
3679
+ # @return [Array<Types::YesNoQuestion>]
3680
+ #
3681
+ # @!attribute [rw] yes_no_per_option
3682
+ # The yesNoPerOption questions in this version. Elemental Inference
3683
+ # doesn't return this property if the version has no yesNoPerOption
3684
+ # questions.
3685
+ # @return [Array<Types::YesNoPerOptionQuestion>]
3686
+ #
3687
+ # @!attribute [rw] choose_one
3688
+ # The chooseOne questions in this version. Elemental Inference
3689
+ # doesn't return this property if the version has no chooseOne
3690
+ # questions.
3691
+ # @return [Array<Types::ChooseOneQuestion>]
3692
+ #
3693
+ # @!attribute [rw] arn
3694
+ # The ARN of the question set.
3695
+ # @return [String]
3696
+ #
3697
+ # @!attribute [rw] id
3698
+ # The ID of the question set.
3699
+ # @return [String]
3700
+ #
3701
+ # @!attribute [rw] name
3702
+ # The updated or original name of the question set.
3703
+ # @return [String]
3704
+ #
3705
+ # @!attribute [rw] version
3706
+ # The version that this response describes. For UpdateQuestionSet, the
3707
+ # version is always DRAFT.
3708
+ # @return [String]
3709
+ #
3710
+ # @!attribute [rw] description
3711
+ # The description of the version. Elemental Inference doesn't return
3712
+ # this property for UpdateQuestionSet, because the DRAFT version has
3713
+ # no description.
3714
+ # @return [String]
3715
+ #
3716
+ # @!attribute [rw] latest_version
3717
+ # The number of the highest version that you have published for this
3718
+ # question set, even if you have since deleted that version. Elemental
3719
+ # Inference doesn't return this property if you haven't published a
3720
+ # version.
3721
+ # @return [String]
3722
+ #
3723
+ # @!attribute [rw] sha256
3724
+ # The SHA-256 hash of the DRAFT version after the update, as 64
3725
+ # lowercase hexadecimal characters. The hash covers the name of the
3726
+ # question set and its questions, so it changes when you rename the
3727
+ # question set. You can specify this value in a
3728
+ # CreateQuestionSetVersion request, so that Elemental Inference
3729
+ # publishes DRAFT only if it hasn't changed since this update.
3730
+ # @return [String]
3731
+ #
3732
+ # @!attribute [rw] references
3733
+ # A list of feed IDs that reference the DRAFT version of the question
3734
+ # set.
3735
+ # @return [Array<String>]
3736
+ #
3737
+ # @!attribute [rw] tags
3738
+ # Any tags associated with the question set.
3739
+ # @return [Hash<String,String>]
3740
+ #
3741
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/UpdateQuestionSetResponse AWS API Documentation
3742
+ #
3743
+ class UpdateQuestionSetResponse < Struct.new(
3744
+ :yes_no,
3745
+ :yes_no_per_option,
3746
+ :choose_one,
3747
+ :arn,
3748
+ :id,
3749
+ :name,
3750
+ :version,
3751
+ :description,
3752
+ :latest_version,
3753
+ :sha256,
3754
+ :references,
3755
+ :tags)
3756
+ SENSITIVE = []
3757
+ include Aws::Structure
3758
+ end
3759
+
2032
3760
  # The input fails to satisfy the constraints specified by the service.
2033
3761
  # Check the error message for details about which parameter or field is
2034
3762
  # invalid and correct the request before retrying.
@@ -2044,6 +3772,72 @@ module Aws::ElementalInference
2044
3772
  include Aws::Structure
2045
3773
  end
2046
3774
 
3775
+ # A question that you ask Elemental Inference separately about each of
3776
+ # its options. Elemental Inference answers yes or no for each option.
3777
+ # Word the question so that it fits any of the options. For example, ask
3778
+ # Is this overlay visible? with one option for each overlay. You specify
3779
+ # it in the yesNoPerOption array of a question set.
3780
+ #
3781
+ # @!attribute [rw] name
3782
+ # A name for the question. The name must be unique among all the
3783
+ # questions in the version, across all question types. The name can be
3784
+ # up to 64 characters. It must start with a letter or an underscore,
3785
+ # and can contain only the letters A-Z and a-z, the digits 0-9, and
3786
+ # underscores.
3787
+ # @return [String]
3788
+ #
3789
+ # @!attribute [rw] question
3790
+ # The text of the question. The text can be up to 256 bytes, encoded
3791
+ # in UTF-8. It can contain letters in any language, combining marks,
3792
+ # digits, spaces, and the following characters: `. , ? ! ' " ( ) - : ;
3793
+ # / & %`, plus the curly apostrophe and quotation marks (U+2019,
3794
+ # U+201C, and U+201D).
3795
+ # @return [String]
3796
+ #
3797
+ # @!attribute [rw] options
3798
+ # The options that you ask the question about. You can specify from 1
3799
+ # to 50 options. Each option counts as one item toward the limit of
3800
+ # 100 scored items in a version.
3801
+ # @return [Array<Types::QuestionOption>]
3802
+ #
3803
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/YesNoPerOptionQuestion AWS API Documentation
3804
+ #
3805
+ class YesNoPerOptionQuestion < Struct.new(
3806
+ :name,
3807
+ :question,
3808
+ :options)
3809
+ SENSITIVE = []
3810
+ include Aws::Structure
3811
+ end
3812
+
3813
+ # A question that you ask Elemental Inference, which answers with yes or
3814
+ # no. You specify it in the yesNo array of a question set.
3815
+ #
3816
+ # @!attribute [rw] name
3817
+ # A name for the question. The name must be unique among all the
3818
+ # questions in the version, across all question types. The name can be
3819
+ # up to 64 characters. It must start with a letter or an underscore,
3820
+ # and can contain only the letters A-Z and a-z, the digits 0-9, and
3821
+ # underscores.
3822
+ # @return [String]
3823
+ #
3824
+ # @!attribute [rw] question
3825
+ # The text of the question. The text can be up to 256 bytes, encoded
3826
+ # in UTF-8. It can contain letters in any language, combining marks,
3827
+ # digits, spaces, and the following characters: `. , ? ! ' " ( ) - : ;
3828
+ # / & %`, plus the curly apostrophe and quotation marks (U+2019,
3829
+ # U+201C, and U+201D).
3830
+ # @return [String]
3831
+ #
3832
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/YesNoQuestion AWS API Documentation
3833
+ #
3834
+ class YesNoQuestion < Struct.new(
3835
+ :name,
3836
+ :question)
3837
+ SENSITIVE = []
3838
+ include Aws::Structure
3839
+ end
3840
+
2047
3841
  end
2048
3842
  end
2049
3843