Skip to content

Commit

Permalink
Updates Finspace documentation for smaller instances.
Browse files Browse the repository at this point in the history
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
aws-sdk-cpp-automation committed Sep 4, 2024
1 parent 08b51b4 commit d7542e5
Show file tree
Hide file tree
Showing 112 changed files with 5,078 additions and 283 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.397
1.11.398
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ namespace Model
NOT_SET,
NONE,
ERROR_,
ALL
ALL,
INFO,
DEBUG_
};

namespace FieldLogLevelMapper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,27 @@ namespace Model

///@{
/**
* <p>The field logging level. Values can be NONE, ERROR, or ALL.</p> <ul> <li> <p>
* <b>NONE</b>: No field-level logs are captured.</p> </li> <li> <p> <b>ERROR</b>:
* Logs the following information only for the fields that are in error:</p> <ul>
* <li> <p>The error section in the server response.</p> </li> <li> <p>Field-level
* errors.</p> </li> <li> <p>The generated request/response functions that got
* resolved for error fields.</p> </li> </ul> </li> <li> <p> <b>ALL</b>: The
* following information is logged for all fields in the query:</p> <ul> <li>
* <p>Field-level tracing information.</p> </li> <li> <p>The generated
* request/response functions that got resolved for each field.</p> </li> </ul>
* </li> </ul>
* <p>The field logging level. Values can be NONE, ERROR, INFO, DEBUG, or ALL.</p>
* <ul> <li> <p> <b>NONE</b>: No field-level logs are captured.</p> </li> <li> <p>
* <b>ERROR</b>: Logs the following information <b>only</b> for the fields that are
* in the error category:</p> <ul> <li> <p>The error section in the server
* response.</p> </li> <li> <p>Field-level errors.</p> </li> <li> <p>The generated
* request/response functions that got resolved for error fields.</p> </li> </ul>
* </li> <li> <p> <b>INFO</b>: Logs the following information <b>only</b> for the
* fields that are in the info and error categories:</p> <ul> <li> <p>Info-level
* messages.</p> </li> <li> <p>The user messages sent through
* <code>$util.log.info</code> and <code>console.log</code>.</p> </li> <li>
* <p>Field-level tracing and mapping logs are not shown.</p> </li> </ul> </li>
* <li> <p> <b>DEBUG</b>: Logs the following information <b>only</b> for the fields
* that are in the debug, info, and error categories:</p> <ul> <li> <p>Debug-level
* messages.</p> </li> <li> <p>The user messages sent through
* <code>$util.log.info</code>, <code>$util.log.debug</code>,
* <code>console.log</code>, and <code>console.debug</code>.</p> </li> <li>
* <p>Field-level tracing and mapping logs are not shown.</p> </li> </ul> </li>
* <li> <p> <b>ALL</b>: The following information is logged for all fields in the
* query:</p> <ul> <li> <p>Field-level tracing information.</p> </li> <li> <p>The
* generated request/response functions that were resolved for each field.</p>
* </li> </ul> </li> </ul>
*/
inline const FieldLogLevel& GetFieldLogLevel() const{ return m_fieldLogLevel; }
inline bool FieldLogLevelHasBeenSet() const { return m_fieldLogLevelHasBeenSet; }
Expand Down
14 changes: 14 additions & 0 deletions generated/src/aws-cpp-sdk-appsync/source/model/FieldLogLevel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ namespace Aws
static const int NONE_HASH = HashingUtils::HashString("NONE");
static const int ERROR__HASH = HashingUtils::HashString("ERROR");
static const int ALL_HASH = HashingUtils::HashString("ALL");
static const int INFO_HASH = HashingUtils::HashString("INFO");
static const int DEBUG__HASH = HashingUtils::HashString("DEBUG");


