aws-sdk-elementalinference 1.24.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-elementalinference/client.rb +1176 -1
- data/lib/aws-sdk-elementalinference/client_api.rb +605 -0
- data/lib/aws-sdk-elementalinference/types.rb +1815 -21
- data/lib/aws-sdk-elementalinference.rb +1 -1
- data/sig/client.rbs +258 -0
- data/sig/params.rbs +88 -4
- data/sig/types.rbs +408 -0
- metadata +3 -3
|
@@ -574,6 +574,49 @@ module Aws::ElementalInference
|
|
|
574
574
|
# contextual_metadata: {
|
|
575
575
|
# summary_generation: "ENABLED", # accepts ENABLED, DISABLED
|
|
576
576
|
# extended_analysis: "ENABLED", # accepts ENABLED, DISABLED
|
|
577
|
+
# custom_questions: {
|
|
578
|
+
# shot: {
|
|
579
|
+
# question_set_id: "QuestionSetId", # required
|
|
580
|
+
# version: "QuestionSetVersion", # required
|
|
581
|
+
# },
|
|
582
|
+
# scene: {
|
|
583
|
+
# question_set_id: "QuestionSetId", # required
|
|
584
|
+
# version: "QuestionSetVersion", # required
|
|
585
|
+
# },
|
|
586
|
+
# },
|
|
587
|
+
# },
|
|
588
|
+
# function: {
|
|
589
|
+
# function_arn: "FunctionArn", # required
|
|
590
|
+
# trigger: { # required
|
|
591
|
+
# fixed_interval: {
|
|
592
|
+
# interval_seconds: 1, # required
|
|
593
|
+
# },
|
|
594
|
+
# per_shot: {
|
|
595
|
+
# },
|
|
596
|
+
# per_scene: {
|
|
597
|
+
# },
|
|
598
|
+
# per_clip: {
|
|
599
|
+
# },
|
|
600
|
+
# },
|
|
601
|
+
# frame_settings: {
|
|
602
|
+
# frame_sampling: { # required
|
|
603
|
+
# mode: "FIRST", # required, accepts FIRST, UNIFORM, LAST
|
|
604
|
+
# count: 1,
|
|
605
|
+
# },
|
|
606
|
+
# frame_size: {
|
|
607
|
+
# width_pixels: 1, # required
|
|
608
|
+
# height_pixels: 1, # required
|
|
609
|
+
# },
|
|
610
|
+
# },
|
|
611
|
+
# subtitling_settings: {
|
|
612
|
+
# output_name: "ResourceName", # required
|
|
613
|
+
# },
|
|
614
|
+
# contextual_metadata_settings: {
|
|
615
|
+
# output_name: "ResourceName", # required
|
|
616
|
+
# },
|
|
617
|
+
# clipping_settings: {
|
|
618
|
+
# output_name: "ResourceName", # required
|
|
619
|
+
# },
|
|
577
620
|
# },
|
|
578
621
|
# },
|
|
579
622
|
# status: "ENABLED", # required, accepts ENABLED, DISABLED
|
|
@@ -735,6 +778,49 @@ module Aws::ElementalInference
|
|
|
735
778
|
# contextual_metadata: {
|
|
736
779
|
# summary_generation: "ENABLED", # accepts ENABLED, DISABLED
|
|
737
780
|
# extended_analysis: "ENABLED", # accepts ENABLED, DISABLED
|
|
781
|
+
# custom_questions: {
|
|
782
|
+
# shot: {
|
|
783
|
+
# question_set_id: "QuestionSetId", # required
|
|
784
|
+
# version: "QuestionSetVersion", # required
|
|
785
|
+
# },
|
|
786
|
+
# scene: {
|
|
787
|
+
# question_set_id: "QuestionSetId", # required
|
|
788
|
+
# version: "QuestionSetVersion", # required
|
|
789
|
+
# },
|
|
790
|
+
# },
|
|
791
|
+
# },
|
|
792
|
+
# function: {
|
|
793
|
+
# function_arn: "FunctionArn", # required
|
|
794
|
+
# trigger: { # required
|
|
795
|
+
# fixed_interval: {
|
|
796
|
+
# interval_seconds: 1, # required
|
|
797
|
+
# },
|
|
798
|
+
# per_shot: {
|
|
799
|
+
# },
|
|
800
|
+
# per_scene: {
|
|
801
|
+
# },
|
|
802
|
+
# per_clip: {
|
|
803
|
+
# },
|
|
804
|
+
# },
|
|
805
|
+
# frame_settings: {
|
|
806
|
+
# frame_sampling: { # required
|
|
807
|
+
# mode: "FIRST", # required, accepts FIRST, UNIFORM, LAST
|
|
808
|
+
# count: 1,
|
|
809
|
+
# },
|
|
810
|
+
# frame_size: {
|
|
811
|
+
# width_pixels: 1, # required
|
|
812
|
+
# height_pixels: 1, # required
|
|
813
|
+
# },
|
|
814
|
+
# },
|
|
815
|
+
# subtitling_settings: {
|
|
816
|
+
# output_name: "ResourceName", # required
|
|
817
|
+
# },
|
|
818
|
+
# contextual_metadata_settings: {
|
|
819
|
+
# output_name: "ResourceName", # required
|
|
820
|
+
# },
|
|
821
|
+
# clipping_settings: {
|
|
822
|
+
# output_name: "ResourceName", # required
|
|
823
|
+
# },
|
|
738
824
|
# },
|
|
739
825
|
# },
|
|
740
826
|
# status: "ENABLED", # required, accepts ENABLED, DISABLED
|
|
@@ -768,6 +854,19 @@ module Aws::ElementalInference
|
|
|
768
854
|
# resp.outputs[0].output_config.subtitling.profanity_filter #=> String, one of "DISABLED", "CENSOR", "DROP"
|
|
769
855
|
# resp.outputs[0].output_config.contextual_metadata.summary_generation #=> String, one of "ENABLED", "DISABLED"
|
|
770
856
|
# resp.outputs[0].output_config.contextual_metadata.extended_analysis #=> String, one of "ENABLED", "DISABLED"
|
|
857
|
+
# resp.outputs[0].output_config.contextual_metadata.custom_questions.shot.question_set_id #=> String
|
|
858
|
+
# resp.outputs[0].output_config.contextual_metadata.custom_questions.shot.version #=> String
|
|
859
|
+
# resp.outputs[0].output_config.contextual_metadata.custom_questions.scene.question_set_id #=> String
|
|
860
|
+
# resp.outputs[0].output_config.contextual_metadata.custom_questions.scene.version #=> String
|
|
861
|
+
# resp.outputs[0].output_config.function.function_arn #=> String
|
|
862
|
+
# resp.outputs[0].output_config.function.trigger.fixed_interval.interval_seconds #=> Integer
|
|
863
|
+
# resp.outputs[0].output_config.function.frame_settings.frame_sampling.mode #=> String, one of "FIRST", "UNIFORM", "LAST"
|
|
864
|
+
# resp.outputs[0].output_config.function.frame_settings.frame_sampling.count #=> Integer
|
|
865
|
+
# resp.outputs[0].output_config.function.frame_settings.frame_size.width_pixels #=> Integer
|
|
866
|
+
# resp.outputs[0].output_config.function.frame_settings.frame_size.height_pixels #=> Integer
|
|
867
|
+
# resp.outputs[0].output_config.function.subtitling_settings.output_name #=> String
|
|
868
|
+
# resp.outputs[0].output_config.function.contextual_metadata_settings.output_name #=> String
|
|
869
|
+
# resp.outputs[0].output_config.function.clipping_settings.output_name #=> String
|
|
771
870
|
# resp.outputs[0].status #=> String, one of "ENABLED", "DISABLED"
|
|
772
871
|
# resp.outputs[0].description #=> String
|
|
773
872
|
# resp.outputs[0].from_association #=> Boolean
|
|
@@ -786,6 +885,391 @@ module Aws::ElementalInference
|
|
|
786
885
|
req.send_request(options)
|
|
787
886
|
end
|
|
788
887
|
|
|
888
|
+
# Creates a function. A function analyzes a feed by building a request
|
|
889
|
+
# from the feed's media and metadata, optionally sending that request
|
|
890
|
+
# to an Amazon Bedrock model in your account, and publishing the result
|
|
891
|
+
# to the feed's metadata timeline.
|
|
892
|
+
#
|
|
893
|
+
# A function runs only after you attach it to a feed as a function
|
|
894
|
+
# output. For more information, see [Using functions][1] in the *AWS
|
|
895
|
+
# Elemental Inference User Guide*.
|
|
896
|
+
#
|
|
897
|
+
#
|
|
898
|
+
#
|
|
899
|
+
# [1]: https://docs.aws.amazon.com/elemental-inference/latest/userguide/functions.html
|
|
900
|
+
#
|
|
901
|
+
# @option params [required, String] :name
|
|
902
|
+
# A name for this function.
|
|
903
|
+
#
|
|
904
|
+
# @option params [required, Types::FunctionTarget] :target
|
|
905
|
+
# The destination for the request that the function builds.
|
|
906
|
+
#
|
|
907
|
+
# @option params [required, String] :request_expression
|
|
908
|
+
# The JSONata expression that builds the request. Elemental Inference
|
|
909
|
+
# evaluates it against the media object of the feed, which holds the
|
|
910
|
+
# media and metadata that the function asked for. Maximum length: 5,120
|
|
911
|
+
# characters.
|
|
912
|
+
#
|
|
913
|
+
# When you save the function, Elemental Inference evaluates the
|
|
914
|
+
# expression against sample media and rejects it if the evaluation
|
|
915
|
+
# fails. For a Bedrock target, the result must be a JSON object;
|
|
916
|
+
# Elemental Inference doesn't check that the object is a valid request
|
|
917
|
+
# body for the model. The expression can reference at most one of
|
|
918
|
+
# media.transcript, media.contextual, and media.clip. For a passthrough
|
|
919
|
+
# target, it can't reference media.frames.
|
|
920
|
+
#
|
|
921
|
+
# @option params [String] :response_expression
|
|
922
|
+
# The JSONata expression that selects what to store. Elemental Inference
|
|
923
|
+
# evaluates it against the result as its root: the model response for a
|
|
924
|
+
# Bedrock target, or the output of the request expression for a
|
|
925
|
+
# passthrough target. If a function has no response expression,
|
|
926
|
+
# Elemental Inference stores the entire result. Maximum length: 5,120
|
|
927
|
+
# characters.
|
|
928
|
+
#
|
|
929
|
+
# When you save the function, Elemental Inference checks that the
|
|
930
|
+
# expression is valid JSONata. For a passthrough target, it also
|
|
931
|
+
# evaluates the request and response expressions together against sample
|
|
932
|
+
# media, and rejects them if they produce no value.
|
|
933
|
+
#
|
|
934
|
+
# @option params [String] :description
|
|
935
|
+
# The description of the function. Maximum length: 1,024 characters.
|
|
936
|
+
#
|
|
937
|
+
# @option params [String] :event_bridge_delivery
|
|
938
|
+
# Specifies whether Elemental Inference also sends this function's
|
|
939
|
+
# results to Amazon EventBridge. Elemental Inference sends a result only
|
|
940
|
+
# when the result is a JSON object with a top-level `eventBridge` field
|
|
941
|
+
# set to `true`. It sends the result, unchanged, as a Function Metadata
|
|
942
|
+
# Generated event to the default event bus in your account, after the
|
|
943
|
+
# result is available from GetMetadata. If the result is larger than 64
|
|
944
|
+
# KB, the event has `resultOmitted` set to `true` in place of the
|
|
945
|
+
# result.
|
|
946
|
+
#
|
|
947
|
+
# Valid values:
|
|
948
|
+
#
|
|
949
|
+
# * ENABLED – Elemental Inference sends each marked result as an event.
|
|
950
|
+
#
|
|
951
|
+
# * DISABLED (default) – Elemental Inference doesn't send events.
|
|
952
|
+
#
|
|
953
|
+
# For a Bedrock target, ENABLED requires a response expression, because
|
|
954
|
+
# the model response itself never has a top-level `eventBridge` field. A
|
|
955
|
+
# feed output that runs a function with ENABLED can't use a
|
|
956
|
+
# fixedInterval trigger shorter than 4 seconds.
|
|
957
|
+
#
|
|
958
|
+
# @option params [Hash<String,String>] :tags
|
|
959
|
+
# The tags to associate with this function.
|
|
960
|
+
#
|
|
961
|
+
# @return [Types::CreateFunctionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
962
|
+
#
|
|
963
|
+
# * {Types::CreateFunctionResponse#name #name} => String
|
|
964
|
+
# * {Types::CreateFunctionResponse#target #target} => Types::FunctionTarget
|
|
965
|
+
# * {Types::CreateFunctionResponse#request_expression #request_expression} => String
|
|
966
|
+
# * {Types::CreateFunctionResponse#response_expression #response_expression} => String
|
|
967
|
+
# * {Types::CreateFunctionResponse#description #description} => String
|
|
968
|
+
# * {Types::CreateFunctionResponse#event_bridge_delivery #event_bridge_delivery} => String
|
|
969
|
+
# * {Types::CreateFunctionResponse#arn #arn} => String
|
|
970
|
+
# * {Types::CreateFunctionResponse#id #id} => String
|
|
971
|
+
# * {Types::CreateFunctionResponse#status #status} => String
|
|
972
|
+
# * {Types::CreateFunctionResponse#references #references} => Array<String>
|
|
973
|
+
# * {Types::CreateFunctionResponse#context_types #context_types} => Array<String>
|
|
974
|
+
# * {Types::CreateFunctionResponse#tags #tags} => Hash<String,String>
|
|
975
|
+
#
|
|
976
|
+
# @example Request syntax with placeholder values
|
|
977
|
+
#
|
|
978
|
+
# resp = client.create_function({
|
|
979
|
+
# name: "ResourceName", # required
|
|
980
|
+
# target: { # required
|
|
981
|
+
# bedrock: {
|
|
982
|
+
# api: "INVOKE_MODEL", # required, accepts INVOKE_MODEL
|
|
983
|
+
# model: "BedrockFunctionTargetModelString", # required
|
|
984
|
+
# },
|
|
985
|
+
# passthrough: {
|
|
986
|
+
# },
|
|
987
|
+
# },
|
|
988
|
+
# request_expression: "CreateFunctionRequestRequestExpressionString", # required
|
|
989
|
+
# response_expression: "JsonataExpression",
|
|
990
|
+
# description: "FunctionDescription",
|
|
991
|
+
# event_bridge_delivery: "ENABLED", # accepts ENABLED, DISABLED
|
|
992
|
+
# tags: {
|
|
993
|
+
# "TagKey" => "TagValue",
|
|
994
|
+
# },
|
|
995
|
+
# })
|
|
996
|
+
#
|
|
997
|
+
# @example Response structure
|
|
998
|
+
#
|
|
999
|
+
# resp.name #=> String
|
|
1000
|
+
# resp.target.bedrock.api #=> String, one of "INVOKE_MODEL"
|
|
1001
|
+
# resp.target.bedrock.model #=> String
|
|
1002
|
+
# resp.request_expression #=> String
|
|
1003
|
+
# resp.response_expression #=> String
|
|
1004
|
+
# resp.description #=> String
|
|
1005
|
+
# resp.event_bridge_delivery #=> String, one of "ENABLED", "DISABLED"
|
|
1006
|
+
# resp.arn #=> String
|
|
1007
|
+
# resp.id #=> String
|
|
1008
|
+
# resp.status #=> String, one of "CREATING", "AVAILABLE", "REFERENCED", "DELETING", "DELETED"
|
|
1009
|
+
# resp.references #=> Array
|
|
1010
|
+
# resp.references[0] #=> String
|
|
1011
|
+
# resp.context_types #=> Array
|
|
1012
|
+
# resp.context_types[0] #=> String, one of "FRAMES", "SUBTITLES", "CONTEXTUAL_METADATA", "CLIP_METADATA"
|
|
1013
|
+
# resp.tags #=> Hash
|
|
1014
|
+
# resp.tags["TagKey"] #=> String
|
|
1015
|
+
#
|
|
1016
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/CreateFunction AWS API Documentation
|
|
1017
|
+
#
|
|
1018
|
+
# @overload create_function(params = {})
|
|
1019
|
+
# @param [Hash] params ({})
|
|
1020
|
+
def create_function(params = {}, options = {})
|
|
1021
|
+
req = build_request(:create_function, params)
|
|
1022
|
+
req.send_request(options)
|
|
1023
|
+
end
|
|
1024
|
+
|
|
1025
|
+
# Creates a question set. Use a question set to get answers about
|
|
1026
|
+
# content that's specific to your business, in addition to the built-in
|
|
1027
|
+
# contextual metadata classifications. A question set contains your own
|
|
1028
|
+
# questions. You ask Elemental Inference these questions about each shot
|
|
1029
|
+
# or scene of the media in a contextual metadata output, and Elemental
|
|
1030
|
+
# Inference answers each question with scores. To use a question set,
|
|
1031
|
+
# reference it in the customQuestions property of the contextual
|
|
1032
|
+
# metadata configuration of a feed output.
|
|
1033
|
+
#
|
|
1034
|
+
# CreateQuestionSet creates the question set with a DRAFT version that
|
|
1035
|
+
# contains the questions in the request. To change DRAFT, use
|
|
1036
|
+
# UpdateQuestionSet. To publish DRAFT as a numbered version, use
|
|
1037
|
+
# CreateQuestionSetVersion. You can't change a published version.
|
|
1038
|
+
#
|
|
1039
|
+
# A question set can contain the following types of questions. You must
|
|
1040
|
+
# specify at least one question.
|
|
1041
|
+
#
|
|
1042
|
+
# * yesNo – Elemental Inference answers yes or no.
|
|
1043
|
+
#
|
|
1044
|
+
# * yesNoPerOption – Elemental Inference answers yes or no for each
|
|
1045
|
+
# option.
|
|
1046
|
+
#
|
|
1047
|
+
# * chooseOne – Elemental Inference chooses one of the options.
|
|
1048
|
+
#
|
|
1049
|
+
# A version can contain up to 100 scored items, where each yesNo
|
|
1050
|
+
# question, each option of a yesNoPerOption question, and each chooseOne
|
|
1051
|
+
# question counts as one item. The name of each question must be unique
|
|
1052
|
+
# across all three types.
|
|
1053
|
+
#
|
|
1054
|
+
# @option params [Array<Types::YesNoQuestion>] :yes_no
|
|
1055
|
+
# An array of questions that Elemental Inference answers with yes or no.
|
|
1056
|
+
# You can specify up to 50 yesNo questions. An empty array is the same
|
|
1057
|
+
# as omitting this property.
|
|
1058
|
+
#
|
|
1059
|
+
# @option params [Array<Types::YesNoPerOptionQuestion>] :yes_no_per_option
|
|
1060
|
+
# An array of questions that you ask about each of their options.
|
|
1061
|
+
# Elemental Inference answers yes or no for each option. You can specify
|
|
1062
|
+
# up to 10 yesNoPerOption questions. An empty array is the same as
|
|
1063
|
+
# omitting this property.
|
|
1064
|
+
#
|
|
1065
|
+
# @option params [Array<Types::ChooseOneQuestion>] :choose_one
|
|
1066
|
+
# An array of questions that Elemental Inference answers by choosing one
|
|
1067
|
+
# of their options. You can specify up to 10 chooseOne questions. An
|
|
1068
|
+
# empty array is the same as omitting this property.
|
|
1069
|
+
#
|
|
1070
|
+
# @option params [required, String] :name
|
|
1071
|
+
# A user-friendly name for this question set.
|
|
1072
|
+
#
|
|
1073
|
+
# @option params [Hash<String,String>] :tags
|
|
1074
|
+
# Optional tags to associate with the question set. You can also add
|
|
1075
|
+
# tags later, using TagResource.
|
|
1076
|
+
#
|
|
1077
|
+
# @return [Types::CreateQuestionSetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1078
|
+
#
|
|
1079
|
+
# * {Types::CreateQuestionSetResponse#yes_no #yes_no} => Array<Types::YesNoQuestion>
|
|
1080
|
+
# * {Types::CreateQuestionSetResponse#yes_no_per_option #yes_no_per_option} => Array<Types::YesNoPerOptionQuestion>
|
|
1081
|
+
# * {Types::CreateQuestionSetResponse#choose_one #choose_one} => Array<Types::ChooseOneQuestion>
|
|
1082
|
+
# * {Types::CreateQuestionSetResponse#arn #arn} => String
|
|
1083
|
+
# * {Types::CreateQuestionSetResponse#id #id} => String
|
|
1084
|
+
# * {Types::CreateQuestionSetResponse#name #name} => String
|
|
1085
|
+
# * {Types::CreateQuestionSetResponse#version #version} => String
|
|
1086
|
+
# * {Types::CreateQuestionSetResponse#description #description} => String
|
|
1087
|
+
# * {Types::CreateQuestionSetResponse#latest_version #latest_version} => String
|
|
1088
|
+
# * {Types::CreateQuestionSetResponse#sha256 #sha256} => String
|
|
1089
|
+
# * {Types::CreateQuestionSetResponse#references #references} => Array<String>
|
|
1090
|
+
# * {Types::CreateQuestionSetResponse#tags #tags} => Hash<String,String>
|
|
1091
|
+
#
|
|
1092
|
+
# @example Request syntax with placeholder values
|
|
1093
|
+
#
|
|
1094
|
+
# resp = client.create_question_set({
|
|
1095
|
+
# yes_no: [
|
|
1096
|
+
# {
|
|
1097
|
+
# name: "QuestionName", # required
|
|
1098
|
+
# question: "QuestionText", # required
|
|
1099
|
+
# },
|
|
1100
|
+
# ],
|
|
1101
|
+
# yes_no_per_option: [
|
|
1102
|
+
# {
|
|
1103
|
+
# name: "QuestionName", # required
|
|
1104
|
+
# question: "QuestionText", # required
|
|
1105
|
+
# options: [ # required
|
|
1106
|
+
# {
|
|
1107
|
+
# name: "OptionName", # required
|
|
1108
|
+
# text: "OptionText", # required
|
|
1109
|
+
# },
|
|
1110
|
+
# ],
|
|
1111
|
+
# },
|
|
1112
|
+
# ],
|
|
1113
|
+
# choose_one: [
|
|
1114
|
+
# {
|
|
1115
|
+
# name: "QuestionName", # required
|
|
1116
|
+
# question: "QuestionText", # required
|
|
1117
|
+
# options: [ # required
|
|
1118
|
+
# {
|
|
1119
|
+
# name: "OptionName", # required
|
|
1120
|
+
# text: "OptionText", # required
|
|
1121
|
+
# },
|
|
1122
|
+
# ],
|
|
1123
|
+
# },
|
|
1124
|
+
# ],
|
|
1125
|
+
# name: "ResourceName", # required
|
|
1126
|
+
# tags: {
|
|
1127
|
+
# "TagKey" => "TagValue",
|
|
1128
|
+
# },
|
|
1129
|
+
# })
|
|
1130
|
+
#
|
|
1131
|
+
# @example Response structure
|
|
1132
|
+
#
|
|
1133
|
+
# resp.yes_no #=> Array
|
|
1134
|
+
# resp.yes_no[0].name #=> String
|
|
1135
|
+
# resp.yes_no[0].question #=> String
|
|
1136
|
+
# resp.yes_no_per_option #=> Array
|
|
1137
|
+
# resp.yes_no_per_option[0].name #=> String
|
|
1138
|
+
# resp.yes_no_per_option[0].question #=> String
|
|
1139
|
+
# resp.yes_no_per_option[0].options #=> Array
|
|
1140
|
+
# resp.yes_no_per_option[0].options[0].name #=> String
|
|
1141
|
+
# resp.yes_no_per_option[0].options[0].text #=> String
|
|
1142
|
+
# resp.choose_one #=> Array
|
|
1143
|
+
# resp.choose_one[0].name #=> String
|
|
1144
|
+
# resp.choose_one[0].question #=> String
|
|
1145
|
+
# resp.choose_one[0].options #=> Array
|
|
1146
|
+
# resp.choose_one[0].options[0].name #=> String
|
|
1147
|
+
# resp.choose_one[0].options[0].text #=> String
|
|
1148
|
+
# resp.arn #=> String
|
|
1149
|
+
# resp.id #=> String
|
|
1150
|
+
# resp.name #=> String
|
|
1151
|
+
# resp.version #=> String
|
|
1152
|
+
# resp.description #=> String
|
|
1153
|
+
# resp.latest_version #=> String
|
|
1154
|
+
# resp.sha256 #=> String
|
|
1155
|
+
# resp.references #=> Array
|
|
1156
|
+
# resp.references[0] #=> String
|
|
1157
|
+
# resp.tags #=> Hash
|
|
1158
|
+
# resp.tags["TagKey"] #=> String
|
|
1159
|
+
#
|
|
1160
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/CreateQuestionSet AWS API Documentation
|
|
1161
|
+
#
|
|
1162
|
+
# @overload create_question_set(params = {})
|
|
1163
|
+
# @param [Hash] params ({})
|
|
1164
|
+
def create_question_set(params = {}, options = {})
|
|
1165
|
+
req = build_request(:create_question_set, params)
|
|
1166
|
+
req.send_request(options)
|
|
1167
|
+
end
|
|
1168
|
+
|
|
1169
|
+
# Publishes the DRAFT version of the specified question set as a new
|
|
1170
|
+
# version. The new version has the same name and questions as DRAFT, and
|
|
1171
|
+
# you can't change it. DRAFT doesn't change, so you can continue to
|
|
1172
|
+
# update it.
|
|
1173
|
+
#
|
|
1174
|
+
# Version numbers start at 1, and each new version has the next number.
|
|
1175
|
+
# Elemental Inference never reuses a version number, even after you
|
|
1176
|
+
# delete that version.
|
|
1177
|
+
#
|
|
1178
|
+
# If DRAFT hasn't changed since the latest published version, Elemental
|
|
1179
|
+
# Inference doesn't create a version. Instead, it returns the latest
|
|
1180
|
+
# version. A change to the name of the question set counts as a change
|
|
1181
|
+
# to DRAFT.
|
|
1182
|
+
#
|
|
1183
|
+
# A question set can have a limited number of versions. If the question
|
|
1184
|
+
# set already has the maximum number of versions, Elemental Inference
|
|
1185
|
+
# returns ServiceQuotaExceededException. To free space for a new
|
|
1186
|
+
# version, delete a version that you no longer need, or create a new
|
|
1187
|
+
# question set.
|
|
1188
|
+
#
|
|
1189
|
+
# @option params [required, String] :id
|
|
1190
|
+
# The ID of the question set whose DRAFT version you want to publish.
|
|
1191
|
+
#
|
|
1192
|
+
# @option params [String] :sha256
|
|
1193
|
+
# The SHA-256 hash of the DRAFT version that you want to publish, as
|
|
1194
|
+
# returned by GetQuestionSet or UpdateQuestionSet. If you specify this
|
|
1195
|
+
# value, Elemental Inference publishes DRAFT only if its current hash
|
|
1196
|
+
# matches. If it doesn't match, because DRAFT changed after you
|
|
1197
|
+
# retrieved it, the request fails with ConflictException.
|
|
1198
|
+
#
|
|
1199
|
+
# If you don't specify this value, Elemental Inference publishes DRAFT
|
|
1200
|
+
# as it is when it receives the request.
|
|
1201
|
+
#
|
|
1202
|
+
# @option params [String] :description
|
|
1203
|
+
# A description of the new version. You can't change the description
|
|
1204
|
+
# after Elemental Inference publishes the version. If DRAFT hasn't
|
|
1205
|
+
# changed since the latest version, Elemental Inference ignores this
|
|
1206
|
+
# value and returns the latest version with its existing description.
|
|
1207
|
+
#
|
|
1208
|
+
# The description can be up to 256 characters. It can contain the
|
|
1209
|
+
# letters A-Z and a-z, the digits 0-9, underscores, spaces, and the
|
|
1210
|
+
# following characters: `- . ' , @ : ;`.
|
|
1211
|
+
#
|
|
1212
|
+
# @return [Types::CreateQuestionSetVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1213
|
+
#
|
|
1214
|
+
# * {Types::CreateQuestionSetVersionResponse#yes_no #yes_no} => Array<Types::YesNoQuestion>
|
|
1215
|
+
# * {Types::CreateQuestionSetVersionResponse#yes_no_per_option #yes_no_per_option} => Array<Types::YesNoPerOptionQuestion>
|
|
1216
|
+
# * {Types::CreateQuestionSetVersionResponse#choose_one #choose_one} => Array<Types::ChooseOneQuestion>
|
|
1217
|
+
# * {Types::CreateQuestionSetVersionResponse#arn #arn} => String
|
|
1218
|
+
# * {Types::CreateQuestionSetVersionResponse#id #id} => String
|
|
1219
|
+
# * {Types::CreateQuestionSetVersionResponse#name #name} => String
|
|
1220
|
+
# * {Types::CreateQuestionSetVersionResponse#version #version} => String
|
|
1221
|
+
# * {Types::CreateQuestionSetVersionResponse#description #description} => String
|
|
1222
|
+
# * {Types::CreateQuestionSetVersionResponse#latest_version #latest_version} => String
|
|
1223
|
+
# * {Types::CreateQuestionSetVersionResponse#sha256 #sha256} => String
|
|
1224
|
+
# * {Types::CreateQuestionSetVersionResponse#references #references} => Array<String>
|
|
1225
|
+
# * {Types::CreateQuestionSetVersionResponse#tags #tags} => Hash<String,String>
|
|
1226
|
+
#
|
|
1227
|
+
# @example Request syntax with placeholder values
|
|
1228
|
+
#
|
|
1229
|
+
# resp = client.create_question_set_version({
|
|
1230
|
+
# id: "QuestionSetId", # required
|
|
1231
|
+
# sha256: "QuestionSetSha256",
|
|
1232
|
+
# description: "QuestionSetVersionDescription",
|
|
1233
|
+
# })
|
|
1234
|
+
#
|
|
1235
|
+
# @example Response structure
|
|
1236
|
+
#
|
|
1237
|
+
# resp.yes_no #=> Array
|
|
1238
|
+
# resp.yes_no[0].name #=> String
|
|
1239
|
+
# resp.yes_no[0].question #=> String
|
|
1240
|
+
# resp.yes_no_per_option #=> Array
|
|
1241
|
+
# resp.yes_no_per_option[0].name #=> String
|
|
1242
|
+
# resp.yes_no_per_option[0].question #=> String
|
|
1243
|
+
# resp.yes_no_per_option[0].options #=> Array
|
|
1244
|
+
# resp.yes_no_per_option[0].options[0].name #=> String
|
|
1245
|
+
# resp.yes_no_per_option[0].options[0].text #=> String
|
|
1246
|
+
# resp.choose_one #=> Array
|
|
1247
|
+
# resp.choose_one[0].name #=> String
|
|
1248
|
+
# resp.choose_one[0].question #=> String
|
|
1249
|
+
# resp.choose_one[0].options #=> Array
|
|
1250
|
+
# resp.choose_one[0].options[0].name #=> String
|
|
1251
|
+
# resp.choose_one[0].options[0].text #=> String
|
|
1252
|
+
# resp.arn #=> String
|
|
1253
|
+
# resp.id #=> String
|
|
1254
|
+
# resp.name #=> String
|
|
1255
|
+
# resp.version #=> String
|
|
1256
|
+
# resp.description #=> String
|
|
1257
|
+
# resp.latest_version #=> String
|
|
1258
|
+
# resp.sha256 #=> String
|
|
1259
|
+
# resp.references #=> Array
|
|
1260
|
+
# resp.references[0] #=> String
|
|
1261
|
+
# resp.tags #=> Hash
|
|
1262
|
+
# resp.tags["TagKey"] #=> String
|
|
1263
|
+
#
|
|
1264
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/CreateQuestionSetVersion AWS API Documentation
|
|
1265
|
+
#
|
|
1266
|
+
# @overload create_question_set_version(params = {})
|
|
1267
|
+
# @param [Hash] params ({})
|
|
1268
|
+
def create_question_set_version(params = {}, options = {})
|
|
1269
|
+
req = build_request(:create_question_set_version, params)
|
|
1270
|
+
req.send_request(options)
|
|
1271
|
+
end
|
|
1272
|
+
|
|
789
1273
|
# Creates a schedule action on a feed. A schedule action applies
|
|
790
1274
|
# configuration changes to the feed at a time that you specify, in the
|
|
791
1275
|
# same way as an UpdateFeed request.
|
|
@@ -964,6 +1448,116 @@ module Aws::ElementalInference
|
|
|
964
1448
|
req.send_request(options)
|
|
965
1449
|
end
|
|
966
1450
|
|
|
1451
|
+
# Deletes a function. If any feed still references the function, the
|
|
1452
|
+
# operation returns a ConflictException. A disabled function output
|
|
1453
|
+
# still references the function. Use GetFunction to find those feeds,
|
|
1454
|
+
# then remove the function output from each one with UpdateFeed, or
|
|
1455
|
+
# delete the feed, before retrying.
|
|
1456
|
+
#
|
|
1457
|
+
# Deleting a function doesn't delete the metadata that it has already
|
|
1458
|
+
# produced.
|
|
1459
|
+
#
|
|
1460
|
+
# @option params [required, String] :id
|
|
1461
|
+
# The ID of the function.
|
|
1462
|
+
#
|
|
1463
|
+
# @return [Types::DeleteFunctionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1464
|
+
#
|
|
1465
|
+
# * {Types::DeleteFunctionResponse#arn #arn} => String
|
|
1466
|
+
# * {Types::DeleteFunctionResponse#id #id} => String
|
|
1467
|
+
# * {Types::DeleteFunctionResponse#status #status} => String
|
|
1468
|
+
#
|
|
1469
|
+
# @example Request syntax with placeholder values
|
|
1470
|
+
#
|
|
1471
|
+
# resp = client.delete_function({
|
|
1472
|
+
# id: "FunctionId", # required
|
|
1473
|
+
# })
|
|
1474
|
+
#
|
|
1475
|
+
# @example Response structure
|
|
1476
|
+
#
|
|
1477
|
+
# resp.arn #=> String
|
|
1478
|
+
# resp.id #=> String
|
|
1479
|
+
# resp.status #=> String, one of "CREATING", "AVAILABLE", "REFERENCED", "DELETING", "DELETED"
|
|
1480
|
+
#
|
|
1481
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/DeleteFunction AWS API Documentation
|
|
1482
|
+
#
|
|
1483
|
+
# @overload delete_function(params = {})
|
|
1484
|
+
# @param [Hash] params ({})
|
|
1485
|
+
def delete_function(params = {}, options = {})
|
|
1486
|
+
req = build_request(:delete_function, params)
|
|
1487
|
+
req.send_request(options)
|
|
1488
|
+
end
|
|
1489
|
+
|
|
1490
|
+
# Deletes the specified question set, including its DRAFT version and
|
|
1491
|
+
# all its published versions. You can't delete a question set while any
|
|
1492
|
+
# feed references any of its versions, including an archived feed. You
|
|
1493
|
+
# must first remove the question set from the customQuestions
|
|
1494
|
+
# configuration of each feed output that references it, or delete those
|
|
1495
|
+
# feeds.
|
|
1496
|
+
#
|
|
1497
|
+
# @option params [required, String] :id
|
|
1498
|
+
# The ID of the question set to delete.
|
|
1499
|
+
#
|
|
1500
|
+
# @return [Types::DeleteQuestionSetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1501
|
+
#
|
|
1502
|
+
# * {Types::DeleteQuestionSetResponse#arn #arn} => String
|
|
1503
|
+
# * {Types::DeleteQuestionSetResponse#id #id} => String
|
|
1504
|
+
#
|
|
1505
|
+
# @example Request syntax with placeholder values
|
|
1506
|
+
#
|
|
1507
|
+
# resp = client.delete_question_set({
|
|
1508
|
+
# id: "QuestionSetId", # required
|
|
1509
|
+
# })
|
|
1510
|
+
#
|
|
1511
|
+
# @example Response structure
|
|
1512
|
+
#
|
|
1513
|
+
# resp.arn #=> String
|
|
1514
|
+
# resp.id #=> String
|
|
1515
|
+
#
|
|
1516
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/DeleteQuestionSet AWS API Documentation
|
|
1517
|
+
#
|
|
1518
|
+
# @overload delete_question_set(params = {})
|
|
1519
|
+
# @param [Hash] params ({})
|
|
1520
|
+
def delete_question_set(params = {}, options = {})
|
|
1521
|
+
req = build_request(:delete_question_set, params)
|
|
1522
|
+
req.send_request(options)
|
|
1523
|
+
end
|
|
1524
|
+
|
|
1525
|
+
# Deletes a published version of the specified question set. You can't
|
|
1526
|
+
# delete a version while a feed references it, including an archived
|
|
1527
|
+
# feed. You can't restore a deleted version, and Elemental Inference
|
|
1528
|
+
# doesn't reuse its number.
|
|
1529
|
+
#
|
|
1530
|
+
# You can't delete the DRAFT version on its own. To delete DRAFT,
|
|
1531
|
+
# delete the question set by using DeleteQuestionSet.
|
|
1532
|
+
#
|
|
1533
|
+
# Deleting a version doesn't change the latestVersion of the question
|
|
1534
|
+
# set, even if you delete the highest version.
|
|
1535
|
+
#
|
|
1536
|
+
# @option params [required, String] :id
|
|
1537
|
+
# The ID of the question set that contains the version.
|
|
1538
|
+
#
|
|
1539
|
+
# @option params [required, String] :question_set_version
|
|
1540
|
+
# The number of the published version to delete. You can't specify
|
|
1541
|
+
# DRAFT.
|
|
1542
|
+
#
|
|
1543
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1544
|
+
#
|
|
1545
|
+
# @example Request syntax with placeholder values
|
|
1546
|
+
#
|
|
1547
|
+
# resp = client.delete_question_set_version({
|
|
1548
|
+
# id: "QuestionSetId", # required
|
|
1549
|
+
# question_set_version: "PublishedQuestionSetVersion", # required
|
|
1550
|
+
# })
|
|
1551
|
+
#
|
|
1552
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/DeleteQuestionSetVersion AWS API Documentation
|
|
1553
|
+
#
|
|
1554
|
+
# @overload delete_question_set_version(params = {})
|
|
1555
|
+
# @param [Hash] params ({})
|
|
1556
|
+
def delete_question_set_version(params = {}, options = {})
|
|
1557
|
+
req = build_request(:delete_question_set_version, params)
|
|
1558
|
+
req.send_request(options)
|
|
1559
|
+
end
|
|
1560
|
+
|
|
967
1561
|
# Deletes a schedule action from a feed. A deleted action never runs.
|
|
968
1562
|
#
|
|
969
1563
|
# You can delete only an action whose status is PENDING. Deleting an
|
|
@@ -1163,6 +1757,19 @@ module Aws::ElementalInference
|
|
|
1163
1757
|
# resp.outputs[0].output_config.subtitling.profanity_filter #=> String, one of "DISABLED", "CENSOR", "DROP"
|
|
1164
1758
|
# resp.outputs[0].output_config.contextual_metadata.summary_generation #=> String, one of "ENABLED", "DISABLED"
|
|
1165
1759
|
# resp.outputs[0].output_config.contextual_metadata.extended_analysis #=> String, one of "ENABLED", "DISABLED"
|
|
1760
|
+
# resp.outputs[0].output_config.contextual_metadata.custom_questions.shot.question_set_id #=> String
|
|
1761
|
+
# resp.outputs[0].output_config.contextual_metadata.custom_questions.shot.version #=> String
|
|
1762
|
+
# resp.outputs[0].output_config.contextual_metadata.custom_questions.scene.question_set_id #=> String
|
|
1763
|
+
# resp.outputs[0].output_config.contextual_metadata.custom_questions.scene.version #=> String
|
|
1764
|
+
# resp.outputs[0].output_config.function.function_arn #=> String
|
|
1765
|
+
# resp.outputs[0].output_config.function.trigger.fixed_interval.interval_seconds #=> Integer
|
|
1766
|
+
# resp.outputs[0].output_config.function.frame_settings.frame_sampling.mode #=> String, one of "FIRST", "UNIFORM", "LAST"
|
|
1767
|
+
# resp.outputs[0].output_config.function.frame_settings.frame_sampling.count #=> Integer
|
|
1768
|
+
# resp.outputs[0].output_config.function.frame_settings.frame_size.width_pixels #=> Integer
|
|
1769
|
+
# resp.outputs[0].output_config.function.frame_settings.frame_size.height_pixels #=> Integer
|
|
1770
|
+
# resp.outputs[0].output_config.function.subtitling_settings.output_name #=> String
|
|
1771
|
+
# resp.outputs[0].output_config.function.contextual_metadata_settings.output_name #=> String
|
|
1772
|
+
# resp.outputs[0].output_config.function.clipping_settings.output_name #=> String
|
|
1166
1773
|
# resp.outputs[0].status #=> String, one of "ENABLED", "DISABLED"
|
|
1167
1774
|
# resp.outputs[0].description #=> String
|
|
1168
1775
|
# resp.outputs[0].from_association #=> Boolean
|
|
@@ -1256,6 +1863,134 @@ module Aws::ElementalInference
|
|
|
1256
1863
|
req.send_request(options)
|
|
1257
1864
|
end
|
|
1258
1865
|
|
|
1866
|
+
# Retrieves the details of a function, including its expressions, the
|
|
1867
|
+
# media context that Elemental Inference derived from the request
|
|
1868
|
+
# expression, and the feeds that currently reference it.
|
|
1869
|
+
#
|
|
1870
|
+
# @option params [required, String] :id
|
|
1871
|
+
# The ID of the function.
|
|
1872
|
+
#
|
|
1873
|
+
# @return [Types::GetFunctionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1874
|
+
#
|
|
1875
|
+
# * {Types::GetFunctionResponse#name #name} => String
|
|
1876
|
+
# * {Types::GetFunctionResponse#target #target} => Types::FunctionTarget
|
|
1877
|
+
# * {Types::GetFunctionResponse#request_expression #request_expression} => String
|
|
1878
|
+
# * {Types::GetFunctionResponse#response_expression #response_expression} => String
|
|
1879
|
+
# * {Types::GetFunctionResponse#description #description} => String
|
|
1880
|
+
# * {Types::GetFunctionResponse#event_bridge_delivery #event_bridge_delivery} => String
|
|
1881
|
+
# * {Types::GetFunctionResponse#arn #arn} => String
|
|
1882
|
+
# * {Types::GetFunctionResponse#id #id} => String
|
|
1883
|
+
# * {Types::GetFunctionResponse#status #status} => String
|
|
1884
|
+
# * {Types::GetFunctionResponse#references #references} => Array<String>
|
|
1885
|
+
# * {Types::GetFunctionResponse#context_types #context_types} => Array<String>
|
|
1886
|
+
# * {Types::GetFunctionResponse#tags #tags} => Hash<String,String>
|
|
1887
|
+
#
|
|
1888
|
+
# @example Request syntax with placeholder values
|
|
1889
|
+
#
|
|
1890
|
+
# resp = client.get_function({
|
|
1891
|
+
# id: "FunctionId", # required
|
|
1892
|
+
# })
|
|
1893
|
+
#
|
|
1894
|
+
# @example Response structure
|
|
1895
|
+
#
|
|
1896
|
+
# resp.name #=> String
|
|
1897
|
+
# resp.target.bedrock.api #=> String, one of "INVOKE_MODEL"
|
|
1898
|
+
# resp.target.bedrock.model #=> String
|
|
1899
|
+
# resp.request_expression #=> String
|
|
1900
|
+
# resp.response_expression #=> String
|
|
1901
|
+
# resp.description #=> String
|
|
1902
|
+
# resp.event_bridge_delivery #=> String, one of "ENABLED", "DISABLED"
|
|
1903
|
+
# resp.arn #=> String
|
|
1904
|
+
# resp.id #=> String
|
|
1905
|
+
# resp.status #=> String, one of "CREATING", "AVAILABLE", "REFERENCED", "DELETING", "DELETED"
|
|
1906
|
+
# resp.references #=> Array
|
|
1907
|
+
# resp.references[0] #=> String
|
|
1908
|
+
# resp.context_types #=> Array
|
|
1909
|
+
# resp.context_types[0] #=> String, one of "FRAMES", "SUBTITLES", "CONTEXTUAL_METADATA", "CLIP_METADATA"
|
|
1910
|
+
# resp.tags #=> Hash
|
|
1911
|
+
# resp.tags["TagKey"] #=> String
|
|
1912
|
+
#
|
|
1913
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/GetFunction AWS API Documentation
|
|
1914
|
+
#
|
|
1915
|
+
# @overload get_function(params = {})
|
|
1916
|
+
# @param [Hash] params ({})
|
|
1917
|
+
def get_function(params = {}, options = {})
|
|
1918
|
+
req = build_request(:get_function, params)
|
|
1919
|
+
req.send_request(options)
|
|
1920
|
+
end
|
|
1921
|
+
|
|
1922
|
+
# Retrieves information about the specified question set at one version.
|
|
1923
|
+
# By default, GetQuestionSet returns the DRAFT version. To retrieve a
|
|
1924
|
+
# published version, specify questionSetVersion.
|
|
1925
|
+
#
|
|
1926
|
+
# @option params [required, String] :id
|
|
1927
|
+
# The ID of the question set to retrieve.
|
|
1928
|
+
#
|
|
1929
|
+
# @option params [String] :question_set_version
|
|
1930
|
+
# The version of the question set to retrieve: DRAFT or the number of a
|
|
1931
|
+
# published version. If you don't specify a version, Elemental
|
|
1932
|
+
# Inference returns DRAFT.
|
|
1933
|
+
#
|
|
1934
|
+
# @return [Types::GetQuestionSetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1935
|
+
#
|
|
1936
|
+
# * {Types::GetQuestionSetResponse#yes_no #yes_no} => Array<Types::YesNoQuestion>
|
|
1937
|
+
# * {Types::GetQuestionSetResponse#yes_no_per_option #yes_no_per_option} => Array<Types::YesNoPerOptionQuestion>
|
|
1938
|
+
# * {Types::GetQuestionSetResponse#choose_one #choose_one} => Array<Types::ChooseOneQuestion>
|
|
1939
|
+
# * {Types::GetQuestionSetResponse#arn #arn} => String
|
|
1940
|
+
# * {Types::GetQuestionSetResponse#id #id} => String
|
|
1941
|
+
# * {Types::GetQuestionSetResponse#name #name} => String
|
|
1942
|
+
# * {Types::GetQuestionSetResponse#version #version} => String
|
|
1943
|
+
# * {Types::GetQuestionSetResponse#description #description} => String
|
|
1944
|
+
# * {Types::GetQuestionSetResponse#latest_version #latest_version} => String
|
|
1945
|
+
# * {Types::GetQuestionSetResponse#sha256 #sha256} => String
|
|
1946
|
+
# * {Types::GetQuestionSetResponse#references #references} => Array<String>
|
|
1947
|
+
# * {Types::GetQuestionSetResponse#tags #tags} => Hash<String,String>
|
|
1948
|
+
#
|
|
1949
|
+
# @example Request syntax with placeholder values
|
|
1950
|
+
#
|
|
1951
|
+
# resp = client.get_question_set({
|
|
1952
|
+
# id: "QuestionSetId", # required
|
|
1953
|
+
# question_set_version: "QuestionSetVersion",
|
|
1954
|
+
# })
|
|
1955
|
+
#
|
|
1956
|
+
# @example Response structure
|
|
1957
|
+
#
|
|
1958
|
+
# resp.yes_no #=> Array
|
|
1959
|
+
# resp.yes_no[0].name #=> String
|
|
1960
|
+
# resp.yes_no[0].question #=> String
|
|
1961
|
+
# resp.yes_no_per_option #=> Array
|
|
1962
|
+
# resp.yes_no_per_option[0].name #=> String
|
|
1963
|
+
# resp.yes_no_per_option[0].question #=> String
|
|
1964
|
+
# resp.yes_no_per_option[0].options #=> Array
|
|
1965
|
+
# resp.yes_no_per_option[0].options[0].name #=> String
|
|
1966
|
+
# resp.yes_no_per_option[0].options[0].text #=> String
|
|
1967
|
+
# resp.choose_one #=> Array
|
|
1968
|
+
# resp.choose_one[0].name #=> String
|
|
1969
|
+
# resp.choose_one[0].question #=> String
|
|
1970
|
+
# resp.choose_one[0].options #=> Array
|
|
1971
|
+
# resp.choose_one[0].options[0].name #=> String
|
|
1972
|
+
# resp.choose_one[0].options[0].text #=> String
|
|
1973
|
+
# resp.arn #=> String
|
|
1974
|
+
# resp.id #=> String
|
|
1975
|
+
# resp.name #=> String
|
|
1976
|
+
# resp.version #=> String
|
|
1977
|
+
# resp.description #=> String
|
|
1978
|
+
# resp.latest_version #=> String
|
|
1979
|
+
# resp.sha256 #=> String
|
|
1980
|
+
# resp.references #=> Array
|
|
1981
|
+
# resp.references[0] #=> String
|
|
1982
|
+
# resp.tags #=> Hash
|
|
1983
|
+
# resp.tags["TagKey"] #=> String
|
|
1984
|
+
#
|
|
1985
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/GetQuestionSet AWS API Documentation
|
|
1986
|
+
#
|
|
1987
|
+
# @overload get_question_set(params = {})
|
|
1988
|
+
# @param [Hash] params ({})
|
|
1989
|
+
def get_question_set(params = {}, options = {})
|
|
1990
|
+
req = build_request(:get_question_set, params)
|
|
1991
|
+
req.send_request(options)
|
|
1992
|
+
end
|
|
1993
|
+
|
|
1259
1994
|
# Lists the dictionaries in your account.
|
|
1260
1995
|
#
|
|
1261
1996
|
# @option params [Integer] :max_results
|
|
@@ -1355,6 +2090,148 @@ module Aws::ElementalInference
|
|
|
1355
2090
|
req.send_request(options)
|
|
1356
2091
|
end
|
|
1357
2092
|
|
|
2093
|
+
# Lists the functions in this account, in this Region. Each entry is a
|
|
2094
|
+
# summary. To get the expressions of a function, use GetFunction.
|
|
2095
|
+
#
|
|
2096
|
+
# @option params [Integer] :max_results
|
|
2097
|
+
# The maximum number of functions to return in one response. Valid
|
|
2098
|
+
# range: 1 to 100. The default is 100.
|
|
2099
|
+
#
|
|
2100
|
+
# @option params [String] :next_token
|
|
2101
|
+
# The token that identifies the page of results to return. Use the
|
|
2102
|
+
# nextToken value from a previous response.
|
|
2103
|
+
#
|
|
2104
|
+
# @return [Types::ListFunctionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2105
|
+
#
|
|
2106
|
+
# * {Types::ListFunctionsResponse#functions #functions} => Array<Types::FunctionSummary>
|
|
2107
|
+
# * {Types::ListFunctionsResponse#next_token #next_token} => String
|
|
2108
|
+
#
|
|
2109
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
2110
|
+
#
|
|
2111
|
+
# @example Request syntax with placeholder values
|
|
2112
|
+
#
|
|
2113
|
+
# resp = client.list_functions({
|
|
2114
|
+
# max_results: 1,
|
|
2115
|
+
# next_token: "String",
|
|
2116
|
+
# })
|
|
2117
|
+
#
|
|
2118
|
+
# @example Response structure
|
|
2119
|
+
#
|
|
2120
|
+
# resp.functions #=> Array
|
|
2121
|
+
# resp.functions[0].arn #=> String
|
|
2122
|
+
# resp.functions[0].id #=> String
|
|
2123
|
+
# resp.functions[0].name #=> String
|
|
2124
|
+
# resp.functions[0].description #=> String
|
|
2125
|
+
# resp.functions[0].status #=> String, one of "CREATING", "AVAILABLE", "REFERENCED", "DELETING", "DELETED"
|
|
2126
|
+
# resp.functions[0].target.bedrock.api #=> String, one of "INVOKE_MODEL"
|
|
2127
|
+
# resp.functions[0].target.bedrock.model #=> String
|
|
2128
|
+
# resp.functions[0].context_types #=> Array
|
|
2129
|
+
# resp.functions[0].context_types[0] #=> String, one of "FRAMES", "SUBTITLES", "CONTEXTUAL_METADATA", "CLIP_METADATA"
|
|
2130
|
+
# resp.next_token #=> String
|
|
2131
|
+
#
|
|
2132
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/ListFunctions AWS API Documentation
|
|
2133
|
+
#
|
|
2134
|
+
# @overload list_functions(params = {})
|
|
2135
|
+
# @param [Hash] params ({})
|
|
2136
|
+
def list_functions(params = {}, options = {})
|
|
2137
|
+
req = build_request(:list_functions, params)
|
|
2138
|
+
req.send_request(options)
|
|
2139
|
+
end
|
|
2140
|
+
|
|
2141
|
+
# Lists the versions of the specified question set. The list starts with
|
|
2142
|
+
# the DRAFT version, followed by the published versions from the highest
|
|
2143
|
+
# version number to the lowest. The list doesn't include deleted
|
|
2144
|
+
# versions.
|
|
2145
|
+
#
|
|
2146
|
+
# The response doesn't include the questions in each version. To
|
|
2147
|
+
# retrieve them, use GetQuestionSet and specify questionSetVersion.
|
|
2148
|
+
#
|
|
2149
|
+
# @option params [required, String] :id
|
|
2150
|
+
# The ID of the question set whose versions you want to list.
|
|
2151
|
+
#
|
|
2152
|
+
# @option params [Integer] :max_results
|
|
2153
|
+
# The maximum number of results to return per API request. Valid range:
|
|
2154
|
+
# 1 to 100.
|
|
2155
|
+
#
|
|
2156
|
+
# @option params [String] :next_token
|
|
2157
|
+
# The token that identifies the next batch of results to return.
|
|
2158
|
+
#
|
|
2159
|
+
# @return [Types::ListQuestionSetVersionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2160
|
+
#
|
|
2161
|
+
# * {Types::ListQuestionSetVersionsResponse#versions #versions} => Array<Types::QuestionSetVersionSummary>
|
|
2162
|
+
# * {Types::ListQuestionSetVersionsResponse#next_token #next_token} => String
|
|
2163
|
+
#
|
|
2164
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
2165
|
+
#
|
|
2166
|
+
# @example Request syntax with placeholder values
|
|
2167
|
+
#
|
|
2168
|
+
# resp = client.list_question_set_versions({
|
|
2169
|
+
# id: "QuestionSetId", # required
|
|
2170
|
+
# max_results: 1,
|
|
2171
|
+
# next_token: "String",
|
|
2172
|
+
# })
|
|
2173
|
+
#
|
|
2174
|
+
# @example Response structure
|
|
2175
|
+
#
|
|
2176
|
+
# resp.versions #=> Array
|
|
2177
|
+
# resp.versions[0].version #=> String
|
|
2178
|
+
# resp.versions[0].description #=> String
|
|
2179
|
+
# resp.versions[0].sha256 #=> String
|
|
2180
|
+
# resp.versions[0].last_modified_at #=> Time
|
|
2181
|
+
# resp.next_token #=> String
|
|
2182
|
+
#
|
|
2183
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/ListQuestionSetVersions AWS API Documentation
|
|
2184
|
+
#
|
|
2185
|
+
# @overload list_question_set_versions(params = {})
|
|
2186
|
+
# @param [Hash] params ({})
|
|
2187
|
+
def list_question_set_versions(params = {}, options = {})
|
|
2188
|
+
req = build_request(:list_question_set_versions, params)
|
|
2189
|
+
req.send_request(options)
|
|
2190
|
+
end
|
|
2191
|
+
|
|
2192
|
+
# Lists the question sets in your account. The response doesn't include
|
|
2193
|
+
# the questions in each question set. To retrieve them, use
|
|
2194
|
+
# GetQuestionSet.
|
|
2195
|
+
#
|
|
2196
|
+
# @option params [Integer] :max_results
|
|
2197
|
+
# The maximum number of results to return per API request. Valid range:
|
|
2198
|
+
# 1 to 100.
|
|
2199
|
+
#
|
|
2200
|
+
# @option params [String] :next_token
|
|
2201
|
+
# The token that identifies the next batch of results to return.
|
|
2202
|
+
#
|
|
2203
|
+
# @return [Types::ListQuestionSetsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2204
|
+
#
|
|
2205
|
+
# * {Types::ListQuestionSetsResponse#question_sets #question_sets} => Array<Types::QuestionSetSummary>
|
|
2206
|
+
# * {Types::ListQuestionSetsResponse#next_token #next_token} => String
|
|
2207
|
+
#
|
|
2208
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
2209
|
+
#
|
|
2210
|
+
# @example Request syntax with placeholder values
|
|
2211
|
+
#
|
|
2212
|
+
# resp = client.list_question_sets({
|
|
2213
|
+
# max_results: 1,
|
|
2214
|
+
# next_token: "String",
|
|
2215
|
+
# })
|
|
2216
|
+
#
|
|
2217
|
+
# @example Response structure
|
|
2218
|
+
#
|
|
2219
|
+
# resp.question_sets #=> Array
|
|
2220
|
+
# resp.question_sets[0].arn #=> String
|
|
2221
|
+
# resp.question_sets[0].id #=> String
|
|
2222
|
+
# resp.question_sets[0].name #=> String
|
|
2223
|
+
# resp.question_sets[0].latest_version #=> String
|
|
2224
|
+
# resp.next_token #=> String
|
|
2225
|
+
#
|
|
2226
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/ListQuestionSets AWS API Documentation
|
|
2227
|
+
#
|
|
2228
|
+
# @overload list_question_sets(params = {})
|
|
2229
|
+
# @param [Hash] params ({})
|
|
2230
|
+
def list_question_sets(params = {}, options = {})
|
|
2231
|
+
req = build_request(:list_question_sets, params)
|
|
2232
|
+
req.send_request(options)
|
|
2233
|
+
end
|
|
2234
|
+
|
|
1358
2235
|
# Displays a list of the schedule actions on a feed, including the
|
|
1359
2236
|
# status of each action and, for a failed action, information about why
|
|
1360
2237
|
# it failed.
|
|
@@ -1764,6 +2641,49 @@ module Aws::ElementalInference
|
|
|
1764
2641
|
# contextual_metadata: {
|
|
1765
2642
|
# summary_generation: "ENABLED", # accepts ENABLED, DISABLED
|
|
1766
2643
|
# extended_analysis: "ENABLED", # accepts ENABLED, DISABLED
|
|
2644
|
+
# custom_questions: {
|
|
2645
|
+
# shot: {
|
|
2646
|
+
# question_set_id: "QuestionSetId", # required
|
|
2647
|
+
# version: "QuestionSetVersion", # required
|
|
2648
|
+
# },
|
|
2649
|
+
# scene: {
|
|
2650
|
+
# question_set_id: "QuestionSetId", # required
|
|
2651
|
+
# version: "QuestionSetVersion", # required
|
|
2652
|
+
# },
|
|
2653
|
+
# },
|
|
2654
|
+
# },
|
|
2655
|
+
# function: {
|
|
2656
|
+
# function_arn: "FunctionArn", # required
|
|
2657
|
+
# trigger: { # required
|
|
2658
|
+
# fixed_interval: {
|
|
2659
|
+
# interval_seconds: 1, # required
|
|
2660
|
+
# },
|
|
2661
|
+
# per_shot: {
|
|
2662
|
+
# },
|
|
2663
|
+
# per_scene: {
|
|
2664
|
+
# },
|
|
2665
|
+
# per_clip: {
|
|
2666
|
+
# },
|
|
2667
|
+
# },
|
|
2668
|
+
# frame_settings: {
|
|
2669
|
+
# frame_sampling: { # required
|
|
2670
|
+
# mode: "FIRST", # required, accepts FIRST, UNIFORM, LAST
|
|
2671
|
+
# count: 1,
|
|
2672
|
+
# },
|
|
2673
|
+
# frame_size: {
|
|
2674
|
+
# width_pixels: 1, # required
|
|
2675
|
+
# height_pixels: 1, # required
|
|
2676
|
+
# },
|
|
2677
|
+
# },
|
|
2678
|
+
# subtitling_settings: {
|
|
2679
|
+
# output_name: "ResourceName", # required
|
|
2680
|
+
# },
|
|
2681
|
+
# contextual_metadata_settings: {
|
|
2682
|
+
# output_name: "ResourceName", # required
|
|
2683
|
+
# },
|
|
2684
|
+
# clipping_settings: {
|
|
2685
|
+
# output_name: "ResourceName", # required
|
|
2686
|
+
# },
|
|
1767
2687
|
# },
|
|
1768
2688
|
# },
|
|
1769
2689
|
# status: "ENABLED", # required, accepts ENABLED, DISABLED
|
|
@@ -1795,6 +2715,19 @@ module Aws::ElementalInference
|
|
|
1795
2715
|
# resp.outputs[0].output_config.subtitling.profanity_filter #=> String, one of "DISABLED", "CENSOR", "DROP"
|
|
1796
2716
|
# resp.outputs[0].output_config.contextual_metadata.summary_generation #=> String, one of "ENABLED", "DISABLED"
|
|
1797
2717
|
# resp.outputs[0].output_config.contextual_metadata.extended_analysis #=> String, one of "ENABLED", "DISABLED"
|
|
2718
|
+
# resp.outputs[0].output_config.contextual_metadata.custom_questions.shot.question_set_id #=> String
|
|
2719
|
+
# resp.outputs[0].output_config.contextual_metadata.custom_questions.shot.version #=> String
|
|
2720
|
+
# resp.outputs[0].output_config.contextual_metadata.custom_questions.scene.question_set_id #=> String
|
|
2721
|
+
# resp.outputs[0].output_config.contextual_metadata.custom_questions.scene.version #=> String
|
|
2722
|
+
# resp.outputs[0].output_config.function.function_arn #=> String
|
|
2723
|
+
# resp.outputs[0].output_config.function.trigger.fixed_interval.interval_seconds #=> Integer
|
|
2724
|
+
# resp.outputs[0].output_config.function.frame_settings.frame_sampling.mode #=> String, one of "FIRST", "UNIFORM", "LAST"
|
|
2725
|
+
# resp.outputs[0].output_config.function.frame_settings.frame_sampling.count #=> Integer
|
|
2726
|
+
# resp.outputs[0].output_config.function.frame_settings.frame_size.width_pixels #=> Integer
|
|
2727
|
+
# resp.outputs[0].output_config.function.frame_settings.frame_size.height_pixels #=> Integer
|
|
2728
|
+
# resp.outputs[0].output_config.function.subtitling_settings.output_name #=> String
|
|
2729
|
+
# resp.outputs[0].output_config.function.contextual_metadata_settings.output_name #=> String
|
|
2730
|
+
# resp.outputs[0].output_config.function.clipping_settings.output_name #=> String
|
|
1798
2731
|
# resp.outputs[0].status #=> String, one of "ENABLED", "DISABLED"
|
|
1799
2732
|
# resp.outputs[0].description #=> String
|
|
1800
2733
|
# resp.outputs[0].from_association #=> Boolean
|
|
@@ -1813,6 +2746,248 @@ module Aws::ElementalInference
|
|
|
1813
2746
|
req.send_request(options)
|
|
1814
2747
|
end
|
|
1815
2748
|
|
|
2749
|
+
# Updates a function. Include only the parameters that you want to
|
|
2750
|
+
# change; parameters that you don't include aren't affected. Elemental
|
|
2751
|
+
# Inference validates the updated expressions in the same way as
|
|
2752
|
+
# CreateFunction.
|
|
2753
|
+
#
|
|
2754
|
+
# While a feed references the function, you can change only its
|
|
2755
|
+
# expressions and its description, and you can set eventBridgeDelivery
|
|
2756
|
+
# to DISABLED but not to ENABLED. The request expression must keep
|
|
2757
|
+
# referencing the same media context, as reported in contextTypes.
|
|
2758
|
+
# Changing an expression changes the behavior of every feed that
|
|
2759
|
+
# references the function.
|
|
2760
|
+
#
|
|
2761
|
+
# @option params [required, String] :id
|
|
2762
|
+
# The ID of the function.
|
|
2763
|
+
#
|
|
2764
|
+
# @option params [String] :name
|
|
2765
|
+
# A new name for the function. You can't change the name while the
|
|
2766
|
+
# function is referenced by a feed.
|
|
2767
|
+
#
|
|
2768
|
+
# @option params [Types::FunctionTarget] :target
|
|
2769
|
+
# A new target for the function. You can't change the target while the
|
|
2770
|
+
# function is referenced by a feed.
|
|
2771
|
+
#
|
|
2772
|
+
# @option params [String] :request_expression
|
|
2773
|
+
# A new request expression for the function. Elemental Inference derives
|
|
2774
|
+
# contextTypes again from the new expression. While a feed references
|
|
2775
|
+
# the function, the new expression must reference the same media context
|
|
2776
|
+
# as the current one.
|
|
2777
|
+
#
|
|
2778
|
+
# @option params [String] :response_expression
|
|
2779
|
+
# A new response expression for the function. To remove the response
|
|
2780
|
+
# expression, specify an empty string. A function with a Bedrock target
|
|
2781
|
+
# and eventBridgeDelivery set to ENABLED must keep a response
|
|
2782
|
+
# expression.
|
|
2783
|
+
#
|
|
2784
|
+
# @option params [String] :description
|
|
2785
|
+
# A new description for the function.
|
|
2786
|
+
#
|
|
2787
|
+
# @option params [String] :event_bridge_delivery
|
|
2788
|
+
# Specifies whether Elemental Inference also sends this function's
|
|
2789
|
+
# marked results to Amazon EventBridge, as described for CreateFunction.
|
|
2790
|
+
# If you omit this parameter, the current value is kept. While a feed
|
|
2791
|
+
# references the function, you can change this value to DISABLED, but
|
|
2792
|
+
# not to ENABLED.
|
|
2793
|
+
#
|
|
2794
|
+
# @return [Types::UpdateFunctionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2795
|
+
#
|
|
2796
|
+
# * {Types::UpdateFunctionResponse#name #name} => String
|
|
2797
|
+
# * {Types::UpdateFunctionResponse#target #target} => Types::FunctionTarget
|
|
2798
|
+
# * {Types::UpdateFunctionResponse#request_expression #request_expression} => String
|
|
2799
|
+
# * {Types::UpdateFunctionResponse#response_expression #response_expression} => String
|
|
2800
|
+
# * {Types::UpdateFunctionResponse#description #description} => String
|
|
2801
|
+
# * {Types::UpdateFunctionResponse#event_bridge_delivery #event_bridge_delivery} => String
|
|
2802
|
+
# * {Types::UpdateFunctionResponse#arn #arn} => String
|
|
2803
|
+
# * {Types::UpdateFunctionResponse#id #id} => String
|
|
2804
|
+
# * {Types::UpdateFunctionResponse#status #status} => String
|
|
2805
|
+
# * {Types::UpdateFunctionResponse#references #references} => Array<String>
|
|
2806
|
+
# * {Types::UpdateFunctionResponse#context_types #context_types} => Array<String>
|
|
2807
|
+
# * {Types::UpdateFunctionResponse#tags #tags} => Hash<String,String>
|
|
2808
|
+
#
|
|
2809
|
+
# @example Request syntax with placeholder values
|
|
2810
|
+
#
|
|
2811
|
+
# resp = client.update_function({
|
|
2812
|
+
# id: "FunctionId", # required
|
|
2813
|
+
# name: "ResourceName",
|
|
2814
|
+
# target: {
|
|
2815
|
+
# bedrock: {
|
|
2816
|
+
# api: "INVOKE_MODEL", # required, accepts INVOKE_MODEL
|
|
2817
|
+
# model: "BedrockFunctionTargetModelString", # required
|
|
2818
|
+
# },
|
|
2819
|
+
# passthrough: {
|
|
2820
|
+
# },
|
|
2821
|
+
# },
|
|
2822
|
+
# request_expression: "UpdateFunctionRequestRequestExpressionString",
|
|
2823
|
+
# response_expression: "JsonataExpression",
|
|
2824
|
+
# description: "FunctionDescription",
|
|
2825
|
+
# event_bridge_delivery: "ENABLED", # accepts ENABLED, DISABLED
|
|
2826
|
+
# })
|
|
2827
|
+
#
|
|
2828
|
+
# @example Response structure
|
|
2829
|
+
#
|
|
2830
|
+
# resp.name #=> String
|
|
2831
|
+
# resp.target.bedrock.api #=> String, one of "INVOKE_MODEL"
|
|
2832
|
+
# resp.target.bedrock.model #=> String
|
|
2833
|
+
# resp.request_expression #=> String
|
|
2834
|
+
# resp.response_expression #=> String
|
|
2835
|
+
# resp.description #=> String
|
|
2836
|
+
# resp.event_bridge_delivery #=> String, one of "ENABLED", "DISABLED"
|
|
2837
|
+
# resp.arn #=> String
|
|
2838
|
+
# resp.id #=> String
|
|
2839
|
+
# resp.status #=> String, one of "CREATING", "AVAILABLE", "REFERENCED", "DELETING", "DELETED"
|
|
2840
|
+
# resp.references #=> Array
|
|
2841
|
+
# resp.references[0] #=> String
|
|
2842
|
+
# resp.context_types #=> Array
|
|
2843
|
+
# resp.context_types[0] #=> String, one of "FRAMES", "SUBTITLES", "CONTEXTUAL_METADATA", "CLIP_METADATA"
|
|
2844
|
+
# resp.tags #=> Hash
|
|
2845
|
+
# resp.tags["TagKey"] #=> String
|
|
2846
|
+
#
|
|
2847
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/UpdateFunction AWS API Documentation
|
|
2848
|
+
#
|
|
2849
|
+
# @overload update_function(params = {})
|
|
2850
|
+
# @param [Hash] params ({})
|
|
2851
|
+
def update_function(params = {}, options = {})
|
|
2852
|
+
req = build_request(:update_function, params)
|
|
2853
|
+
req.send_request(options)
|
|
2854
|
+
end
|
|
2855
|
+
|
|
2856
|
+
# Updates the DRAFT version of the specified question set.
|
|
2857
|
+
# UpdateQuestionSet doesn't create a version and doesn't change
|
|
2858
|
+
# published versions. To publish the updated DRAFT as a new version, use
|
|
2859
|
+
# CreateQuestionSetVersion.
|
|
2860
|
+
#
|
|
2861
|
+
# UpdateQuestionSet replaces questions one type at a time. For each of
|
|
2862
|
+
# yesNo, yesNoPerOption, and chooseOne: if you omit the array, DRAFT
|
|
2863
|
+
# keeps its questions of that type. If you include the array, it
|
|
2864
|
+
# replaces all the questions of that type in DRAFT. If you include an
|
|
2865
|
+
# empty array, DRAFT no longer has questions of that type. The updated
|
|
2866
|
+
# DRAFT must follow the same rules as in CreateQuestionSet, and
|
|
2867
|
+
# Elemental Inference applies those rules to the questions that DRAFT
|
|
2868
|
+
# keeps as well as to the questions in the request.
|
|
2869
|
+
#
|
|
2870
|
+
# Feeds that reference the DRAFT version use the updated questions. To
|
|
2871
|
+
# make sure that the questions for a feed don't change, reference a
|
|
2872
|
+
# published version instead.
|
|
2873
|
+
#
|
|
2874
|
+
# @option params [required, String] :id
|
|
2875
|
+
# The ID of the question set to update.
|
|
2876
|
+
#
|
|
2877
|
+
# @option params [Array<Types::YesNoQuestion>] :yes_no
|
|
2878
|
+
# An array of questions that Elemental Inference answers with yes or no,
|
|
2879
|
+
# to replace all the yesNo questions in DRAFT. You can specify up to 50
|
|
2880
|
+
# yesNo questions. If not specified, the yesNo questions are not
|
|
2881
|
+
# changed. To remove all the yesNo questions, specify an empty array.
|
|
2882
|
+
#
|
|
2883
|
+
# @option params [Array<Types::YesNoPerOptionQuestion>] :yes_no_per_option
|
|
2884
|
+
# An array of questions that you ask about each of their options, to
|
|
2885
|
+
# replace all the yesNoPerOption questions in DRAFT. You can specify up
|
|
2886
|
+
# to 10 yesNoPerOption questions. If not specified, the yesNoPerOption
|
|
2887
|
+
# questions are not changed. To remove all the yesNoPerOption questions,
|
|
2888
|
+
# specify an empty array.
|
|
2889
|
+
#
|
|
2890
|
+
# @option params [Array<Types::ChooseOneQuestion>] :choose_one
|
|
2891
|
+
# An array of questions that Elemental Inference answers by choosing one
|
|
2892
|
+
# of their options, to replace all the chooseOne questions in DRAFT. You
|
|
2893
|
+
# can specify up to 10 chooseOne questions. If not specified, the
|
|
2894
|
+
# chooseOne questions are not changed. To remove all the chooseOne
|
|
2895
|
+
# questions, specify an empty array.
|
|
2896
|
+
#
|
|
2897
|
+
# @option params [String] :name
|
|
2898
|
+
# A new name for the question set. If not specified, the name is not
|
|
2899
|
+
# changed.
|
|
2900
|
+
#
|
|
2901
|
+
# @return [Types::UpdateQuestionSetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2902
|
+
#
|
|
2903
|
+
# * {Types::UpdateQuestionSetResponse#yes_no #yes_no} => Array<Types::YesNoQuestion>
|
|
2904
|
+
# * {Types::UpdateQuestionSetResponse#yes_no_per_option #yes_no_per_option} => Array<Types::YesNoPerOptionQuestion>
|
|
2905
|
+
# * {Types::UpdateQuestionSetResponse#choose_one #choose_one} => Array<Types::ChooseOneQuestion>
|
|
2906
|
+
# * {Types::UpdateQuestionSetResponse#arn #arn} => String
|
|
2907
|
+
# * {Types::UpdateQuestionSetResponse#id #id} => String
|
|
2908
|
+
# * {Types::UpdateQuestionSetResponse#name #name} => String
|
|
2909
|
+
# * {Types::UpdateQuestionSetResponse#version #version} => String
|
|
2910
|
+
# * {Types::UpdateQuestionSetResponse#description #description} => String
|
|
2911
|
+
# * {Types::UpdateQuestionSetResponse#latest_version #latest_version} => String
|
|
2912
|
+
# * {Types::UpdateQuestionSetResponse#sha256 #sha256} => String
|
|
2913
|
+
# * {Types::UpdateQuestionSetResponse#references #references} => Array<String>
|
|
2914
|
+
# * {Types::UpdateQuestionSetResponse#tags #tags} => Hash<String,String>
|
|
2915
|
+
#
|
|
2916
|
+
# @example Request syntax with placeholder values
|
|
2917
|
+
#
|
|
2918
|
+
# resp = client.update_question_set({
|
|
2919
|
+
# id: "QuestionSetId", # required
|
|
2920
|
+
# yes_no: [
|
|
2921
|
+
# {
|
|
2922
|
+
# name: "QuestionName", # required
|
|
2923
|
+
# question: "QuestionText", # required
|
|
2924
|
+
# },
|
|
2925
|
+
# ],
|
|
2926
|
+
# yes_no_per_option: [
|
|
2927
|
+
# {
|
|
2928
|
+
# name: "QuestionName", # required
|
|
2929
|
+
# question: "QuestionText", # required
|
|
2930
|
+
# options: [ # required
|
|
2931
|
+
# {
|
|
2932
|
+
# name: "OptionName", # required
|
|
2933
|
+
# text: "OptionText", # required
|
|
2934
|
+
# },
|
|
2935
|
+
# ],
|
|
2936
|
+
# },
|
|
2937
|
+
# ],
|
|
2938
|
+
# choose_one: [
|
|
2939
|
+
# {
|
|
2940
|
+
# name: "QuestionName", # required
|
|
2941
|
+
# question: "QuestionText", # required
|
|
2942
|
+
# options: [ # required
|
|
2943
|
+
# {
|
|
2944
|
+
# name: "OptionName", # required
|
|
2945
|
+
# text: "OptionText", # required
|
|
2946
|
+
# },
|
|
2947
|
+
# ],
|
|
2948
|
+
# },
|
|
2949
|
+
# ],
|
|
2950
|
+
# name: "ResourceName",
|
|
2951
|
+
# })
|
|
2952
|
+
#
|
|
2953
|
+
# @example Response structure
|
|
2954
|
+
#
|
|
2955
|
+
# resp.yes_no #=> Array
|
|
2956
|
+
# resp.yes_no[0].name #=> String
|
|
2957
|
+
# resp.yes_no[0].question #=> String
|
|
2958
|
+
# resp.yes_no_per_option #=> Array
|
|
2959
|
+
# resp.yes_no_per_option[0].name #=> String
|
|
2960
|
+
# resp.yes_no_per_option[0].question #=> String
|
|
2961
|
+
# resp.yes_no_per_option[0].options #=> Array
|
|
2962
|
+
# resp.yes_no_per_option[0].options[0].name #=> String
|
|
2963
|
+
# resp.yes_no_per_option[0].options[0].text #=> String
|
|
2964
|
+
# resp.choose_one #=> Array
|
|
2965
|
+
# resp.choose_one[0].name #=> String
|
|
2966
|
+
# resp.choose_one[0].question #=> String
|
|
2967
|
+
# resp.choose_one[0].options #=> Array
|
|
2968
|
+
# resp.choose_one[0].options[0].name #=> String
|
|
2969
|
+
# resp.choose_one[0].options[0].text #=> String
|
|
2970
|
+
# resp.arn #=> String
|
|
2971
|
+
# resp.id #=> String
|
|
2972
|
+
# resp.name #=> String
|
|
2973
|
+
# resp.version #=> String
|
|
2974
|
+
# resp.description #=> String
|
|
2975
|
+
# resp.latest_version #=> String
|
|
2976
|
+
# resp.sha256 #=> String
|
|
2977
|
+
# resp.references #=> Array
|
|
2978
|
+
# resp.references[0] #=> String
|
|
2979
|
+
# resp.tags #=> Hash
|
|
2980
|
+
# resp.tags["TagKey"] #=> String
|
|
2981
|
+
#
|
|
2982
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elementalinference-2018-11-14/UpdateQuestionSet AWS API Documentation
|
|
2983
|
+
#
|
|
2984
|
+
# @overload update_question_set(params = {})
|
|
2985
|
+
# @param [Hash] params ({})
|
|
2986
|
+
def update_question_set(params = {}, options = {})
|
|
2987
|
+
req = build_request(:update_question_set, params)
|
|
2988
|
+
req.send_request(options)
|
|
2989
|
+
end
|
|
2990
|
+
|
|
1816
2991
|
# @!endgroup
|
|
1817
2992
|
|
|
1818
2993
|
# @param params ({})
|
|
@@ -1831,7 +3006,7 @@ module Aws::ElementalInference
|
|
|
1831
3006
|
tracer: tracer
|
|
1832
3007
|
)
|
|
1833
3008
|
context[:gem_name] = 'aws-sdk-elementalinference'
|
|
1834
|
-
context[:gem_version] = '1.
|
|
3009
|
+
context[:gem_version] = '1.26.0'
|
|
1835
3010
|
Seahorse::Client::Request.new(handlers, context)
|
|
1836
3011
|
end
|
|
1837
3012
|
|