Skip to content

Commit 6007886

Browse files
Doc-only update for DynamoDB. Fixed Important note in 6 Global table APIs - CreateGlobalTable, DescribeGlobalTable, DescribeGlobalTableSettings, ListGlobalTables, UpdateGlobalTable, and UpdateGlobalTableSettings.
This release adds document support to Converse and ConverseStream APIs Fix Glue paginators for Jobs, JobRuns, Triggers, Blueprints and Workflows. Documentation updates for Security Hub Adds support for model references in Hub service, and adds support for cross-account access of Hubs This release enables AWS Cost Optimization Hub to show cost optimization recommendations for Amazon RDS MySQL and RDS PostgreSQL. IVS Real-Time now offers customers the ability to record individual stage participants to S3. This release enables AWS Compute Optimizer to analyze and generate optimization recommendations for Amazon RDS MySQL and RDS PostgreSQL. Add support for the Cargo package format.
1 parent 8e673e6 commit 6007886

File tree

333 files changed

+16485
-5916
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

333 files changed

+16485
-5916
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.11.353
1+
1.11.354

generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/ContentBlock.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
88
#include <aws/core/utils/memory/stl/AWSString.h>
99
#include <aws/bedrock-runtime/model/ImageBlock.h>
10+
#include <aws/bedrock-runtime/model/DocumentBlock.h>
1011
#include <aws/bedrock-runtime/model/ToolUseBlock.h>
1112
#include <aws/bedrock-runtime/model/ToolResultBlock.h>
1213
#include <aws/bedrock-runtime/model/GuardrailConverseContentBlock.h>
@@ -70,6 +71,18 @@ namespace Model
7071
inline ContentBlock& WithImage(ImageBlock&& value) { SetImage(std::move(value)); return *this;}
7172
///@}
7273

