aws-sdk-bedrockagent 1.11.0 → 1.12.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: 7130a7c2088fc3208d84451fbdd4be02843625a4b2aed90e252391d8e4f5274d
4
- data.tar.gz: b322fb04c07acc514472af031d12586a7b7c9b8c9fa34ebb5cf69ec54e1a6d4b
3
+ metadata.gz: d3075b80e2e0c81e7d03a7b518ec40e583d4dd896abed0469786c026095357e2
4
+ data.tar.gz: b0036ebbdf44ae8605edaef2bd6fb8e80d48f951da0e37ecb37716943c505411
5
5
  SHA512:
6
- metadata.gz: b76480d57c64c12b6dc09d5a6ae2bd14ecfda3ffefc07677fdd4274d3d038cf90fbd241a7e21ec38fdc368f6c4c37440c2938167e77565df706e89a098f673d9
7
- data.tar.gz: cb7064ffac037568e48b6d825853ac2526e8869746564f32331a2c7a411f3a62e369deb76ccb63255dfc8486b9e6b0025b314c47b1a244d6f3a1f9d6d83a9b62
6
+ metadata.gz: 2a575dc51e5bebbda52544368dac5c90fd3a1977eaa17b81c91e0626b55b9b59ab238cf5c04c86aed95833d5c763c6c0d0f5ea2b750586a5346175e94413f4fa
7
+ data.tar.gz: d9484c139067065504611440acbeb44b1f51e300d50fb353ede775e10e66068d898e9b5f08a0613fad91ba4d406090ce3be370cb23a83147e6a261ca7ecb14a4
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.12.0 (2024-05-20)
5
+ ------------------
6
+
7
+ * Feature - This release adds support for using Guardrails with Bedrock Agents.
8
+
4
9
  1.11.0 (2024-05-13)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.11.0
1
+ 1.12.0
@@ -534,6 +534,10 @@ module Aws::BedrockAgent
534
534
  # The foundation model to be used for orchestration by the agent you
535
535
  # create.
536
536
  #
537
+ # @option params [Types::GuardrailConfiguration] :guardrail_configuration
538
+ # The unique Guardrail configuration assigned to the agent when it is
539
+ # created.
540
+ #
537
541
  # @option params [Integer] :idle_session_ttl_in_seconds
538
542
  # The number of seconds for which Amazon Bedrock keeps information about
539
543
  # a user's conversation with the agent.
@@ -570,6 +574,10 @@ module Aws::BedrockAgent
570
574
  # customer_encryption_key_arn: "KmsKeyArn",
571
575
  # description: "Description",
572
576
  # foundation_model: "ModelIdentifier",
577
+ # guardrail_configuration: {
578
+ # guardrail_identifier: "GuardrailIdentifier",
579
+ # guardrail_version: "GuardrailVersion",
580
+ # },
573
581
  # idle_session_ttl_in_seconds: 1,
574
582
  # instruction: "Instruction",
575
583
  # prompt_override_configuration: {
@@ -611,6 +619,8 @@ module Aws::BedrockAgent
611
619
  # resp.agent.failure_reasons #=> Array
612
620
  # resp.agent.failure_reasons[0] #=> String
613
621
  # resp.agent.foundation_model #=> String
622
+ # resp.agent.guardrail_configuration.guardrail_identifier #=> String
623
+ # resp.agent.guardrail_configuration.guardrail_version #=> String
614
624
  # resp.agent.idle_session_ttl_in_seconds #=> Integer
615
625
  # resp.agent.instruction #=> String
616
626
  # resp.agent.prepared_at #=> Time
@@ -1495,6 +1505,8 @@ module Aws::BedrockAgent
1495
1505
  # resp.agent.failure_reasons #=> Array
1496
1506
  # resp.agent.failure_reasons[0] #=> String
1497
1507
  # resp.agent.foundation_model #=> String
1508
+ # resp.agent.guardrail_configuration.guardrail_identifier #=> String
1509
+ # resp.agent.guardrail_configuration.guardrail_version #=> String
1498
1510
  # resp.agent.idle_session_ttl_in_seconds #=> Integer
1499
1511
  # resp.agent.instruction #=> String
1500
1512
  # resp.agent.prepared_at #=> Time
