aws-sdk-bedrockagent 1.5.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 80b73b4178615eca1840c0377574039840c5368e66123261f10a064926a327bf
4
- data.tar.gz: 73b552c48974c6e281c8b63bc21843b65a284d05203e3e2643599e82e6a634fd
3
+ metadata.gz: bcb2814f409a0dd580ca9fac184a721497956f9dc4f2dc3d42e2a527501f348f
4
+ data.tar.gz: 1c8674b5d0d383286f891e7499d3f8149c8281b90a4c853ae163351112e9c1e0
5
5
  SHA512:
6
- metadata.gz: 61e7c6fe4dafdffbbb21589841574d19daf132a5cb86996c0077e6149e644c60ab4654195a85e1006150fde581ef40cd1b5568c12b575b3b57d46fb7a5edc1cb
7
- data.tar.gz: 33d9520e08888caab081d1055ff95448570813fa3688a949bbe88e2d3599f761d00aba1ed419fb9df7c6705e58278c9d82e18ca742bc72696cd054449b06d490
6
+ metadata.gz: 8668ed7e1e8d33ed7be55f8df2090e4d0bc450216d5862cb46b4f1f3fbb901316c123e2eddccc9235e5175c3d4ccc0465c147bda1082cc3e49306533f0a15fdd
7
+ data.tar.gz: d280ca0c93898e4c5fa82482f65f62d4c3af1820aebc4fd9e3460da3a92dfb65d865fbbc05a3c8a7e129489aee30aeeb663531394b8ee37b7b7c2c835a694192
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.7.0 (2024-04-23)
5
+ ------------------
6
+
7
+ * Feature - Introducing the ability to create multiple data sources per knowledge base, specify S3 buckets as data sources from external accounts, and exposing levers to define the deletion behavior of the underlying vector store data.
8
+
9
+ 1.6.0 (2024-04-22)
10
+ ------------------
11
+
12
+ * Feature - Releasing the support for simplified configuration and return of control
13
+
4
14
  1.5.0 (2024-04-16)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.5.0
1
+ 1.7.0
@@ -681,6 +681,10 @@ module Aws::BedrockAgent
681
681
  # @option params [String] :description
682
682
  # A description of the action group.
683
683
  #
684
+ # @option params [Types::FunctionSchema] :function_schema
685
+ # Contains details about the function schema for the action group or the
686
+ # JSON or YAML-formatted payload defining the schema.
687
+ #
684
688
  # @option params [String] :parent_action_group_signature
685
689
  # To allow your agent to request the user for additional information
686
690
  # when trying to complete a task, set this field to `AMAZON.UserInput`.
@@ -704,6 +708,7 @@ module Aws::BedrockAgent
704
708
  #
705
709
  # resp = client.create_agent_action_group({
706
710
  # action_group_executor: {
711
+ # custom_control: "RETURN_CONTROL", # accepts RETURN_CONTROL
707
712
  # lambda: "LambdaArn",
708
713
  # },
709
714
  # action_group_name: "Name", # required
@@ -719,11 +724,27 @@ module Aws::BedrockAgent
719
724
  # },
720
725
  # client_token: "ClientToken",
721
726
  # description: "Description",
727
+ # function_schema: {
728
+ # functions: [
729
+ # {
730
+ # description: "FunctionDescription",
731
+ # name: "Name", # required
732
+ # parameters: {
733
+ # "Name" => {
734
+ # description: "ParameterDescription",
735
+ # required: false,
736
+ # type: "string", # required, accepts string, number, integer, boolean, array
737
+ # },
738
+ # },
739
+ # },
740
+ # ],
741
+ # },
722
742
  # parent_action_group_signature: "AMAZON.UserInput", # accepts AMAZON.UserInput
723
743
  # })
724
744
  #
725
745
  # @example Response structure
726
746
  #
747
+ # resp.agent_action_group.action_group_executor.custom_control #=> String, one of "RETURN_CONTROL"
727
748
  # resp.agent_action_group.action_group_executor.lambda #=> String
728
749
  # resp.agent_action_group.action_group_id #=> String
729
750
  # resp.agent_action_group.action_group_name #=> String
@@ -736,6 +757,13 @@ module Aws::BedrockAgent
736
757
  # resp.agent_action_group.client_token #=> String
737
758
  # resp.agent_action_group.created_at #=> Time
738
759
  # resp.agent_action_group.description #=> String
760
+ # resp.agent_action_group.function_schema.functions #=> Array
761
+ # resp.agent_action_group.function_schema.functions[0].description #=> String
762
+ # resp.agent_action_group.function_schema.functions[0].name #=> String
763
+ # resp.agent_action_group.function_schema.functions[0].parameters #=> Hash
764
+ # resp.agent_action_group.function_schema.functions[0].parameters["Name"].description #=> String
765
+ # resp.agent_action_group.function_schema.functions[0].parameters["Name"].required #=> Boolean
766
+ # resp.agent_action_group.function_schema.functions[0].parameters["Name"].type #=> String, one of "string", "number", "integer", "boolean", "array"
739
767
  # resp.agent_action_group.parent_action_signature #=> String, one of "AMAZON.UserInput"
740
768
  # resp.agent_action_group.updated_at #=> Time
741
769
  #
@@ -845,6 +873,9 @@ module Aws::BedrockAgent
845
873
  #
846
874
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
847
875
  #
876
+ # @option params [String] :data_deletion_policy
877
+ # The deletion policy for the requested data source
878
+ #
848
879
  # @option params [required, Types::DataSourceConfiguration] :data_source_configuration
849
880
  # Contains metadata about where the data source is stored.
850
881
  #
@@ -872,9 +903,11 @@ module Aws::BedrockAgent
872
903
  #
873
904
  # resp = client.create_data_source({
874
905
  # client_token: "ClientToken",
906
+ # data_deletion_policy: "RETAIN", # accepts RETAIN, DELETE
875
907
  # data_source_configuration: { # required
876
908
  # s3_configuration: {
877
909
  # bucket_arn: "S3BucketArn", # required
910
+ # bucket_owner_account_id: "BucketOwnerAccountId",
878
911
  # inclusion_prefixes: ["S3Prefix"],
879
912
  # },
880
913
  # type: "S3", # required, accepts S3
@@ -899,16 +932,20 @@ module Aws::BedrockAgent
899
932
  # @example Response structure
900
933
  #
901
934
  # resp.data_source.created_at #=> Time
935
+ # resp.data_source.data_deletion_policy #=> String, one of "RETAIN", "DELETE"
902
936
  # resp.data_source.data_source_configuration.s3_configuration.bucket_arn #=> String
937
+ # resp.data_source.data_source_configuration.s3_configuration.bucket_owner_account_id #=> String
903
938
  # resp.data_source.data_source_configuration.s3_configuration.inclusion_prefixes #=> Array
904
939
  # resp.data_source.data_source_configuration.s3_configuration.inclusion_prefixes[0] #=> String
905
940
  # resp.data_source.data_source_configuration.type #=> String, one of "S3"
906
941
  # resp.data_source.data_source_id #=> String
907
942
  # resp.data_source.description #=> String
943
+ # resp.data_source.failure_reasons #=> Array
944
+ # resp.data_source.failure_reasons[0] #=> String
908
945
  # resp.data_source.knowledge_base_id #=> String
909
946
  # resp.data_source.name #=> String
910
947
  # resp.data_source.server_side_encryption_configuration.kms_key_arn #=> String
911
- # resp.data_source.status #=> String, one of "AVAILABLE", "DELETING"
948
+ # resp.data_source.status #=> String, one of "AVAILABLE", "DELETING", "DELETE_UNSUCCESSFUL"
912
949
  # resp.data_source.updated_at #=> Time
913
950
  # resp.data_source.vector_ingestion_configuration.chunking_configuration.chunking_strategy #=> String, one of "FIXED_SIZE", "NONE"
914
951
  # resp.data_source.vector_ingestion_configuration.chunking_configuration.fixed_size_chunking_configuration.max_tokens #=> Integer
@@ -1082,7 +1119,7 @@ module Aws::BedrockAgent
1082
1119
  # resp.knowledge_base.knowledge_base_id #=> String