74+
///@{
75+
/**
76+
* <p>A document to include in the message.</p>
77+
*/
78+
inline const DocumentBlock& GetDocument() const{ return m_document; }
79+
inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
80+
inline void SetDocument(const DocumentBlock& value) { m_documentHasBeenSet = true; m_document = value; }
81+
inline void SetDocument(DocumentBlock&& value) { m_documentHasBeenSet = true; m_document = std::move(value); }
82+
inline ContentBlock& WithDocument(const DocumentBlock& value) { SetDocument(value); return *this;}
83+
inline ContentBlock& WithDocument(DocumentBlock&& value) { SetDocument(std::move(value)); return *this;}
84+
///@}
85+
7386
///@{
7487
/**
7588
* <p>Information about a tool use request from a model. </p>
@@ -117,6 +130,9 @@ namespace Model
117130
ImageBlock m_image;
118131
bool m_imageHasBeenSet = false;
119132

133+
DocumentBlock m_document;
134+
bool m_documentHasBeenSet = false;
135+
120136
ToolUseBlock m_toolUse;
121137
bool m_toolUseHasBeenSet = false;
122138

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
/**
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0.
4+
*/
5+
6+
#pragma once
7+
#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8+
#include <aws/bedrock-runtime/model/DocumentFormat.h>
9+
#include <aws/core/utils/memory/stl/AWSString.h>
10+
#include <aws/bedrock-runtime/model/DocumentSource.h>
11+
#include <utility>
12+
13+
namespace Aws
14+
{
15+
namespace Utils
16+
{
17+
namespace Json
18+
{
19+
class JsonValue;
20+
class JsonView;
21+
} // namespace Json
22+
} // namespace Utils
23+
namespace BedrockRuntime
24+
{
25+
namespace Model
26+
{
27+
28+
/**
29+
* <p>A document to include in a message when sending a <a
30+
* href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html">Converse</a>
31+
* or <a
32+
* href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html">ConverseStream</a>
33+
* request. You can include up to 5 documents in a request. The maximum document
34+
* size is 50 MB.</p><p><h3>See Also:</h3> <a
35+
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/DocumentBlock">AWS
36+
* API Reference</a></p>
37+
*/
38+
class DocumentBlock
39+
{
40+
public:
41+
AWS_BEDROCKRUNTIME_API DocumentBlock();
42+
AWS_BEDROCKRUNTIME_API DocumentBlock(Aws::Utils::Json::JsonView jsonValue);
43+
AWS_BEDROCKRUNTIME_API DocumentBlock& operator=(Aws::Utils::Json::JsonView jsonValue);
44+
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
45+
46+
47+
///@{
48+
/**
49+
* <p>The format of a document, or its extension.</p>
50+
*/
51+
inline const DocumentFormat& GetFormat() const{ return m_format; }
52+
inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
53+
inline void SetFormat(const DocumentFormat& value) { m_formatHasBeenSet = true; m_format = value; }
54+
inline void SetFormat(DocumentFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
55+
inline DocumentBlock& WithFormat(const DocumentFormat& value) { SetFormat(value); return *this;}
56+
inline DocumentBlock& WithFormat(DocumentFormat&& value) { SetFormat(std::move(value)); return *this;}
57+
///@}
58+
59+
///@{
60+
/**
61+
* <p>A name for the document.</p>
62+
*/
63+
inline const Aws::String& GetName() const{ return m_name; }
64+
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65+
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66+
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67+
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68+
inline DocumentBlock& WithName(const Aws::String& value) { SetName(value); return *this;}
69+
inline DocumentBlock& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70+
inline DocumentBlock& WithName(const char* value) { SetName(value); return *this;}
71+
///@}
72+
73+
///@{
74+
/**
75+
* <p>Contains the content of the document.</p>
76+
*/
77+
inline const DocumentSource& GetSource() const{ return m_source; }
78+
inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
79+
inline void SetSource(const DocumentSource& value) { m_sourceHasBeenSet = true; m_source = value; }
80+
inline void SetSource(DocumentSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
81+
inline DocumentBlock& WithSource(const DocumentSource& value) { SetSource(value); return *this;}
82+
inline DocumentBlock& WithSource(DocumentSource&& value) { SetSource(std::move(value)); return *this;}
83+
///@}
84+
private:
85+
86+
DocumentFormat m_format;
87+
bool m_formatHasBeenSet = false;
88+
89+
Aws::String m_name;
90+
bool m_nameHasBeenSet = false;
91+
92+
DocumentSource m_source;
93+
bool m_sourceHasBeenSet = false;
94+
};
95+
96+
} // namespace Model
97+
} // namespace BedrockRuntime
98+
} // namespace Aws
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/**
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0.
4+
*/
5+
6+
#pragma once
7+
#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8+
#include <aws/core/utils/memory/stl/AWSString.h>
9+
10+
namespace Aws
11+
{
12+
namespace BedrockRuntime
13+
{
14+
namespace Model
15+
{
16+
enum class DocumentFormat
17+
{
18+
NOT_SET,
19+
pdf,
20+
csv,
21+
doc,
22+
docx,
23+
xls,
24+
xlsx,
25+
html,
26+
txt,
27+
md
28+
};
29+
30+
namespace DocumentFormatMapper
31+
{
32+
AWS_BEDROCKRUNTIME_API DocumentFormat GetDocumentFormatForName(const Aws::String& name);
33+
34+
AWS_BEDROCKRUNTIME_API Aws::String GetNameForDocumentFormat(DocumentFormat value);
35+
} // namespace DocumentFormatMapper
36+
} // namespace Model
37+
} // namespace BedrockRuntime
38+
} // namespace Aws
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
/**
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0.
4+
*/
5+
6+
#pragma once
7+
#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8+
#include <aws/core/utils/Array.h>
9+
#include <utility>
10+
11+
namespace Aws
12+
{
13+
namespace Utils
14+
{
15+
namespace Json
16+
{
17+
class JsonValue;
18+
class JsonView;
19+
} // namespace Json
20+
} // namespace Utils
21+
namespace BedrockRuntime
22+
{
23+
namespace Model
24+
{
25+
26+
/**
27+
* <p>Contains the content of the document included in a message when sending a <a
28+
* href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html">Converse</a>
29+
* or <a
30+
* href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html">ConverseStream</a>
31+
* request or in the response.</p><p><h3>See Also:</h3> <a
32+
* href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/DocumentSource">AWS
33+
* API Reference</a></p>
34+
*/
35+
class DocumentSource
36+
{
37+
public:
38+
AWS_BEDROCKRUNTIME_API DocumentSource();
39+
AWS_BEDROCKRUNTIME_API DocumentSource(Aws::Utils::Json::JsonView jsonValue);
40+
AWS_BEDROCKRUNTIME_API DocumentSource& operator=(Aws::Utils::Json::JsonView jsonValue);
41+
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42+
43+
44+
///@{
45+
/**
46+
* <p>A base64-encoded string of a UTF-8 encoded file, that is the document to
47+
* include in the message.</p>
48+
*/
49+
inline const Aws::Utils::ByteBuffer& GetBytes() const{ return m_bytes; }
50+
inline bool BytesHasBeenSet() const { return m_bytesHasBeenSet; }
51+
inline void SetBytes(const Aws::Utils::ByteBuffer& value) { m_bytesHasBeenSet = true; m_bytes = value; }
52+
inline void SetBytes(Aws::Utils::ByteBuffer&& value) { m_bytesHasBeenSet = true; m_bytes = std::move(value); }
53+
inline DocumentSource& WithBytes(const Aws::Utils::ByteBuffer& value) { SetBytes(value); return *this;}
54+
inline DocumentSource& WithBytes(Aws::Utils::ByteBuffer&& value) { SetBytes(std::move(value)); return *this;}
55+
///@}
56+
private:
57+
58+
Aws::Utils::ByteBuffer m_bytes;
59+
bool m_bytesHasBeenSet = false;
60+
};
61+
62+
} // namespace Model
63+
} // namespace BedrockRuntime
64+
} // namespace Aws

generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/ToolResultContentBlock.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <aws/core/utils/Document.h>
99
#include <aws/core/utils/memory/stl/AWSString.h>
1010
#include <aws/bedrock-runtime/model/ImageBlock.h>
11+
#include <aws/bedrock-runtime/model/DocumentBlock.h>
1112
#include <utility>
1213

1314
namespace Aws
@@ -77,6 +78,18 @@ namespace Model
7778
inline ToolResultContentBlock& WithImage(const ImageBlock& value) { SetImage(value); return *this;}
7879
inline ToolResultContentBlock& WithImage(ImageBlock&& value) { SetImage(std::move(value)); return *this;}
7980
///@}
81+
82+
///@{
83+
/**
84+
* <p>A tool result that is a document.</p>
85+
*/
86+
inline const DocumentBlock& GetDocument() const{ return m_document; }
87+
inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
88+
inline void SetDocument(const DocumentBlock& value) { m_documentHasBeenSet = true; m_document = value; }
89+
inline void SetDocument(DocumentBlock&& value) { m_documentHasBeenSet = true; m_document = std::move(value); }
90+
inline ToolResultContentBlock& WithDocument(const DocumentBlock& value) { SetDocument(value); return *this;}
91+
inline ToolResultContentBlock& WithDocument(DocumentBlock&& value) { SetDocument(std::move(value)); return *this;}
92+
///@}
8093
private:
8194

8295
Aws::Utils::Document m_json;
@@ -87,6 +100,9 @@ namespace Model
87100

88101
ImageBlock m_image;
89102
bool m_imageHasBeenSet = false;
103+
104+
DocumentBlock m_document;
105+
bool m_documentHasBeenSet = false;
90106
};
91107

92108
} // namespace Model