@@ -1709,6 +1721,8 @@ module Aws::BedrockAgent
1709
1721
  # resp.agent_version.failure_reasons #=> Array
1710
1722
  # resp.agent_version.failure_reasons[0] #=> String
1711
1723
  # resp.agent_version.foundation_model #=> String
1724
+ # resp.agent_version.guardrail_configuration.guardrail_identifier #=> String
1725
+ # resp.agent_version.guardrail_configuration.guardrail_version #=> String
1712
1726
  # resp.agent_version.idle_session_ttl_in_seconds #=> Integer
1713
1727
  # resp.agent_version.instruction #=> String
1714
1728
  # resp.agent_version.prompt_override_configuration.override_lambda #=> String
@@ -2123,6 +2137,8 @@ module Aws::BedrockAgent
2123
2137
  # resp.agent_version_summaries[0].agent_version #=> String
2124
2138
  # resp.agent_version_summaries[0].created_at #=> Time
2125
2139
  # resp.agent_version_summaries[0].description #=> String
2140
+ # resp.agent_version_summaries[0].guardrail_configuration.guardrail_identifier #=> String
2141
+ # resp.agent_version_summaries[0].guardrail_configuration.guardrail_version #=> String
2126
2142
  # resp.agent_version_summaries[0].updated_at #=> Time
2127
2143
  # resp.next_token #=> String
2128
2144
  #
@@ -2171,6 +2187,8 @@ module Aws::BedrockAgent
2171
2187
  # resp.agent_summaries[0].agent_name #=> String
2172
2188
  # resp.agent_summaries[0].agent_status #=> String, one of "CREATING", "PREPARING", "PREPARED", "NOT_PREPARED", "DELETING", "FAILED", "VERSIONING", "UPDATING"
2173
2189
  # resp.agent_summaries[0].description #=> String
2190
+ # resp.agent_summaries[0].guardrail_configuration.guardrail_identifier #=> String
2191
+ # resp.agent_summaries[0].guardrail_configuration.guardrail_version #=> String
2174
2192
  # resp.agent_summaries[0].latest_agent_version #=> String
2175
2193
  # resp.agent_summaries[0].updated_at #=> Time
2176
2194
  # resp.next_token #=> String
@@ -2586,6 +2604,10 @@ module Aws::BedrockAgent
2586
2604
  # Specifies a new foundation model to be used for orchestration by the
2587
2605
  # agent.
2588
2606
  #
2607
+ # @option params [Types::GuardrailConfiguration] :guardrail_configuration
2608
+ # The unique Guardrail configuration assigned to the agent when it is
2609
+ # updated.
2610
+ #
2589
2611
  # @option params [Integer] :idle_session_ttl_in_seconds
2590
2612
  # The number of seconds for which Amazon Bedrock keeps information about
2591
2613
  # a user's conversation with the agent.
@@ -2619,6 +2641,10 @@ module Aws::BedrockAgent
2619
2641
  # customer_encryption_key_arn: "KmsKeyArn",
2620
2642
  # description: "Description",
2621
2643
  # foundation_model: "ModelIdentifier", # required
2644
+ # guardrail_configuration: {
2645
+ # guardrail_identifier: "GuardrailIdentifier",
2646
+ # guardrail_version: "GuardrailVersion",
2647
+ # },
2622
2648
  # idle_session_ttl_in_seconds: 1,
2623
2649
  # instruction: "Instruction",
2624
2650
  # prompt_override_configuration: {
@@ -2657,6 +2683,8 @@ module Aws::BedrockAgent
2657
2683
  # resp.agent.failure_reasons #=> Array
2658
2684
  # resp.agent.failure_reasons[0] #=> String
2659
2685
  # resp.agent.foundation_model #=> String
2686
+ # resp.agent.guardrail_configuration.guardrail_identifier #=> String
2687
+ # resp.agent.guardrail_configuration.guardrail_version #=> String
2660
2688
  # resp.agent.idle_session_ttl_in_seconds #=> Integer
2661
2689
  # resp.agent.instruction #=> String
2662
2690
  # resp.agent.prepared_at #=> Time
@@ -3235,7 +3263,7 @@ module Aws::BedrockAgent
3235
3263
  params: params,
3236
3264
  config: config)
3237
3265
  context[:gem_name] = 'aws-sdk-bedrockagent'