1083
1120
  # resp.knowledge_base.name #=> String
1084
1121
  # resp.knowledge_base.role_arn #=> String
1085
- # resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED"
1122
+ # resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL"
1086
1123
  # resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.collection_arn #=> String
1087
1124
  # resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.field_mapping.metadata_field #=> String
1088
1125
  # resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.field_mapping.text_field #=> String
@@ -1295,7 +1332,7 @@ module Aws::BedrockAgent
1295
1332
  #
1296
1333
  # resp.data_source_id #=> String
1297
1334
  # resp.knowledge_base_id #=> String
1298
- # resp.status #=> String, one of "AVAILABLE", "DELETING"
1335
+ # resp.status #=> String, one of "AVAILABLE", "DELETING", "DELETE_UNSUCCESSFUL"
1299
1336
  #
1300
1337
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/DeleteDataSource AWS API Documentation
1301
1338
  #
@@ -1331,7 +1368,7 @@ module Aws::BedrockAgent
1331
1368
  # @example Response structure
1332
1369
  #
1333
1370
  # resp.knowledge_base_id #=> String
1334
- # resp.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED"
1371
+ # resp.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL"
1335
1372
  #
1336
1373
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/DeleteKnowledgeBase AWS API Documentation
1337
1374
  #
@@ -1459,6 +1496,7 @@ module Aws::BedrockAgent
1459
1496
  #
1460
1497
  # @example Response structure
1461
1498
  #
1499
+ # resp.agent_action_group.action_group_executor.custom_control #=> String, one of "RETURN_CONTROL"
1462
1500
  # resp.agent_action_group.action_group_executor.lambda #=> String
1463
1501
  # resp.agent_action_group.action_group_id #=> String
1464
1502
  # resp.agent_action_group.action_group_name #=> String
@@ -1471,6 +1509,13 @@ module Aws::BedrockAgent
1471
1509
  # resp.agent_action_group.client_token #=> String
1472
1510
  # resp.agent_action_group.created_at #=> Time
1473
1511
  # resp.agent_action_group.description #=> String
1512
+ # resp.agent_action_group.function_schema.functions #=> Array
1513
+ # resp.agent_action_group.function_schema.functions[0].description #=> String
1514
+ # resp.agent_action_group.function_schema.functions[0].name #=> String
1515
+ # resp.agent_action_group.function_schema.functions[0].parameters #=> Hash
1516
+ # resp.agent_action_group.function_schema.functions[0].parameters["Name"].description #=> String
1517
+ # resp.agent_action_group.function_schema.functions[0].parameters["Name"].required #=> Boolean
1518
+ # resp.agent_action_group.function_schema.functions[0].parameters["Name"].type #=> String, one of "string", "number", "integer", "boolean", "array"
1474
1519
  # resp.agent_action_group.parent_action_signature #=> String, one of "AMAZON.UserInput"
1475
1520
  # resp.agent_action_group.updated_at #=> Time
1476
1521
  #
@@ -1658,16 +1703,20 @@ module Aws::BedrockAgent
1658
1703
  # @example Response structure
1659
1704
  #
1660
1705
  # resp.data_source.created_at #=> Time
1706
+ # resp.data_source.data_deletion_policy #=> String, one of "RETAIN", "DELETE"
1661
1707
  # resp.data_source.data_source_configuration.s3_configuration.bucket_arn #=> String
1708
+ # resp.data_source.data_source_configuration.s3_configuration.bucket_owner_account_id #=> String
1662
1709
  # resp.data_source.data_source_configuration.s3_configuration.inclusion_prefixes #=> Array
1663
1710
  # resp.data_source.data_source_configuration.s3_configuration.inclusion_prefixes[0] #=> String
1664
1711
  # resp.data_source.data_source_configuration.type #=> String, one of "S3"
1665
1712
  # resp.data_source.data_source_id #=> String
1666
1713
  # resp.data_source.description #=> String
1714
+ # resp.data_source.failure_reasons #=> Array
1715
+ # resp.data_source.failure_reasons[0] #=> String
1667
1716
  # resp.data_source.knowledge_base_id #=> String
1668
1717
  # resp.data_source.name #=> String
1669
1718
  # resp.data_source.server_side_encryption_configuration.kms_key_arn #=> String
1670
- # resp.data_source.status #=> String, one of "AVAILABLE", "DELETING"
1719
+ # resp.data_source.status #=> String, one of "AVAILABLE", "DELETING", "DELETE_UNSUCCESSFUL"
1671
1720
  # resp.data_source.updated_at #=> Time
1672
1721
  # resp.data_source.vector_ingestion_configuration.chunking_configuration.chunking_strategy #=> String, one of "FIXED_SIZE", "NONE"
1673
1722
  # resp.data_source.vector_ingestion_configuration.chunking_configuration.fixed_size_chunking_configuration.max_tokens #=> Integer
@@ -1763,7 +1812,7 @@ module Aws::BedrockAgent
1763
1812
  # resp.knowledge_base.knowledge_base_id #=> String
1764
1813
  # resp.knowledge_base.name #=> String
1765
1814
  # resp.knowledge_base.role_arn #=> String
1766
- # resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED"
1815
+ # resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL"
1767
1816
  # resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.collection_arn #=> String
1768
1817
  # resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.field_mapping.metadata_field #=> String
1769
1818
  # resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.field_mapping.text_field #=> String
@@ -2108,7 +2157,7 @@ module Aws::BedrockAgent
2108
2157
  # resp.data_source_summaries[0].description #=> String
2109
2158
  # resp.data_source_summaries[0].knowledge_base_id #=> String
2110
2159
  # resp.data_source_summaries[0].name #=> String
2111
- # resp.data_source_summaries[0].status #=> String, one of "AVAILABLE", "DELETING"
2160
+ # resp.data_source_summaries[0].status #=> String, one of "AVAILABLE", "DELETING", "DELETE_UNSUCCESSFUL"
2112
2161
  # resp.data_source_summaries[0].updated_at #=> Time
2113
2162
  # resp.next_token #=> String
2114
2163
  #
@@ -2240,7 +2289,7 @@ module Aws::BedrockAgent
2240
2289
  # resp.knowledge_base_summaries[0].description #=> String
2241
2290
  # resp.knowledge_base_summaries[0].knowledge_base_id #=> String
2242
2291
  # resp.knowledge_base_summaries[0].name #=> String
2243
- # resp.knowledge_base_summaries[0].status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED"
2292
+ # resp.knowledge_base_summaries[0].status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL"
2244
2293
  # resp.knowledge_base_summaries[0].updated_at #=> Time
2245
2294
  # resp.next_token #=> String
2246
2295
  #
@@ -2610,6 +2659,10 @@ module Aws::BedrockAgent
2610
2659
  # @option params [String] :description
2611
2660
  # Specifies a new name for the action group.
2612
2661
  #
2662
+ # @option params [Types::FunctionSchema] :function_schema
2663
+ # Contains details about the function schema for the action group or the
2664
+ # JSON or YAML-formatted payload defining the schema.
2665
+ #
2613
2666
  # @option params [String] :parent_action_group_signature
2614
2667
  # To allow your agent to request the user for additional information
2615
2668
  # when trying to complete a task, set this field to `AMAZON.UserInput`.
@@ -2633,6 +2686,7 @@ module Aws::BedrockAgent
2633
2686
  #
2634
2687
  # resp = client.update_agent_action_group({
2635
2688
  # action_group_executor: {
2689
+ # custom_control: "RETURN_CONTROL", # accepts RETURN_CONTROL
2636
2690
  # lambda: "LambdaArn",
2637
2691
  # },
2638
2692
  # action_group_id: "Id", # required
@@ -2648,11 +2702,27 @@ module Aws::BedrockAgent
2648
2702
  # },
2649
2703
  # },
2650
2704
  # description: "Description",
2705
+ # function_schema: {
2706
+ # functions: [
2707
+ # {
2708
+ # description: "FunctionDescription",
2709
+ # name: "Name", # required
2710
+ # parameters: {
2711
+ # "Name" => {
2712
+ # description: "ParameterDescription",
2713
+ # required: false,
2714
+ # type: "string", # required, accepts string, number, integer, boolean, array
2715
+ # },
2716
+ # },
2717
+ # },
2718
+ # ],
2719
+ # },
2651
2720
  # parent_action_group_signature: "AMAZON.UserInput", # accepts AMAZON.UserInput
