-
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.
AWS Config adds support for service-linked recorders, a new type of C…
…onfig recorder managed by AWS services to record specific subsets of resource configuration data and functioning independently from customer managed AWS Config recorders. Amazon CloudWatch Observability Admin adds the ability to audit telemetry configuration for AWS resources in customers AWS Accounts and Organizations. The release introduces new APIs to turn on/off the new experience, which supports discovering supported AWS resources and their state of telemetry. Add support for specifying embeddingDataType, either FLOAT32 or BINARY This release adds EFA support to increase FSx for Lustre file systems' throughput performance to a single client instance. This can be done by specifying EfaEnabled=true at the time of creation of Persistent_2 file systems.
- Loading branch information
1 parent
7ce35d6
commit c95e71a
Showing
145 changed files
with
9,734 additions
and
292 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.456 | ||
1.11.457 |
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
31 changes: 31 additions & 0 deletions
31
generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/EmbeddingDataType.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,31 @@ | ||
/** | ||
* 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> | ||
|
||
namespace Aws | ||
{ | ||
namespace BedrockAgent | ||
{ | ||
namespace Model | ||
{ | ||
enum class EmbeddingDataType | ||
{ | ||
NOT_SET, | ||
FLOAT32, | ||
BINARY | ||
}; | ||
|
||
namespace EmbeddingDataTypeMapper | ||
{ | ||
AWS_BEDROCKAGENT_API EmbeddingDataType GetEmbeddingDataTypeForName(const Aws::String& name); | ||
|
||
AWS_BEDROCKAGENT_API Aws::String GetNameForEmbeddingDataType(EmbeddingDataType value); | ||
} // namespace EmbeddingDataTypeMapper | ||
} // 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
72 changes: 72 additions & 0 deletions
72
generated/src/aws-cpp-sdk-bedrock-agent/source/model/EmbeddingDataType.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,72 @@ | ||
/** | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0. | ||
*/ | ||
|
||
#include <aws/bedrock-agent/model/EmbeddingDataType.h> | ||
#include <aws/core/utils/HashingUtils.h> | ||
#include <aws/core/Globals.h> | ||
#include <aws/core/utils/EnumParseOverflowContainer.h> | ||
|
||
using namespace Aws::Utils; | ||
|
||
|
||
namespace Aws | ||
{ | ||
namespace BedrockAgent | ||
{ | ||
namespace Model | ||
{ | ||
namespace EmbeddingDataTypeMapper | ||
{ | ||
|
||
static const int FLOAT32_HASH = HashingUtils::HashString("FLOAT32"); | ||
static const int BINARY_HASH = HashingUtils::HashString("BINARY"); | ||
|
||
|
||
EmbeddingDataType GetEmbeddingDataTypeForName(const Aws::String& name) | ||
{ | ||
int hashCode = HashingUtils::HashString(name.c_str()); | ||
if (hashCode == FLOAT32_HASH) | ||
{ | ||
return EmbeddingDataType::FLOAT32; | ||
} | ||
else if (hashCode == BINARY_HASH) | ||
{ | ||
return EmbeddingDataType::BINARY; | ||
} | ||
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); | ||
if(overflowContainer) | ||
{ | ||
overflowContainer->StoreOverflow(hashCode, name); | ||
return static_cast<EmbeddingDataType>(hashCode); | ||
} | ||
|
||
return EmbeddingDataType::NOT_SET; | ||
} | ||
|
||
Aws::String GetNameForEmbeddingDataType(EmbeddingDataType enumValue) | ||
{ | ||
switch(enumValue) | ||
{ | ||
case EmbeddingDataType::NOT_SET: | ||
return {}; | ||
case EmbeddingDataType::FLOAT32: | ||
return "FLOAT32"; | ||
case EmbeddingDataType::BINARY: | ||
return "BINARY"; | ||
default: | ||
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); | ||
if(overflowContainer) | ||
{ | ||
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue)); | ||
} | ||
|
||
return {}; | ||
} | ||
} | ||
|
||
} // namespace EmbeddingDataTypeMapper | ||
} // namespace Model | ||
} // namespace BedrockAgent | ||
} // namespace Aws |
Oops, something went wrong.