3238
- context[:gem_version] = '1.11.0'
3266
+ context[:gem_version] = '1.12.0'
3239
3267
  Seahorse::Client::Request.new(handlers, context)
3240
3268
  end
3241
3269
 
@@ -116,6 +116,9 @@ module Aws::BedrockAgent
116
116
  GetIngestionJobResponse = Shapes::StructureShape.new(name: 'GetIngestionJobResponse')
117
117
  GetKnowledgeBaseRequest = Shapes::StructureShape.new(name: 'GetKnowledgeBaseRequest')
118
118
  GetKnowledgeBaseResponse = Shapes::StructureShape.new(name: 'GetKnowledgeBaseResponse')
119
+ GuardrailConfiguration = Shapes::StructureShape.new(name: 'GuardrailConfiguration')
120
+ GuardrailIdentifier = Shapes::StringShape.new(name: 'GuardrailIdentifier')
121
+ GuardrailVersion = Shapes::StringShape.new(name: 'GuardrailVersion')
119
122
  Id = Shapes::StringShape.new(name: 'Id')
120
123
  InferenceConfiguration = Shapes::StructureShape.new(name: 'InferenceConfiguration')
121
124
  IngestionJob = Shapes::StructureShape.new(name: 'IngestionJob')
@@ -300,6 +303,7 @@ module Aws::BedrockAgent
300
303
  Agent.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
301
304
  Agent.add_member(:failure_reasons, Shapes::ShapeRef.new(shape: FailureReasons, location_name: "failureReasons"))
302
305
  Agent.add_member(:foundation_model, Shapes::ShapeRef.new(shape: ModelIdentifier, location_name: "foundationModel"))
306
+ Agent.add_member(:guardrail_configuration, Shapes::ShapeRef.new(shape: GuardrailConfiguration, location_name: "guardrailConfiguration"))
303
307
  Agent.add_member(:idle_session_ttl_in_seconds, Shapes::ShapeRef.new(shape: SessionTTL, required: true, location_name: "idleSessionTTLInSeconds"))
304
308
  Agent.add_member(:instruction, Shapes::ShapeRef.new(shape: Instruction, location_name: "instruction"))
305
309
  Agent.add_member(:prepared_at, Shapes::ShapeRef.new(shape: DateTimestamp, location_name: "preparedAt"))
@@ -384,6 +388,7 @@ module Aws::BedrockAgent
384
388
  AgentSummary.add_member(:agent_name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "agentName"))
385
389
  AgentSummary.add_member(:agent_status, Shapes::ShapeRef.new(shape: AgentStatus, required: true, location_name: "agentStatus"))
386
390
  AgentSummary.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
391
+ AgentSummary.add_member(:guardrail_configuration, Shapes::ShapeRef.new(shape: GuardrailConfiguration, location_name: "guardrailConfiguration"))
387
392
  AgentSummary.add_member(:latest_agent_version, Shapes::ShapeRef.new(shape: Version, location_name: "latestAgentVersion"))
388
393
  AgentSummary.add_member(:updated_at, Shapes::ShapeRef.new(shape: DateTimestamp, required: true, location_name: "updatedAt"))
389
394
  AgentSummary.struct_class = Types::AgentSummary
@@ -398,6 +403,7 @@ module Aws::BedrockAgent
398
403
  AgentVersion.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
399
404
  AgentVersion.add_member(:failure_reasons, Shapes::ShapeRef.new(shape: FailureReasons, location_name: "failureReasons"))
400
405
  AgentVersion.add_member(:foundation_model, Shapes::ShapeRef.new(shape: ModelIdentifier, location_name: "foundationModel"))
406
+ AgentVersion.add_member(:guardrail_configuration, Shapes::ShapeRef.new(shape: GuardrailConfiguration, location_name: "guardrailConfiguration"))
401
407
  AgentVersion.add_member(:idle_session_ttl_in_seconds, Shapes::ShapeRef.new(shape: SessionTTL, required: true, location_name: "idleSessionTTLInSeconds"))
402
408
  AgentVersion.add_member(:instruction, Shapes::ShapeRef.new(shape: Instruction, location_name: "instruction"))
403
409
  AgentVersion.add_member(:prompt_override_configuration, Shapes::ShapeRef.new(shape: PromptOverrideConfiguration, location_name: "promptOverrideConfiguration"))