2652
2721
  # })
2653
2722
  #
2654
2723
  # @example Response structure
2655
2724
  #
2725
+ # resp.agent_action_group.action_group_executor.custom_control #=> String, one of "RETURN_CONTROL"
2656
2726
  # resp.agent_action_group.action_group_executor.lambda #=> String
2657
2727
  # resp.agent_action_group.action_group_id #=> String
2658
2728
  # resp.agent_action_group.action_group_name #=> String
@@ -2665,6 +2735,13 @@ module Aws::BedrockAgent
2665
2735
  # resp.agent_action_group.client_token #=> String
2666
2736
  # resp.agent_action_group.created_at #=> Time
2667
2737
  # resp.agent_action_group.description #=> String
2738
+ # resp.agent_action_group.function_schema.functions #=> Array
2739
+ # resp.agent_action_group.function_schema.functions[0].description #=> String
2740
+ # resp.agent_action_group.function_schema.functions[0].name #=> String
2741
+ # resp.agent_action_group.function_schema.functions[0].parameters #=> Hash
2742
+ # resp.agent_action_group.function_schema.functions[0].parameters["Name"].description #=> String
2743
+ # resp.agent_action_group.function_schema.functions[0].parameters["Name"].required #=> Boolean
2744
+ # resp.agent_action_group.function_schema.functions[0].parameters["Name"].type #=> String, one of "string", "number", "integer", "boolean", "array"
2668
2745
  # resp.agent_action_group.parent_action_signature #=> String, one of "AMAZON.UserInput"
2669
2746
  # resp.agent_action_group.updated_at #=> Time
2670
2747
  #
@@ -2805,6 +2882,9 @@ module Aws::BedrockAgent
2805
2882
  # You can't change the `chunkingConfiguration` after you create the
2806
2883
  # data source. Specify the existing `chunkingConfiguration`.
2807
2884
  #
2885
+ # @option params [String] :data_deletion_policy
2886
+ # The data deletion policy of the updated data source.
2887
+ #
2808
2888
  # @option params [required, Types::DataSourceConfiguration] :data_source_configuration
2809
2889
  # Contains details about the storage configuration of the data source.
2810
2890
  #
@@ -2834,9 +2914,11 @@ module Aws::BedrockAgent
2834
2914
  # @example Request syntax with placeholder values
2835
2915
  #
2836
2916
  # resp = client.update_data_source({
2917
+ # data_deletion_policy: "RETAIN", # accepts RETAIN, DELETE
2837
2918
  # data_source_configuration: { # required
2838
2919
  # s3_configuration: {
2839
2920
  # bucket_arn: "S3BucketArn", # required
2921
+ # bucket_owner_account_id: "BucketOwnerAccountId",
2840
2922
  # inclusion_prefixes: ["S3Prefix"],
2841
2923
  # },
2842
2924
  # type: "S3", # required, accepts S3
@@ -2862,16 +2944,20 @@ module Aws::BedrockAgent
2862
2944
  # @example Response structure
2863
2945
  #
2864
2946
  # resp.data_source.created_at #=> Time
2947
+ # resp.data_source.data_deletion_policy #=> String, one of "RETAIN", "DELETE"
2865
2948
  # resp.data_source.data_source_configuration.s3_configuration.bucket_arn #=> String
2949
+ # resp.data_source.data_source_configuration.s3_configuration.bucket_owner_account_id #=> String
2866
2950
  # resp.data_source.data_source_configuration.s3_configuration.inclusion_prefixes #=> Array
2867
2951
  # resp.data_source.data_source_configuration.s3_configuration.inclusion_prefixes[0] #=> String
2868
2952
  # resp.data_source.data_source_configuration.type #=> String, one of "S3"
2869
2953
  # resp.data_source.data_source_id #=> String
2870
2954
  # resp.data_source.description #=> String
2955
+ # resp.data_source.failure_reasons #=> Array
2956
+ # resp.data_source.failure_reasons[0] #=> String
2871
2957
  # resp.data_source.knowledge_base_id #=> String
2872
2958
  # resp.data_source.name #=> String
2873
2959
  # resp.data_source.server_side_encryption_configuration.kms_key_arn #=> String
2874
- # resp.data_source.status #=> String, one of "AVAILABLE", "DELETING"
2960
+ # resp.data_source.status #=> String, one of "AVAILABLE", "DELETING", "DELETE_UNSUCCESSFUL"
2875
2961
  # resp.data_source.updated_at #=> Time
2876
2962
  # resp.data_source.vector_ingestion_configuration.chunking_configuration.chunking_strategy #=> String, one of "FIXED_SIZE", "NONE"
2877
2963
  # resp.data_source.vector_ingestion_configuration.chunking_configuration.fixed_size_chunking_configuration.max_tokens #=> Integer
@@ -3004,7 +3090,7 @@ module Aws::BedrockAgent
3004
3090
  # resp.knowledge_base.knowledge_base_id #=> String
3005
3091
  # resp.knowledge_base.name #=> String
3006
3092
  # resp.knowledge_base.role_arn #=> String
3007
- # resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED"
3093
+ # resp.knowledge_base.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "FAILED", "DELETE_UNSUCCESSFUL"
3008
3094
  # resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.collection_arn #=> String
3009
3095
  # resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.field_mapping.metadata_field #=> String
3010
3096
  # resp.knowledge_base.storage_configuration.opensearch_serverless_configuration.field_mapping.text_field #=> String
@@ -3054,7 +3140,7 @@ module Aws::BedrockAgent
3054
3140
  params: params,
3055
3141
  config: config)
3056
3142
  context[:gem_name] = 'aws-sdk-bedrockagent'
3057
- context[:gem_version] = '1.5.0'
3143
+ context[:gem_version] = '1.7.0'
3058
3144
  Seahorse::Client::Request.new(handlers, context)
3059
3145
  end
3060
3146
 
@@ -48,6 +48,7 @@ module Aws::BedrockAgent
48
48
  BasePromptTemplate = Shapes::StringShape.new(name: 'BasePromptTemplate')
49
49
  BedrockEmbeddingModelArn = Shapes::StringShape.new(name: 'BedrockEmbeddingModelArn')
50
50
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
51
+ BucketOwnerAccountId = Shapes::StringShape.new(name: 'BucketOwnerAccountId')
51
52
  ChunkingConfiguration = Shapes::StructureShape.new(name: 'ChunkingConfiguration')
52
53
  ChunkingStrategy = Shapes::StringShape.new(name: 'ChunkingStrategy')
53
54
  ClientToken = Shapes::StringShape.new(name: 'ClientToken')
@@ -64,6 +65,8 @@ module Aws::BedrockAgent
64
65
  CreateKnowledgeBaseRequest = Shapes::StructureShape.new(name: 'CreateKnowledgeBaseRequest')
65
66
  CreateKnowledgeBaseResponse = Shapes::StructureShape.new(name: 'CreateKnowledgeBaseResponse')
66
67
  CreationMode = Shapes::StringShape.new(name: 'CreationMode')
68
+ CustomControlMethod = Shapes::StringShape.new(name: 'CustomControlMethod')
69
+ DataDeletionPolicy = Shapes::StringShape.new(name: 'DataDeletionPolicy')
67
70
  DataSource = Shapes::StructureShape.new(name: 'DataSource')
68
71
  DataSourceConfiguration = Shapes::StructureShape.new(name: 'DataSourceConfiguration')
69
72
  DataSourceStatus = Shapes::StringShape.new(name: 'DataSourceStatus')
@@ -93,6 +96,10 @@ module Aws::BedrockAgent
93
96
  FixedSizeChunkingConfiguration = Shapes::StructureShape.new(name: 'FixedSizeChunkingConfiguration')
94
97
  FixedSizeChunkingConfigurationMaxTokensInteger = Shapes::IntegerShape.new(name: 'FixedSizeChunkingConfigurationMaxTokensInteger')
