-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates Finspace documentation for smaller instances.
Add support for user metadata inside PromptVariant. Adds new logging levels (INFO and DEBUG) for additional log output control This release adds safety levers, a new mechanism to stop all running experiments and prevent new experiments from starting. Amazon Simple Storage Service /S3 Access Grants / Features : This release launches new Access Grants API - ListCallerAccessGrants. Update to support new APIs for delivery of logs from AWS services.
- Loading branch information
1 parent
08b51b4
commit d7542e5
Showing
112 changed files
with
5,078 additions
and
283 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.11.397 | ||
1.11.398 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,9 @@ namespace Model | |
NOT_SET, | ||
NONE, | ||
ERROR_, | ||
ALL | ||
ALL, | ||
INFO, | ||
DEBUG_ | ||
}; | ||
|
||
namespace FieldLogLevelMapper | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 81 additions & 0 deletions
81
...rated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/PromptMetadataEntry.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
/** | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0. | ||
*/ | ||
|
||
#pragma once | ||
#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h> | ||
#include <aws/core/utils/memory/stl/AWSString.h> | ||
#include <utility> | ||
|
||
namespace Aws | ||
{ | ||
namespace Utils | ||
{ | ||
namespace Json | ||
{ | ||
class JsonValue; | ||
class JsonView; | ||
} // namespace Json | ||
} // namespace Utils | ||
namespace BedrockAgent | ||
{ | ||
namespace Model | ||
{ | ||
|
||
/** | ||
* <p>Contains a key-value pair that defines a metadata tag and value to attach to | ||
* a prompt variant. For more information, see <a | ||
* href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-create.html">Create | ||
* a prompt using Prompt management</a>.</p><p><h3>See Also:</h3> <a | ||
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/PromptMetadataEntry">AWS | ||
* API Reference</a></p> | ||
*/ | ||
class PromptMetadataEntry | ||
{ | ||
public: | ||
AWS_BEDROCKAGENT_API PromptMetadataEntry(); | ||
AWS_BEDROCKAGENT_API PromptMetadataEntry(Aws::Utils::Json::JsonView jsonValue); | ||
AWS_BEDROCKAGENT_API PromptMetadataEntry& operator=(Aws::Utils::Json::JsonView jsonValue); | ||
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const; | ||
|
||
|
||
///@{ | ||
/** | ||
* <p>The key of a metadata tag for a prompt variant.</p> | ||
*/ | ||
inline const Aws::String& GetKey() const{ return m_key; } | ||
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } | ||
inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; } | ||
inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } | ||
inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); } | ||
inline PromptMetadataEntry& WithKey(const Aws::String& value) { SetKey(value); return *this;} | ||
inline PromptMetadataEntry& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} | ||
inline PromptMetadataEntry& WithKey(const char* value) { SetKey(value); return *this;} | ||
///@} | ||
|
||
///@{ | ||
/** | ||
* <p>The value of a metadata tag for a prompt variant.</p> | ||
*/ | ||
inline const Aws::String& GetValue() const{ return m_value; } | ||
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } | ||
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } | ||
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } | ||
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } | ||
inline PromptMetadataEntry& WithValue(const Aws::String& value) { SetValue(value); return *this;} | ||
inline PromptMetadataEntry& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} | ||
inline PromptMetadataEntry& WithValue(const char* value) { SetValue(value); return *this;} | ||
///@} | ||
private: | ||
|
||
Aws::String m_key; | ||
bool m_keyHasBeenSet = false; | ||
|
||
Aws::String m_value; | ||
bool m_valueHasBeenSet = false; | ||
}; | ||
|
||
} // namespace Model | ||
} // namespace BedrockAgent | ||
} // namespace Aws |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
generated/src/aws-cpp-sdk-bedrock-agent/source/model/PromptMetadataEntry.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
/** | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0. | ||
*/ | ||
|
||
#include <aws/bedrock-agent/model/PromptMetadataEntry.h> | ||
#include <aws/core/utils/json/JsonSerializer.h> | ||
|
||
#include <utility> | ||
|
||
using namespace Aws::Utils::Json; | ||
using namespace Aws::Utils; | ||
|
||
namespace Aws | ||
{ | ||
namespace BedrockAgent | ||
{ | ||
namespace Model | ||
{ | ||
|
||
PromptMetadataEntry::PromptMetadataEntry() : | ||
m_keyHasBeenSet(false), | ||
m_valueHasBeenSet(false) | ||
{ | ||
} | ||
|
||
PromptMetadataEntry::PromptMetadataEntry(JsonView jsonValue) | ||
: PromptMetadataEntry() | ||
{ | ||
*this = jsonValue; | ||
} | ||
|
||
PromptMetadataEntry& PromptMetadataEntry::operator =(JsonView jsonValue) | ||
{ | ||
if(jsonValue.ValueExists("key")) | ||
{ | ||
m_key = jsonValue.GetString("key"); | ||
|
||
m_keyHasBeenSet = true; | ||
} | ||
|
||
if(jsonValue.ValueExists("value")) | ||
{ | ||
m_value = jsonValue.GetString("value"); | ||
|
||
m_valueHasBeenSet = true; | ||
} | ||
|
||
return *this; | ||
} | ||
|
||
JsonValue PromptMetadataEntry::Jsonize() const | ||
{ | ||
JsonValue payload; | ||
|
||
if(m_keyHasBeenSet) | ||
{ | ||
payload.WithString("key", m_key); | ||
|
||
} | ||
|
||
if(m_valueHasBeenSet) | ||
{ | ||
payload.WithString("value", m_value); | ||
|
||
} | ||
|
||
return payload; | ||
} | ||
|
||
} // namespace Model | ||
} // namespace BedrockAgent | ||
} // namespace Aws |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.