@@ -413,6 +419,7 @@ module Aws::BedrockAgent
413
419
  AgentVersionSummary.add_member(:agent_version, Shapes::ShapeRef.new(shape: Version, required: true, location_name: "agentVersion"))
414
420
  AgentVersionSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: DateTimestamp, required: true, location_name: "createdAt"))
415
421
  AgentVersionSummary.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
422
+ AgentVersionSummary.add_member(:guardrail_configuration, Shapes::ShapeRef.new(shape: GuardrailConfiguration, location_name: "guardrailConfiguration"))
416
423
  AgentVersionSummary.add_member(:updated_at, Shapes::ShapeRef.new(shape: DateTimestamp, required: true, location_name: "updatedAt"))
417
424
  AgentVersionSummary.struct_class = Types::AgentVersionSummary
418
425
 
@@ -465,6 +472,7 @@ module Aws::BedrockAgent
465
472
  CreateAgentRequest.add_member(:customer_encryption_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "customerEncryptionKeyArn"))
466
473
  CreateAgentRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
467
474
  CreateAgentRequest.add_member(:foundation_model, Shapes::ShapeRef.new(shape: ModelIdentifier, location_name: "foundationModel"))
475
+ CreateAgentRequest.add_member(:guardrail_configuration, Shapes::ShapeRef.new(shape: GuardrailConfiguration, location_name: "guardrailConfiguration"))
468
476
  CreateAgentRequest.add_member(:idle_session_ttl_in_seconds, Shapes::ShapeRef.new(shape: SessionTTL, location_name: "idleSessionTTLInSeconds"))
469
477
  CreateAgentRequest.add_member(:instruction, Shapes::ShapeRef.new(shape: Instruction, location_name: "instruction"))
470
478
  CreateAgentRequest.add_member(:prompt_override_configuration, Shapes::ShapeRef.new(shape: PromptOverrideConfiguration, location_name: "promptOverrideConfiguration"))
@@ -661,6 +669,10 @@ module Aws::BedrockAgent
661
669
  GetKnowledgeBaseResponse.add_member(:knowledge_base, Shapes::ShapeRef.new(shape: KnowledgeBase, required: true, location_name: "knowledgeBase"))
662
670
  GetKnowledgeBaseResponse.struct_class = Types::GetKnowledgeBaseResponse
663
671
 
672
+ GuardrailConfiguration.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, location_name: "guardrailIdentifier"))
673
+ GuardrailConfiguration.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, location_name: "guardrailVersion"))
674
+ GuardrailConfiguration.struct_class = Types::GuardrailConfiguration
675
+
664
676
  InferenceConfiguration.add_member(:maximum_length, Shapes::ShapeRef.new(shape: MaximumLength, location_name: "maximumLength"))
665
677
  InferenceConfiguration.add_member(:stop_sequences, Shapes::ShapeRef.new(shape: StopSequences, location_name: "stopSequences"))
666
678
  InferenceConfiguration.add_member(:temperature, Shapes::ShapeRef.new(shape: Temperature, location_name: "temperature"))
@@ -1014,6 +1026,7 @@ module Aws::BedrockAgent
1014
1026
  UpdateAgentRequest.add_member(:customer_encryption_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "customerEncryptionKeyArn"))
1015
1027
  UpdateAgentRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
1016
1028
  UpdateAgentRequest.add_member(:foundation_model, Shapes::ShapeRef.new(shape: ModelIdentifier, required: true, location_name: "foundationModel"))
1029
+ UpdateAgentRequest.add_member(:guardrail_configuration, Shapes::ShapeRef.new(shape: GuardrailConfiguration, location_name: "guardrailConfiguration"))
1017
1030
  UpdateAgentRequest.add_member(:idle_session_ttl_in_seconds, Shapes::ShapeRef.new(shape: SessionTTL, location_name: "idleSessionTTLInSeconds"))
1018
1031
  UpdateAgentRequest.add_member(:instruction, Shapes::ShapeRef.new(shape: Instruction, location_name: "instruction"))
1019
1032
  UpdateAgentRequest.add_member(:prompt_override_configuration, Shapes::ShapeRef.new(shape: PromptOverrideConfiguration, location_name: "promptOverrideConfiguration"))
