Skip to content

Commit

Permalink
This release adds support for EngineLifecycleSupport on DBInstances, …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
aws-sdk-cpp-automation committed May 20, 2024
1 parent d5eb42f commit 960b455
Show file tree
Hide file tree
Showing 147 changed files with 11,274 additions and 443 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.331
1.11.332
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/

#pragma once
#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>

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
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/

#pragma once
#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
#include <aws/bedrock-agent-runtime/model/GuardrailContentPolicyAssessment.h>
#include <aws/bedrock-agent-runtime/model/GuardrailSensitiveInformationPolicyAssessment.h>
#include <aws/bedrock-agent-runtime/model/GuardrailTopicPolicyAssessment.h>
#include <aws/bedrock-agent-runtime/model/GuardrailWordPolicyAssessment.h>
#include <utility>

namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace BedrockAgentRuntime
{
namespace Model
{

/**
* <p>Assessment details of the content analyzed by Guardrails.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/GuardrailAssessment">AWS
* API Reference</a></p>
*/
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;


/**
* <p>Content policy details of the Guardrail.</p>
*/
inline const GuardrailContentPolicyAssessment& GetContentPolicy() const{ return m_contentPolicy; }

/**
* <p>Content policy details of the Guardrail.</p>
*/
inline bool ContentPolicyHasBeenSet() const { return m_contentPolicyHasBeenSet; }

/**
* <p>Content policy details of the Guardrail.</p>
*/
inline void SetContentPolicy(const GuardrailContentPolicyAssessment& value) { m_contentPolicyHasBeenSet = true; m_contentPolicy = value; }

/**
* <p>Content policy details of the Guardrail.</p>
*/
inline void SetContentPolicy(GuardrailContentPolicyAssessment&& value) { m_contentPolicyHasBeenSet = true; m_contentPolicy = std::move(value); }

/**
* <p>Content policy details of the Guardrail.</p>
*/
inline GuardrailAssessment& WithContentPolicy(const GuardrailContentPolicyAssessment& value) { SetContentPolicy(value); return *this;}

/**
* <p>Content policy details of the Guardrail.</p>
*/
inline GuardrailAssessment& WithContentPolicy(GuardrailContentPolicyAssessment&& value) { SetContentPolicy(std::move(value)); return *this;}


/**
* <p>Sensitive Information policy details of Guardrail.</p>
*/
inline const GuardrailSensitiveInformationPolicyAssessment& GetSensitiveInformationPolicy() const{ return m_sensitiveInformationPolicy; }

/**
* <p>Sensitive Information policy details of Guardrail.</p>
*/
inline bool SensitiveInformationPolicyHasBeenSet() const { return m_sensitiveInformationPolicyHasBeenSet; }

/**
* <p>Sensitive Information policy details of Guardrail.</p>
*/
inline void SetSensitiveInformationPolicy(const GuardrailSensitiveInformationPolicyAssessment& value) { m_sensitiveInformationPolicyHasBeenSet = true; m_sensitiveInformationPolicy = value; }

/**
* <p>Sensitive Information policy details of Guardrail.</p>
*/
inline void SetSensitiveInformationPolicy(GuardrailSensitiveInformationPolicyAssessment&& value) { m_sensitiveInformationPolicyHasBeenSet = true; m_sensitiveInformationPolicy = std::move(value); }

/**
* <p>Sensitive Information policy details of Guardrail.</p>
*/
inline GuardrailAssessment& WithSensitiveInformationPolicy(const GuardrailSensitiveInformationPolicyAssessment& value) { SetSensitiveInformationPolicy(value); return *this;}

/**
* <p>Sensitive Information policy details of Guardrail.</p>
*/
inline GuardrailAssessment& WithSensitiveInformationPolicy(GuardrailSensitiveInformationPolicyAssessment&& value) { SetSensitiveInformationPolicy(std::move(value)); return *this;}


/**
* <p>Topic policy details of the Guardrail.</p>
*/
inline const GuardrailTopicPolicyAssessment& GetTopicPolicy() const{ return m_topicPolicy; }

/**
* <p>Topic policy details of the Guardrail.</p>
*/
inline bool TopicPolicyHasBeenSet() const { return m_topicPolicyHasBeenSet; }

/**
* <p>Topic policy details of the Guardrail.</p>
*/
inline void SetTopicPolicy(const GuardrailTopicPolicyAssessment& value) { m_topicPolicyHasBeenSet = true; m_topicPolicy = value; }

/**
* <p>Topic policy details of the Guardrail.</p>
*/
inline void SetTopicPolicy(GuardrailTopicPolicyAssessment&& value) { m_topicPolicyHasBeenSet = true; m_topicPolicy = std::move(value); }

/**
* <p>Topic policy details of the Guardrail.</p>
*/
inline GuardrailAssessment& WithTopicPolicy(const GuardrailTopicPolicyAssessment& value) { SetTopicPolicy(value); return *this;}

/**
* <p>Topic policy details of the Guardrail.</p>
*/
inline GuardrailAssessment& WithTopicPolicy(GuardrailTopicPolicyAssessment&& value) { SetTopicPolicy(std::move(value)); return *this;}


/**
* <p>Word policy details of the Guardrail.</p>
*/
inline const GuardrailWordPolicyAssessment& GetWordPolicy() const{ return m_wordPolicy; }

/**
* <p>Word policy details of the Guardrail.</p>
*/
inline bool WordPolicyHasBeenSet() const { return m_wordPolicyHasBeenSet; }

/**
* <p>Word policy details of the Guardrail.</p>
*/
inline void SetWordPolicy(const GuardrailWordPolicyAssessment& value) { m_wordPolicyHasBeenSet = true; m_wordPolicy = value; }

/**
* <p>Word policy details of the Guardrail.</p>
*/
inline void SetWordPolicy(GuardrailWordPolicyAssessment&& value) { m_wordPolicyHasBeenSet = true; m_wordPolicy = std::move(value); }

/**
* <p>Word policy details of the Guardrail.</p>
*/
inline GuardrailAssessment& WithWordPolicy(const GuardrailWordPolicyAssessment& value) { SetWordPolicy(value); return *this;}

/**
* <p>Word policy details of the Guardrail.</p>
*/
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/

#pragma once
#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
#include <aws/bedrock-agent-runtime/model/GuardrailContentPolicyAction.h>
#include <aws/bedrock-agent-runtime/model/GuardrailContentFilterConfidence.h>
#include <aws/bedrock-agent-runtime/model/GuardrailContentFilterType.h>
#include <utility>

namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace BedrockAgentRuntime
{
namespace Model
{

/**
* <p>Details of the content filter used in the Guardrail.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/GuardrailContentFilter">AWS
* API Reference</a></p>
*/
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;


/**
* <p>The action placed on the content by the Guardrail filter.</p>
*/
inline const GuardrailContentPolicyAction& GetAction() const{ return m_action; }

/**
* <p>The action placed on the content by the Guardrail filter.</p>
*/
inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }

/**
* <p>The action placed on the content by the Guardrail filter.</p>
*/
inline void SetAction(const GuardrailContentPolicyAction& value) { m_actionHasBeenSet = true; m_action = value; }

/**
* <p>The action placed on the content by the Guardrail filter.</p>
*/
inline void SetAction(GuardrailContentPolicyAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }

/**
* <p>The action placed on the content by the Guardrail filter.</p>
*/
inline GuardrailContentFilter& WithAction(const GuardrailContentPolicyAction& value) { SetAction(value); return *this;}

/**
* <p>The action placed on the content by the Guardrail filter.</p>
*/
inline GuardrailContentFilter& WithAction(GuardrailContentPolicyAction&& value) { SetAction(std::move(value)); return *this;}


/**
* <p>The confidence level regarding the content detected in the filter by the
* Guardrail.</p>
*/
inline const GuardrailContentFilterConfidence& GetConfidence() const{ return m_confidence; }

/**
* <p>The confidence level regarding the content detected in the filter by the
* Guardrail.</p>
*/
inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }

/**
* <p>The confidence level regarding the content detected in the filter by the
* Guardrail.</p>
*/
inline void SetConfidence(const GuardrailContentFilterConfidence& value) { m_confidenceHasBeenSet = true; m_confidence = value; }

/**
* <p>The confidence level regarding the content detected in the filter by the
* Guardrail.</p>
*/
inline void SetConfidence(GuardrailContentFilterConfidence&& value) { m_confidenceHasBeenSet = true; m_confidence = std::move(value); }

/**
* <p>The confidence level regarding the content detected in the filter by the
* Guardrail.</p>
*/
inline GuardrailContentFilter& WithConfidence(const GuardrailContentFilterConfidence& value) { SetConfidence(value); return *this;}

/**
* <p>The confidence level regarding the content detected in the filter by the
* Guardrail.</p>
*/
inline GuardrailContentFilter& WithConfidence(GuardrailContentFilterConfidence&& value) { SetConfidence(std::move(value)); return *this;}


/**
* <p>The type of content detected in the filter by the Guardrail.</p>
*/
inline const GuardrailContentFilterType& GetType() const{ return m_type; }

/**
* <p>The type of content detected in the filter by the Guardrail.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }

/**
* <p>The type of content detected in the filter by the Guardrail.</p>
*/
inline void SetType(const GuardrailContentFilterType& value) { m_typeHasBeenSet = true; m_type = value; }

/**
* <p>The type of content detected in the filter by the Guardrail.</p>
*/
inline void SetType(GuardrailContentFilterType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }

/**
* <p>The type of content detected in the filter by the Guardrail.</p>
*/
inline GuardrailContentFilter& WithType(const GuardrailContentFilterType& value) { SetType(value); return *this;}

/**
* <p>The type of content detected in the filter by the Guardrail.</p>
*/
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
Loading

0 comments on commit 960b455

Please sign in to comment.