95
98
  FixedSizeChunkingConfigurationOverlapPercentageInteger = Shapes::IntegerShape.new(name: 'FixedSizeChunkingConfigurationOverlapPercentageInteger')
99
+ Function = Shapes::StructureShape.new(name: 'Function')
100
+ FunctionDescription = Shapes::StringShape.new(name: 'FunctionDescription')
101
+ FunctionSchema = Shapes::UnionShape.new(name: 'FunctionSchema')
102
+ Functions = Shapes::ListShape.new(name: 'Functions')
96
103
  GetAgentActionGroupRequest = Shapes::StructureShape.new(name: 'GetAgentActionGroupRequest')
97
104
  GetAgentActionGroupResponse = Shapes::StructureShape.new(name: 'GetAgentActionGroupResponse')
98
105
  GetAgentAliasRequest = Shapes::StructureShape.new(name: 'GetAgentAliasRequest')
@@ -167,6 +174,9 @@ module Aws::BedrockAgent
167
174
  OpenSearchServerlessConfiguration = Shapes::StructureShape.new(name: 'OpenSearchServerlessConfiguration')
168
175
  OpenSearchServerlessFieldMapping = Shapes::StructureShape.new(name: 'OpenSearchServerlessFieldMapping')
169
176
  OpenSearchServerlessIndexName = Shapes::StringShape.new(name: 'OpenSearchServerlessIndexName')
177
+ ParameterDescription = Shapes::StringShape.new(name: 'ParameterDescription')
178
+ ParameterDetail = Shapes::StructureShape.new(name: 'ParameterDetail')
179
+ ParameterMap = Shapes::MapShape.new(name: 'ParameterMap')
170
180
  Payload = Shapes::StringShape.new(name: 'Payload')
171
181
  PineconeConfiguration = Shapes::StructureShape.new(name: 'PineconeConfiguration')
172
182
  PineconeConnectionString = Shapes::StringShape.new(name: 'PineconeConnectionString')
@@ -220,6 +230,7 @@ module Aws::BedrockAgent
220
230
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
221
231
  TopK = Shapes::IntegerShape.new(name: 'TopK')
222
232
  TopP = Shapes::FloatShape.new(name: 'TopP')
233
+ Type = Shapes::StringShape.new(name: 'Type')
223
234
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
224
235
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
225
236
  UpdateAgentActionGroupRequest = Shapes::StructureShape.new(name: 'UpdateAgentActionGroupRequest')
@@ -252,8 +263,10 @@ module Aws::BedrockAgent
252
263
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
253
264
  AccessDeniedException.struct_class = Types::AccessDeniedException
254
265
 
266
+ ActionGroupExecutor.add_member(:custom_control, Shapes::ShapeRef.new(shape: CustomControlMethod, location_name: "customControl"))
255
267
  ActionGroupExecutor.add_member(:lambda, Shapes::ShapeRef.new(shape: LambdaArn, location_name: "lambda"))
256
268
  ActionGroupExecutor.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
269
+ ActionGroupExecutor.add_member_subclass(:custom_control, Types::ActionGroupExecutor::CustomControl)
257
270
  ActionGroupExecutor.add_member_subclass(:lambda, Types::ActionGroupExecutor::Lambda)
258
271
  ActionGroupExecutor.add_member_subclass(:unknown, Types::ActionGroupExecutor::Unknown)
259
272
  ActionGroupExecutor.struct_class = Types::ActionGroupExecutor
@@ -297,6 +310,7 @@ module Aws::BedrockAgent
297
310
  AgentActionGroup.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken"))
298
311
  AgentActionGroup.add_member(:created_at, Shapes::ShapeRef.new(shape: DateTimestamp, required: true, location_name: "createdAt"))
299
312
  AgentActionGroup.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
313
+ AgentActionGroup.add_member(:function_schema, Shapes::ShapeRef.new(shape: FunctionSchema, location_name: "functionSchema"))
300
314
  AgentActionGroup.add_member(:parent_action_signature, Shapes::ShapeRef.new(shape: ActionGroupSignature, location_name: "parentActionSignature"))
301
315
  AgentActionGroup.add_member(:updated_at, Shapes::ShapeRef.new(shape: DateTimestamp, required: true, location_name: "updatedAt"))
302
316
  AgentActionGroup.struct_class = Types::AgentActionGroup
@@ -417,6 +431,7 @@ module Aws::BedrockAgent
417
431
  CreateAgentActionGroupRequest.add_member(:api_schema, Shapes::ShapeRef.new(shape: APISchema, location_name: "apiSchema"))
418
432
  CreateAgentActionGroupRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
419
433
  CreateAgentActionGroupRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
434
+ CreateAgentActionGroupRequest.add_member(:function_schema, Shapes::ShapeRef.new(shape: FunctionSchema, location_name: "functionSchema"))
420
435
  CreateAgentActionGroupRequest.add_member(:parent_action_group_signature, Shapes::ShapeRef.new(shape: ActionGroupSignature, location_name: "parentActionGroupSignature"))
421
436
  CreateAgentActionGroupRequest.struct_class = Types::CreateAgentActionGroupRequest
422
437
 
@@ -450,6 +465,7 @@ module Aws::BedrockAgent
450
465
  CreateAgentResponse.struct_class = Types::CreateAgentResponse
451
466
 
452
467
  CreateDataSourceRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
468
+ CreateDataSourceRequest.add_member(:data_deletion_policy, Shapes::ShapeRef.new(shape: DataDeletionPolicy, location_name: "dataDeletionPolicy"))
453
469
  CreateDataSourceRequest.add_member(:data_source_configuration, Shapes::ShapeRef.new(shape: DataSourceConfiguration, required: true, location_name: "dataSourceConfiguration"))
454
470
  CreateDataSourceRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
455
471
  CreateDataSourceRequest.add_member(:knowledge_base_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "knowledgeBaseId"))
@@ -474,9 +490,11 @@ module Aws::BedrockAgent
474
490
  CreateKnowledgeBaseResponse.struct_class = Types::CreateKnowledgeBaseResponse
475
491
 
476
492
  DataSource.add_member(:created_at, Shapes::ShapeRef.new(shape: DateTimestamp, required: true, location_name: "createdAt"))
493
+ DataSource.add_member(:data_deletion_policy, Shapes::ShapeRef.new(shape: DataDeletionPolicy, location_name: "dataDeletionPolicy"))
477
494
  DataSource.add_member(:data_source_configuration, Shapes::ShapeRef.new(shape: DataSourceConfiguration, required: true, location_name: "dataSourceConfiguration"))
478
495
  DataSource.add_member(:data_source_id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "dataSourceId"))
479
496
  DataSource.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
497
+ DataSource.add_member(:failure_reasons, Shapes::ShapeRef.new(shape: FailureReasons, location_name: "failureReasons"))
480
498
  DataSource.add_member(:knowledge_base_id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "knowledgeBaseId"))
481
499
  DataSource.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "name"))
482
500
  DataSource.add_member(:server_side_encryption_configuration, Shapes::ShapeRef.new(shape: ServerSideEncryptionConfiguration, location_name: "serverSideEncryptionConfiguration"))
@@ -563,6 +581,19 @@ module Aws::BedrockAgent
563
581
  FixedSizeChunkingConfiguration.add_member(:overlap_percentage, Shapes::ShapeRef.new(shape: FixedSizeChunkingConfigurationOverlapPercentageInteger, required: true, location_name: "overlapPercentage"))
564
582
  FixedSizeChunkingConfiguration.struct_class = Types::FixedSizeChunkingConfiguration
565
583
 
584
+ Function.add_member(:description, Shapes::ShapeRef.new(shape: FunctionDescription, location_name: "description"))
585
+ Function.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "name"))
586
+ Function.add_member(:parameters, Shapes::ShapeRef.new(shape: ParameterMap, location_name: "parameters"))
587
+ Function.struct_class = Types::Function
588
+
589
+ FunctionSchema.add_member(:functions, Shapes::ShapeRef.new(shape: Functions, location_name: "functions"))
590
+ FunctionSchema.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
591
+ FunctionSchema.add_member_subclass(:functions, Types::FunctionSchema::Functions)
592
+ FunctionSchema.add_member_subclass(:unknown, Types::FunctionSchema::Unknown)
593
+ FunctionSchema.struct_class = Types::FunctionSchema
594
+
595
+ Functions.member = Shapes::ShapeRef.new(shape: Function)
596
+
566
597
  GetAgentActionGroupRequest.add_member(:action_group_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "actionGroupId"))