@@ -218,6 +218,10 @@ module Aws::BedrockAgent
218
218
  # The foundation model used for orchestration by the agent.
219
219
  # @return [String]
220
220
  #
221
+ # @!attribute [rw] guardrail_configuration
222
+ # The guardrails configuration assigned to the agent.
223
+ # @return [Types::GuardrailConfiguration]
224
+ #
221
225
  # @!attribute [rw] idle_session_ttl_in_seconds
222
226
  # The number of seconds for which Amazon Bedrock keeps information
223
227
  # about a user's conversation with the agent.
@@ -270,6 +274,7 @@ module Aws::BedrockAgent
270
274
  :description,
271
275
  :failure_reasons,
272
276
  :foundation_model,
277
+ :guardrail_configuration,
273
278
  :idle_session_ttl_in_seconds,
274
279
  :instruction,
275
280
  :prepared_at,
@@ -683,6 +688,10 @@ module Aws::BedrockAgent
683
688
  # The description of the agent.
684
689
  # @return [String]
685
690
  #
691
+ # @!attribute [rw] guardrail_configuration
692
+ # The details of the guardrails configuration in the agent summary.
693
+ # @return [Types::GuardrailConfiguration]
694
+ #
686
695
  # @!attribute [rw] latest_agent_version
687
696
  # The latest version of the agent.
688
697
  # @return [String]
@@ -698,6 +707,7 @@ module Aws::BedrockAgent
698
707
  :agent_name,
699
708
  :agent_status,
700
709
  :description,
710
+ :guardrail_configuration,
701
711
  :latest_agent_version,
702
712
  :updated_at)
703
713
  SENSITIVE = []
@@ -749,6 +759,10 @@ module Aws::BedrockAgent
749
759
  # The foundation model that the version invokes.
750
760
  # @return [String]
751
761
  #
762
+ # @!attribute [rw] guardrail_configuration
763
+ # The guardrails configuration assigned to the agent version.
764
+ # @return [Types::GuardrailConfiguration]
765
+ #
752
766
  # @!attribute [rw] idle_session_ttl_in_seconds
753
767
  # The number of seconds for which Amazon Bedrock keeps information
754
768
  # about a user's conversation with the agent.
@@ -798,6 +812,7 @@ module Aws::BedrockAgent
798
812
  :description,
799
813
  :failure_reasons,
800
814
  :foundation_model,
815
+ :guardrail_configuration,
801
816
  :idle_session_ttl_in_seconds,
802
817
  :instruction,
803
818
  :prompt_override_configuration,
@@ -830,6 +845,11 @@ module Aws::BedrockAgent
830
845
  # The description of the version of the agent.
831
846
  # @return [String]
832
847
  #
848
+ # @!attribute [rw] guardrail_configuration
849
+ # The details of the guardrails configuration in the agent version
850
+ # summary.
851
+ # @return [Types::GuardrailConfiguration]
852
+ #
833
853
  # @!attribute [rw] updated_at
834
854
  # The time at which the version was last updated.
835
855
  # @return [Time]
@@ -842,6 +862,7 @@ module Aws::BedrockAgent
842
862
  :agent_version,
843
863
  :created_at,
844
864
  :description,
865
+ :guardrail_configuration,
845
866
  :updated_at)
846
867
  SENSITIVE = []
847
868
  include Aws::Structure
@@ -1153,6 +1174,11 @@ module Aws::BedrockAgent
1153
1174
  # create.
1154
1175
  # @return [String]
1155
1176
  #
1177
+ # @!attribute [rw] guardrail_configuration
1178
+ # The unique Guardrail configuration assigned to the agent when it is
1179
+ # created.
1180
+ # @return [Types::GuardrailConfiguration]
1181
+ #
1156
1182
  # @!attribute [rw] idle_session_ttl_in_seconds
1157
1183
  # The number of seconds for which Amazon Bedrock keeps information
1158
1184
  # about a user's conversation with the agent.
@@ -1189,6 +1215,7 @@ module Aws::BedrockAgent
1189
1215
  :customer_encryption_key_arn,
1190
1216
  :description,
1191
1217
  :foundation_model,
1218
+ :guardrail_configuration,
1192
1219
  :idle_session_ttl_in_seconds,
