From 960b455f2942ba12d03a990a4889f0d53e0ac6b1 Mon Sep 17 00:00:00 2001
From: aws-sdk-cpp-automation
Date: Mon, 20 May 2024 18:21:42 +0000
Subject: [PATCH] This release adds support for EngineLifecycleSupport on
DBInstances, DBClusters, and GlobalClusters. add v2 smoke tests and smithy
smokeTests trait for SDK testing Added ListControlOperations API and
filtering support for ListEnabledControls API. Updates also includes added
metadata for enabled controls and control operations. This release adds
support for using Guardrails with Bedrock Agents. This release adds support
for using Guardrails with Bedrock Agents. Add support for creating an
OpenSearch Ingestion pipeline that is attached to a provided VPC. Add
information about the destinations of an OpenSearch Ingestion pipeline to the
GetPipeline and ListPipelines APIs.
---
VERSION | 2 +-
.../model/GuardrailAction.h | 31 ++
.../model/GuardrailAssessment.h | 184 ++++++++
.../model/GuardrailContentFilter.h | 155 +++++++
.../model/GuardrailContentFilterConfidence.h | 33 ++
.../model/GuardrailContentFilterType.h | 35 ++
.../model/GuardrailContentPolicyAction.h | 30 ++
.../model/GuardrailContentPolicyAssessment.h | 98 +++++
.../model/GuardrailCustomWord.h | 124 ++++++
.../model/GuardrailManagedWord.h | 159 +++++++
.../model/GuardrailManagedWordType.h | 30 ++
.../model/GuardrailPiiEntityFilter.h | 159 +++++++
.../model/GuardrailPiiEntityType.h | 60 +++
.../model/GuardrailRegexFilter.h | 212 +++++++++
...uardrailSensitiveInformationPolicyAction.h | 31 ++
...railSensitiveInformationPolicyAssessment.h | 151 +++++++
.../model/GuardrailTopic.h | 159 +++++++
.../model/GuardrailTopicPolicyAction.h | 30 ++
.../model/GuardrailTopicPolicyAssessment.h | 90 ++++
.../model/GuardrailTopicType.h | 30 ++
.../model/GuardrailTrace.h | 213 +++++++++
.../model/GuardrailWordPolicyAction.h | 30 ++
.../model/GuardrailWordPolicyAssessment.h | 135 ++++++
.../aws/bedrock-agent-runtime/model/Trace.h | 35 ++
.../source/model/GuardrailAction.cpp | 72 ++++
.../source/model/GuardrailAssessment.cpp | 104 +++++
.../source/model/GuardrailContentFilter.cpp | 92 ++++
.../GuardrailContentFilterConfidence.cpp | 86 ++++
.../model/GuardrailContentFilterType.cpp | 100 +++++
.../model/GuardrailContentPolicyAction.cpp | 65 +++
.../GuardrailContentPolicyAssessment.cpp | 67 +++
.../source/model/GuardrailCustomWord.cpp | 75 ++++
.../source/model/GuardrailManagedWord.cpp | 91 ++++
.../source/model/GuardrailManagedWordType.cpp | 65 +++
.../source/model/GuardrailPiiEntityFilter.cpp | 91 ++++
.../source/model/GuardrailPiiEntityType.cpp | 275 ++++++++++++
.../source/model/GuardrailRegexFilter.cpp | 105 +++++
...rdrailSensitiveInformationPolicyAction.cpp | 72 ++++
...ilSensitiveInformationPolicyAssessment.cpp | 90 ++++
.../source/model/GuardrailTopic.cpp | 91 ++++
.../model/GuardrailTopicPolicyAction.cpp | 65 +++
.../model/GuardrailTopicPolicyAssessment.cpp | 67 +++
.../source/model/GuardrailTopicType.cpp | 65 +++
.../source/model/GuardrailTrace.cpp | 121 ++++++
.../model/GuardrailWordPolicyAction.cpp | 65 +++
.../model/GuardrailWordPolicyAssessment.cpp | 90 ++++
.../source/model/Trace.cpp | 15 +
.../include/aws/bedrock-agent/model/Agent.h | 35 ++
.../aws/bedrock-agent/model/AgentSummary.h | 35 ++
.../aws/bedrock-agent/model/AgentVersion.h | 35 ++
.../bedrock-agent/model/AgentVersionSummary.h | 35 ++
.../bedrock-agent/model/CreateAgentRequest.h | 41 ++
.../model/GuardrailConfiguration.h | 132 ++++++
.../bedrock-agent/model/PromptConfiguration.h | 32 +-
.../model/PromptOverrideConfiguration.h | 32 +-
.../bedrock-agent/model/UpdateAgentRequest.h | 41 ++
.../source/model/Agent.cpp | 15 +
.../source/model/AgentSummary.cpp | 15 +
.../source/model/AgentVersion.cpp | 15 +
.../source/model/AgentVersionSummary.cpp | 15 +
.../source/model/CreateAgentRequest.cpp | 7 +
.../source/model/GuardrailConfiguration.cpp | 74 ++++
.../source/model/UpdateAgentRequest.cpp | 7 +
.../aws/controltower/ControlTowerClient.h | 154 +++++--
.../ControlTowerServiceClientModel.h | 5 +
.../aws/controltower/model/ControlOperation.h | 178 +++++++-
.../model/ControlOperationFilter.h | 292 +++++++++++++
.../model/ControlOperationSummary.h | 404 ++++++++++++++++++
.../model/CreateLandingZoneRequest.h | 36 +-
.../controltower/model/EnabledControlFilter.h | 186 ++++++++
.../controltower/model/LandingZoneDetail.h | 24 +-
.../model/ListControlOperationsRequest.h | 148 +++++++
.../model/ListControlOperationsResult.h | 141 ++++++
.../model/ListEnabledControlsRequest.h | 41 ++
.../model/UpdateLandingZoneRequest.h | 48 +--
.../source/ControlTowerClient.cpp | 28 ++
.../source/model/ControlOperation.cpp | 64 ++-
.../source/model/ControlOperationFilter.cpp | 159 +++++++
.../source/model/ControlOperationSummary.cpp | 179 ++++++++
.../source/model/EnabledControlFilter.cpp | 113 +++++
.../model/ListControlOperationsRequest.cpp | 50 +++
.../model/ListControlOperationsResult.cpp | 57 +++
.../model/ListEnabledControlsRequest.cpp | 7 +
.../include/aws/osis/OSISErrors.h | 1 +
.../include/aws/osis/model/BufferOptions.h | 4 +-
.../aws/osis/model/CloudWatchLogDestination.h | 16 +-
.../aws/osis/model/EncryptionAtRestOptions.h | 34 +-
.../osis/model/GetPipelineBlueprintRequest.h | 50 +++
.../osis/model/GetPipelineBlueprintResult.h | 38 ++
.../aws/osis/model/GetPipelineRequest.h | 16 +-
.../include/aws/osis/model/Pipeline.h | 77 +++-
.../aws/osis/model/PipelineBlueprint.h | 176 ++++++++
.../aws/osis/model/PipelineBlueprintSummary.h | 176 ++++++++
.../aws/osis/model/PipelineDestination.h | 133 ++++++
.../include/aws/osis/model/PipelineSummary.h | 45 ++
.../aws/osis/model/ServiceVpcEndpoint.h | 16 +-
.../aws/osis/model/VpcAttachmentOptions.h | 120 ++++++
.../include/aws/osis/model/VpcOptions.h | 35 ++
.../aws-cpp-sdk-osis/source/OSISErrors.cpp | 7 +-
.../model/GetPipelineBlueprintRequest.cpp | 17 +-
.../model/GetPipelineBlueprintResult.cpp | 6 +
.../source/model/Pipeline.cpp | 23 +
.../source/model/PipelineBlueprint.cpp | 64 ++-
.../source/model/PipelineBlueprintSummary.cpp | 64 ++-
.../source/model/PipelineDestination.cpp | 74 ++++
.../source/model/PipelineSummary.cpp | 23 +
.../source/model/VpcAttachmentOptions.cpp | 76 ++++
.../source/model/VpcOptions.cpp | 19 +-
.../aws/rds/model/CreateDBClusterRequest.h | 376 +++++++++++++---
.../aws/rds/model/CreateDBInstanceRequest.h | 172 ++++++++
.../model/CreateEventSubscriptionRequest.h | 72 ++--
.../rds/model/CreateGlobalClusterRequest.h | 164 +++++++
.../include/aws/rds/model/DBCluster.h | 52 +++
.../include/aws/rds/model/DBInstance.h | 52 +++
.../include/aws/rds/model/GlobalCluster.h | 52 +++
.../model/ModifyEventSubscriptionRequest.h | 72 ++--
.../aws/rds/model/PendingMaintenanceAction.h | 48 ++-
.../rds/model/RestoreDBClusterFromS3Request.h | 204 +++++++++
.../RestoreDBClusterFromSnapshotRequest.h | 204 +++++++++
.../RestoreDBClusterToPointInTimeRequest.h | 204 +++++++++
.../RestoreDBInstanceFromDBSnapshotRequest.h | 180 ++++++++
.../model/RestoreDBInstanceFromS3Request.h | 180 ++++++++
.../RestoreDBInstanceToPointInTimeRequest.h | 180 ++++++++
.../include/aws/rds/model/UpgradeTarget.h | 12 +-
.../source/model/CreateDBClusterRequest.cpp | 6 +
.../source/model/CreateDBInstanceRequest.cpp | 8 +-
.../model/CreateGlobalClusterRequest.cpp | 6 +
.../source/model/DBCluster.cpp | 21 +-
.../source/model/DBInstance.cpp | 21 +-
.../source/model/GlobalCluster.cpp | 17 +
.../model/RestoreDBClusterFromS3Request.cpp | 8 +-
.../RestoreDBClusterFromSnapshotRequest.cpp | 8 +-
.../RestoreDBClusterToPointInTimeRequest.cpp | 8 +-
...RestoreDBInstanceFromDBSnapshotRequest.cpp | 8 +-
.../model/RestoreDBInstanceFromS3Request.cpp | 8 +-
.../RestoreDBInstanceToPointInTimeRequest.cpp | 8 +-
.../model/DescribeSecretResult.h | 15 +-
.../model/GetSecretValueRequest.h | 40 +-
.../model/RotateSecretRequest.h | 8 +-
.../model/ValidateResourcePolicyRequest.h | 24 +-
.../include/aws/core/VersionConfig.h | 4 +-
.../bedrock-agent-2023-06-05.normal.json | 60 ++-
...drock-agent-runtime-2023-07-26.normal.json | 340 +++++++++++++++
.../controltower-2018-05-10.normal.json | 238 ++++++++++-
.../osis-2022-01-01.normal.json | 132 +++++-
.../rds-2014-10-31.normal.json | 62 ++-
.../secretsmanager-2017-10-17.normal.json | 8 +-
147 files changed, 11274 insertions(+), 443 deletions(-)
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailAction.h
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailAssessment.h
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentFilter.h
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentFilterConfidence.h
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentFilterType.h
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentPolicyAction.h
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentPolicyAssessment.h
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailCustomWord.h
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailManagedWord.h
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailManagedWordType.h
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailPiiEntityFilter.h
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailPiiEntityType.h
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailRegexFilter.h
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailSensitiveInformationPolicyAction.h
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailSensitiveInformationPolicyAssessment.h
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopic.h
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopicPolicyAction.h
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopicPolicyAssessment.h
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopicType.h
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTrace.h
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailWordPolicyAction.h
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailWordPolicyAssessment.h
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailAction.cpp
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailAssessment.cpp
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentFilter.cpp
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentFilterConfidence.cpp
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentFilterType.cpp
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentPolicyAction.cpp
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentPolicyAssessment.cpp
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailCustomWord.cpp
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailManagedWord.cpp
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailManagedWordType.cpp
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailPiiEntityFilter.cpp
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailPiiEntityType.cpp
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailRegexFilter.cpp
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailSensitiveInformationPolicyAction.cpp
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailSensitiveInformationPolicyAssessment.cpp
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopic.cpp
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopicPolicyAction.cpp
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopicPolicyAssessment.cpp
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopicType.cpp
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTrace.cpp
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailWordPolicyAction.cpp
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailWordPolicyAssessment.cpp
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/GuardrailConfiguration.h
create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent/source/model/GuardrailConfiguration.cpp
create mode 100644 generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ControlOperationFilter.h
create mode 100644 generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ControlOperationSummary.h
create mode 100644 generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/EnabledControlFilter.h
create mode 100644 generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ListControlOperationsRequest.h
create mode 100644 generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ListControlOperationsResult.h
create mode 100644 generated/src/aws-cpp-sdk-controltower/source/model/ControlOperationFilter.cpp
create mode 100644 generated/src/aws-cpp-sdk-controltower/source/model/ControlOperationSummary.cpp
create mode 100644 generated/src/aws-cpp-sdk-controltower/source/model/EnabledControlFilter.cpp
create mode 100644 generated/src/aws-cpp-sdk-controltower/source/model/ListControlOperationsRequest.cpp
create mode 100644 generated/src/aws-cpp-sdk-controltower/source/model/ListControlOperationsResult.cpp
create mode 100644 generated/src/aws-cpp-sdk-osis/include/aws/osis/model/PipelineDestination.h
create mode 100644 generated/src/aws-cpp-sdk-osis/include/aws/osis/model/VpcAttachmentOptions.h
create mode 100644 generated/src/aws-cpp-sdk-osis/source/model/PipelineDestination.cpp
create mode 100644 generated/src/aws-cpp-sdk-osis/source/model/VpcAttachmentOptions.cpp
diff --git a/VERSION b/VERSION
index e2aa0a5b291..b9f074d3abb 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.11.331
\ No newline at end of file
+1.11.332
\ No newline at end of file
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailAction.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailAction.h
new file mode 100644
index 00000000000..1c835d82eb7
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailAction.h
@@ -0,0 +1,31 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+
+namespace Aws
+{
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+ enum class GuardrailAction
+ {
+ NOT_SET,
+ INTERVENED,
+ NONE
+ };
+
+namespace GuardrailActionMapper
+{
+AWS_BEDROCKAGENTRUNTIME_API GuardrailAction GetGuardrailActionForName(const Aws::String& name);
+
+AWS_BEDROCKAGENTRUNTIME_API Aws::String GetNameForGuardrailAction(GuardrailAction value);
+} // namespace GuardrailActionMapper
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailAssessment.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailAssessment.h
new file mode 100644
index 00000000000..9f417a3753b
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailAssessment.h
@@ -0,0 +1,184 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+#include
+#include
+#include
+#include
+
+namespace Aws
+{
+namespace Utils
+{
+namespace Json
+{
+ class JsonValue;
+ class JsonView;
+} // namespace Json
+} // namespace Utils
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+
+ /**
+ * Assessment details of the content analyzed by Guardrails.
See
+ * Also:
AWS
+ * API Reference
+ */
+ class GuardrailAssessment
+ {
+ public:
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailAssessment();
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailAssessment(Aws::Utils::Json::JsonView jsonValue);
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailAssessment& operator=(Aws::Utils::Json::JsonView jsonValue);
+ AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
+
+
+ /**
+ * Content policy details of the Guardrail.
+ */
+ inline const GuardrailContentPolicyAssessment& GetContentPolicy() const{ return m_contentPolicy; }
+
+ /**
+ * Content policy details of the Guardrail.
+ */
+ inline bool ContentPolicyHasBeenSet() const { return m_contentPolicyHasBeenSet; }
+
+ /**
+ * Content policy details of the Guardrail.
+ */
+ inline void SetContentPolicy(const GuardrailContentPolicyAssessment& value) { m_contentPolicyHasBeenSet = true; m_contentPolicy = value; }
+
+ /**
+ * Content policy details of the Guardrail.
+ */
+ inline void SetContentPolicy(GuardrailContentPolicyAssessment&& value) { m_contentPolicyHasBeenSet = true; m_contentPolicy = std::move(value); }
+
+ /**
+ * Content policy details of the Guardrail.
+ */
+ inline GuardrailAssessment& WithContentPolicy(const GuardrailContentPolicyAssessment& value) { SetContentPolicy(value); return *this;}
+
+ /**
+ * Content policy details of the Guardrail.
+ */
+ inline GuardrailAssessment& WithContentPolicy(GuardrailContentPolicyAssessment&& value) { SetContentPolicy(std::move(value)); return *this;}
+
+
+ /**
+ * Sensitive Information policy details of Guardrail.
+ */
+ inline const GuardrailSensitiveInformationPolicyAssessment& GetSensitiveInformationPolicy() const{ return m_sensitiveInformationPolicy; }
+
+ /**
+ * Sensitive Information policy details of Guardrail.
+ */
+ inline bool SensitiveInformationPolicyHasBeenSet() const { return m_sensitiveInformationPolicyHasBeenSet; }
+
+ /**
+ * Sensitive Information policy details of Guardrail.
+ */
+ inline void SetSensitiveInformationPolicy(const GuardrailSensitiveInformationPolicyAssessment& value) { m_sensitiveInformationPolicyHasBeenSet = true; m_sensitiveInformationPolicy = value; }
+
+ /**
+ * Sensitive Information policy details of Guardrail.
+ */
+ inline void SetSensitiveInformationPolicy(GuardrailSensitiveInformationPolicyAssessment&& value) { m_sensitiveInformationPolicyHasBeenSet = true; m_sensitiveInformationPolicy = std::move(value); }
+
+ /**
+ * Sensitive Information policy details of Guardrail.
+ */
+ inline GuardrailAssessment& WithSensitiveInformationPolicy(const GuardrailSensitiveInformationPolicyAssessment& value) { SetSensitiveInformationPolicy(value); return *this;}
+
+ /**
+ * Sensitive Information policy details of Guardrail.
+ */
+ inline GuardrailAssessment& WithSensitiveInformationPolicy(GuardrailSensitiveInformationPolicyAssessment&& value) { SetSensitiveInformationPolicy(std::move(value)); return *this;}
+
+
+ /**
+ * Topic policy details of the Guardrail.
+ */
+ inline const GuardrailTopicPolicyAssessment& GetTopicPolicy() const{ return m_topicPolicy; }
+
+ /**
+ * Topic policy details of the Guardrail.
+ */
+ inline bool TopicPolicyHasBeenSet() const { return m_topicPolicyHasBeenSet; }
+
+ /**
+ * Topic policy details of the Guardrail.
+ */
+ inline void SetTopicPolicy(const GuardrailTopicPolicyAssessment& value) { m_topicPolicyHasBeenSet = true; m_topicPolicy = value; }
+
+ /**
+ * Topic policy details of the Guardrail.
+ */
+ inline void SetTopicPolicy(GuardrailTopicPolicyAssessment&& value) { m_topicPolicyHasBeenSet = true; m_topicPolicy = std::move(value); }
+
+ /**
+ * Topic policy details of the Guardrail.
+ */
+ inline GuardrailAssessment& WithTopicPolicy(const GuardrailTopicPolicyAssessment& value) { SetTopicPolicy(value); return *this;}
+
+ /**
+ * Topic policy details of the Guardrail.
+ */
+ inline GuardrailAssessment& WithTopicPolicy(GuardrailTopicPolicyAssessment&& value) { SetTopicPolicy(std::move(value)); return *this;}
+
+
+ /**
+ * Word policy details of the Guardrail.
+ */
+ inline const GuardrailWordPolicyAssessment& GetWordPolicy() const{ return m_wordPolicy; }
+
+ /**
+ * Word policy details of the Guardrail.
+ */
+ inline bool WordPolicyHasBeenSet() const { return m_wordPolicyHasBeenSet; }
+
+ /**
+ * Word policy details of the Guardrail.
+ */
+ inline void SetWordPolicy(const GuardrailWordPolicyAssessment& value) { m_wordPolicyHasBeenSet = true; m_wordPolicy = value; }
+
+ /**
+ * Word policy details of the Guardrail.
+ */
+ inline void SetWordPolicy(GuardrailWordPolicyAssessment&& value) { m_wordPolicyHasBeenSet = true; m_wordPolicy = std::move(value); }
+
+ /**
+ * Word policy details of the Guardrail.
+ */
+ inline GuardrailAssessment& WithWordPolicy(const GuardrailWordPolicyAssessment& value) { SetWordPolicy(value); return *this;}
+
+ /**
+ * Word policy details of the Guardrail.
+ */
+ inline GuardrailAssessment& WithWordPolicy(GuardrailWordPolicyAssessment&& value) { SetWordPolicy(std::move(value)); return *this;}
+
+ private:
+
+ GuardrailContentPolicyAssessment m_contentPolicy;
+ bool m_contentPolicyHasBeenSet = false;
+
+ GuardrailSensitiveInformationPolicyAssessment m_sensitiveInformationPolicy;
+ bool m_sensitiveInformationPolicyHasBeenSet = false;
+
+ GuardrailTopicPolicyAssessment m_topicPolicy;
+ bool m_topicPolicyHasBeenSet = false;
+
+ GuardrailWordPolicyAssessment m_wordPolicy;
+ bool m_wordPolicyHasBeenSet = false;
+ };
+
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentFilter.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentFilter.h
new file mode 100644
index 00000000000..ffa7a1516a6
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentFilter.h
@@ -0,0 +1,155 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+#include
+#include
+#include
+
+namespace Aws
+{
+namespace Utils
+{
+namespace Json
+{
+ class JsonValue;
+ class JsonView;
+} // namespace Json
+} // namespace Utils
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+
+ /**
+ * Details of the content filter used in the Guardrail.
See Also:
+ * AWS
+ * API Reference
+ */
+ class GuardrailContentFilter
+ {
+ public:
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailContentFilter();
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailContentFilter(Aws::Utils::Json::JsonView jsonValue);
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailContentFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
+ AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
+
+
+ /**
+ * The action placed on the content by the Guardrail filter.
+ */
+ inline const GuardrailContentPolicyAction& GetAction() const{ return m_action; }
+
+ /**
+ * The action placed on the content by the Guardrail filter.
+ */
+ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
+
+ /**
+ * The action placed on the content by the Guardrail filter.
+ */
+ inline void SetAction(const GuardrailContentPolicyAction& value) { m_actionHasBeenSet = true; m_action = value; }
+
+ /**
+ * The action placed on the content by the Guardrail filter.
+ */
+ inline void SetAction(GuardrailContentPolicyAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
+
+ /**
+ * The action placed on the content by the Guardrail filter.
+ */
+ inline GuardrailContentFilter& WithAction(const GuardrailContentPolicyAction& value) { SetAction(value); return *this;}
+
+ /**
+ * The action placed on the content by the Guardrail filter.
+ */
+ inline GuardrailContentFilter& WithAction(GuardrailContentPolicyAction&& value) { SetAction(std::move(value)); return *this;}
+
+
+ /**
+ * The confidence level regarding the content detected in the filter by the
+ * Guardrail.
+ */
+ inline const GuardrailContentFilterConfidence& GetConfidence() const{ return m_confidence; }
+
+ /**
+ * The confidence level regarding the content detected in the filter by the
+ * Guardrail.
+ */
+ inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
+
+ /**
+ * The confidence level regarding the content detected in the filter by the
+ * Guardrail.
+ */
+ inline void SetConfidence(const GuardrailContentFilterConfidence& value) { m_confidenceHasBeenSet = true; m_confidence = value; }
+
+ /**
+ * The confidence level regarding the content detected in the filter by the
+ * Guardrail.
+ */
+ inline void SetConfidence(GuardrailContentFilterConfidence&& value) { m_confidenceHasBeenSet = true; m_confidence = std::move(value); }
+
+ /**
+ * The confidence level regarding the content detected in the filter by the
+ * Guardrail.
+ */
+ inline GuardrailContentFilter& WithConfidence(const GuardrailContentFilterConfidence& value) { SetConfidence(value); return *this;}
+
+ /**
+ * The confidence level regarding the content detected in the filter by the
+ * Guardrail.
+ */
+ inline GuardrailContentFilter& WithConfidence(GuardrailContentFilterConfidence&& value) { SetConfidence(std::move(value)); return *this;}
+
+
+ /**
+ * The type of content detected in the filter by the Guardrail.
+ */
+ inline const GuardrailContentFilterType& GetType() const{ return m_type; }
+
+ /**
+ * The type of content detected in the filter by the Guardrail.
+ */
+ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
+
+ /**
+ * The type of content detected in the filter by the Guardrail.
+ */
+ inline void SetType(const GuardrailContentFilterType& value) { m_typeHasBeenSet = true; m_type = value; }
+
+ /**
+ * The type of content detected in the filter by the Guardrail.
+ */
+ inline void SetType(GuardrailContentFilterType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
+
+ /**
+ * The type of content detected in the filter by the Guardrail.
+ */
+ inline GuardrailContentFilter& WithType(const GuardrailContentFilterType& value) { SetType(value); return *this;}
+
+ /**
+ * The type of content detected in the filter by the Guardrail.
+ */
+ inline GuardrailContentFilter& WithType(GuardrailContentFilterType&& value) { SetType(std::move(value)); return *this;}
+
+ private:
+
+ GuardrailContentPolicyAction m_action;
+ bool m_actionHasBeenSet = false;
+
+ GuardrailContentFilterConfidence m_confidence;
+ bool m_confidenceHasBeenSet = false;
+
+ GuardrailContentFilterType m_type;
+ bool m_typeHasBeenSet = false;
+ };
+
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentFilterConfidence.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentFilterConfidence.h
new file mode 100644
index 00000000000..fc6e3af462b
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentFilterConfidence.h
@@ -0,0 +1,33 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+
+namespace Aws
+{
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+ enum class GuardrailContentFilterConfidence
+ {
+ NOT_SET,
+ NONE,
+ LOW,
+ MEDIUM,
+ HIGH
+ };
+
+namespace GuardrailContentFilterConfidenceMapper
+{
+AWS_BEDROCKAGENTRUNTIME_API GuardrailContentFilterConfidence GetGuardrailContentFilterConfidenceForName(const Aws::String& name);
+
+AWS_BEDROCKAGENTRUNTIME_API Aws::String GetNameForGuardrailContentFilterConfidence(GuardrailContentFilterConfidence value);
+} // namespace GuardrailContentFilterConfidenceMapper
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentFilterType.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentFilterType.h
new file mode 100644
index 00000000000..f5c8b927bac
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentFilterType.h
@@ -0,0 +1,35 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+
+namespace Aws
+{
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+ enum class GuardrailContentFilterType
+ {
+ NOT_SET,
+ INSULTS,
+ HATE,
+ SEXUAL,
+ VIOLENCE,
+ MISCONDUCT,
+ PROMPT_ATTACK
+ };
+
+namespace GuardrailContentFilterTypeMapper
+{
+AWS_BEDROCKAGENTRUNTIME_API GuardrailContentFilterType GetGuardrailContentFilterTypeForName(const Aws::String& name);
+
+AWS_BEDROCKAGENTRUNTIME_API Aws::String GetNameForGuardrailContentFilterType(GuardrailContentFilterType value);
+} // namespace GuardrailContentFilterTypeMapper
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentPolicyAction.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentPolicyAction.h
new file mode 100644
index 00000000000..dda55a2f134
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentPolicyAction.h
@@ -0,0 +1,30 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+
+namespace Aws
+{
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+ enum class GuardrailContentPolicyAction
+ {
+ NOT_SET,
+ BLOCKED
+ };
+
+namespace GuardrailContentPolicyActionMapper
+{
+AWS_BEDROCKAGENTRUNTIME_API GuardrailContentPolicyAction GetGuardrailContentPolicyActionForName(const Aws::String& name);
+
+AWS_BEDROCKAGENTRUNTIME_API Aws::String GetNameForGuardrailContentPolicyAction(GuardrailContentPolicyAction value);
+} // namespace GuardrailContentPolicyActionMapper
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentPolicyAssessment.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentPolicyAssessment.h
new file mode 100644
index 00000000000..76fc63063cb
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentPolicyAssessment.h
@@ -0,0 +1,98 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+#include
+#include
+
+namespace Aws
+{
+namespace Utils
+{
+namespace Json
+{
+ class JsonValue;
+ class JsonView;
+} // namespace Json
+} // namespace Utils
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+
+ /**
+ * The details of the policy assessment in the Guardrails filter.
See
+ * Also:
AWS
+ * API Reference
+ */
+ class GuardrailContentPolicyAssessment
+ {
+ public:
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailContentPolicyAssessment();
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailContentPolicyAssessment(Aws::Utils::Json::JsonView jsonValue);
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailContentPolicyAssessment& operator=(Aws::Utils::Json::JsonView jsonValue);
+ AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
+
+
+ /**
+ * The filter details of the policy assessment used in the Guardrails
+ * filter.
+ */
+ inline const Aws::Vector& GetFilters() const{ return m_filters; }
+
+ /**
+ * The filter details of the policy assessment used in the Guardrails
+ * filter.
+ */
+ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
+
+ /**
+ * The filter details of the policy assessment used in the Guardrails
+ * filter.
+ */
+ inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; }
+
+ /**
+ * The filter details of the policy assessment used in the Guardrails
+ * filter.
+ */
+ inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
+
+ /**
+ * The filter details of the policy assessment used in the Guardrails
+ * filter.
+ */
+ inline GuardrailContentPolicyAssessment& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;}
+
+ /**
+ * The filter details of the policy assessment used in the Guardrails
+ * filter.
+ */
+ inline GuardrailContentPolicyAssessment& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;}
+
+ /**
+ * The filter details of the policy assessment used in the Guardrails
+ * filter.
+ */
+ inline GuardrailContentPolicyAssessment& AddFilters(const GuardrailContentFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
+
+ /**
+ * The filter details of the policy assessment used in the Guardrails
+ * filter.
+ */
+ inline GuardrailContentPolicyAssessment& AddFilters(GuardrailContentFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
+
+ private:
+
+ Aws::Vector m_filters;
+ bool m_filtersHasBeenSet = false;
+ };
+
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailCustomWord.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailCustomWord.h
new file mode 100644
index 00000000000..5c685cb06fc
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailCustomWord.h
@@ -0,0 +1,124 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+#include
+#include
+
+namespace Aws
+{
+namespace Utils
+{
+namespace Json
+{
+ class JsonValue;
+ class JsonView;
+} // namespace Json
+} // namespace Utils
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+
+ /**
+ * The custom word details for the filter in the Guardrail.
See
+ * Also:
AWS
+ * API Reference
+ */
+ class GuardrailCustomWord
+ {
+ public:
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailCustomWord();
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailCustomWord(Aws::Utils::Json::JsonView jsonValue);
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailCustomWord& operator=(Aws::Utils::Json::JsonView jsonValue);
+ AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
+
+
+ /**
+ * The action details for the custom word filter in the Guardrail.
+ */
+ inline const GuardrailWordPolicyAction& GetAction() const{ return m_action; }
+
+ /**
+ * The action details for the custom word filter in the Guardrail.
+ */
+ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
+
+ /**
+ * The action details for the custom word filter in the Guardrail.
+ */
+ inline void SetAction(const GuardrailWordPolicyAction& value) { m_actionHasBeenSet = true; m_action = value; }
+
+ /**
+ * The action details for the custom word filter in the Guardrail.
+ */
+ inline void SetAction(GuardrailWordPolicyAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
+
+ /**
+ * The action details for the custom word filter in the Guardrail.
+ */
+ inline GuardrailCustomWord& WithAction(const GuardrailWordPolicyAction& value) { SetAction(value); return *this;}
+
+ /**
+ * The action details for the custom word filter in the Guardrail.
+ */
+ inline GuardrailCustomWord& WithAction(GuardrailWordPolicyAction&& value) { SetAction(std::move(value)); return *this;}
+
+
+ /**
+ * The match details for the custom word filter in the Guardrail.
+ */
+ inline const Aws::String& GetMatch() const{ return m_match; }
+
+ /**
+ * The match details for the custom word filter in the Guardrail.
+ */
+ inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
+
+ /**
+ * The match details for the custom word filter in the Guardrail.
+ */
+ inline void SetMatch(const Aws::String& value) { m_matchHasBeenSet = true; m_match = value; }
+
+ /**
+ * The match details for the custom word filter in the Guardrail.
+ */
+ inline void SetMatch(Aws::String&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
+
+ /**
+ * The match details for the custom word filter in the Guardrail.
+ */
+ inline void SetMatch(const char* value) { m_matchHasBeenSet = true; m_match.assign(value); }
+
+ /**
+ * The match details for the custom word filter in the Guardrail.
+ */
+ inline GuardrailCustomWord& WithMatch(const Aws::String& value) { SetMatch(value); return *this;}
+
+ /**
+ * The match details for the custom word filter in the Guardrail.
+ */
+ inline GuardrailCustomWord& WithMatch(Aws::String&& value) { SetMatch(std::move(value)); return *this;}
+
+ /**
+ * The match details for the custom word filter in the Guardrail.
+ */
+ inline GuardrailCustomWord& WithMatch(const char* value) { SetMatch(value); return *this;}
+
+ private:
+
+ GuardrailWordPolicyAction m_action;
+ bool m_actionHasBeenSet = false;
+
+ Aws::String m_match;
+ bool m_matchHasBeenSet = false;
+ };
+
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailManagedWord.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailManagedWord.h
new file mode 100644
index 00000000000..1bf29fcbbf9
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailManagedWord.h
@@ -0,0 +1,159 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+#include
+#include
+#include
+
+namespace Aws
+{
+namespace Utils
+{
+namespace Json
+{
+ class JsonValue;
+ class JsonView;
+} // namespace Json
+} // namespace Utils
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+
+ /**
+ * The managed word details for the filter in the Guardrail.
See
+ * Also:
AWS
+ * API Reference
+ */
+ class GuardrailManagedWord
+ {
+ public:
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailManagedWord();
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailManagedWord(Aws::Utils::Json::JsonView jsonValue);
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailManagedWord& operator=(Aws::Utils::Json::JsonView jsonValue);
+ AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
+
+
+ /**
+ * The action details for the managed word filter in the Guardrail.
+ */
+ inline const GuardrailWordPolicyAction& GetAction() const{ return m_action; }
+
+ /**
+ * The action details for the managed word filter in the Guardrail.
+ */
+ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
+
+ /**
+ * The action details for the managed word filter in the Guardrail.
+ */
+ inline void SetAction(const GuardrailWordPolicyAction& value) { m_actionHasBeenSet = true; m_action = value; }
+
+ /**
+ * The action details for the managed word filter in the Guardrail.
+ */
+ inline void SetAction(GuardrailWordPolicyAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
+
+ /**
+ * The action details for the managed word filter in the Guardrail.
+ */
+ inline GuardrailManagedWord& WithAction(const GuardrailWordPolicyAction& value) { SetAction(value); return *this;}
+
+ /**
+ * The action details for the managed word filter in the Guardrail.
+ */
+ inline GuardrailManagedWord& WithAction(GuardrailWordPolicyAction&& value) { SetAction(std::move(value)); return *this;}
+
+
+ /**
+ * The match details for the managed word filter in the Guardrail.
+ */
+ inline const Aws::String& GetMatch() const{ return m_match; }
+
+ /**
+ * The match details for the managed word filter in the Guardrail.
+ */
+ inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
+
+ /**
+ * The match details for the managed word filter in the Guardrail.
+ */
+ inline void SetMatch(const Aws::String& value) { m_matchHasBeenSet = true; m_match = value; }
+
+ /**
+ * The match details for the managed word filter in the Guardrail.
+ */
+ inline void SetMatch(Aws::String&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
+
+ /**
+ * The match details for the managed word filter in the Guardrail.
+ */
+ inline void SetMatch(const char* value) { m_matchHasBeenSet = true; m_match.assign(value); }
+
+ /**
+ * The match details for the managed word filter in the Guardrail.
+ */
+ inline GuardrailManagedWord& WithMatch(const Aws::String& value) { SetMatch(value); return *this;}
+
+ /**
+ * The match details for the managed word filter in the Guardrail.
+ */
+ inline GuardrailManagedWord& WithMatch(Aws::String&& value) { SetMatch(std::move(value)); return *this;}
+
+ /**
+ * The match details for the managed word filter in the Guardrail.
+ */
+ inline GuardrailManagedWord& WithMatch(const char* value) { SetMatch(value); return *this;}
+
+
+ /**
+ * The type details for the managed word filter in the Guardrail.
+ */
+ inline const GuardrailManagedWordType& GetType() const{ return m_type; }
+
+ /**
+ * The type details for the managed word filter in the Guardrail.
+ */
+ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
+
+ /**
+ * The type details for the managed word filter in the Guardrail.
+ */
+ inline void SetType(const GuardrailManagedWordType& value) { m_typeHasBeenSet = true; m_type = value; }
+
+ /**
+ * The type details for the managed word filter in the Guardrail.
+ */
+ inline void SetType(GuardrailManagedWordType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
+
+ /**
+ * The type details for the managed word filter in the Guardrail.
+ */
+ inline GuardrailManagedWord& WithType(const GuardrailManagedWordType& value) { SetType(value); return *this;}
+
+ /**
+ * The type details for the managed word filter in the Guardrail.
+ */
+ inline GuardrailManagedWord& WithType(GuardrailManagedWordType&& value) { SetType(std::move(value)); return *this;}
+
+ private:
+
+ GuardrailWordPolicyAction m_action;
+ bool m_actionHasBeenSet = false;
+
+ Aws::String m_match;
+ bool m_matchHasBeenSet = false;
+
+ GuardrailManagedWordType m_type;
+ bool m_typeHasBeenSet = false;
+ };
+
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailManagedWordType.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailManagedWordType.h
new file mode 100644
index 00000000000..3280cccfb7a
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailManagedWordType.h
@@ -0,0 +1,30 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+
+namespace Aws
+{
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+ enum class GuardrailManagedWordType
+ {
+ NOT_SET,
+ PROFANITY
+ };
+
+namespace GuardrailManagedWordTypeMapper
+{
+AWS_BEDROCKAGENTRUNTIME_API GuardrailManagedWordType GetGuardrailManagedWordTypeForName(const Aws::String& name);
+
+AWS_BEDROCKAGENTRUNTIME_API Aws::String GetNameForGuardrailManagedWordType(GuardrailManagedWordType value);
+} // namespace GuardrailManagedWordTypeMapper
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailPiiEntityFilter.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailPiiEntityFilter.h
new file mode 100644
index 00000000000..af8d418d336
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailPiiEntityFilter.h
@@ -0,0 +1,159 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+#include
+#include
+#include
+
+namespace Aws
+{
+namespace Utils
+{
+namespace Json
+{
+ class JsonValue;
+ class JsonView;
+} // namespace Json
+} // namespace Utils
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+
+ /**
+ * The Guardrail filter to identify and remove personally identifiable
+ * information (PII).
See Also:
AWS
+ * API Reference
+ */
+ class GuardrailPiiEntityFilter
+ {
+ public:
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailPiiEntityFilter();
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailPiiEntityFilter(Aws::Utils::Json::JsonView jsonValue);
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailPiiEntityFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
+ AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
+
+
+ /**
+ * The action of the Guardrail filter to identify and remove PII.
+ */
+ inline const GuardrailSensitiveInformationPolicyAction& GetAction() const{ return m_action; }
+
+ /**
+ * The action of the Guardrail filter to identify and remove PII.
+ */
+ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
+
+ /**
+ * The action of the Guardrail filter to identify and remove PII.
+ */
+ inline void SetAction(const GuardrailSensitiveInformationPolicyAction& value) { m_actionHasBeenSet = true; m_action = value; }
+
+ /**
+ * The action of the Guardrail filter to identify and remove PII.
+ */
+ inline void SetAction(GuardrailSensitiveInformationPolicyAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
+
+ /**
+ * The action of the Guardrail filter to identify and remove PII.
+ */
+ inline GuardrailPiiEntityFilter& WithAction(const GuardrailSensitiveInformationPolicyAction& value) { SetAction(value); return *this;}
+
+ /**
+ * The action of the Guardrail filter to identify and remove PII.
+ */
+ inline GuardrailPiiEntityFilter& WithAction(GuardrailSensitiveInformationPolicyAction&& value) { SetAction(std::move(value)); return *this;}
+
+
+ /**
+ * The match to settings in the Guardrail filter to identify and remove PII.
+ */
+ inline const Aws::String& GetMatch() const{ return m_match; }
+
+ /**
+ * The match to settings in the Guardrail filter to identify and remove PII.
+ */
+ inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
+
+ /**
+ * The match to settings in the Guardrail filter to identify and remove PII.
+ */
+ inline void SetMatch(const Aws::String& value) { m_matchHasBeenSet = true; m_match = value; }
+
+ /**
+ * The match to settings in the Guardrail filter to identify and remove PII.
+ */
+ inline void SetMatch(Aws::String&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
+
+ /**
+ * The match to settings in the Guardrail filter to identify and remove PII.
+ */
+ inline void SetMatch(const char* value) { m_matchHasBeenSet = true; m_match.assign(value); }
+
+ /**
+ * The match to settings in the Guardrail filter to identify and remove PII.
+ */
+ inline GuardrailPiiEntityFilter& WithMatch(const Aws::String& value) { SetMatch(value); return *this;}
+
+ /**
+ * The match to settings in the Guardrail filter to identify and remove PII.
+ */
+ inline GuardrailPiiEntityFilter& WithMatch(Aws::String&& value) { SetMatch(std::move(value)); return *this;}
+
+ /**
+ * The match to settings in the Guardrail filter to identify and remove PII.
+ */
+ inline GuardrailPiiEntityFilter& WithMatch(const char* value) { SetMatch(value); return *this;}
+
+
+ /**
+ * The type of PII the Guardrail filter has identified and removed.
+ */
+ inline const GuardrailPiiEntityType& GetType() const{ return m_type; }
+
+ /**
+ * The type of PII the Guardrail filter has identified and removed.
+ */
+ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
+
+ /**
+ * The type of PII the Guardrail filter has identified and removed.
+ */
+ inline void SetType(const GuardrailPiiEntityType& value) { m_typeHasBeenSet = true; m_type = value; }
+
+ /**
+ * The type of PII the Guardrail filter has identified and removed.
+ */
+ inline void SetType(GuardrailPiiEntityType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
+
+ /**
+ * The type of PII the Guardrail filter has identified and removed.
+ */
+ inline GuardrailPiiEntityFilter& WithType(const GuardrailPiiEntityType& value) { SetType(value); return *this;}
+
+ /**
+ * The type of PII the Guardrail filter has identified and removed.
+ */
+ inline GuardrailPiiEntityFilter& WithType(GuardrailPiiEntityType&& value) { SetType(std::move(value)); return *this;}
+
+ private:
+
+ GuardrailSensitiveInformationPolicyAction m_action;
+ bool m_actionHasBeenSet = false;
+
+ Aws::String m_match;
+ bool m_matchHasBeenSet = false;
+
+ GuardrailPiiEntityType m_type;
+ bool m_typeHasBeenSet = false;
+ };
+
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailPiiEntityType.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailPiiEntityType.h
new file mode 100644
index 00000000000..fab73b049e9
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailPiiEntityType.h
@@ -0,0 +1,60 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+
+namespace Aws
+{
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+ enum class GuardrailPiiEntityType
+ {
+ NOT_SET,
+ ADDRESS,
+ AGE,
+ AWS_ACCESS_KEY,
+ AWS_SECRET_KEY,
+ CA_HEALTH_NUMBER,
+ CA_SOCIAL_INSURANCE_NUMBER,
+ CREDIT_DEBIT_CARD_CVV,
+ CREDIT_DEBIT_CARD_EXPIRY,
+ CREDIT_DEBIT_CARD_NUMBER,
+ DRIVER_ID,
+ EMAIL,
+ INTERNATIONAL_BANK_ACCOUNT_NUMBER,
+ IP_ADDRESS,
+ LICENSE_PLATE,
+ MAC_ADDRESS,
+ NAME,
+ PASSWORD,
+ PHONE,
+ PIN,
+ SWIFT_CODE,
+ UK_NATIONAL_HEALTH_SERVICE_NUMBER,
+ UK_NATIONAL_INSURANCE_NUMBER,
+ UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER,
+ URL,
+ USERNAME,
+ US_BANK_ACCOUNT_NUMBER,
+ US_BANK_ROUTING_NUMBER,
+ US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER,
+ US_PASSPORT_NUMBER,
+ US_SOCIAL_SECURITY_NUMBER,
+ VEHICLE_IDENTIFICATION_NUMBER
+ };
+
+namespace GuardrailPiiEntityTypeMapper
+{
+AWS_BEDROCKAGENTRUNTIME_API GuardrailPiiEntityType GetGuardrailPiiEntityTypeForName(const Aws::String& name);
+
+AWS_BEDROCKAGENTRUNTIME_API Aws::String GetNameForGuardrailPiiEntityType(GuardrailPiiEntityType value);
+} // namespace GuardrailPiiEntityTypeMapper
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailRegexFilter.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailRegexFilter.h
new file mode 100644
index 00000000000..9c61c3e686a
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailRegexFilter.h
@@ -0,0 +1,212 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+#include
+#include
+
+namespace Aws
+{
+namespace Utils
+{
+namespace Json
+{
+ class JsonValue;
+ class JsonView;
+} // namespace Json
+} // namespace Utils
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+
+ /**
+ * The details for the regex filter used in the Guardrail.
See
+ * Also:
AWS
+ * API Reference
+ */
+ class GuardrailRegexFilter
+ {
+ public:
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailRegexFilter();
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailRegexFilter(Aws::Utils::Json::JsonView jsonValue);
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailRegexFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
+ AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
+
+
+ /**
+ * The action details for the regex filter used in the Guardrail.
+ */
+ inline const GuardrailSensitiveInformationPolicyAction& GetAction() const{ return m_action; }
+
+ /**
+ * The action details for the regex filter used in the Guardrail.
+ */
+ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
+
+ /**
+ * The action details for the regex filter used in the Guardrail.
+ */
+ inline void SetAction(const GuardrailSensitiveInformationPolicyAction& value) { m_actionHasBeenSet = true; m_action = value; }
+
+ /**
+ * The action details for the regex filter used in the Guardrail.
+ */
+ inline void SetAction(GuardrailSensitiveInformationPolicyAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
+
+ /**
+ * The action details for the regex filter used in the Guardrail.
+ */
+ inline GuardrailRegexFilter& WithAction(const GuardrailSensitiveInformationPolicyAction& value) { SetAction(value); return *this;}
+
+ /**
+ * The action details for the regex filter used in the Guardrail.
+ */
+ inline GuardrailRegexFilter& WithAction(GuardrailSensitiveInformationPolicyAction&& value) { SetAction(std::move(value)); return *this;}
+
+
+ /**
+ * The match details for the regex filter used in the Guardrail.
+ */
+ inline const Aws::String& GetMatch() const{ return m_match; }
+
+ /**
+ * The match details for the regex filter used in the Guardrail.
+ */
+ inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
+
+ /**
+ * The match details for the regex filter used in the Guardrail.
+ */
+ inline void SetMatch(const Aws::String& value) { m_matchHasBeenSet = true; m_match = value; }
+
+ /**
+ * The match details for the regex filter used in the Guardrail.
+ */
+ inline void SetMatch(Aws::String&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
+
+ /**
+ * The match details for the regex filter used in the Guardrail.
+ */
+ inline void SetMatch(const char* value) { m_matchHasBeenSet = true; m_match.assign(value); }
+
+ /**
+ * The match details for the regex filter used in the Guardrail.
+ */
+ inline GuardrailRegexFilter& WithMatch(const Aws::String& value) { SetMatch(value); return *this;}
+
+ /**
+ * The match details for the regex filter used in the Guardrail.
+ */
+ inline GuardrailRegexFilter& WithMatch(Aws::String&& value) { SetMatch(std::move(value)); return *this;}
+
+ /**
+ * The match details for the regex filter used in the Guardrail.
+ */
+ inline GuardrailRegexFilter& WithMatch(const char* value) { SetMatch(value); return *this;}
+
+
+ /**
+ * The name details for the regex filter used in the Guardrail.
+ */
+ inline const Aws::String& GetName() const{ return m_name; }
+
+ /**
+ * The name details for the regex filter used in the Guardrail.
+ */
+ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
+
+ /**
+ * The name details for the regex filter used in the Guardrail.
+ */
+ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
+
+ /**
+ * The name details for the regex filter used in the Guardrail.
+ */
+ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
+
+ /**
+ * The name details for the regex filter used in the Guardrail.
+ */
+ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
+
+ /**
+ * The name details for the regex filter used in the Guardrail.
+ */
+ inline GuardrailRegexFilter& WithName(const Aws::String& value) { SetName(value); return *this;}
+
+ /**
+ * The name details for the regex filter used in the Guardrail.
+ */
+ inline GuardrailRegexFilter& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
+
+ /**
+ * The name details for the regex filter used in the Guardrail.
+ */
+ inline GuardrailRegexFilter& WithName(const char* value) { SetName(value); return *this;}
+
+
+ /**
+ * The regex details for the regex filter used in the Guardrail.
+ */
+ inline const Aws::String& GetRegex() const{ return m_regex; }
+
+ /**
+ * The regex details for the regex filter used in the Guardrail.
+ */
+ inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
+
+ /**
+ * The regex details for the regex filter used in the Guardrail.
+ */
+ inline void SetRegex(const Aws::String& value) { m_regexHasBeenSet = true; m_regex = value; }
+
+ /**
+ * The regex details for the regex filter used in the Guardrail.
+ */
+ inline void SetRegex(Aws::String&& value) { m_regexHasBeenSet = true; m_regex = std::move(value); }
+
+ /**
+ * The regex details for the regex filter used in the Guardrail.
+ */
+ inline void SetRegex(const char* value) { m_regexHasBeenSet = true; m_regex.assign(value); }
+
+ /**
+ * The regex details for the regex filter used in the Guardrail.
+ */
+ inline GuardrailRegexFilter& WithRegex(const Aws::String& value) { SetRegex(value); return *this;}
+
+ /**
+ * The regex details for the regex filter used in the Guardrail.
+ */
+ inline GuardrailRegexFilter& WithRegex(Aws::String&& value) { SetRegex(std::move(value)); return *this;}
+
+ /**
+ * The regex details for the regex filter used in the Guardrail.
+ */
+ inline GuardrailRegexFilter& WithRegex(const char* value) { SetRegex(value); return *this;}
+
+ private:
+
+ GuardrailSensitiveInformationPolicyAction m_action;
+ bool m_actionHasBeenSet = false;
+
+ Aws::String m_match;
+ bool m_matchHasBeenSet = false;
+
+ Aws::String m_name;
+ bool m_nameHasBeenSet = false;
+
+ Aws::String m_regex;
+ bool m_regexHasBeenSet = false;
+ };
+
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailSensitiveInformationPolicyAction.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailSensitiveInformationPolicyAction.h
new file mode 100644
index 00000000000..1b7800cbc91
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailSensitiveInformationPolicyAction.h
@@ -0,0 +1,31 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+
+namespace Aws
+{
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+ enum class GuardrailSensitiveInformationPolicyAction
+ {
+ NOT_SET,
+ BLOCKED,
+ ANONYMIZED
+ };
+
+namespace GuardrailSensitiveInformationPolicyActionMapper
+{
+AWS_BEDROCKAGENTRUNTIME_API GuardrailSensitiveInformationPolicyAction GetGuardrailSensitiveInformationPolicyActionForName(const Aws::String& name);
+
+AWS_BEDROCKAGENTRUNTIME_API Aws::String GetNameForGuardrailSensitiveInformationPolicyAction(GuardrailSensitiveInformationPolicyAction value);
+} // namespace GuardrailSensitiveInformationPolicyActionMapper
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailSensitiveInformationPolicyAssessment.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailSensitiveInformationPolicyAssessment.h
new file mode 100644
index 00000000000..a6d12b354f5
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailSensitiveInformationPolicyAssessment.h
@@ -0,0 +1,151 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+#include
+#include
+#include
+
+namespace Aws
+{
+namespace Utils
+{
+namespace Json
+{
+ class JsonValue;
+ class JsonView;
+} // namespace Json
+} // namespace Utils
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+
+ /**
+ * The details of the sensitive policy assessment used in the
+ * Guardrail.
See Also:
AWS
+ * API Reference
+ */
+ class GuardrailSensitiveInformationPolicyAssessment
+ {
+ public:
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailSensitiveInformationPolicyAssessment();
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailSensitiveInformationPolicyAssessment(Aws::Utils::Json::JsonView jsonValue);
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailSensitiveInformationPolicyAssessment& operator=(Aws::Utils::Json::JsonView jsonValue);
+ AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
+
+
+ /**
+ * The details of the PII entities used in the sensitive policy assessment for
+ * the Guardrail.
+ */
+ inline const Aws::Vector& GetPiiEntities() const{ return m_piiEntities; }
+
+ /**
+ * The details of the PII entities used in the sensitive policy assessment for
+ * the Guardrail.
+ */
+ inline bool PiiEntitiesHasBeenSet() const { return m_piiEntitiesHasBeenSet; }
+
+ /**
+ * The details of the PII entities used in the sensitive policy assessment for
+ * the Guardrail.
+ */
+ inline void SetPiiEntities(const Aws::Vector& value) { m_piiEntitiesHasBeenSet = true; m_piiEntities = value; }
+
+ /**
+ * The details of the PII entities used in the sensitive policy assessment for
+ * the Guardrail.
+ */
+ inline void SetPiiEntities(Aws::Vector&& value) { m_piiEntitiesHasBeenSet = true; m_piiEntities = std::move(value); }
+
+ /**
+ * The details of the PII entities used in the sensitive policy assessment for
+ * the Guardrail.
+ */
+ inline GuardrailSensitiveInformationPolicyAssessment& WithPiiEntities(const Aws::Vector& value) { SetPiiEntities(value); return *this;}
+
+ /**
+ * The details of the PII entities used in the sensitive policy assessment for
+ * the Guardrail.
+ */
+ inline GuardrailSensitiveInformationPolicyAssessment& WithPiiEntities(Aws::Vector&& value) { SetPiiEntities(std::move(value)); return *this;}
+
+ /**
+ * The details of the PII entities used in the sensitive policy assessment for
+ * the Guardrail.
+ */
+ inline GuardrailSensitiveInformationPolicyAssessment& AddPiiEntities(const GuardrailPiiEntityFilter& value) { m_piiEntitiesHasBeenSet = true; m_piiEntities.push_back(value); return *this; }
+
+ /**
+ * The details of the PII entities used in the sensitive policy assessment for
+ * the Guardrail.
+ */
+ inline GuardrailSensitiveInformationPolicyAssessment& AddPiiEntities(GuardrailPiiEntityFilter&& value) { m_piiEntitiesHasBeenSet = true; m_piiEntities.push_back(std::move(value)); return *this; }
+
+
+ /**
+ * The details of the regexes used in the sensitive policy assessment for the
+ * Guardrail.
+ */
+ inline const Aws::Vector& GetRegexes() const{ return m_regexes; }
+
+ /**
+ * The details of the regexes used in the sensitive policy assessment for the
+ * Guardrail.
+ */
+ inline bool RegexesHasBeenSet() const { return m_regexesHasBeenSet; }
+
+ /**
+ * The details of the regexes used in the sensitive policy assessment for the
+ * Guardrail.
+ */
+ inline void SetRegexes(const Aws::Vector& value) { m_regexesHasBeenSet = true; m_regexes = value; }
+
+ /**
+ * The details of the regexes used in the sensitive policy assessment for the
+ * Guardrail.
+ */
+ inline void SetRegexes(Aws::Vector&& value) { m_regexesHasBeenSet = true; m_regexes = std::move(value); }
+
+ /**
+ * The details of the regexes used in the sensitive policy assessment for the
+ * Guardrail.
+ */
+ inline GuardrailSensitiveInformationPolicyAssessment& WithRegexes(const Aws::Vector& value) { SetRegexes(value); return *this;}
+
+ /**
+ * The details of the regexes used in the sensitive policy assessment for the
+ * Guardrail.
+ */
+ inline GuardrailSensitiveInformationPolicyAssessment& WithRegexes(Aws::Vector&& value) { SetRegexes(std::move(value)); return *this;}
+
+ /**
+ * The details of the regexes used in the sensitive policy assessment for the
+ * Guardrail.
+ */
+ inline GuardrailSensitiveInformationPolicyAssessment& AddRegexes(const GuardrailRegexFilter& value) { m_regexesHasBeenSet = true; m_regexes.push_back(value); return *this; }
+
+ /**
+ * The details of the regexes used in the sensitive policy assessment for the
+ * Guardrail.
+ */
+ inline GuardrailSensitiveInformationPolicyAssessment& AddRegexes(GuardrailRegexFilter&& value) { m_regexesHasBeenSet = true; m_regexes.push_back(std::move(value)); return *this; }
+
+ private:
+
+ Aws::Vector m_piiEntities;
+ bool m_piiEntitiesHasBeenSet = false;
+
+ Aws::Vector m_regexes;
+ bool m_regexesHasBeenSet = false;
+ };
+
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopic.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopic.h
new file mode 100644
index 00000000000..851c766cb02
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopic.h
@@ -0,0 +1,159 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+#include
+#include
+#include
+
+namespace Aws
+{
+namespace Utils
+{
+namespace Json
+{
+ class JsonValue;
+ class JsonView;
+} // namespace Json
+} // namespace Utils
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+
+ /**
+ * The details for a specific topic defined in the Guardrail.
See
+ * Also:
AWS
+ * API Reference
+ */
+ class GuardrailTopic
+ {
+ public:
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailTopic();
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailTopic(Aws::Utils::Json::JsonView jsonValue);
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailTopic& operator=(Aws::Utils::Json::JsonView jsonValue);
+ AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
+
+
+ /**
+ * The action details on a specific topic in the Guardrail.
+ */
+ inline const GuardrailTopicPolicyAction& GetAction() const{ return m_action; }
+
+ /**
+ * The action details on a specific topic in the Guardrail.
+ */
+ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
+
+ /**
+ * The action details on a specific topic in the Guardrail.
+ */
+ inline void SetAction(const GuardrailTopicPolicyAction& value) { m_actionHasBeenSet = true; m_action = value; }
+
+ /**
+ * The action details on a specific topic in the Guardrail.
+ */
+ inline void SetAction(GuardrailTopicPolicyAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
+
+ /**
+ * The action details on a specific topic in the Guardrail.
+ */
+ inline GuardrailTopic& WithAction(const GuardrailTopicPolicyAction& value) { SetAction(value); return *this;}
+
+ /**
+ * The action details on a specific topic in the Guardrail.
+ */
+ inline GuardrailTopic& WithAction(GuardrailTopicPolicyAction&& value) { SetAction(std::move(value)); return *this;}
+
+
+ /**
+ * The name details on a specific topic in the Guardrail.
+ */
+ inline const Aws::String& GetName() const{ return m_name; }
+
+ /**
+ * The name details on a specific topic in the Guardrail.
+ */
+ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
+
+ /**
+ * The name details on a specific topic in the Guardrail.
+ */
+ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
+
+ /**
+ * The name details on a specific topic in the Guardrail.
+ */
+ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
+
+ /**
+ * The name details on a specific topic in the Guardrail.
+ */
+ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
+
+ /**
+ * The name details on a specific topic in the Guardrail.
+ */
+ inline GuardrailTopic& WithName(const Aws::String& value) { SetName(value); return *this;}
+
+ /**
+ * The name details on a specific topic in the Guardrail.
+ */
+ inline GuardrailTopic& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
+
+ /**
+ * The name details on a specific topic in the Guardrail.
+ */
+ inline GuardrailTopic& WithName(const char* value) { SetName(value); return *this;}
+
+
+ /**
+ * The type details on a specific topic in the Guardrail.
+ */
+ inline const GuardrailTopicType& GetType() const{ return m_type; }
+
+ /**
+ * The type details on a specific topic in the Guardrail.
+ */
+ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
+
+ /**
+ * The type details on a specific topic in the Guardrail.
+ */
+ inline void SetType(const GuardrailTopicType& value) { m_typeHasBeenSet = true; m_type = value; }
+
+ /**
+ * The type details on a specific topic in the Guardrail.
+ */
+ inline void SetType(GuardrailTopicType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
+
+ /**
+ * The type details on a specific topic in the Guardrail.
+ */
+ inline GuardrailTopic& WithType(const GuardrailTopicType& value) { SetType(value); return *this;}
+
+ /**
+ * The type details on a specific topic in the Guardrail.
+ */
+ inline GuardrailTopic& WithType(GuardrailTopicType&& value) { SetType(std::move(value)); return *this;}
+
+ private:
+
+ GuardrailTopicPolicyAction m_action;
+ bool m_actionHasBeenSet = false;
+
+ Aws::String m_name;
+ bool m_nameHasBeenSet = false;
+
+ GuardrailTopicType m_type;
+ bool m_typeHasBeenSet = false;
+ };
+
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopicPolicyAction.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopicPolicyAction.h
new file mode 100644
index 00000000000..ff21b8338c5
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopicPolicyAction.h
@@ -0,0 +1,30 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+
+namespace Aws
+{
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+ enum class GuardrailTopicPolicyAction
+ {
+ NOT_SET,
+ BLOCKED
+ };
+
+namespace GuardrailTopicPolicyActionMapper
+{
+AWS_BEDROCKAGENTRUNTIME_API GuardrailTopicPolicyAction GetGuardrailTopicPolicyActionForName(const Aws::String& name);
+
+AWS_BEDROCKAGENTRUNTIME_API Aws::String GetNameForGuardrailTopicPolicyAction(GuardrailTopicPolicyAction value);
+} // namespace GuardrailTopicPolicyActionMapper
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopicPolicyAssessment.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopicPolicyAssessment.h
new file mode 100644
index 00000000000..606183c0e9d
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopicPolicyAssessment.h
@@ -0,0 +1,90 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+#include
+#include
+
+namespace Aws
+{
+namespace Utils
+{
+namespace Json
+{
+ class JsonValue;
+ class JsonView;
+} // namespace Json
+} // namespace Utils
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+
+ /**
+ * The details of the policy assessment used in the Guardrail.
See
+ * Also:
AWS
+ * API Reference
+ */
+ class GuardrailTopicPolicyAssessment
+ {
+ public:
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailTopicPolicyAssessment();
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailTopicPolicyAssessment(Aws::Utils::Json::JsonView jsonValue);
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailTopicPolicyAssessment& operator=(Aws::Utils::Json::JsonView jsonValue);
+ AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
+
+
+ /**
+ * The topic details of the policy assessment used in the Guardrail.
+ */
+ inline const Aws::Vector& GetTopics() const{ return m_topics; }
+
+ /**
+ * The topic details of the policy assessment used in the Guardrail.
+ */
+ inline bool TopicsHasBeenSet() const { return m_topicsHasBeenSet; }
+
+ /**
+ * The topic details of the policy assessment used in the Guardrail.
+ */
+ inline void SetTopics(const Aws::Vector& value) { m_topicsHasBeenSet = true; m_topics = value; }
+
+ /**
+ * The topic details of the policy assessment used in the Guardrail.
+ */
+ inline void SetTopics(Aws::Vector&& value) { m_topicsHasBeenSet = true; m_topics = std::move(value); }
+
+ /**
+ * The topic details of the policy assessment used in the Guardrail.
+ */
+ inline GuardrailTopicPolicyAssessment& WithTopics(const Aws::Vector& value) { SetTopics(value); return *this;}
+
+ /**
+ * The topic details of the policy assessment used in the Guardrail.
+ */
+ inline GuardrailTopicPolicyAssessment& WithTopics(Aws::Vector&& value) { SetTopics(std::move(value)); return *this;}
+
+ /**
+ * The topic details of the policy assessment used in the Guardrail.
+ */
+ inline GuardrailTopicPolicyAssessment& AddTopics(const GuardrailTopic& value) { m_topicsHasBeenSet = true; m_topics.push_back(value); return *this; }
+
+ /**
+ * The topic details of the policy assessment used in the Guardrail.
+ */
+ inline GuardrailTopicPolicyAssessment& AddTopics(GuardrailTopic&& value) { m_topicsHasBeenSet = true; m_topics.push_back(std::move(value)); return *this; }
+
+ private:
+
+ Aws::Vector m_topics;
+ bool m_topicsHasBeenSet = false;
+ };
+
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopicType.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopicType.h
new file mode 100644
index 00000000000..4fcd337f4be
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopicType.h
@@ -0,0 +1,30 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+
+namespace Aws
+{
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+ enum class GuardrailTopicType
+ {
+ NOT_SET,
+ DENY
+ };
+
+namespace GuardrailTopicTypeMapper
+{
+AWS_BEDROCKAGENTRUNTIME_API GuardrailTopicType GetGuardrailTopicTypeForName(const Aws::String& name);
+
+AWS_BEDROCKAGENTRUNTIME_API Aws::String GetNameForGuardrailTopicType(GuardrailTopicType value);
+} // namespace GuardrailTopicTypeMapper
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTrace.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTrace.h
new file mode 100644
index 00000000000..c8043d0151b
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTrace.h
@@ -0,0 +1,213 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+#include
+#include
+#include
+#include
+
+namespace Aws
+{
+namespace Utils
+{
+namespace Json
+{
+ class JsonValue;
+ class JsonView;
+} // namespace Json
+} // namespace Utils
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+
+ /**
+ * The trace details used in the Guardrail.
See Also:
AWS
+ * API Reference
+ */
+ class GuardrailTrace
+ {
+ public:
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailTrace();
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailTrace(Aws::Utils::Json::JsonView jsonValue);
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailTrace& operator=(Aws::Utils::Json::JsonView jsonValue);
+ AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
+
+
+ /**
+ * The trace action details used with the Guardrail.
+ */
+ inline const GuardrailAction& GetAction() const{ return m_action; }
+
+ /**
+ * The trace action details used with the Guardrail.
+ */
+ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
+
+ /**
+ * The trace action details used with the Guardrail.
+ */
+ inline void SetAction(const GuardrailAction& value) { m_actionHasBeenSet = true; m_action = value; }
+
+ /**
+ * The trace action details used with the Guardrail.
+ */
+ inline void SetAction(GuardrailAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
+
+ /**
+ * The trace action details used with the Guardrail.
+ */
+ inline GuardrailTrace& WithAction(const GuardrailAction& value) { SetAction(value); return *this;}
+
+ /**
+ * The trace action details used with the Guardrail.
+ */
+ inline GuardrailTrace& WithAction(GuardrailAction&& value) { SetAction(std::move(value)); return *this;}
+
+
+ /**
+ * The details of the input assessments used in the Guardrail Trace.
+ */
+ inline const Aws::Vector& GetInputAssessments() const{ return m_inputAssessments; }
+
+ /**
+ * The details of the input assessments used in the Guardrail Trace.
+ */
+ inline bool InputAssessmentsHasBeenSet() const { return m_inputAssessmentsHasBeenSet; }
+
+ /**
+ * The details of the input assessments used in the Guardrail Trace.
+ */
+ inline void SetInputAssessments(const Aws::Vector& value) { m_inputAssessmentsHasBeenSet = true; m_inputAssessments = value; }
+
+ /**
+ * The details of the input assessments used in the Guardrail Trace.
+ */
+ inline void SetInputAssessments(Aws::Vector&& value) { m_inputAssessmentsHasBeenSet = true; m_inputAssessments = std::move(value); }
+
+ /**
+ * The details of the input assessments used in the Guardrail Trace.
+ */
+ inline GuardrailTrace& WithInputAssessments(const Aws::Vector& value) { SetInputAssessments(value); return *this;}
+
+ /**
+ * The details of the input assessments used in the Guardrail Trace.
+ */
+ inline GuardrailTrace& WithInputAssessments(Aws::Vector&& value) { SetInputAssessments(std::move(value)); return *this;}
+
+ /**
+ * The details of the input assessments used in the Guardrail Trace.
+ */
+ inline GuardrailTrace& AddInputAssessments(const GuardrailAssessment& value) { m_inputAssessmentsHasBeenSet = true; m_inputAssessments.push_back(value); return *this; }
+
+ /**
+ * The details of the input assessments used in the Guardrail Trace.
+ */
+ inline GuardrailTrace& AddInputAssessments(GuardrailAssessment&& value) { m_inputAssessmentsHasBeenSet = true; m_inputAssessments.push_back(std::move(value)); return *this; }
+
+
+ /**
+ * The details of the output assessments used in the Guardrail Trace.
+ */
+ inline const Aws::Vector& GetOutputAssessments() const{ return m_outputAssessments; }
+
+ /**
+ * The details of the output assessments used in the Guardrail Trace.
+ */
+ inline bool OutputAssessmentsHasBeenSet() const { return m_outputAssessmentsHasBeenSet; }
+
+ /**
+ * The details of the output assessments used in the Guardrail Trace.
+ */
+ inline void SetOutputAssessments(const Aws::Vector& value) { m_outputAssessmentsHasBeenSet = true; m_outputAssessments = value; }
+
+ /**
+ * The details of the output assessments used in the Guardrail Trace.
+ */
+ inline void SetOutputAssessments(Aws::Vector&& value) { m_outputAssessmentsHasBeenSet = true; m_outputAssessments = std::move(value); }
+
+ /**
+ * The details of the output assessments used in the Guardrail Trace.
+ */
+ inline GuardrailTrace& WithOutputAssessments(const Aws::Vector& value) { SetOutputAssessments(value); return *this;}
+
+ /**
+ * The details of the output assessments used in the Guardrail Trace.
+ */
+ inline GuardrailTrace& WithOutputAssessments(Aws::Vector&& value) { SetOutputAssessments(std::move(value)); return *this;}
+
+ /**
+ * The details of the output assessments used in the Guardrail Trace.
+ */
+ inline GuardrailTrace& AddOutputAssessments(const GuardrailAssessment& value) { m_outputAssessmentsHasBeenSet = true; m_outputAssessments.push_back(value); return *this; }
+
+ /**
+ * The details of the output assessments used in the Guardrail Trace.
+ */
+ inline GuardrailTrace& AddOutputAssessments(GuardrailAssessment&& value) { m_outputAssessmentsHasBeenSet = true; m_outputAssessments.push_back(std::move(value)); return *this; }
+
+
+ /**
+ * The details of the trace Id used in the Guardrail Trace.
+ */
+ inline const Aws::String& GetTraceId() const{ return m_traceId; }
+
+ /**
+ * The details of the trace Id used in the Guardrail Trace.
+ */
+ inline bool TraceIdHasBeenSet() const { return m_traceIdHasBeenSet; }
+
+ /**
+ * The details of the trace Id used in the Guardrail Trace.
+ */
+ inline void SetTraceId(const Aws::String& value) { m_traceIdHasBeenSet = true; m_traceId = value; }
+
+ /**
+ * The details of the trace Id used in the Guardrail Trace.
+ */
+ inline void SetTraceId(Aws::String&& value) { m_traceIdHasBeenSet = true; m_traceId = std::move(value); }
+
+ /**
+ * The details of the trace Id used in the Guardrail Trace.
+ */
+ inline void SetTraceId(const char* value) { m_traceIdHasBeenSet = true; m_traceId.assign(value); }
+
+ /**
+ * The details of the trace Id used in the Guardrail Trace.
+ */
+ inline GuardrailTrace& WithTraceId(const Aws::String& value) { SetTraceId(value); return *this;}
+
+ /**
+ * The details of the trace Id used in the Guardrail Trace.
+ */
+ inline GuardrailTrace& WithTraceId(Aws::String&& value) { SetTraceId(std::move(value)); return *this;}
+
+ /**
+ * The details of the trace Id used in the Guardrail Trace.
+ */
+ inline GuardrailTrace& WithTraceId(const char* value) { SetTraceId(value); return *this;}
+
+ private:
+
+ GuardrailAction m_action;
+ bool m_actionHasBeenSet = false;
+
+ Aws::Vector m_inputAssessments;
+ bool m_inputAssessmentsHasBeenSet = false;
+
+ Aws::Vector m_outputAssessments;
+ bool m_outputAssessmentsHasBeenSet = false;
+
+ Aws::String m_traceId;
+ bool m_traceIdHasBeenSet = false;
+ };
+
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailWordPolicyAction.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailWordPolicyAction.h
new file mode 100644
index 00000000000..1d062a5f3cf
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailWordPolicyAction.h
@@ -0,0 +1,30 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+
+namespace Aws
+{
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+ enum class GuardrailWordPolicyAction
+ {
+ NOT_SET,
+ BLOCKED
+ };
+
+namespace GuardrailWordPolicyActionMapper
+{
+AWS_BEDROCKAGENTRUNTIME_API GuardrailWordPolicyAction GetGuardrailWordPolicyActionForName(const Aws::String& name);
+
+AWS_BEDROCKAGENTRUNTIME_API Aws::String GetNameForGuardrailWordPolicyAction(GuardrailWordPolicyAction value);
+} // namespace GuardrailWordPolicyActionMapper
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailWordPolicyAssessment.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailWordPolicyAssessment.h
new file mode 100644
index 00000000000..db3c85656ec
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailWordPolicyAssessment.h
@@ -0,0 +1,135 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+#include
+#include
+#include
+
+namespace Aws
+{
+namespace Utils
+{
+namespace Json
+{
+ class JsonValue;
+ class JsonView;
+} // namespace Json
+} // namespace Utils
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+
+ /**
+ * The assessment details for words defined in the Guardrail
+ * filter.
See Also:
AWS
+ * API Reference
+ */
+ class GuardrailWordPolicyAssessment
+ {
+ public:
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailWordPolicyAssessment();
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailWordPolicyAssessment(Aws::Utils::Json::JsonView jsonValue);
+ AWS_BEDROCKAGENTRUNTIME_API GuardrailWordPolicyAssessment& operator=(Aws::Utils::Json::JsonView jsonValue);
+ AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
+
+
+ /**
+ * The custom word details for words defined in the Guardrail filter.
+ */
+ inline const Aws::Vector& GetCustomWords() const{ return m_customWords; }
+
+ /**
+ * The custom word details for words defined in the Guardrail filter.
+ */
+ inline bool CustomWordsHasBeenSet() const { return m_customWordsHasBeenSet; }
+
+ /**
+ * The custom word details for words defined in the Guardrail filter.
+ */
+ inline void SetCustomWords(const Aws::Vector& value) { m_customWordsHasBeenSet = true; m_customWords = value; }
+
+ /**
+ * The custom word details for words defined in the Guardrail filter.
+ */
+ inline void SetCustomWords(Aws::Vector&& value) { m_customWordsHasBeenSet = true; m_customWords = std::move(value); }
+
+ /**
+ * The custom word details for words defined in the Guardrail filter.
+ */
+ inline GuardrailWordPolicyAssessment& WithCustomWords(const Aws::Vector& value) { SetCustomWords(value); return *this;}
+
+ /**
+ * The custom word details for words defined in the Guardrail filter.
+ */
+ inline GuardrailWordPolicyAssessment& WithCustomWords(Aws::Vector&& value) { SetCustomWords(std::move(value)); return *this;}
+
+ /**
+ * The custom word details for words defined in the Guardrail filter.
+ */
+ inline GuardrailWordPolicyAssessment& AddCustomWords(const GuardrailCustomWord& value) { m_customWordsHasBeenSet = true; m_customWords.push_back(value); return *this; }
+
+ /**
+ * The custom word details for words defined in the Guardrail filter.
+ */
+ inline GuardrailWordPolicyAssessment& AddCustomWords(GuardrailCustomWord&& value) { m_customWordsHasBeenSet = true; m_customWords.push_back(std::move(value)); return *this; }
+
+
+ /**
+ * The managed word lists for words defined in the Guardrail filter.
+ */
+ inline const Aws::Vector& GetManagedWordLists() const{ return m_managedWordLists; }
+
+ /**
+ * The managed word lists for words defined in the Guardrail filter.
+ */
+ inline bool ManagedWordListsHasBeenSet() const { return m_managedWordListsHasBeenSet; }
+
+ /**
+ * The managed word lists for words defined in the Guardrail filter.
+ */
+ inline void SetManagedWordLists(const Aws::Vector& value) { m_managedWordListsHasBeenSet = true; m_managedWordLists = value; }
+
+ /**
+ * The managed word lists for words defined in the Guardrail filter.
+ */
+ inline void SetManagedWordLists(Aws::Vector&& value) { m_managedWordListsHasBeenSet = true; m_managedWordLists = std::move(value); }
+
+ /**
+ * The managed word lists for words defined in the Guardrail filter.
+ */
+ inline GuardrailWordPolicyAssessment& WithManagedWordLists(const Aws::Vector& value) { SetManagedWordLists(value); return *this;}
+
+ /**
+ * The managed word lists for words defined in the Guardrail filter.
+ */
+ inline GuardrailWordPolicyAssessment& WithManagedWordLists(Aws::Vector&& value) { SetManagedWordLists(std::move(value)); return *this;}
+
+ /**
+ * The managed word lists for words defined in the Guardrail filter.
+ */
+ inline GuardrailWordPolicyAssessment& AddManagedWordLists(const GuardrailManagedWord& value) { m_managedWordListsHasBeenSet = true; m_managedWordLists.push_back(value); return *this; }
+
+ /**
+ * The managed word lists for words defined in the Guardrail filter.
+ */
+ inline GuardrailWordPolicyAssessment& AddManagedWordLists(GuardrailManagedWord&& value) { m_managedWordListsHasBeenSet = true; m_managedWordLists.push_back(std::move(value)); return *this; }
+
+ private:
+
+ Aws::Vector m_customWords;
+ bool m_customWordsHasBeenSet = false;
+
+ Aws::Vector m_managedWordLists;
+ bool m_managedWordListsHasBeenSet = false;
+ };
+
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Trace.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Trace.h
index 433e75ed40f..ee9408c9e01 100644
--- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Trace.h
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Trace.h
@@ -6,6 +6,7 @@
#pragma once
#include
#include
+#include
#include
#include
#include
@@ -76,6 +77,37 @@ namespace Model
inline Trace& WithFailureTrace(FailureTrace&& value) { SetFailureTrace(std::move(value)); return *this;}
+ /**
+ * The trace details for a trace defined in the Guardrail filter.
+ */
+ inline const GuardrailTrace& GetGuardrailTrace() const{ return m_guardrailTrace; }
+
+ /**
+ * The trace details for a trace defined in the Guardrail filter.
+ */
+ inline bool GuardrailTraceHasBeenSet() const { return m_guardrailTraceHasBeenSet; }
+
+ /**
+ * The trace details for a trace defined in the Guardrail filter.
+ */
+ inline void SetGuardrailTrace(const GuardrailTrace& value) { m_guardrailTraceHasBeenSet = true; m_guardrailTrace = value; }
+
+ /**
+ * The trace details for a trace defined in the Guardrail filter.
+ */
+ inline void SetGuardrailTrace(GuardrailTrace&& value) { m_guardrailTraceHasBeenSet = true; m_guardrailTrace = std::move(value); }
+
+ /**
+ * The trace details for a trace defined in the Guardrail filter.
+ */
+ inline Trace& WithGuardrailTrace(const GuardrailTrace& value) { SetGuardrailTrace(value); return *this;}
+
+ /**
+ * The trace details for a trace defined in the Guardrail filter.
+ */
+ inline Trace& WithGuardrailTrace(GuardrailTrace&& value) { SetGuardrailTrace(std::move(value)); return *this;}
+
+
/**
* Details about the orchestration step, in which the agent determines the order
* in which actions are executed and which knowledge bases are retrieved.
@@ -191,6 +223,9 @@ namespace Model
FailureTrace m_failureTrace;
bool m_failureTraceHasBeenSet = false;
+ GuardrailTrace m_guardrailTrace;
+ bool m_guardrailTraceHasBeenSet = false;
+
OrchestrationTrace m_orchestrationTrace;
bool m_orchestrationTraceHasBeenSet = false;
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailAction.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailAction.cpp
new file mode 100644
index 00000000000..d98e8a9fa6a
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailAction.cpp
@@ -0,0 +1,72 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include
+#include
+#include
+#include
+
+using namespace Aws::Utils;
+
+
+namespace Aws
+{
+ namespace BedrockAgentRuntime
+ {
+ namespace Model
+ {
+ namespace GuardrailActionMapper
+ {
+
+ static const int INTERVENED_HASH = HashingUtils::HashString("INTERVENED");
+ static const int NONE_HASH = HashingUtils::HashString("NONE");
+
+
+ GuardrailAction GetGuardrailActionForName(const Aws::String& name)
+ {
+ int hashCode = HashingUtils::HashString(name.c_str());
+ if (hashCode == INTERVENED_HASH)
+ {
+ return GuardrailAction::INTERVENED;
+ }
+ else if (hashCode == NONE_HASH)
+ {
+ return GuardrailAction::NONE;
+ }
+ EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
+ if(overflowContainer)
+ {
+ overflowContainer->StoreOverflow(hashCode, name);
+ return static_cast(hashCode);
+ }
+
+ return GuardrailAction::NOT_SET;
+ }
+
+ Aws::String GetNameForGuardrailAction(GuardrailAction enumValue)
+ {
+ switch(enumValue)
+ {
+ case GuardrailAction::NOT_SET:
+ return {};
+ case GuardrailAction::INTERVENED:
+ return "INTERVENED";
+ case GuardrailAction::NONE:
+ return "NONE";
+ default:
+ EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
+ if(overflowContainer)
+ {
+ return overflowContainer->RetrieveOverflow(static_cast(enumValue));
+ }
+
+ return {};
+ }
+ }
+
+ } // namespace GuardrailActionMapper
+ } // namespace Model
+ } // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailAssessment.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailAssessment.cpp
new file mode 100644
index 00000000000..380db321de8
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailAssessment.cpp
@@ -0,0 +1,104 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include
+#include
+
+#include
+
+using namespace Aws::Utils::Json;
+using namespace Aws::Utils;
+
+namespace Aws
+{
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+
+GuardrailAssessment::GuardrailAssessment() :
+ m_contentPolicyHasBeenSet(false),
+ m_sensitiveInformationPolicyHasBeenSet(false),
+ m_topicPolicyHasBeenSet(false),
+ m_wordPolicyHasBeenSet(false)
+{
+}
+
+GuardrailAssessment::GuardrailAssessment(JsonView jsonValue) :
+ m_contentPolicyHasBeenSet(false),
+ m_sensitiveInformationPolicyHasBeenSet(false),
+ m_topicPolicyHasBeenSet(false),
+ m_wordPolicyHasBeenSet(false)
+{
+ *this = jsonValue;
+}
+
+GuardrailAssessment& GuardrailAssessment::operator =(JsonView jsonValue)
+{
+ if(jsonValue.ValueExists("contentPolicy"))
+ {
+ m_contentPolicy = jsonValue.GetObject("contentPolicy");
+
+ m_contentPolicyHasBeenSet = true;
+ }
+
+ if(jsonValue.ValueExists("sensitiveInformationPolicy"))
+ {
+ m_sensitiveInformationPolicy = jsonValue.GetObject("sensitiveInformationPolicy");
+
+ m_sensitiveInformationPolicyHasBeenSet = true;
+ }
+
+ if(jsonValue.ValueExists("topicPolicy"))
+ {
+ m_topicPolicy = jsonValue.GetObject("topicPolicy");
+
+ m_topicPolicyHasBeenSet = true;
+ }
+
+ if(jsonValue.ValueExists("wordPolicy"))
+ {
+ m_wordPolicy = jsonValue.GetObject("wordPolicy");
+
+ m_wordPolicyHasBeenSet = true;
+ }
+
+ return *this;
+}
+
+JsonValue GuardrailAssessment::Jsonize() const
+{
+ JsonValue payload;
+
+ if(m_contentPolicyHasBeenSet)
+ {
+ payload.WithObject("contentPolicy", m_contentPolicy.Jsonize());
+
+ }
+
+ if(m_sensitiveInformationPolicyHasBeenSet)
+ {
+ payload.WithObject("sensitiveInformationPolicy", m_sensitiveInformationPolicy.Jsonize());
+
+ }
+
+ if(m_topicPolicyHasBeenSet)
+ {
+ payload.WithObject("topicPolicy", m_topicPolicy.Jsonize());
+
+ }
+
+ if(m_wordPolicyHasBeenSet)
+ {
+ payload.WithObject("wordPolicy", m_wordPolicy.Jsonize());
+
+ }
+
+ return payload;
+}
+
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentFilter.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentFilter.cpp
new file mode 100644
index 00000000000..27ffcd07bde
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentFilter.cpp
@@ -0,0 +1,92 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include
+#include
+
+#include
+
+using namespace Aws::Utils::Json;
+using namespace Aws::Utils;
+
+namespace Aws
+{
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+
+GuardrailContentFilter::GuardrailContentFilter() :
+ m_action(GuardrailContentPolicyAction::NOT_SET),
+ m_actionHasBeenSet(false),
+ m_confidence(GuardrailContentFilterConfidence::NOT_SET),
+ m_confidenceHasBeenSet(false),
+ m_type(GuardrailContentFilterType::NOT_SET),
+ m_typeHasBeenSet(false)
+{
+}
+
+GuardrailContentFilter::GuardrailContentFilter(JsonView jsonValue) :
+ m_action(GuardrailContentPolicyAction::NOT_SET),
+ m_actionHasBeenSet(false),
+ m_confidence(GuardrailContentFilterConfidence::NOT_SET),
+ m_confidenceHasBeenSet(false),
+ m_type(GuardrailContentFilterType::NOT_SET),
+ m_typeHasBeenSet(false)
+{
+ *this = jsonValue;
+}
+
+GuardrailContentFilter& GuardrailContentFilter::operator =(JsonView jsonValue)
+{
+ if(jsonValue.ValueExists("action"))
+ {
+ m_action = GuardrailContentPolicyActionMapper::GetGuardrailContentPolicyActionForName(jsonValue.GetString("action"));
+
+ m_actionHasBeenSet = true;
+ }
+
+ if(jsonValue.ValueExists("confidence"))
+ {
+ m_confidence = GuardrailContentFilterConfidenceMapper::GetGuardrailContentFilterConfidenceForName(jsonValue.GetString("confidence"));
+
+ m_confidenceHasBeenSet = true;
+ }
+
+ if(jsonValue.ValueExists("type"))
+ {
+ m_type = GuardrailContentFilterTypeMapper::GetGuardrailContentFilterTypeForName(jsonValue.GetString("type"));
+
+ m_typeHasBeenSet = true;
+ }
+
+ return *this;
+}
+
+JsonValue GuardrailContentFilter::Jsonize() const
+{
+ JsonValue payload;
+
+ if(m_actionHasBeenSet)
+ {
+ payload.WithString("action", GuardrailContentPolicyActionMapper::GetNameForGuardrailContentPolicyAction(m_action));
+ }
+
+ if(m_confidenceHasBeenSet)
+ {
+ payload.WithString("confidence", GuardrailContentFilterConfidenceMapper::GetNameForGuardrailContentFilterConfidence(m_confidence));
+ }
+
+ if(m_typeHasBeenSet)
+ {
+ payload.WithString("type", GuardrailContentFilterTypeMapper::GetNameForGuardrailContentFilterType(m_type));
+ }
+
+ return payload;
+}
+
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentFilterConfidence.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentFilterConfidence.cpp
new file mode 100644
index 00000000000..bd83bab8395
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentFilterConfidence.cpp
@@ -0,0 +1,86 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include
+#include
+#include
+#include
+
+using namespace Aws::Utils;
+
+
+namespace Aws
+{
+ namespace BedrockAgentRuntime
+ {
+ namespace Model
+ {
+ namespace GuardrailContentFilterConfidenceMapper
+ {
+
+ static const int NONE_HASH = HashingUtils::HashString("NONE");
+ static const int LOW_HASH = HashingUtils::HashString("LOW");
+ static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM");
+ static const int HIGH_HASH = HashingUtils::HashString("HIGH");
+
+
+ GuardrailContentFilterConfidence GetGuardrailContentFilterConfidenceForName(const Aws::String& name)
+ {
+ int hashCode = HashingUtils::HashString(name.c_str());
+ if (hashCode == NONE_HASH)
+ {
+ return GuardrailContentFilterConfidence::NONE;
+ }
+ else if (hashCode == LOW_HASH)
+ {
+ return GuardrailContentFilterConfidence::LOW;
+ }
+ else if (hashCode == MEDIUM_HASH)
+ {
+ return GuardrailContentFilterConfidence::MEDIUM;
+ }
+ else if (hashCode == HIGH_HASH)
+ {
+ return GuardrailContentFilterConfidence::HIGH;
+ }
+ EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
+ if(overflowContainer)
+ {
+ overflowContainer->StoreOverflow(hashCode, name);
+ return static_cast(hashCode);
+ }
+
+ return GuardrailContentFilterConfidence::NOT_SET;
+ }
+
+ Aws::String GetNameForGuardrailContentFilterConfidence(GuardrailContentFilterConfidence enumValue)
+ {
+ switch(enumValue)
+ {
+ case GuardrailContentFilterConfidence::NOT_SET:
+ return {};
+ case GuardrailContentFilterConfidence::NONE:
+ return "NONE";
+ case GuardrailContentFilterConfidence::LOW:
+ return "LOW";
+ case GuardrailContentFilterConfidence::MEDIUM:
+ return "MEDIUM";
+ case GuardrailContentFilterConfidence::HIGH:
+ return "HIGH";
+ default:
+ EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
+ if(overflowContainer)
+ {
+ return overflowContainer->RetrieveOverflow(static_cast(enumValue));
+ }
+
+ return {};
+ }
+ }
+
+ } // namespace GuardrailContentFilterConfidenceMapper
+ } // namespace Model
+ } // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentFilterType.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentFilterType.cpp
new file mode 100644
index 00000000000..ff05a99b305
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentFilterType.cpp
@@ -0,0 +1,100 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include
+#include
+#include
+#include
+
+using namespace Aws::Utils;
+
+
+namespace Aws
+{
+ namespace BedrockAgentRuntime
+ {
+ namespace Model
+ {
+ namespace GuardrailContentFilterTypeMapper
+ {
+
+ static const int INSULTS_HASH = HashingUtils::HashString("INSULTS");
+ static const int HATE_HASH = HashingUtils::HashString("HATE");
+ static const int SEXUAL_HASH = HashingUtils::HashString("SEXUAL");
+ static const int VIOLENCE_HASH = HashingUtils::HashString("VIOLENCE");
+ static const int MISCONDUCT_HASH = HashingUtils::HashString("MISCONDUCT");
+ static const int PROMPT_ATTACK_HASH = HashingUtils::HashString("PROMPT_ATTACK");
+
+
+ GuardrailContentFilterType GetGuardrailContentFilterTypeForName(const Aws::String& name)
+ {
+ int hashCode = HashingUtils::HashString(name.c_str());
+ if (hashCode == INSULTS_HASH)
+ {
+ return GuardrailContentFilterType::INSULTS;
+ }
+ else if (hashCode == HATE_HASH)
+ {
+ return GuardrailContentFilterType::HATE;
+ }
+ else if (hashCode == SEXUAL_HASH)
+ {
+ return GuardrailContentFilterType::SEXUAL;
+ }
+ else if (hashCode == VIOLENCE_HASH)
+ {
+ return GuardrailContentFilterType::VIOLENCE;
+ }
+ else if (hashCode == MISCONDUCT_HASH)
+ {
+ return GuardrailContentFilterType::MISCONDUCT;
+ }
+ else if (hashCode == PROMPT_ATTACK_HASH)
+ {
+ return GuardrailContentFilterType::PROMPT_ATTACK;
+ }
+ EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
+ if(overflowContainer)
+ {
+ overflowContainer->StoreOverflow(hashCode, name);
+ return static_cast(hashCode);
+ }
+
+ return GuardrailContentFilterType::NOT_SET;
+ }
+
+ Aws::String GetNameForGuardrailContentFilterType(GuardrailContentFilterType enumValue)
+ {
+ switch(enumValue)
+ {
+ case GuardrailContentFilterType::NOT_SET:
+ return {};
+ case GuardrailContentFilterType::INSULTS:
+ return "INSULTS";
+ case GuardrailContentFilterType::HATE:
+ return "HATE";
+ case GuardrailContentFilterType::SEXUAL:
+ return "SEXUAL";
+ case GuardrailContentFilterType::VIOLENCE:
+ return "VIOLENCE";
+ case GuardrailContentFilterType::MISCONDUCT:
+ return "MISCONDUCT";
+ case GuardrailContentFilterType::PROMPT_ATTACK:
+ return "PROMPT_ATTACK";
+ default:
+ EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
+ if(overflowContainer)
+ {
+ return overflowContainer->RetrieveOverflow(static_cast(enumValue));
+ }
+
+ return {};
+ }
+ }
+
+ } // namespace GuardrailContentFilterTypeMapper
+ } // namespace Model
+ } // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentPolicyAction.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentPolicyAction.cpp
new file mode 100644
index 00000000000..2a5cd6dd4e9
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentPolicyAction.cpp
@@ -0,0 +1,65 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include
+#include
+#include
+#include
+
+using namespace Aws::Utils;
+
+
+namespace Aws
+{
+ namespace BedrockAgentRuntime
+ {
+ namespace Model
+ {
+ namespace GuardrailContentPolicyActionMapper
+ {
+
+ static const int BLOCKED_HASH = HashingUtils::HashString("BLOCKED");
+
+
+ GuardrailContentPolicyAction GetGuardrailContentPolicyActionForName(const Aws::String& name)
+ {
+ int hashCode = HashingUtils::HashString(name.c_str());
+ if (hashCode == BLOCKED_HASH)
+ {
+ return GuardrailContentPolicyAction::BLOCKED;
+ }
+ EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
+ if(overflowContainer)
+ {
+ overflowContainer->StoreOverflow(hashCode, name);
+ return static_cast(hashCode);
+ }
+
+ return GuardrailContentPolicyAction::NOT_SET;
+ }
+
+ Aws::String GetNameForGuardrailContentPolicyAction(GuardrailContentPolicyAction enumValue)
+ {
+ switch(enumValue)
+ {
+ case GuardrailContentPolicyAction::NOT_SET:
+ return {};
+ case GuardrailContentPolicyAction::BLOCKED:
+ return "BLOCKED";
+ default:
+ EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
+ if(overflowContainer)
+ {
+ return overflowContainer->RetrieveOverflow(static_cast(enumValue));
+ }
+
+ return {};
+ }
+ }
+
+ } // namespace GuardrailContentPolicyActionMapper
+ } // namespace Model
+ } // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentPolicyAssessment.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentPolicyAssessment.cpp
new file mode 100644
index 00000000000..8d7e96c2471
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentPolicyAssessment.cpp
@@ -0,0 +1,67 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include
+#include
+
+#include
+
+using namespace Aws::Utils::Json;
+using namespace Aws::Utils;
+
+namespace Aws
+{
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+
+GuardrailContentPolicyAssessment::GuardrailContentPolicyAssessment() :
+ m_filtersHasBeenSet(false)
+{
+}
+
+GuardrailContentPolicyAssessment::GuardrailContentPolicyAssessment(JsonView jsonValue) :
+ m_filtersHasBeenSet(false)
+{
+ *this = jsonValue;
+}
+
+GuardrailContentPolicyAssessment& GuardrailContentPolicyAssessment::operator =(JsonView jsonValue)
+{
+ if(jsonValue.ValueExists("filters"))
+ {
+ Aws::Utils::Array filtersJsonList = jsonValue.GetArray("filters");
+ for(unsigned filtersIndex = 0; filtersIndex < filtersJsonList.GetLength(); ++filtersIndex)
+ {
+ m_filters.push_back(filtersJsonList[filtersIndex].AsObject());
+ }
+ m_filtersHasBeenSet = true;
+ }
+
+ return *this;
+}
+
+JsonValue GuardrailContentPolicyAssessment::Jsonize() const
+{
+ JsonValue payload;
+
+ if(m_filtersHasBeenSet)
+ {
+ Aws::Utils::Array filtersJsonList(m_filters.size());
+ for(unsigned filtersIndex = 0; filtersIndex < filtersJsonList.GetLength(); ++filtersIndex)
+ {
+ filtersJsonList[filtersIndex].AsObject(m_filters[filtersIndex].Jsonize());
+ }
+ payload.WithArray("filters", std::move(filtersJsonList));
+
+ }
+
+ return payload;
+}
+
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailCustomWord.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailCustomWord.cpp
new file mode 100644
index 00000000000..e8f706300f2
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailCustomWord.cpp
@@ -0,0 +1,75 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include
+#include
+
+#include
+
+using namespace Aws::Utils::Json;
+using namespace Aws::Utils;
+
+namespace Aws
+{
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+
+GuardrailCustomWord::GuardrailCustomWord() :
+ m_action(GuardrailWordPolicyAction::NOT_SET),
+ m_actionHasBeenSet(false),
+ m_matchHasBeenSet(false)
+{
+}
+
+GuardrailCustomWord::GuardrailCustomWord(JsonView jsonValue) :
+ m_action(GuardrailWordPolicyAction::NOT_SET),
+ m_actionHasBeenSet(false),
+ m_matchHasBeenSet(false)
+{
+ *this = jsonValue;
+}
+
+GuardrailCustomWord& GuardrailCustomWord::operator =(JsonView jsonValue)
+{
+ if(jsonValue.ValueExists("action"))
+ {
+ m_action = GuardrailWordPolicyActionMapper::GetGuardrailWordPolicyActionForName(jsonValue.GetString("action"));
+
+ m_actionHasBeenSet = true;
+ }
+
+ if(jsonValue.ValueExists("match"))
+ {
+ m_match = jsonValue.GetString("match");
+
+ m_matchHasBeenSet = true;
+ }
+
+ return *this;
+}
+
+JsonValue GuardrailCustomWord::Jsonize() const
+{
+ JsonValue payload;
+
+ if(m_actionHasBeenSet)
+ {
+ payload.WithString("action", GuardrailWordPolicyActionMapper::GetNameForGuardrailWordPolicyAction(m_action));
+ }
+
+ if(m_matchHasBeenSet)
+ {
+ payload.WithString("match", m_match);
+
+ }
+
+ return payload;
+}
+
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailManagedWord.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailManagedWord.cpp
new file mode 100644
index 00000000000..b66fe0db5e5
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailManagedWord.cpp
@@ -0,0 +1,91 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include
+#include
+
+#include
+
+using namespace Aws::Utils::Json;
+using namespace Aws::Utils;
+
+namespace Aws
+{
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+
+GuardrailManagedWord::GuardrailManagedWord() :
+ m_action(GuardrailWordPolicyAction::NOT_SET),
+ m_actionHasBeenSet(false),
+ m_matchHasBeenSet(false),
+ m_type(GuardrailManagedWordType::NOT_SET),
+ m_typeHasBeenSet(false)
+{
+}
+
+GuardrailManagedWord::GuardrailManagedWord(JsonView jsonValue) :
+ m_action(GuardrailWordPolicyAction::NOT_SET),
+ m_actionHasBeenSet(false),
+ m_matchHasBeenSet(false),
+ m_type(GuardrailManagedWordType::NOT_SET),
+ m_typeHasBeenSet(false)
+{
+ *this = jsonValue;
+}
+
+GuardrailManagedWord& GuardrailManagedWord::operator =(JsonView jsonValue)
+{
+ if(jsonValue.ValueExists("action"))
+ {
+ m_action = GuardrailWordPolicyActionMapper::GetGuardrailWordPolicyActionForName(jsonValue.GetString("action"));
+
+ m_actionHasBeenSet = true;
+ }
+
+ if(jsonValue.ValueExists("match"))
+ {
+ m_match = jsonValue.GetString("match");
+
+ m_matchHasBeenSet = true;
+ }
+
+ if(jsonValue.ValueExists("type"))
+ {
+ m_type = GuardrailManagedWordTypeMapper::GetGuardrailManagedWordTypeForName(jsonValue.GetString("type"));
+
+ m_typeHasBeenSet = true;
+ }
+
+ return *this;
+}
+
+JsonValue GuardrailManagedWord::Jsonize() const
+{
+ JsonValue payload;
+
+ if(m_actionHasBeenSet)
+ {
+ payload.WithString("action", GuardrailWordPolicyActionMapper::GetNameForGuardrailWordPolicyAction(m_action));
+ }
+
+ if(m_matchHasBeenSet)
+ {
+ payload.WithString("match", m_match);
+
+ }
+
+ if(m_typeHasBeenSet)
+ {
+ payload.WithString("type", GuardrailManagedWordTypeMapper::GetNameForGuardrailManagedWordType(m_type));
+ }
+
+ return payload;
+}
+
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailManagedWordType.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailManagedWordType.cpp
new file mode 100644
index 00000000000..dd72b764ae2
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailManagedWordType.cpp
@@ -0,0 +1,65 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include
+#include
+#include
+#include
+
+using namespace Aws::Utils;
+
+
+namespace Aws
+{
+ namespace BedrockAgentRuntime
+ {
+ namespace Model
+ {
+ namespace GuardrailManagedWordTypeMapper
+ {
+
+ static const int PROFANITY_HASH = HashingUtils::HashString("PROFANITY");
+
+
+ GuardrailManagedWordType GetGuardrailManagedWordTypeForName(const Aws::String& name)
+ {
+ int hashCode = HashingUtils::HashString(name.c_str());
+ if (hashCode == PROFANITY_HASH)
+ {
+ return GuardrailManagedWordType::PROFANITY;
+ }
+ EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
+ if(overflowContainer)
+ {
+ overflowContainer->StoreOverflow(hashCode, name);
+ return static_cast(hashCode);
+ }
+
+ return GuardrailManagedWordType::NOT_SET;
+ }
+
+ Aws::String GetNameForGuardrailManagedWordType(GuardrailManagedWordType enumValue)
+ {
+ switch(enumValue)
+ {
+ case GuardrailManagedWordType::NOT_SET:
+ return {};
+ case GuardrailManagedWordType::PROFANITY:
+ return "PROFANITY";
+ default:
+ EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
+ if(overflowContainer)
+ {
+ return overflowContainer->RetrieveOverflow(static_cast(enumValue));
+ }
+
+ return {};
+ }
+ }
+
+ } // namespace GuardrailManagedWordTypeMapper
+ } // namespace Model
+ } // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailPiiEntityFilter.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailPiiEntityFilter.cpp
new file mode 100644
index 00000000000..09501962431
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailPiiEntityFilter.cpp
@@ -0,0 +1,91 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include
+#include
+
+#include
+
+using namespace Aws::Utils::Json;
+using namespace Aws::Utils;
+
+namespace Aws
+{
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+
+GuardrailPiiEntityFilter::GuardrailPiiEntityFilter() :
+ m_action(GuardrailSensitiveInformationPolicyAction::NOT_SET),
+ m_actionHasBeenSet(false),
+ m_matchHasBeenSet(false),
+ m_type(GuardrailPiiEntityType::NOT_SET),
+ m_typeHasBeenSet(false)
+{
+}
+
+GuardrailPiiEntityFilter::GuardrailPiiEntityFilter(JsonView jsonValue) :
+ m_action(GuardrailSensitiveInformationPolicyAction::NOT_SET),
+ m_actionHasBeenSet(false),
+ m_matchHasBeenSet(false),
+ m_type(GuardrailPiiEntityType::NOT_SET),
+ m_typeHasBeenSet(false)
+{
+ *this = jsonValue;
+}
+
+GuardrailPiiEntityFilter& GuardrailPiiEntityFilter::operator =(JsonView jsonValue)
+{
+ if(jsonValue.ValueExists("action"))
+ {
+ m_action = GuardrailSensitiveInformationPolicyActionMapper::GetGuardrailSensitiveInformationPolicyActionForName(jsonValue.GetString("action"));
+
+ m_actionHasBeenSet = true;
+ }
+
+ if(jsonValue.ValueExists("match"))
+ {
+ m_match = jsonValue.GetString("match");
+
+ m_matchHasBeenSet = true;
+ }
+
+ if(jsonValue.ValueExists("type"))
+ {
+ m_type = GuardrailPiiEntityTypeMapper::GetGuardrailPiiEntityTypeForName(jsonValue.GetString("type"));
+
+ m_typeHasBeenSet = true;
+ }
+
+ return *this;
+}
+
+JsonValue GuardrailPiiEntityFilter::Jsonize() const
+{
+ JsonValue payload;
+
+ if(m_actionHasBeenSet)
+ {
+ payload.WithString("action", GuardrailSensitiveInformationPolicyActionMapper::GetNameForGuardrailSensitiveInformationPolicyAction(m_action));
+ }
+
+ if(m_matchHasBeenSet)
+ {
+ payload.WithString("match", m_match);
+
+ }
+
+ if(m_typeHasBeenSet)
+ {
+ payload.WithString("type", GuardrailPiiEntityTypeMapper::GetNameForGuardrailPiiEntityType(m_type));
+ }
+
+ return payload;
+}
+
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailPiiEntityType.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailPiiEntityType.cpp
new file mode 100644
index 00000000000..08fcf4dfa9e
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailPiiEntityType.cpp
@@ -0,0 +1,275 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include
+#include
+#include
+#include
+
+using namespace Aws::Utils;
+
+
+namespace Aws
+{
+ namespace BedrockAgentRuntime
+ {
+ namespace Model
+ {
+ namespace GuardrailPiiEntityTypeMapper
+ {
+
+ static const int ADDRESS_HASH = HashingUtils::HashString("ADDRESS");
+ static const int AGE_HASH = HashingUtils::HashString("AGE");
+ static const int AWS_ACCESS_KEY_HASH = HashingUtils::HashString("AWS_ACCESS_KEY");
+ static const int AWS_SECRET_KEY_HASH = HashingUtils::HashString("AWS_SECRET_KEY");
+ static const int CA_HEALTH_NUMBER_HASH = HashingUtils::HashString("CA_HEALTH_NUMBER");
+ static const int CA_SOCIAL_INSURANCE_NUMBER_HASH = HashingUtils::HashString("CA_SOCIAL_INSURANCE_NUMBER");
+ static const int CREDIT_DEBIT_CARD_CVV_HASH = HashingUtils::HashString("CREDIT_DEBIT_CARD_CVV");
+ static const int CREDIT_DEBIT_CARD_EXPIRY_HASH = HashingUtils::HashString("CREDIT_DEBIT_CARD_EXPIRY");
+ static const int CREDIT_DEBIT_CARD_NUMBER_HASH = HashingUtils::HashString("CREDIT_DEBIT_CARD_NUMBER");
+ static const int DRIVER_ID_HASH = HashingUtils::HashString("DRIVER_ID");
+ static const int EMAIL_HASH = HashingUtils::HashString("EMAIL");
+ static const int INTERNATIONAL_BANK_ACCOUNT_NUMBER_HASH = HashingUtils::HashString("INTERNATIONAL_BANK_ACCOUNT_NUMBER");
+ static const int IP_ADDRESS_HASH = HashingUtils::HashString("IP_ADDRESS");
+ static const int LICENSE_PLATE_HASH = HashingUtils::HashString("LICENSE_PLATE");
+ static const int MAC_ADDRESS_HASH = HashingUtils::HashString("MAC_ADDRESS");
+ static const int NAME_HASH = HashingUtils::HashString("NAME");
+ static const int PASSWORD_HASH = HashingUtils::HashString("PASSWORD");
+ static const int PHONE_HASH = HashingUtils::HashString("PHONE");
+ static const int PIN_HASH = HashingUtils::HashString("PIN");
+ static const int SWIFT_CODE_HASH = HashingUtils::HashString("SWIFT_CODE");
+ static const int UK_NATIONAL_HEALTH_SERVICE_NUMBER_HASH = HashingUtils::HashString("UK_NATIONAL_HEALTH_SERVICE_NUMBER");
+ static const int UK_NATIONAL_INSURANCE_NUMBER_HASH = HashingUtils::HashString("UK_NATIONAL_INSURANCE_NUMBER");
+ static const int UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER_HASH = HashingUtils::HashString("UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER");
+ static const int URL_HASH = HashingUtils::HashString("URL");
+ static const int USERNAME_HASH = HashingUtils::HashString("USERNAME");
+ static const int US_BANK_ACCOUNT_NUMBER_HASH = HashingUtils::HashString("US_BANK_ACCOUNT_NUMBER");
+ static const int US_BANK_ROUTING_NUMBER_HASH = HashingUtils::HashString("US_BANK_ROUTING_NUMBER");
+ static const int US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER_HASH = HashingUtils::HashString("US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER");
+ static const int US_PASSPORT_NUMBER_HASH = HashingUtils::HashString("US_PASSPORT_NUMBER");
+ static const int US_SOCIAL_SECURITY_NUMBER_HASH = HashingUtils::HashString("US_SOCIAL_SECURITY_NUMBER");
+ static const int VEHICLE_IDENTIFICATION_NUMBER_HASH = HashingUtils::HashString("VEHICLE_IDENTIFICATION_NUMBER");
+
+
+ GuardrailPiiEntityType GetGuardrailPiiEntityTypeForName(const Aws::String& name)
+ {
+ int hashCode = HashingUtils::HashString(name.c_str());
+ if (hashCode == ADDRESS_HASH)
+ {
+ return GuardrailPiiEntityType::ADDRESS;
+ }
+ else if (hashCode == AGE_HASH)
+ {
+ return GuardrailPiiEntityType::AGE;
+ }
+ else if (hashCode == AWS_ACCESS_KEY_HASH)
+ {
+ return GuardrailPiiEntityType::AWS_ACCESS_KEY;
+ }
+ else if (hashCode == AWS_SECRET_KEY_HASH)
+ {
+ return GuardrailPiiEntityType::AWS_SECRET_KEY;
+ }
+ else if (hashCode == CA_HEALTH_NUMBER_HASH)
+ {
+ return GuardrailPiiEntityType::CA_HEALTH_NUMBER;
+ }
+ else if (hashCode == CA_SOCIAL_INSURANCE_NUMBER_HASH)
+ {
+ return GuardrailPiiEntityType::CA_SOCIAL_INSURANCE_NUMBER;
+ }
+ else if (hashCode == CREDIT_DEBIT_CARD_CVV_HASH)
+ {
+ return GuardrailPiiEntityType::CREDIT_DEBIT_CARD_CVV;
+ }
+ else if (hashCode == CREDIT_DEBIT_CARD_EXPIRY_HASH)
+ {
+ return GuardrailPiiEntityType::CREDIT_DEBIT_CARD_EXPIRY;
+ }
+ else if (hashCode == CREDIT_DEBIT_CARD_NUMBER_HASH)
+ {
+ return GuardrailPiiEntityType::CREDIT_DEBIT_CARD_NUMBER;
+ }
+ else if (hashCode == DRIVER_ID_HASH)
+ {
+ return GuardrailPiiEntityType::DRIVER_ID;
+ }
+ else if (hashCode == EMAIL_HASH)
+ {
+ return GuardrailPiiEntityType::EMAIL;
+ }
+ else if (hashCode == INTERNATIONAL_BANK_ACCOUNT_NUMBER_HASH)
+ {
+ return GuardrailPiiEntityType::INTERNATIONAL_BANK_ACCOUNT_NUMBER;
+ }
+ else if (hashCode == IP_ADDRESS_HASH)
+ {
+ return GuardrailPiiEntityType::IP_ADDRESS;
+ }
+ else if (hashCode == LICENSE_PLATE_HASH)
+ {
+ return GuardrailPiiEntityType::LICENSE_PLATE;
+ }
+ else if (hashCode == MAC_ADDRESS_HASH)
+ {
+ return GuardrailPiiEntityType::MAC_ADDRESS;
+ }
+ else if (hashCode == NAME_HASH)
+ {
+ return GuardrailPiiEntityType::NAME;
+ }
+ else if (hashCode == PASSWORD_HASH)
+ {
+ return GuardrailPiiEntityType::PASSWORD;
+ }
+ else if (hashCode == PHONE_HASH)
+ {
+ return GuardrailPiiEntityType::PHONE;
+ }
+ else if (hashCode == PIN_HASH)
+ {
+ return GuardrailPiiEntityType::PIN;
+ }
+ else if (hashCode == SWIFT_CODE_HASH)
+ {
+ return GuardrailPiiEntityType::SWIFT_CODE;
+ }
+ else if (hashCode == UK_NATIONAL_HEALTH_SERVICE_NUMBER_HASH)
+ {
+ return GuardrailPiiEntityType::UK_NATIONAL_HEALTH_SERVICE_NUMBER;
+ }
+ else if (hashCode == UK_NATIONAL_INSURANCE_NUMBER_HASH)
+ {
+ return GuardrailPiiEntityType::UK_NATIONAL_INSURANCE_NUMBER;
+ }
+ else if (hashCode == UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER_HASH)
+ {
+ return GuardrailPiiEntityType::UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER;
+ }
+ else if (hashCode == URL_HASH)
+ {
+ return GuardrailPiiEntityType::URL;
+ }
+ else if (hashCode == USERNAME_HASH)
+ {
+ return GuardrailPiiEntityType::USERNAME;
+ }
+ else if (hashCode == US_BANK_ACCOUNT_NUMBER_HASH)
+ {
+ return GuardrailPiiEntityType::US_BANK_ACCOUNT_NUMBER;
+ }
+ else if (hashCode == US_BANK_ROUTING_NUMBER_HASH)
+ {
+ return GuardrailPiiEntityType::US_BANK_ROUTING_NUMBER;
+ }
+ else if (hashCode == US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER_HASH)
+ {
+ return GuardrailPiiEntityType::US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER;
+ }
+ else if (hashCode == US_PASSPORT_NUMBER_HASH)
+ {
+ return GuardrailPiiEntityType::US_PASSPORT_NUMBER;
+ }
+ else if (hashCode == US_SOCIAL_SECURITY_NUMBER_HASH)
+ {
+ return GuardrailPiiEntityType::US_SOCIAL_SECURITY_NUMBER;
+ }
+ else if (hashCode == VEHICLE_IDENTIFICATION_NUMBER_HASH)
+ {
+ return GuardrailPiiEntityType::VEHICLE_IDENTIFICATION_NUMBER;
+ }
+ EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
+ if(overflowContainer)
+ {
+ overflowContainer->StoreOverflow(hashCode, name);
+ return static_cast(hashCode);
+ }
+
+ return GuardrailPiiEntityType::NOT_SET;
+ }
+
+ Aws::String GetNameForGuardrailPiiEntityType(GuardrailPiiEntityType enumValue)
+ {
+ switch(enumValue)
+ {
+ case GuardrailPiiEntityType::NOT_SET:
+ return {};
+ case GuardrailPiiEntityType::ADDRESS:
+ return "ADDRESS";
+ case GuardrailPiiEntityType::AGE:
+ return "AGE";
+ case GuardrailPiiEntityType::AWS_ACCESS_KEY:
+ return "AWS_ACCESS_KEY";
+ case GuardrailPiiEntityType::AWS_SECRET_KEY:
+ return "AWS_SECRET_KEY";
+ case GuardrailPiiEntityType::CA_HEALTH_NUMBER:
+ return "CA_HEALTH_NUMBER";
+ case GuardrailPiiEntityType::CA_SOCIAL_INSURANCE_NUMBER:
+ return "CA_SOCIAL_INSURANCE_NUMBER";
+ case GuardrailPiiEntityType::CREDIT_DEBIT_CARD_CVV:
+ return "CREDIT_DEBIT_CARD_CVV";
+ case GuardrailPiiEntityType::CREDIT_DEBIT_CARD_EXPIRY:
+ return "CREDIT_DEBIT_CARD_EXPIRY";
+ case GuardrailPiiEntityType::CREDIT_DEBIT_CARD_NUMBER:
+ return "CREDIT_DEBIT_CARD_NUMBER";
+ case GuardrailPiiEntityType::DRIVER_ID:
+ return "DRIVER_ID";
+ case GuardrailPiiEntityType::EMAIL:
+ return "EMAIL";
+ case GuardrailPiiEntityType::INTERNATIONAL_BANK_ACCOUNT_NUMBER:
+ return "INTERNATIONAL_BANK_ACCOUNT_NUMBER";
+ case GuardrailPiiEntityType::IP_ADDRESS:
+ return "IP_ADDRESS";
+ case GuardrailPiiEntityType::LICENSE_PLATE:
+ return "LICENSE_PLATE";
+ case GuardrailPiiEntityType::MAC_ADDRESS:
+ return "MAC_ADDRESS";
+ case GuardrailPiiEntityType::NAME:
+ return "NAME";
+ case GuardrailPiiEntityType::PASSWORD:
+ return "PASSWORD";
+ case GuardrailPiiEntityType::PHONE:
+ return "PHONE";
+ case GuardrailPiiEntityType::PIN:
+ return "PIN";
+ case GuardrailPiiEntityType::SWIFT_CODE:
+ return "SWIFT_CODE";
+ case GuardrailPiiEntityType::UK_NATIONAL_HEALTH_SERVICE_NUMBER:
+ return "UK_NATIONAL_HEALTH_SERVICE_NUMBER";
+ case GuardrailPiiEntityType::UK_NATIONAL_INSURANCE_NUMBER:
+ return "UK_NATIONAL_INSURANCE_NUMBER";
+ case GuardrailPiiEntityType::UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER:
+ return "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER";
+ case GuardrailPiiEntityType::URL:
+ return "URL";
+ case GuardrailPiiEntityType::USERNAME:
+ return "USERNAME";
+ case GuardrailPiiEntityType::US_BANK_ACCOUNT_NUMBER:
+ return "US_BANK_ACCOUNT_NUMBER";
+ case GuardrailPiiEntityType::US_BANK_ROUTING_NUMBER:
+ return "US_BANK_ROUTING_NUMBER";
+ case GuardrailPiiEntityType::US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER:
+ return "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER";
+ case GuardrailPiiEntityType::US_PASSPORT_NUMBER:
+ return "US_PASSPORT_NUMBER";
+ case GuardrailPiiEntityType::US_SOCIAL_SECURITY_NUMBER:
+ return "US_SOCIAL_SECURITY_NUMBER";
+ case GuardrailPiiEntityType::VEHICLE_IDENTIFICATION_NUMBER:
+ return "VEHICLE_IDENTIFICATION_NUMBER";
+ default:
+ EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
+ if(overflowContainer)
+ {
+ return overflowContainer->RetrieveOverflow(static_cast(enumValue));
+ }
+
+ return {};
+ }
+ }
+
+ } // namespace GuardrailPiiEntityTypeMapper
+ } // namespace Model
+ } // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailRegexFilter.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailRegexFilter.cpp
new file mode 100644
index 00000000000..f8b0f3c6fe2
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailRegexFilter.cpp
@@ -0,0 +1,105 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include
+#include
+
+#include
+
+using namespace Aws::Utils::Json;
+using namespace Aws::Utils;
+
+namespace Aws
+{
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+
+GuardrailRegexFilter::GuardrailRegexFilter() :
+ m_action(GuardrailSensitiveInformationPolicyAction::NOT_SET),
+ m_actionHasBeenSet(false),
+ m_matchHasBeenSet(false),
+ m_nameHasBeenSet(false),
+ m_regexHasBeenSet(false)
+{
+}
+
+GuardrailRegexFilter::GuardrailRegexFilter(JsonView jsonValue) :
+ m_action(GuardrailSensitiveInformationPolicyAction::NOT_SET),
+ m_actionHasBeenSet(false),
+ m_matchHasBeenSet(false),
+ m_nameHasBeenSet(false),
+ m_regexHasBeenSet(false)
+{
+ *this = jsonValue;
+}
+
+GuardrailRegexFilter& GuardrailRegexFilter::operator =(JsonView jsonValue)
+{
+ if(jsonValue.ValueExists("action"))
+ {
+ m_action = GuardrailSensitiveInformationPolicyActionMapper::GetGuardrailSensitiveInformationPolicyActionForName(jsonValue.GetString("action"));
+
+ m_actionHasBeenSet = true;
+ }
+
+ if(jsonValue.ValueExists("match"))
+ {
+ m_match = jsonValue.GetString("match");
+
+ m_matchHasBeenSet = true;
+ }
+
+ if(jsonValue.ValueExists("name"))
+ {
+ m_name = jsonValue.GetString("name");
+
+ m_nameHasBeenSet = true;
+ }
+
+ if(jsonValue.ValueExists("regex"))
+ {
+ m_regex = jsonValue.GetString("regex");
+
+ m_regexHasBeenSet = true;
+ }
+
+ return *this;
+}
+
+JsonValue GuardrailRegexFilter::Jsonize() const
+{
+ JsonValue payload;
+
+ if(m_actionHasBeenSet)
+ {
+ payload.WithString("action", GuardrailSensitiveInformationPolicyActionMapper::GetNameForGuardrailSensitiveInformationPolicyAction(m_action));
+ }
+
+ if(m_matchHasBeenSet)
+ {
+ payload.WithString("match", m_match);
+
+ }
+
+ if(m_nameHasBeenSet)
+ {
+ payload.WithString("name", m_name);
+
+ }
+
+ if(m_regexHasBeenSet)
+ {
+ payload.WithString("regex", m_regex);
+
+ }
+
+ return payload;
+}
+
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailSensitiveInformationPolicyAction.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailSensitiveInformationPolicyAction.cpp
new file mode 100644
index 00000000000..bbc7dab31cf
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailSensitiveInformationPolicyAction.cpp
@@ -0,0 +1,72 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include
+#include
+#include
+#include
+
+using namespace Aws::Utils;
+
+
+namespace Aws
+{
+ namespace BedrockAgentRuntime
+ {
+ namespace Model
+ {
+ namespace GuardrailSensitiveInformationPolicyActionMapper
+ {
+
+ static const int BLOCKED_HASH = HashingUtils::HashString("BLOCKED");
+ static const int ANONYMIZED_HASH = HashingUtils::HashString("ANONYMIZED");
+
+
+ GuardrailSensitiveInformationPolicyAction GetGuardrailSensitiveInformationPolicyActionForName(const Aws::String& name)
+ {
+ int hashCode = HashingUtils::HashString(name.c_str());
+ if (hashCode == BLOCKED_HASH)
+ {
+ return GuardrailSensitiveInformationPolicyAction::BLOCKED;
+ }
+ else if (hashCode == ANONYMIZED_HASH)
+ {
+ return GuardrailSensitiveInformationPolicyAction::ANONYMIZED;
+ }
+ EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
+ if(overflowContainer)
+ {
+ overflowContainer->StoreOverflow(hashCode, name);
+ return static_cast(hashCode);
+ }
+
+ return GuardrailSensitiveInformationPolicyAction::NOT_SET;
+ }
+
+ Aws::String GetNameForGuardrailSensitiveInformationPolicyAction(GuardrailSensitiveInformationPolicyAction enumValue)
+ {
+ switch(enumValue)
+ {
+ case GuardrailSensitiveInformationPolicyAction::NOT_SET:
+ return {};
+ case GuardrailSensitiveInformationPolicyAction::BLOCKED:
+ return "BLOCKED";
+ case GuardrailSensitiveInformationPolicyAction::ANONYMIZED:
+ return "ANONYMIZED";
+ default:
+ EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
+ if(overflowContainer)
+ {
+ return overflowContainer->RetrieveOverflow(static_cast(enumValue));
+ }
+
+ return {};
+ }
+ }
+
+ } // namespace GuardrailSensitiveInformationPolicyActionMapper
+ } // namespace Model
+ } // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailSensitiveInformationPolicyAssessment.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailSensitiveInformationPolicyAssessment.cpp
new file mode 100644
index 00000000000..96fb0b72e8a
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailSensitiveInformationPolicyAssessment.cpp
@@ -0,0 +1,90 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include
+#include
+
+#include
+
+using namespace Aws::Utils::Json;
+using namespace Aws::Utils;
+
+namespace Aws
+{
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+
+GuardrailSensitiveInformationPolicyAssessment::GuardrailSensitiveInformationPolicyAssessment() :
+ m_piiEntitiesHasBeenSet(false),
+ m_regexesHasBeenSet(false)
+{
+}
+
+GuardrailSensitiveInformationPolicyAssessment::GuardrailSensitiveInformationPolicyAssessment(JsonView jsonValue) :
+ m_piiEntitiesHasBeenSet(false),
+ m_regexesHasBeenSet(false)
+{
+ *this = jsonValue;
+}
+
+GuardrailSensitiveInformationPolicyAssessment& GuardrailSensitiveInformationPolicyAssessment::operator =(JsonView jsonValue)
+{
+ if(jsonValue.ValueExists("piiEntities"))
+ {
+ Aws::Utils::Array piiEntitiesJsonList = jsonValue.GetArray("piiEntities");
+ for(unsigned piiEntitiesIndex = 0; piiEntitiesIndex < piiEntitiesJsonList.GetLength(); ++piiEntitiesIndex)
+ {
+ m_piiEntities.push_back(piiEntitiesJsonList[piiEntitiesIndex].AsObject());
+ }
+ m_piiEntitiesHasBeenSet = true;
+ }
+
+ if(jsonValue.ValueExists("regexes"))
+ {
+ Aws::Utils::Array regexesJsonList = jsonValue.GetArray("regexes");
+ for(unsigned regexesIndex = 0; regexesIndex < regexesJsonList.GetLength(); ++regexesIndex)
+ {
+ m_regexes.push_back(regexesJsonList[regexesIndex].AsObject());
+ }
+ m_regexesHasBeenSet = true;
+ }
+
+ return *this;
+}
+
+JsonValue GuardrailSensitiveInformationPolicyAssessment::Jsonize() const
+{
+ JsonValue payload;
+
+ if(m_piiEntitiesHasBeenSet)
+ {
+ Aws::Utils::Array piiEntitiesJsonList(m_piiEntities.size());
+ for(unsigned piiEntitiesIndex = 0; piiEntitiesIndex < piiEntitiesJsonList.GetLength(); ++piiEntitiesIndex)
+ {
+ piiEntitiesJsonList[piiEntitiesIndex].AsObject(m_piiEntities[piiEntitiesIndex].Jsonize());
+ }
+ payload.WithArray("piiEntities", std::move(piiEntitiesJsonList));
+
+ }
+
+ if(m_regexesHasBeenSet)
+ {
+ Aws::Utils::Array regexesJsonList(m_regexes.size());
+ for(unsigned regexesIndex = 0; regexesIndex < regexesJsonList.GetLength(); ++regexesIndex)
+ {
+ regexesJsonList[regexesIndex].AsObject(m_regexes[regexesIndex].Jsonize());
+ }
+ payload.WithArray("regexes", std::move(regexesJsonList));
+
+ }
+
+ return payload;
+}
+
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopic.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopic.cpp
new file mode 100644
index 00000000000..363e7b29463
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopic.cpp
@@ -0,0 +1,91 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include
+#include
+
+#include
+
+using namespace Aws::Utils::Json;
+using namespace Aws::Utils;
+
+namespace Aws
+{
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+
+GuardrailTopic::GuardrailTopic() :
+ m_action(GuardrailTopicPolicyAction::NOT_SET),
+ m_actionHasBeenSet(false),
+ m_nameHasBeenSet(false),
+ m_type(GuardrailTopicType::NOT_SET),
+ m_typeHasBeenSet(false)
+{
+}
+
+GuardrailTopic::GuardrailTopic(JsonView jsonValue) :
+ m_action(GuardrailTopicPolicyAction::NOT_SET),
+ m_actionHasBeenSet(false),
+ m_nameHasBeenSet(false),
+ m_type(GuardrailTopicType::NOT_SET),
+ m_typeHasBeenSet(false)
+{
+ *this = jsonValue;
+}
+
+GuardrailTopic& GuardrailTopic::operator =(JsonView jsonValue)
+{
+ if(jsonValue.ValueExists("action"))
+ {
+ m_action = GuardrailTopicPolicyActionMapper::GetGuardrailTopicPolicyActionForName(jsonValue.GetString("action"));
+
+ m_actionHasBeenSet = true;
+ }
+
+ if(jsonValue.ValueExists("name"))
+ {
+ m_name = jsonValue.GetString("name");
+
+ m_nameHasBeenSet = true;
+ }
+
+ if(jsonValue.ValueExists("type"))
+ {
+ m_type = GuardrailTopicTypeMapper::GetGuardrailTopicTypeForName(jsonValue.GetString("type"));
+
+ m_typeHasBeenSet = true;
+ }
+
+ return *this;
+}
+
+JsonValue GuardrailTopic::Jsonize() const
+{
+ JsonValue payload;
+
+ if(m_actionHasBeenSet)
+ {
+ payload.WithString("action", GuardrailTopicPolicyActionMapper::GetNameForGuardrailTopicPolicyAction(m_action));
+ }
+
+ if(m_nameHasBeenSet)
+ {
+ payload.WithString("name", m_name);
+
+ }
+
+ if(m_typeHasBeenSet)
+ {
+ payload.WithString("type", GuardrailTopicTypeMapper::GetNameForGuardrailTopicType(m_type));
+ }
+
+ return payload;
+}
+
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopicPolicyAction.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopicPolicyAction.cpp
new file mode 100644
index 00000000000..833851f90b3
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopicPolicyAction.cpp
@@ -0,0 +1,65 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include
+#include
+#include
+#include
+
+using namespace Aws::Utils;
+
+
+namespace Aws
+{
+ namespace BedrockAgentRuntime
+ {
+ namespace Model
+ {
+ namespace GuardrailTopicPolicyActionMapper
+ {
+
+ static const int BLOCKED_HASH = HashingUtils::HashString("BLOCKED");
+
+
+ GuardrailTopicPolicyAction GetGuardrailTopicPolicyActionForName(const Aws::String& name)
+ {
+ int hashCode = HashingUtils::HashString(name.c_str());
+ if (hashCode == BLOCKED_HASH)
+ {
+ return GuardrailTopicPolicyAction::BLOCKED;
+ }
+ EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
+ if(overflowContainer)
+ {
+ overflowContainer->StoreOverflow(hashCode, name);
+ return static_cast(hashCode);
+ }
+
+ return GuardrailTopicPolicyAction::NOT_SET;
+ }
+
+ Aws::String GetNameForGuardrailTopicPolicyAction(GuardrailTopicPolicyAction enumValue)
+ {
+ switch(enumValue)
+ {
+ case GuardrailTopicPolicyAction::NOT_SET:
+ return {};
+ case GuardrailTopicPolicyAction::BLOCKED:
+ return "BLOCKED";
+ default:
+ EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
+ if(overflowContainer)
+ {
+ return overflowContainer->RetrieveOverflow(static_cast(enumValue));
+ }
+
+ return {};
+ }
+ }
+
+ } // namespace GuardrailTopicPolicyActionMapper
+ } // namespace Model
+ } // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopicPolicyAssessment.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopicPolicyAssessment.cpp
new file mode 100644
index 00000000000..d03121bdfa2
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopicPolicyAssessment.cpp
@@ -0,0 +1,67 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include
+#include
+
+#include
+
+using namespace Aws::Utils::Json;
+using namespace Aws::Utils;
+
+namespace Aws
+{
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+
+GuardrailTopicPolicyAssessment::GuardrailTopicPolicyAssessment() :
+ m_topicsHasBeenSet(false)
+{
+}
+
+GuardrailTopicPolicyAssessment::GuardrailTopicPolicyAssessment(JsonView jsonValue) :
+ m_topicsHasBeenSet(false)
+{
+ *this = jsonValue;
+}
+
+GuardrailTopicPolicyAssessment& GuardrailTopicPolicyAssessment::operator =(JsonView jsonValue)
+{
+ if(jsonValue.ValueExists("topics"))
+ {
+ Aws::Utils::Array topicsJsonList = jsonValue.GetArray("topics");
+ for(unsigned topicsIndex = 0; topicsIndex < topicsJsonList.GetLength(); ++topicsIndex)
+ {
+ m_topics.push_back(topicsJsonList[topicsIndex].AsObject());
+ }
+ m_topicsHasBeenSet = true;
+ }
+
+ return *this;
+}
+
+JsonValue GuardrailTopicPolicyAssessment::Jsonize() const
+{
+ JsonValue payload;
+
+ if(m_topicsHasBeenSet)
+ {
+ Aws::Utils::Array topicsJsonList(m_topics.size());
+ for(unsigned topicsIndex = 0; topicsIndex < topicsJsonList.GetLength(); ++topicsIndex)
+ {
+ topicsJsonList[topicsIndex].AsObject(m_topics[topicsIndex].Jsonize());
+ }
+ payload.WithArray("topics", std::move(topicsJsonList));
+
+ }
+
+ return payload;
+}
+
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopicType.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopicType.cpp
new file mode 100644
index 00000000000..5d77abed7f1
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopicType.cpp
@@ -0,0 +1,65 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include
+#include
+#include
+#include
+
+using namespace Aws::Utils;
+
+
+namespace Aws
+{
+ namespace BedrockAgentRuntime
+ {
+ namespace Model
+ {
+ namespace GuardrailTopicTypeMapper
+ {
+
+ static const int DENY_HASH = HashingUtils::HashString("DENY");
+
+
+ GuardrailTopicType GetGuardrailTopicTypeForName(const Aws::String& name)
+ {
+ int hashCode = HashingUtils::HashString(name.c_str());
+ if (hashCode == DENY_HASH)
+ {
+ return GuardrailTopicType::DENY;
+ }
+ EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
+ if(overflowContainer)
+ {
+ overflowContainer->StoreOverflow(hashCode, name);
+ return static_cast(hashCode);
+ }
+
+ return GuardrailTopicType::NOT_SET;
+ }
+
+ Aws::String GetNameForGuardrailTopicType(GuardrailTopicType enumValue)
+ {
+ switch(enumValue)
+ {
+ case GuardrailTopicType::NOT_SET:
+ return {};
+ case GuardrailTopicType::DENY:
+ return "DENY";
+ default:
+ EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
+ if(overflowContainer)
+ {
+ return overflowContainer->RetrieveOverflow(static_cast(enumValue));
+ }
+
+ return {};
+ }
+ }
+
+ } // namespace GuardrailTopicTypeMapper
+ } // namespace Model
+ } // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTrace.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTrace.cpp
new file mode 100644
index 00000000000..22c26dad95a
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTrace.cpp
@@ -0,0 +1,121 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include
+#include
+
+#include
+
+using namespace Aws::Utils::Json;
+using namespace Aws::Utils;
+
+namespace Aws
+{
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+
+GuardrailTrace::GuardrailTrace() :
+ m_action(GuardrailAction::NOT_SET),
+ m_actionHasBeenSet(false),
+ m_inputAssessmentsHasBeenSet(false),
+ m_outputAssessmentsHasBeenSet(false),
+ m_traceIdHasBeenSet(false)
+{
+}
+
+GuardrailTrace::GuardrailTrace(JsonView jsonValue) :
+ m_action(GuardrailAction::NOT_SET),
+ m_actionHasBeenSet(false),
+ m_inputAssessmentsHasBeenSet(false),
+ m_outputAssessmentsHasBeenSet(false),
+ m_traceIdHasBeenSet(false)
+{
+ *this = jsonValue;
+}
+
+GuardrailTrace& GuardrailTrace::operator =(JsonView jsonValue)
+{
+ if(jsonValue.ValueExists("action"))
+ {
+ m_action = GuardrailActionMapper::GetGuardrailActionForName(jsonValue.GetString("action"));
+
+ m_actionHasBeenSet = true;
+ }
+
+ if(jsonValue.ValueExists("inputAssessments"))
+ {
+ Aws::Utils::Array inputAssessmentsJsonList = jsonValue.GetArray("inputAssessments");
+ for(unsigned inputAssessmentsIndex = 0; inputAssessmentsIndex < inputAssessmentsJsonList.GetLength(); ++inputAssessmentsIndex)
+ {
+ m_inputAssessments.push_back(inputAssessmentsJsonList[inputAssessmentsIndex].AsObject());
+ }
+ m_inputAssessmentsHasBeenSet = true;
+ }
+
+ if(jsonValue.ValueExists("outputAssessments"))
+ {
+ Aws::Utils::Array outputAssessmentsJsonList = jsonValue.GetArray("outputAssessments");
+ for(unsigned outputAssessmentsIndex = 0; outputAssessmentsIndex < outputAssessmentsJsonList.GetLength(); ++outputAssessmentsIndex)
+ {
+ m_outputAssessments.push_back(outputAssessmentsJsonList[outputAssessmentsIndex].AsObject());
+ }
+ m_outputAssessmentsHasBeenSet = true;
+ }
+
+ if(jsonValue.ValueExists("traceId"))
+ {
+ m_traceId = jsonValue.GetString("traceId");
+
+ m_traceIdHasBeenSet = true;
+ }
+
+ return *this;
+}
+
+JsonValue GuardrailTrace::Jsonize() const
+{
+ JsonValue payload;
+
+ if(m_actionHasBeenSet)
+ {
+ payload.WithString("action", GuardrailActionMapper::GetNameForGuardrailAction(m_action));
+ }
+
+ if(m_inputAssessmentsHasBeenSet)
+ {
+ Aws::Utils::Array inputAssessmentsJsonList(m_inputAssessments.size());
+ for(unsigned inputAssessmentsIndex = 0; inputAssessmentsIndex < inputAssessmentsJsonList.GetLength(); ++inputAssessmentsIndex)
+ {
+ inputAssessmentsJsonList[inputAssessmentsIndex].AsObject(m_inputAssessments[inputAssessmentsIndex].Jsonize());
+ }
+ payload.WithArray("inputAssessments", std::move(inputAssessmentsJsonList));
+
+ }
+
+ if(m_outputAssessmentsHasBeenSet)
+ {
+ Aws::Utils::Array outputAssessmentsJsonList(m_outputAssessments.size());
+ for(unsigned outputAssessmentsIndex = 0; outputAssessmentsIndex < outputAssessmentsJsonList.GetLength(); ++outputAssessmentsIndex)
+ {
+ outputAssessmentsJsonList[outputAssessmentsIndex].AsObject(m_outputAssessments[outputAssessmentsIndex].Jsonize());
+ }
+ payload.WithArray("outputAssessments", std::move(outputAssessmentsJsonList));
+
+ }
+
+ if(m_traceIdHasBeenSet)
+ {
+ payload.WithString("traceId", m_traceId);
+
+ }
+
+ return payload;
+}
+
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailWordPolicyAction.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailWordPolicyAction.cpp
new file mode 100644
index 00000000000..ec2725d0a64
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailWordPolicyAction.cpp
@@ -0,0 +1,65 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include
+#include
+#include
+#include
+
+using namespace Aws::Utils;
+
+
+namespace Aws
+{
+ namespace BedrockAgentRuntime
+ {
+ namespace Model
+ {
+ namespace GuardrailWordPolicyActionMapper
+ {
+
+ static const int BLOCKED_HASH = HashingUtils::HashString("BLOCKED");
+
+
+ GuardrailWordPolicyAction GetGuardrailWordPolicyActionForName(const Aws::String& name)
+ {
+ int hashCode = HashingUtils::HashString(name.c_str());
+ if (hashCode == BLOCKED_HASH)
+ {
+ return GuardrailWordPolicyAction::BLOCKED;
+ }
+ EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
+ if(overflowContainer)
+ {
+ overflowContainer->StoreOverflow(hashCode, name);
+ return static_cast(hashCode);
+ }
+
+ return GuardrailWordPolicyAction::NOT_SET;
+ }
+
+ Aws::String GetNameForGuardrailWordPolicyAction(GuardrailWordPolicyAction enumValue)
+ {
+ switch(enumValue)
+ {
+ case GuardrailWordPolicyAction::NOT_SET:
+ return {};
+ case GuardrailWordPolicyAction::BLOCKED:
+ return "BLOCKED";
+ default:
+ EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
+ if(overflowContainer)
+ {
+ return overflowContainer->RetrieveOverflow(static_cast(enumValue));
+ }
+
+ return {};
+ }
+ }
+
+ } // namespace GuardrailWordPolicyActionMapper
+ } // namespace Model
+ } // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailWordPolicyAssessment.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailWordPolicyAssessment.cpp
new file mode 100644
index 00000000000..da143ae282d
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailWordPolicyAssessment.cpp
@@ -0,0 +1,90 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include
+#include
+
+#include
+
+using namespace Aws::Utils::Json;
+using namespace Aws::Utils;
+
+namespace Aws
+{
+namespace BedrockAgentRuntime
+{
+namespace Model
+{
+
+GuardrailWordPolicyAssessment::GuardrailWordPolicyAssessment() :
+ m_customWordsHasBeenSet(false),
+ m_managedWordListsHasBeenSet(false)
+{
+}
+
+GuardrailWordPolicyAssessment::GuardrailWordPolicyAssessment(JsonView jsonValue) :
+ m_customWordsHasBeenSet(false),
+ m_managedWordListsHasBeenSet(false)
+{
+ *this = jsonValue;
+}
+
+GuardrailWordPolicyAssessment& GuardrailWordPolicyAssessment::operator =(JsonView jsonValue)
+{
+ if(jsonValue.ValueExists("customWords"))
+ {
+ Aws::Utils::Array customWordsJsonList = jsonValue.GetArray("customWords");
+ for(unsigned customWordsIndex = 0; customWordsIndex < customWordsJsonList.GetLength(); ++customWordsIndex)
+ {
+ m_customWords.push_back(customWordsJsonList[customWordsIndex].AsObject());
+ }
+ m_customWordsHasBeenSet = true;
+ }
+
+ if(jsonValue.ValueExists("managedWordLists"))
+ {
+ Aws::Utils::Array managedWordListsJsonList = jsonValue.GetArray("managedWordLists");
+ for(unsigned managedWordListsIndex = 0; managedWordListsIndex < managedWordListsJsonList.GetLength(); ++managedWordListsIndex)
+ {
+ m_managedWordLists.push_back(managedWordListsJsonList[managedWordListsIndex].AsObject());
+ }
+ m_managedWordListsHasBeenSet = true;
+ }
+
+ return *this;
+}
+
+JsonValue GuardrailWordPolicyAssessment::Jsonize() const
+{
+ JsonValue payload;
+
+ if(m_customWordsHasBeenSet)
+ {
+ Aws::Utils::Array customWordsJsonList(m_customWords.size());
+ for(unsigned customWordsIndex = 0; customWordsIndex < customWordsJsonList.GetLength(); ++customWordsIndex)
+ {
+ customWordsJsonList[customWordsIndex].AsObject(m_customWords[customWordsIndex].Jsonize());
+ }
+ payload.WithArray("customWords", std::move(customWordsJsonList));
+
+ }
+
+ if(m_managedWordListsHasBeenSet)
+ {
+ Aws::Utils::Array managedWordListsJsonList(m_managedWordLists.size());
+ for(unsigned managedWordListsIndex = 0; managedWordListsIndex < managedWordListsJsonList.GetLength(); ++managedWordListsIndex)
+ {
+ managedWordListsJsonList[managedWordListsIndex].AsObject(m_managedWordLists[managedWordListsIndex].Jsonize());
+ }
+ payload.WithArray("managedWordLists", std::move(managedWordListsJsonList));
+
+ }
+
+ return payload;
+}
+
+} // namespace Model
+} // namespace BedrockAgentRuntime
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/Trace.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/Trace.cpp
index 6e2aa325bcb..a209386d541 100644
--- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/Trace.cpp
+++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/Trace.cpp
@@ -20,6 +20,7 @@ namespace Model
Trace::Trace() :
m_failureTraceHasBeenSet(false),
+ m_guardrailTraceHasBeenSet(false),
m_orchestrationTraceHasBeenSet(false),
m_postProcessingTraceHasBeenSet(false),
m_preProcessingTraceHasBeenSet(false)
@@ -28,6 +29,7 @@ Trace::Trace() :
Trace::Trace(JsonView jsonValue) :
m_failureTraceHasBeenSet(false),
+ m_guardrailTraceHasBeenSet(false),
m_orchestrationTraceHasBeenSet(false),
m_postProcessingTraceHasBeenSet(false),
m_preProcessingTraceHasBeenSet(false)
@@ -44,6 +46,13 @@ Trace& Trace::operator =(JsonView jsonValue)
m_failureTraceHasBeenSet = true;
}
+ if(jsonValue.ValueExists("guardrailTrace"))
+ {
+ m_guardrailTrace = jsonValue.GetObject("guardrailTrace");
+
+ m_guardrailTraceHasBeenSet = true;
+ }
+
if(jsonValue.ValueExists("orchestrationTrace"))
{
m_orchestrationTrace = jsonValue.GetObject("orchestrationTrace");
@@ -78,6 +87,12 @@ JsonValue Trace::Jsonize() const
}
+ if(m_guardrailTraceHasBeenSet)
+ {
+ payload.WithObject("guardrailTrace", m_guardrailTrace.Jsonize());
+
+ }
+
if(m_orchestrationTraceHasBeenSet)
{
payload.WithObject("orchestrationTrace", m_orchestrationTrace.Jsonize());
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/Agent.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/Agent.h
index a3f8be75158..6c6cad836d3 100644
--- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/Agent.h
+++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/Agent.h
@@ -9,6 +9,7 @@
#include
#include
#include
+#include
#include
#include
@@ -600,6 +601,37 @@ namespace Model
inline Agent& WithFoundationModel(const char* value) { SetFoundationModel(value); return *this;}
+ /**
+ * The guardrails configuration assigned to the agent.
+ */
+ inline const GuardrailConfiguration& GetGuardrailConfiguration() const{ return m_guardrailConfiguration; }
+
+ /**
+ * The guardrails configuration assigned to the agent.
+ */
+ inline bool GuardrailConfigurationHasBeenSet() const { return m_guardrailConfigurationHasBeenSet; }
+
+ /**
+ * The guardrails configuration assigned to the agent.
+ */
+ inline void SetGuardrailConfiguration(const GuardrailConfiguration& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = value; }
+
+ /**
+ * The guardrails configuration assigned to the agent.
+ */
+ inline void SetGuardrailConfiguration(GuardrailConfiguration&& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = std::move(value); }
+
+ /**
+ * The guardrails configuration assigned to the agent.
+ */
+ inline Agent& WithGuardrailConfiguration(const GuardrailConfiguration& value) { SetGuardrailConfiguration(value); return *this;}
+
+ /**
+ * The guardrails configuration assigned to the agent.
+ */
+ inline Agent& WithGuardrailConfiguration(GuardrailConfiguration&& value) { SetGuardrailConfiguration(std::move(value)); return *this;}
+
+
/**
* The number of seconds for which Amazon Bedrock keeps information about a
* user's conversation with the agent.
A user interaction remains active for
@@ -889,6 +921,9 @@ namespace Model
Aws::String m_foundationModel;
bool m_foundationModelHasBeenSet = false;
+ GuardrailConfiguration m_guardrailConfiguration;
+ bool m_guardrailConfigurationHasBeenSet = false;
+
int m_idleSessionTTLInSeconds;
bool m_idleSessionTTLInSecondsHasBeenSet = false;
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentSummary.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentSummary.h
index 5b7ecb206f6..356c656a0ca 100644
--- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentSummary.h
+++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentSummary.h
@@ -7,6 +7,7 @@
#include
#include
#include
+#include
#include
#include
@@ -193,6 +194,37 @@ namespace Model
inline AgentSummary& WithDescription(const char* value) { SetDescription(value); return *this;}
+ /**
+ * The details of the guardrails configuration in the agent summary.
+ */
+ inline const GuardrailConfiguration& GetGuardrailConfiguration() const{ return m_guardrailConfiguration; }
+
+ /**
+ * The details of the guardrails configuration in the agent summary.
+ */
+ inline bool GuardrailConfigurationHasBeenSet() const { return m_guardrailConfigurationHasBeenSet; }
+
+ /**
+ * The details of the guardrails configuration in the agent summary.
+ */
+ inline void SetGuardrailConfiguration(const GuardrailConfiguration& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = value; }
+
+ /**
+ * The details of the guardrails configuration in the agent summary.
+ */
+ inline void SetGuardrailConfiguration(GuardrailConfiguration&& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = std::move(value); }
+
+ /**
+ * The details of the guardrails configuration in the agent summary.
+ */
+ inline AgentSummary& WithGuardrailConfiguration(const GuardrailConfiguration& value) { SetGuardrailConfiguration(value); return *this;}
+
+ /**
+ * The details of the guardrails configuration in the agent summary.
+ */
+ inline AgentSummary& WithGuardrailConfiguration(GuardrailConfiguration&& value) { SetGuardrailConfiguration(std::move(value)); return *this;}
+
+
/**
* The latest version of the agent.
*/
@@ -278,6 +310,9 @@ namespace Model
Aws::String m_description;
bool m_descriptionHasBeenSet = false;
+ GuardrailConfiguration m_guardrailConfiguration;
+ bool m_guardrailConfigurationHasBeenSet = false;
+
Aws::String m_latestAgentVersion;
bool m_latestAgentVersionHasBeenSet = false;
diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentVersion.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentVersion.h
index c47f0a84dff..20dca06466b 100644
--- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentVersion.h
+++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentVersion.h
@@ -9,6 +9,7 @@
#include
#include
#include
+#include
#include