567
598
  GetAgentActionGroupRequest.add_member(:agent_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "agentId"))
568
599
  GetAgentActionGroupRequest.add_member(:agent_version, Shapes::ShapeRef.new(shape: Version, required: true, location: "uri", location_name: "agentVersion"))
@@ -792,6 +823,14 @@ module Aws::BedrockAgent
792
823
  OpenSearchServerlessFieldMapping.add_member(:vector_field, Shapes::ShapeRef.new(shape: FieldName, required: true, location_name: "vectorField"))
793
824
  OpenSearchServerlessFieldMapping.struct_class = Types::OpenSearchServerlessFieldMapping
794
825
 
826
+ ParameterDetail.add_member(:description, Shapes::ShapeRef.new(shape: ParameterDescription, location_name: "description"))
827
+ ParameterDetail.add_member(:required, Shapes::ShapeRef.new(shape: Boolean, location_name: "required"))
828
+ ParameterDetail.add_member(:type, Shapes::ShapeRef.new(shape: Type, required: true, location_name: "type"))
829
+ ParameterDetail.struct_class = Types::ParameterDetail
830
+
831
+ ParameterMap.key = Shapes::ShapeRef.new(shape: Name)
832
+ ParameterMap.value = Shapes::ShapeRef.new(shape: ParameterDetail)
833
+
795
834
  PineconeConfiguration.add_member(:connection_string, Shapes::ShapeRef.new(shape: PineconeConnectionString, required: true, location_name: "connectionString"))
796
835
  PineconeConfiguration.add_member(:credentials_secret_arn, Shapes::ShapeRef.new(shape: SecretArn, required: true, location_name: "credentialsSecretArn"))
797
836
  PineconeConfiguration.add_member(:field_mapping, Shapes::ShapeRef.new(shape: PineconeFieldMapping, required: true, location_name: "fieldMapping"))
@@ -855,6 +894,7 @@ module Aws::BedrockAgent
855
894
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
856
895
 
857
896
  S3DataSourceConfiguration.add_member(:bucket_arn, Shapes::ShapeRef.new(shape: S3BucketArn, required: true, location_name: "bucketArn"))
897
+ S3DataSourceConfiguration.add_member(:bucket_owner_account_id, Shapes::ShapeRef.new(shape: BucketOwnerAccountId, location_name: "bucketOwnerAccountId"))
858
898
  S3DataSourceConfiguration.add_member(:inclusion_prefixes, Shapes::ShapeRef.new(shape: S3Prefixes, location_name: "inclusionPrefixes"))
859
899
  S3DataSourceConfiguration.struct_class = Types::S3DataSourceConfiguration
860
900
 
@@ -916,6 +956,7 @@ module Aws::BedrockAgent
916
956
  UpdateAgentActionGroupRequest.add_member(:agent_version, Shapes::ShapeRef.new(shape: DraftVersion, required: true, location: "uri", location_name: "agentVersion"))
917
957
  UpdateAgentActionGroupRequest.add_member(:api_schema, Shapes::ShapeRef.new(shape: APISchema, location_name: "apiSchema"))
918
958
  UpdateAgentActionGroupRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
959
+ UpdateAgentActionGroupRequest.add_member(:function_schema, Shapes::ShapeRef.new(shape: FunctionSchema, location_name: "functionSchema"))
919
960
  UpdateAgentActionGroupRequest.add_member(:parent_action_group_signature, Shapes::ShapeRef.new(shape: ActionGroupSignature, location_name: "parentActionGroupSignature"))
920
961
  UpdateAgentActionGroupRequest.struct_class = Types::UpdateAgentActionGroupRequest
921
962
 
@@ -956,6 +997,7 @@ module Aws::BedrockAgent
956
997
  UpdateAgentResponse.add_member(:agent, Shapes::ShapeRef.new(shape: Agent, required: true, location_name: "agent"))
957
998
  UpdateAgentResponse.struct_class = Types::UpdateAgentResponse
958
999
 
1000
+ UpdateDataSourceRequest.add_member(:data_deletion_policy, Shapes::ShapeRef.new(shape: DataDeletionPolicy, location_name: "dataDeletionPolicy"))
959
1001
  UpdateDataSourceRequest.add_member(:data_source_configuration, Shapes::ShapeRef.new(shape: DataSourceConfiguration, required: true, location_name: "dataSourceConfiguration"))
960
1002
  UpdateDataSourceRequest.add_member(:data_source_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "dataSourceId"))
961
1003
  UpdateDataSourceRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
@@ -79,6 +79,11 @@ module Aws::BedrockAgent
79
79
  #
80
80
  # @note ActionGroupExecutor is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of ActionGroupExecutor corresponding to the set member.
81
81
  #
82
+ # @!attribute [rw] custom_control
83
+ # To return the action group invocation results directly in the
84
+ # `InvokeAgent` response, specify `RETURN_CONTROL`.
85
+ # @return [String]
86
+ #
82
87
  # @!attribute [rw] lambda
83
88
  # The Amazon Resource Name (ARN) of the Lambda function containing the
84
89
  # business logic that is carried out upon invoking the action.
@@ -87,12 +92,14 @@ module Aws::BedrockAgent
87
92
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/ActionGroupExecutor AWS API Documentation
88
93
  #
89
94
  class ActionGroupExecutor < Struct.new(
95
+ :custom_control,
90
96
  :lambda,
91
97
  :unknown)
92
98
  SENSITIVE = []
93
99
  include Aws::Structure
94
100
  include Aws::Structure::Union
95
101
 
102
+ class CustomControl < ActionGroupExecutor; end
96
103
  class Lambda < ActionGroupExecutor; end
97
104
  class Unknown < ActionGroupExecutor; end
98
105
  end
@@ -335,6 +342,12 @@ module Aws::BedrockAgent
335
342
  # The description of the action group.
336
343
  # @return [String]
337
344
  #
345
+ # @!attribute [rw] function_schema
346
+ # Defines functions that each define parameters that the agent needs
347
+ # to invoke from the user. Each function represents an action in an
348
+ # action group.
349
+ # @return [Types::FunctionSchema]
350
+ #
338
351
  # @!attribute [rw] parent_action_signature
339
352
  # If this field is set as `AMAZON.UserInput`, the agent can request
340
353
  # the user for additional information when trying to complete a task.
@@ -369,6 +382,7 @@ module Aws::BedrockAgent
369
382
  :client_token,
370
383
  :created_at,
371
384
  :description,
385
+ :function_schema,
372
386
  :parent_action_signature,
373
387
  :updated_at)
374
388
  SENSITIVE = []
@@ -975,6 +989,11 @@ module Aws::BedrockAgent
975
989
  # A description of the action group.
976
990
  # @return [String]
977
991
  #
992
+ # @!attribute [rw] function_schema
993
+ # Contains details about the function schema for the action group or
994
+ # the JSON or YAML-formatted payload defining the schema.
995
+ # @return [Types::FunctionSchema]
996
+ #
978
997
  # @!attribute [rw] parent_action_group_signature
979
998
  # To allow your agent to request the user for additional information
980
999
  # when trying to complete a task, set this field to
@@ -1003,6 +1022,7 @@ module Aws::BedrockAgent
1003
1022
  :api_schema,
1004
1023
  :client_token,
1005
1024
  :description,
1025
+ :function_schema,
1006
1026
  :parent_action_group_signature)
1007
1027
  SENSITIVE = []
1008
1028
  include Aws::Structure
@@ -1186,6 +1206,10 @@ module Aws::BedrockAgent
1186
1206
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
1187
1207
  # @return [String]
1188
1208
  #
1209
+ # @!attribute [rw] data_deletion_policy
1210
+ # The deletion policy for the requested data source
1211
+ # @return [String]
1212
+ #
1189
1213
  # @!attribute [rw] data_source_configuration