FieldLogLevel GetFieldLogLevelForName(const Aws::String& name)
Expand All @@ -40,6 +42,14 @@ namespace Aws
{
return FieldLogLevel::ALL;
}
else if (hashCode == INFO_HASH)
{
return FieldLogLevel::INFO;
}
else if (hashCode == DEBUG__HASH)
{
return FieldLogLevel::DEBUG_;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
Expand All @@ -62,6 +72,10 @@ namespace Aws
return "ERROR";
case FieldLogLevel::ALL:
return "ALL";
case FieldLogLevel::INFO:
return "INFO";
case FieldLogLevel::DEBUG_:
return "DEBUG";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,12 @@ namespace BedrockAgent
* orchestration and to use advanced prompts, include a
* <code>promptOverrideConfiguration</code> object. For more information, see <a
* href="https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html">Advanced
* prompts</a>.</p> </li> <li> <p>If you agent fails to be created, the response
* prompts</a>.</p> </li> <li> <p>If your agent fails to be created, the response
* returns a list of <code>failureReasons</code> alongside a list of
* <code>recommendedActions</code> for you to troubleshoot.</p> </li>
* </ul><p><h3>See Also:</h3> <a
* <code>recommendedActions</code> for you to troubleshoot.</p> </li> <li> <p>The
* agent instructions will not be honored if your agent has only one knowledge
* base, uses default prompts, has no action group, and user input is disabled.</p>
* </li> </ul><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/CreateAgent">AWS
* API Reference</a></p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ namespace Model
* <code>anthropic.claude-3-sonnet-20240229-v1:0</code> </p> </li> <li>
* <p>Anthropic Claude 3 Haiku -
* <code>anthropic.claude-3-haiku-20240307-v1:0</code> </p> </li> </ul> <p>You can
* get the ARN of a model with the action. Standard model usage charges apply for
* the foundation model parsing strategy.</p><p><h3>See Also:</h3> <a
* get the ARN of a model with the <a
* href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListFoundationModels.html">ListFoundationModels</a>
* action. Standard model usage charges apply for the foundation model parsing
* strategy.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/ParsingConfiguration">AWS
* API Reference</a></p>
*/
Expand Down
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
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
#pragma once
#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
#include <aws/bedrock-agent/model/PromptInferenceConfiguration.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/bedrock-agent/model/PromptTemplateConfiguration.h>
#include <aws/bedrock-agent/model/PromptTemplateType.h>
#include <aws/bedrock-agent/model/PromptMetadataEntry.h>
#include <utility>

namespace Aws
Expand Down Expand Up @@ -52,6 +54,23 @@ namespace Model
inline PromptVariant& WithInferenceConfiguration(PromptInferenceConfiguration&& value) { SetInferenceConfiguration(std::move(value)); return *this;}
///@}

///@{
/**
* <p>An array of objects, each containing 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>
*/
inline const Aws::Vector<PromptMetadataEntry>& GetMetadata() const{ return m_metadata; }
inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
inline void SetMetadata(const Aws::Vector<PromptMetadataEntry>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
inline void SetMetadata(Aws::Vector<PromptMetadataEntry>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
inline PromptVariant& WithMetadata(const Aws::Vector<PromptMetadataEntry>& value) { SetMetadata(value); return *this;}
inline PromptVariant& WithMetadata(Aws::Vector<PromptMetadataEntry>&& value) { SetMetadata(std::move(value)); return *this;}
inline PromptVariant& AddMetadata(const PromptMetadataEntry& value) { m_metadataHasBeenSet = true; m_metadata.push_back(value); return *this; }
inline PromptVariant& AddMetadata(PromptMetadataEntry&& value) { m_metadataHasBeenSet = true; m_metadata.push_back(std::move(value)); return *this; }
///@}

///@{
/**
* <p>The unique identifier of the model with which to run inference on the
Expand Down Expand Up @@ -109,6 +128,9 @@ namespace Model
PromptInferenceConfiguration m_inferenceConfiguration;
bool m_inferenceConfigurationHasBeenSet = false;

Aws::Vector<PromptMetadataEntry> m_metadata;
bool m_metadataHasBeenSet = false;

Aws::String m_modelId;
bool m_modelIdHasBeenSet = false;

Expand Down
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
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ namespace Model

PromptVariant::PromptVariant() :
m_inferenceConfigurationHasBeenSet(false),
m_metadataHasBeenSet(false),
m_modelIdHasBeenSet(false),
m_nameHasBeenSet(false),
m_templateConfigurationHasBeenSet(false),
Expand All @@ -43,6 +44,16 @@ PromptVariant& PromptVariant::operator =(JsonView jsonValue)
m_inferenceConfigurationHasBeenSet = true;
}

if(jsonValue.ValueExists("metadata"))
{
Aws::Utils::Array<JsonView> metadataJsonList = jsonValue.GetArray("metadata");
for(unsigned metadataIndex = 0; metadataIndex < metadataJsonList.GetLength(); ++metadataIndex)
{
m_metadata.push_back(metadataJsonList[metadataIndex].AsObject());
}
m_metadataHasBeenSet = true;
}

if(jsonValue.ValueExists("modelId"))
{
m_modelId = jsonValue.GetString("modelId");
Expand Down Expand Up @@ -84,6 +95,17 @@ JsonValue PromptVariant::Jsonize() const

}

if(m_metadataHasBeenSet)
{
Aws::Utils::Array<JsonValue> metadataJsonList(m_metadata.size());
for(unsigned metadataIndex = 0; metadataIndex < metadataJsonList.GetLength(); ++metadataIndex)
{
metadataJsonList[metadataIndex].AsObject(m_metadata[metadataIndex].Jsonize());
}
payload.WithArray("metadata", std::move(metadataJsonList));

}

if(m_modelIdHasBeenSet)
{
payload.WithString("modelId", m_modelId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,20 @@ namespace Model
/**
* <p> The memory and CPU capabilities of the scaling group host on which FinSpace
* Managed kdb clusters will be placed.</p> <p>You can add one of the following
* values:</p> <ul> <li> <p> <code>kx.sg.4xlarge</code> – The host type with a
* configuration of 108 GiB memory and 16 vCPUs.</p> </li> <li> <p>
* <code>kx.sg.8xlarge</code> – The host type with a configuration of 216 GiB
* memory and 32 vCPUs.</p> </li> <li> <p> <code>kx.sg.16xlarge</code> – The host
* type with a configuration of 432 GiB memory and 64 vCPUs.</p> </li> <li> <p>
* <code>kx.sg.32xlarge</code> – The host type with a configuration of 864 GiB
* memory and 128 vCPUs.</p> </li> <li> <p> <code>kx.sg1.16xlarge</code> – The host
* type with a configuration of 1949 GiB memory and 64 vCPUs.</p> </li> <li> <p>
* <code>kx.sg1.24xlarge</code> – The host type with a configuration of 2948 GiB
* memory and 96 vCPUs.</p> </li> </ul>
* values:</p> <ul> <li> <p> <code>kx.sg.large</code> – The host type with a
* configuration of 16 GiB memory and 2 vCPUs.</p> </li> <li> <p>
* <code>kx.sg.xlarge</code> – The host type with a configuration of 32 GiB memory
* and 4 vCPUs.</p> </li> <li> <p> <code>kx.sg.2xlarge</code> – The host type with
* a configuration of 64 GiB memory and 8 vCPUs.</p> </li> <li> <p>
* <code>kx.sg.4xlarge</code> – The host type with a configuration of 108 GiB
* memory and 16 vCPUs.</p> </li> <li> <p> <code>kx.sg.8xlarge</code> – The host
* type with a configuration of 216 GiB memory and 32 vCPUs.</p> </li> <li> <p>
* <code>kx.sg.16xlarge</code> – The host type with a configuration of 432 GiB
* memory and 64 vCPUs.</p> </li> <li> <p> <code>kx.sg.32xlarge</code> – The host
* type with a configuration of 864 GiB memory and 128 vCPUs.</p> </li> <li> <p>
* <code>kx.sg1.16xlarge</code> – The host type with a configuration of 1949 GiB
* memory and 64 vCPUs.</p> </li> <li> <p> <code>kx.sg1.24xlarge</code> – The host
* type with a configuration of 2948 GiB memory and 96 vCPUs.</p> </li> </ul>
*/
inline const Aws::String& GetHostType() const{ return m_hostType; }
inline bool HostTypeHasBeenSet() const { return m_hostTypeHasBeenSet; }
Expand Down
Loading

0 comments on commit d7542e5

Please sign in to comment.