1193
1220
  :instruction,
1194
1221
  :prompt_override_configuration,
@@ -2095,6 +2122,25 @@ module Aws::BedrockAgent
2095
2122
  include Aws::Structure
2096
2123
  end
2097
2124
 
2125
+ # The details of the guardrails configuration.
2126
+ #
2127
+ # @!attribute [rw] guardrail_identifier
2128
+ # The guardrails identifier assigned to the guardrails configuration.
2129
+ # @return [String]
2130
+ #
2131
+ # @!attribute [rw] guardrail_version
2132
+ # The guardrails version assigned to the guardrails configuration.
2133
+ # @return [String]
2134
+ #
2135
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/GuardrailConfiguration AWS API Documentation
2136
+ #
2137
+ class GuardrailConfiguration < Struct.new(
2138
+ :guardrail_identifier,
2139
+ :guardrail_version)
2140
+ SENSITIVE = []
2141
+ include Aws::Structure
2142
+ end
2143
+
2098
2144
  # Contains inference parameters to use when the agent invokes a
2099
2145
  # foundation model in the part of the agent sequence defined by the
2100
2146
  # `promptType`. For more information, see [Inference parameters for
@@ -3246,11 +3292,13 @@ module Aws::BedrockAgent
3246
3292
  # Defines the prompt template with which to replace the default prompt
3247
3293
  # template. You can use placeholder variables in the base prompt
3248
3294
  # template to customize the prompt. For more information, see [Prompt
3249
- # template placeholder variables][1].
3295
+ # template placeholder variables][1]. For more information, see
3296
+ # [Configure the prompt templates][2].
3250
3297
  #
3251
3298
  #
3252
3299
  #
3253
3300
  # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-placeholders.html
3301
+ # [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts-configure.html
3254
3302
  # @return [String]
3255
3303
  #
3256
3304
  # @!attribute [rw] inference_configuration
@@ -3328,7 +3376,13 @@ module Aws::BedrockAgent
3328
3376
  # The ARN of the Lambda function to use when parsing the raw
3329
3377
  # foundation model output in parts of the agent sequence. If you
3330
3378
  # specify this field, at least one of the `promptConfigurations` must
3331
- # contain a `parserMode` value that is set to `OVERRIDDEN`.
3379
+ # contain a `parserMode` value that is set to `OVERRIDDEN`. For more
3380
+ # information, see [Parser Lambda function in Agents for Amazon
3381
+ # Bedrock][1].
3382
+ #
3383
+ #
3384
+ #
3385
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/lambda-parser.html
3332
3386
  # @return [String]
3333
3387
  #
3334
3388
  # @!attribute [rw] prompt_configurations
@@ -3965,6 +4019,11 @@ module Aws::BedrockAgent
3965
4019
  # agent.
3966
4020
  # @return [String]
3967
4021
  #
4022
+ # @!attribute [rw] guardrail_configuration
4023
+ # The unique Guardrail configuration assigned to the agent when it is
4024
+ # updated.
4025
+ # @return [Types::GuardrailConfiguration]
4026
+ #
3968
4027
  # @!attribute [rw] idle_session_ttl_in_seconds
3969
4028
  # The number of seconds for which Amazon Bedrock keeps information
3970
4029
  # about a user's conversation with the agent.
@@ -3997,6 +4056,7 @@ module Aws::BedrockAgent
3997
4056
  :customer_encryption_key_arn,
3998
4057
  :description,
3999
4058
  :foundation_model,
4059
+ :guardrail_configuration,
4000
4060
  :idle_session_ttl_in_seconds,
4001
4061
  :instruction,
4002
4062
  :prompt_override_configuration)
@@ -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.11.0'
55
+ GEM_VERSION = '1.12.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -98,6 +98,10 @@ module Aws
98
98
  ?customer_encryption_key_arn: ::String,
99
99
  ?description: ::String,
100
100
  ?foundation_model: ::String,
101
+ ?guardrail_configuration: {
102
+ guardrail_identifier: ::String?,
103
+ guardrail_version: ::String?
104
+ },
101
105
  ?idle_session_ttl_in_seconds: ::Integer,
102
106
  ?instruction: ::String,