generated/src/aws-cpp-sdk-bedrock-runtime/source/model/ContentBlock.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ namespace Model
2121
ContentBlock::ContentBlock() :
2222
m_textHasBeenSet(false),
2323
m_imageHasBeenSet(false),
24+
m_documentHasBeenSet(false),
2425
m_toolUseHasBeenSet(false),
2526
m_toolResultHasBeenSet(false),
2627
m_guardContentHasBeenSet(false)
@@ -30,6 +31,7 @@ ContentBlock::ContentBlock() :
3031
ContentBlock::ContentBlock(JsonView jsonValue) :
3132
m_textHasBeenSet(false),
3233
m_imageHasBeenSet(false),
34+
m_documentHasBeenSet(false),
3335
m_toolUseHasBeenSet(false),
3436
m_toolResultHasBeenSet(false),
3537
m_guardContentHasBeenSet(false)
@@ -53,6 +55,13 @@ ContentBlock& ContentBlock::operator =(JsonView jsonValue)
5355
m_imageHasBeenSet = true;
5456
}
5557

58+
if(jsonValue.ValueExists("document"))
59+
{
60+
m_document = jsonValue.GetObject("document");
61+
62+
m_documentHasBeenSet = true;
63+
}
64+
5665
if(jsonValue.ValueExists("toolUse"))
5766
{
5867
m_toolUse = jsonValue.GetObject("toolUse");
@@ -93,6 +102,12 @@ JsonValue ContentBlock::Jsonize() const
93102

94103
}
95104

105+
if(m_documentHasBeenSet)
106+
{
107+
payload.WithObject("document", m_document.Jsonize());
108+
109+
}
110+
96111
if(m_toolUseHasBeenSet)
97112
{
98113
payload.WithObject("toolUse", m_toolUse.Jsonize());

0 commit comments

Comments
 (0)