1190
1214
  # Contains metadata about where the data source is stored.
1191
1215
  # @return [Types::DataSourceConfiguration]
@@ -1217,6 +1241,7 @@ module Aws::BedrockAgent
1217
1241
  #
1218
1242
  class CreateDataSourceRequest < Struct.new(
1219
1243
  :client_token,
1244
+ :data_deletion_policy,
1220
1245
  :data_source_configuration,
1221
1246
  :description,
1222
1247
  :knowledge_base_id,
@@ -1313,6 +1338,10 @@ module Aws::BedrockAgent
1313
1338
  # The time at which the data source was created.
1314
1339
  # @return [Time]
1315
1340
  #
1341
+ # @!attribute [rw] data_deletion_policy
1342
+ # The deletion policy for the data source.
1343
+ # @return [String]
1344
+ #
1316
1345
  # @!attribute [rw] data_source_configuration
1317
1346
  # Contains details about how the data source is stored.
1318
1347
  # @return [Types::DataSourceConfiguration]
@@ -1325,6 +1354,10 @@ module Aws::BedrockAgent
1325
1354
  # The description of the data source.
1326
1355
  # @return [String]
1327
1356
  #
1357
+ # @!attribute [rw] failure_reasons
1358
+ # The details of the failure reasons related to the data source.
1359
+ # @return [Array<String>]
1360
+ #
1328
1361
  # @!attribute [rw] knowledge_base_id
1329
1362
  # The unique identifier of the knowledge base to which the data source
1330
1363
  # belongs.
@@ -1361,9 +1394,11 @@ module Aws::BedrockAgent
1361
1394
  #
1362
1395
  class DataSource < Struct.new(
1363
1396
  :created_at,
1397
+ :data_deletion_policy,
1364
1398
  :data_source_configuration,
1365
1399
  :data_source_id,
1366
1400
  :description,
1401
+ :failure_reasons,
1367
1402
  :knowledge_base_id,
1368
1403
  :name,
1369
1404
  :server_side_encryption_configuration,
@@ -1707,6 +1742,97 @@ module Aws::BedrockAgent
1707
1742
  include Aws::Structure
1708
1743
  end
1709
1744
 
1745
+ # Defines parameters that the agent needs to invoke from the user to
1746
+ # complete the function. Corresponds to an action in an action group.
1747
+ #
1748
+ # This data type is used in the following API operations:
1749
+ #
1750
+ # * [CreateAgentActionGroup request][1]
1751
+ #
1752
+ # * [CreateAgentActionGroup response][2]
1753
+ #
1754
+ # * [UpdateAgentActionGroup request][3]
1755
+ #
1756
+ # * [UpdateAgentActionGroup response][4]
1757
+ #
1758
+ # * [GetAgentActionGroup response][5]
1759
+ #
1760
+ #
1761
+ #
1762
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_RequestSyntax
1763
+ # [2]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_ResponseSyntax
1764
+ # [3]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_RequestSyntax
1765
+ # [4]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_ResponseSyntax
1766
+ # [5]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetAgentActionGroup.html#API_agent_GetAgentActionGroup_ResponseSyntax
1767
+ #
1768
+ # @!attribute [rw] description
1769
+ # A description of the function and its purpose.
1770
+ # @return [String]
1771
+ #
1772
+ # @!attribute [rw] name
1773
+ # A name for the function.
1774
+ # @return [String]
1775
+ #
1776
+ # @!attribute [rw] parameters
1777
+ # The parameters that the agent elicits from the user to fulfill the
1778
+ # function.
1779
+ # @return [Hash<String,Types::ParameterDetail>]
1780
+ #
1781
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/Function AWS API Documentation
1782
+ #
1783
+ class Function < Struct.new(
1784
+ :description,
1785
+ :name,
1786
+ :parameters)
1787
+ SENSITIVE = []
1788
+ include Aws::Structure
1789
+ end
1790
+
1791
+ # Defines functions that each define parameters that the agent needs to
1792
+ # invoke from the user. Each function represents an action in an action
1793
+ # group.
1794
+ #
1795
+ # This data type is used in the following API operations:
1796
+ #
1797
+ # * [CreateAgentActionGroup request][1]
1798
+ #
1799
+ # * [CreateAgentActionGroup response][2]
1800
+ #
1801
+ # * [UpdateAgentActionGroup request][3]
1802
+ #
1803
+ # * [UpdateAgentActionGroup response][4]
1804
+ #
1805
+ # * [GetAgentActionGroup response][5]
1806
+ #
1807
+ #
1808
+ #
1809
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_RequestSyntax
1810
+ # [2]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_ResponseSyntax
1811
+ # [3]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_RequestSyntax
1812
+ # [4]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_ResponseSyntax
1813
+ # [5]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetAgentActionGroup.html#API_agent_GetAgentActionGroup_ResponseSyntax
1814
+ #
1815
+ # @note FunctionSchema is a union - when making an API calls you must set exactly one of the members.
1816
+ #
1817
+ # @note FunctionSchema is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of FunctionSchema corresponding to the set member.
1818
+ #
1819
+ # @!attribute [rw] functions
1820
+ # A list of functions that each define an action in the action group.
1821
+ # @return [Array<Types::Function>]
1822
+ #
1823
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/FunctionSchema AWS API Documentation
1824
+ #
1825
+ class FunctionSchema < Struct.new(
1826
+ :functions,
1827
+ :unknown)
1828
+ SENSITIVE = []
1829
+ include Aws::Structure
1830
+ include Aws::Structure::Union
1831
+
1832
+ class Functions < FunctionSchema; end
1833
+ class Unknown < FunctionSchema; end
1834
+ end
1835
+
1710
1836
  # @!attribute [rw] action_group_id
1711
1837
  # The unique identifier of the action group for which to get
1712
1838
  # information.
@@ -2022,7 +2148,7 @@ module Aws::BedrockAgent
2022
2148
  #
2023
2149
  # [1]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_StartIngestionJob.html#API_agent_StartIngestionJob_ResponseSyntax
2024
2150
  # [2]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetIngestionJob.html#API_agent_GetIngestionJob_ResponseSyntax
2025
- # [3]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_ListIngestionJob.html#API_agent_ListIngestionJob_ResponseSyntax
2151
+ # [3]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_ListIngestionJobs.html#API_agent_ListIngestionJobs_ResponseSyntax
2026
2152
  #
2027
2153
  # @!attribute [rw] data_source_id
2028
2154
  # The unique identifier of the ingested data source.
@@ -2864,6 +2990,52 @@ module Aws::BedrockAgent
2864
2990
  include Aws::Structure
2865
2991
  end
2866
2992
 
2993
+ # Contains details about a parameter in a function for an action group.
2994
+ #
2995
+ # This data type is used in the following API operations:
2996
+ #
2997
+ # * [CreateAgentActionGroup request][1]
2998
+ #
2999
+ # * [CreateAgentActionGroup response][2]
3000
+ #
3001
+ # * [UpdateAgentActionGroup request][3]
3002
+ #
3003
+ # * [UpdateAgentActionGroup response][4]
3004
+ #
3005
+ # * [GetAgentActionGroup response][5]
3006
+ #
3007
+ #
3008
+ #
3009
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_RequestSyntax
3010
+ # [2]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_ResponseSyntax
3011
+ # [3]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_RequestSyntax
3012
+ # [4]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_ResponseSyntax
3013
+ # [5]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetAgentActionGroup.html#API_agent_GetAgentActionGroup_ResponseSyntax
3014
+ #
3015
+ # @!attribute [rw] description
3016
+ # A description of the parameter. Helps the foundation model determine
3017
+ # how to elicit the parameters from the user.
3018
+ # @return [String]
3019
+ #
3020
+ # @!attribute [rw] required
3021
+ # Whether the parameter is required for the agent to complete the
3022
+ # function for action group invocation.
3023
+ # @return [Boolean]
3024
+ #
3025
+ # @!attribute [rw] type
3026
+ # The data type of the parameter.
3027
+ # @return [String]
3028
+ #
3029
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/ParameterDetail AWS API Documentation
3030
+ #
3031
+ class ParameterDetail < Struct.new(
3032
+ :description,
3033
+ :required,
3034
+ :type)
3035
+ SENSITIVE = []
3036
+ include Aws::Structure
3037
+ end
3038
+
2867
3039
  # Contains details about the storage configuration of the knowledge base
2868
3040
  # in Pinecone. For more information, see [Create a vector index in
2869
3041
  # Pinecone][1].
@@ -3245,6 +3417,10 @@ module Aws::BedrockAgent
3245
3417
  # source.
3246
3418
  # @return [String]
3247
3419
  #
3420
+ # @!attribute [rw] bucket_owner_account_id
3421
+ # The account ID for the owner of the S3 bucket.
3422
+ # @return [String]
3423
+ #
3248
3424
  # @!attribute [rw] inclusion_prefixes
3249
3425
  # A list of S3 prefixes that define the object containing the data
3250
3426
  # sources. For more information, see [Organizing objects using
@@ -3259,6 +3435,7 @@ module Aws::BedrockAgent
3259
3435
  #
3260
3436
  class S3DataSourceConfiguration < Struct.new(
3261
3437
  :bucket_arn,
3438
+ :bucket_owner_account_id,
3262
3439
  :inclusion_prefixes)
3263
3440
  SENSITIVE = []
3264
3441
  include Aws::Structure
@@ -3509,6 +3686,11 @@ module Aws::BedrockAgent
3509
3686
  # Specifies a new name for the action group.
3510
3687
  # @return [String]
3511
3688
  #
3689
+ # @!attribute [rw] function_schema
3690
+ # Contains details about the function schema for the action group or
3691
+ # the JSON or YAML-formatted payload defining the schema.
3692
+ # @return [Types::FunctionSchema]
3693
+ #
3512
3694
  # @!attribute [rw] parent_action_group_signature
3513
3695
  # To allow your agent to request the user for additional information
3514
3696
  # when trying to complete a task, set this field to
@@ -3537,6 +3719,7 @@ module Aws::BedrockAgent
3537
3719
  :agent_version,
3538
3720
  :api_schema,
3539
3721
  :description,
3722
+ :function_schema,
3540
3723
  :parent_action_group_signature)
3541
3724
  SENSITIVE = []
3542
3725
  include Aws::Structure
@@ -3730,6 +3913,10 @@ module Aws::BedrockAgent
3730
3913
  include Aws::Structure
3731
3914
  end
3732
3915
 
3916
+ # @!attribute [rw] data_deletion_policy
3917
+ # The data deletion policy of the updated data source.
3918
+ # @return [String]
3919
+ #
3733
3920
  # @!attribute [rw] data_source_configuration
3734
3921
  # Contains details about the storage configuration of the data source.
3735
3922
  # @return [Types::DataSourceConfiguration]
@@ -3763,6 +3950,7 @@ module Aws::BedrockAgent
3763
3950
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/UpdateDataSourceRequest AWS API Documentation
3764
3951
  #
3765
3952
  class UpdateDataSourceRequest < Struct.new(
3953
+ :data_deletion_policy,
3766
3954
  :data_source_configuration,
3767
3955
  :data_source_id,
3768
3956
  :description,
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-bedrockagent/customizations'
52
52
  # @!group service
53
53
  module Aws::BedrockAgent
54
54
 
55
- GEM_VERSION = '1.5.0'
55
+ GEM_VERSION = '1.7.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -130,6 +130,7 @@ module Aws
130
130
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#create_agent_action_group-instance_method
131
131
  def create_agent_action_group: (
132
132
  ?action_group_executor: {
133
+ custom_control: ("RETURN_CONTROL")?,
133
134
  lambda: ::String?
134
135
  },
135
136
  action_group_name: ::String,
@@ -145,6 +146,19 @@ module Aws
145
146
  },
146
147
  ?client_token: ::String,
147
148
  ?description: ::String,
149
+ ?function_schema: {
150
+ functions: Array[
151
+ {
152
+ description: ::String?,
153
+ name: ::String,
154
+ parameters: Hash[::String, {
155
+ description: ::String?,
156
+ required: bool?,
157
+ type: ("string" | "number" | "integer" | "boolean" | "array")
158
+ }]?
159
+ },
160
+ ]?
161
+ },
148
162
  ?parent_action_group_signature: ("AMAZON.UserInput")
149
163
  ) -> _CreateAgentActionGroupResponseSuccess
150
164
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateAgentActionGroupResponseSuccess
@@ -175,9 +189,11 @@ module Aws
175
189
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#create_data_source-instance_method
176
190
  def create_data_source: (
177
191
  ?client_token: ::String,
192
+ ?data_deletion_policy: ("RETAIN" | "DELETE"),
178
193
  data_source_configuration: {
179
194
  s3_configuration: {
180
195
  bucket_arn: ::String,
196
+ bucket_owner_account_id: ::String?,
181
197
  inclusion_prefixes: Array[::String]?
182
198
  }?,
183
199
  type: ("S3")
@@ -318,7 +334,7 @@ module Aws
318
334
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteDataSourceResponse]
319
335
  def data_source_id: () -> ::String
320
336
  def knowledge_base_id: () -> ::String
321
- def status: () -> ("AVAILABLE" | "DELETING")
337
+ def status: () -> ("AVAILABLE" | "DELETING" | "DELETE_UNSUCCESSFUL")
322
338
  end
323
339
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#delete_data_source-instance_method
324
340
  def delete_data_source: (
@@ -330,7 +346,7 @@ module Aws
330
346
  interface _DeleteKnowledgeBaseResponseSuccess
331
347
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteKnowledgeBaseResponse]
332
348
  def knowledge_base_id: () -> ::String
333
- def status: () -> ("CREATING" | "ACTIVE" | "DELETING" | "UPDATING" | "FAILED")
349
+ def status: () -> ("CREATING" | "ACTIVE" | "DELETING" | "UPDATING" | "FAILED" | "DELETE_UNSUCCESSFUL")
334
350
  end
335
351
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#delete_knowledge_base-instance_method
336
352
  def delete_knowledge_base: (
@@ -653,6 +669,7 @@ module Aws
653
669
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#update_agent_action_group-instance_method
654
670
  def update_agent_action_group: (
655
671
  ?action_group_executor: {
672
+ custom_control: ("RETURN_CONTROL")?,
656
673
  lambda: ::String?
657
674
  },
658
675
  action_group_id: ::String,
@@ -668,6 +685,19 @@ module Aws
668
685
  }?
669
686
  },
670
687
  ?description: ::String,
688
+ ?function_schema: {
689
+ functions: Array[
690
+ {
691
+ description: ::String?,
692
+ name: ::String,
693
+ parameters: Hash[::String, {
694
+ description: ::String?,
695
+ required: bool?,
696
+ type: ("string" | "number" | "integer" | "boolean" | "array")
697
+ }]?
698
+ },
699
+ ]?
700
+ },
671
701
  ?parent_action_group_signature: ("AMAZON.UserInput")
672
702
  ) -> _UpdateAgentActionGroupResponseSuccess
673
703
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateAgentActionGroupResponseSuccess
@@ -710,9 +740,11 @@ module Aws
710
740
  end
711
741
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgent/Client.html#update_data_source-instance_method
712
742
  def update_data_source: (
743
+ ?data_deletion_policy: ("RETAIN" | "DELETE"),
713
744
  data_source_configuration: {
714
745
  s3_configuration: {
715
746
  bucket_arn: ::String,
747
+ bucket_owner_account_id: ::String?,
716
748
  inclusion_prefixes: Array[::String]?
717
749
  }?,
718
750
  type: ("S3")
data/sig/types.rbs CHANGED
@@ -28,10 +28,13 @@ module Aws::BedrockAgent
28
28
  end
29
29
 
30
30
  class ActionGroupExecutor
31
+ attr_accessor custom_control: ("RETURN_CONTROL")
31
32
  attr_accessor lambda: ::String
32
33
  attr_accessor unknown: untyped
33
34
  SENSITIVE: []
34
35
 
36
+ class CustomControl < ActionGroupExecutor
37
+ end
35
38
  class Lambda < ActionGroupExecutor
36
39
  end
37
40
  class Unknown < ActionGroupExecutor
@@ -80,6 +83,7 @@ module Aws::BedrockAgent
80
83
  attr_accessor client_token: ::String
81
84
  attr_accessor created_at: ::Time
82
85
  attr_accessor description: ::String
86
+ attr_accessor function_schema: Types::FunctionSchema
83
87
  attr_accessor parent_action_signature: ("AMAZON.UserInput")
84
88
  attr_accessor updated_at: ::Time
85
89
  SENSITIVE: []
@@ -216,6 +220,7 @@ module Aws::BedrockAgent
216
220
  attr_accessor api_schema: Types::APISchema
217
221
  attr_accessor client_token: ::String
218
222
  attr_accessor description: ::String
223
+ attr_accessor function_schema: Types::FunctionSchema
219
224
  attr_accessor parent_action_group_signature: ("AMAZON.UserInput")
220
225
  SENSITIVE: []
221
226
  end
@@ -261,6 +266,7 @@ module Aws::BedrockAgent
261
266
 
262
267
  class CreateDataSourceRequest
263
268
  attr_accessor client_token: ::String
269
+ attr_accessor data_deletion_policy: ("RETAIN" | "DELETE")
264
270
  attr_accessor data_source_configuration: Types::DataSourceConfiguration
265
271
  attr_accessor description: ::String
266
272
  attr_accessor knowledge_base_id: ::String
@@ -293,13 +299,15 @@ module Aws::BedrockAgent
293
299
 
294
300
  class DataSource
295
301
  attr_accessor created_at: ::Time
302
+ attr_accessor data_deletion_policy: ("RETAIN" | "DELETE")
296
303
  attr_accessor data_source_configuration: Types::DataSourceConfiguration
297
304
  attr_accessor data_source_id: ::String
298
305
  attr_accessor description: ::String
306
+ attr_accessor failure_reasons: ::Array[::String]
299
307
  attr_accessor knowledge_base_id: ::String
300
308
  attr_accessor name: ::String
301
309
  attr_accessor server_side_encryption_configuration: Types::ServerSideEncryptionConfiguration
302
- attr_accessor status: ("AVAILABLE" | "DELETING")
310
+ attr_accessor status: ("AVAILABLE" | "DELETING" | "DELETE_UNSUCCESSFUL")
303
311
  attr_accessor updated_at: ::Time
304
312
  attr_accessor vector_ingestion_configuration: Types::VectorIngestionConfiguration
305
313
  SENSITIVE: []
@@ -316,7 +324,7 @@ module Aws::BedrockAgent
316
324
  attr_accessor description: ::String
317
325
  attr_accessor knowledge_base_id: ::String
318
326
  attr_accessor name: ::String
319
- attr_accessor status: ("AVAILABLE" | "DELETING")
327
+ attr_accessor status: ("AVAILABLE" | "DELETING" | "DELETE_UNSUCCESSFUL")
320
328
  attr_accessor updated_at: ::Time
321
329
  SENSITIVE: []
322
330
  end
@@ -380,7 +388,7 @@ module Aws::BedrockAgent
380
388
  class DeleteDataSourceResponse
381
389
  attr_accessor data_source_id: ::String
382
390
  attr_accessor knowledge_base_id: ::String
383
- attr_accessor status: ("AVAILABLE" | "DELETING")
391
+ attr_accessor status: ("AVAILABLE" | "DELETING" | "DELETE_UNSUCCESSFUL")
384
392
  SENSITIVE: []
385
393
  end
386
394
 
@@ -391,7 +399,7 @@ module Aws::BedrockAgent
391
399
 
392
400
  class DeleteKnowledgeBaseResponse
393
401
  attr_accessor knowledge_base_id: ::String
394
- attr_accessor status: ("CREATING" | "ACTIVE" | "DELETING" | "UPDATING" | "FAILED")
402
+ attr_accessor status: ("CREATING" | "ACTIVE" | "DELETING" | "UPDATING" | "FAILED" | "DELETE_UNSUCCESSFUL")
395
403
  SENSITIVE: []
396
404
  end
397
405
 
@@ -411,6 +419,24 @@ module Aws::BedrockAgent
411
419
  SENSITIVE: []
412
420
  end
413
421
 
422
+ class Function
423
+ attr_accessor description: ::String
424
+ attr_accessor name: ::String
425
+ attr_accessor parameters: ::Hash[::String, Types::ParameterDetail]
426
+ SENSITIVE: []
427
+ end
428
+
429
+ class FunctionSchema
430
+ attr_accessor functions: ::Array[Types::Function]
431
+ attr_accessor unknown: untyped
432
+ SENSITIVE: []
433
+
434
+ class Functions < FunctionSchema
435
+ end
436
+ class Unknown < FunctionSchema
437
+ end
438
+ end
439
+
414
440
  class GetAgentActionGroupRequest
415
441
  attr_accessor action_group_id: ::String
416
442
  attr_accessor agent_id: ::String
@@ -572,7 +598,7 @@ module Aws::BedrockAgent
572
598
  attr_accessor knowledge_base_id: ::String
573
599
  attr_accessor name: ::String
574
600
  attr_accessor role_arn: ::String
575
- attr_accessor status: ("CREATING" | "ACTIVE" | "DELETING" | "UPDATING" | "FAILED")
601
+ attr_accessor status: ("CREATING" | "ACTIVE" | "DELETING" | "UPDATING" | "FAILED" | "DELETE_UNSUCCESSFUL")
576
602
  attr_accessor storage_configuration: Types::StorageConfiguration
577
603
  attr_accessor updated_at: ::Time
578
604
  SENSITIVE: []
@@ -588,7 +614,7 @@ module Aws::BedrockAgent
588
614
  attr_accessor description: ::String
589
615
  attr_accessor knowledge_base_id: ::String
590
616
  attr_accessor name: ::String
591
- attr_accessor status: ("CREATING" | "ACTIVE" | "DELETING" | "UPDATING" | "FAILED")
617
+ attr_accessor status: ("CREATING" | "ACTIVE" | "DELETING" | "UPDATING" | "FAILED" | "DELETE_UNSUCCESSFUL")
592
618
  attr_accessor updated_at: ::Time
593
619
  SENSITIVE: []
594
620
  end
@@ -724,6 +750,13 @@ module Aws::BedrockAgent
724
750
  SENSITIVE: []
725
751
  end
726
752
 
753
+ class ParameterDetail
754
+ attr_accessor description: ::String
755
+ attr_accessor required: bool
756
+ attr_accessor type: ("string" | "number" | "integer" | "boolean" | "array")
757
+ SENSITIVE: []
758
+ end
759
+
727
760
  class PineconeConfiguration
728
761
  attr_accessor connection_string: ::String
729
762
  attr_accessor credentials_secret_arn: ::String
@@ -806,6 +839,7 @@ module Aws::BedrockAgent
806
839
 
807
840
  class S3DataSourceConfiguration
808
841
  attr_accessor bucket_arn: ::String
842
+ attr_accessor bucket_owner_account_id: ::String
809
843
  attr_accessor inclusion_prefixes: ::Array[::String]
810
844
  SENSITIVE: []
811
845
  end
@@ -880,6 +914,7 @@ module Aws::BedrockAgent
880
914
  attr_accessor agent_version: ::String
881
915
  attr_accessor api_schema: Types::APISchema
882
916
  attr_accessor description: ::String
917
+ attr_accessor function_schema: Types::FunctionSchema
883
918
  attr_accessor parent_action_group_signature: ("AMAZON.UserInput")
884
919
  SENSITIVE: []
885
920
  end
@@ -936,6 +971,7 @@ module Aws::BedrockAgent
936
971
  end
937
972
 
938
973
  class UpdateDataSourceRequest
974
+ attr_accessor data_deletion_policy: ("RETAIN" | "DELETE")
939
975
  attr_accessor data_source_configuration: Types::DataSourceConfiguration
940
976
  attr_accessor data_source_id: ::String
941
977
  attr_accessor description: ::String
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrockagent
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-16 00:00:00.000000000 Z
11
+ date: 2024-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core