103
107
  ?prompt_override_configuration: {
@@ -652,6 +656,10 @@ module Aws
652
656
  ?customer_encryption_key_arn: ::String,
653
657
  ?description: ::String,
654
658
  foundation_model: ::String,
659
+ ?guardrail_configuration: {
660
+ guardrail_identifier: ::String?,
661
+ guardrail_version: ::String?
662
+ },
655
663
  ?idle_session_ttl_in_seconds: ::Integer,
656
664
  ?instruction: ::String,
657
665
  ?prompt_override_configuration: {
data/sig/types.rbs CHANGED
@@ -63,6 +63,7 @@ module Aws::BedrockAgent
63
63
  attr_accessor description: ::String
64
64
  attr_accessor failure_reasons: ::Array[::String]
65
65
  attr_accessor foundation_model: ::String
66
+ attr_accessor guardrail_configuration: Types::GuardrailConfiguration
66
67
  attr_accessor idle_session_ttl_in_seconds: ::Integer
67
68
  attr_accessor instruction: ::String
68
69
  attr_accessor prepared_at: ::Time
@@ -153,6 +154,7 @@ module Aws::BedrockAgent
153
154
  attr_accessor agent_name: ::String
154
155
  attr_accessor agent_status: ("CREATING" | "PREPARING" | "PREPARED" | "NOT_PREPARED" | "DELETING" | "FAILED" | "VERSIONING" | "UPDATING")
155
156
  attr_accessor description: ::String
157
+ attr_accessor guardrail_configuration: Types::GuardrailConfiguration
156
158
  attr_accessor latest_agent_version: ::String
157
159
  attr_accessor updated_at: ::Time
158
160
  SENSITIVE: []
@@ -169,6 +171,7 @@ module Aws::BedrockAgent
169
171
  attr_accessor description: ::String
170
172
  attr_accessor failure_reasons: ::Array[::String]
171
173
  attr_accessor foundation_model: ::String
174
+ attr_accessor guardrail_configuration: Types::GuardrailConfiguration
172
175
  attr_accessor idle_session_ttl_in_seconds: ::Integer
173
176
  attr_accessor instruction: ::String
174
177
  attr_accessor prompt_override_configuration: Types::PromptOverrideConfiguration
@@ -184,6 +187,7 @@ module Aws::BedrockAgent
184
187
  attr_accessor agent_version: ::String
185
188
  attr_accessor created_at: ::Time
186
189
  attr_accessor description: ::String
190
+ attr_accessor guardrail_configuration: Types::GuardrailConfiguration
187
191
  attr_accessor updated_at: ::Time
188
192
  SENSITIVE: []
189
193
  end
@@ -254,6 +258,7 @@ module Aws::BedrockAgent
254
258
  attr_accessor customer_encryption_key_arn: ::String
255
259
  attr_accessor description: ::String
256
260
  attr_accessor foundation_model: ::String
261
+ attr_accessor guardrail_configuration: Types::GuardrailConfiguration
257
262
  attr_accessor idle_session_ttl_in_seconds: ::Integer
258
263
  attr_accessor instruction: ::String
259
264
  attr_accessor prompt_override_configuration: Types::PromptOverrideConfiguration
@@ -528,6 +533,12 @@ module Aws::BedrockAgent
528
533
  SENSITIVE: []
529
534
  end
530
535
 
536
+ class GuardrailConfiguration
537
+ attr_accessor guardrail_identifier: ::String
538
+ attr_accessor guardrail_version: ::String
539
+ SENSITIVE: []
540
+ end
541
+
531
542
  class InferenceConfiguration
532
543
  attr_accessor maximum_length: ::Integer
533
544
  attr_accessor stop_sequences: ::Array[::String]
@@ -980,6 +991,7 @@ module Aws::BedrockAgent
980
991
  attr_accessor customer_encryption_key_arn: ::String
981
992
  attr_accessor description: ::String
982
993
  attr_accessor foundation_model: ::String
994
+ attr_accessor guardrail_configuration: Types::GuardrailConfiguration
983
995
  attr_accessor idle_session_ttl_in_seconds: ::Integer
984
996
  attr_accessor instruction: ::String
985
997
  attr_accessor prompt_override_configuration: Types::PromptOverrideConfiguration
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.11.0
4
+ version: 1.12.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-05-13 00:00:00.000000000 Z
11
+ date: 2024-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core