Skip to content

Commit 9d6dbbb

Browse files
Add ComputationModelVersion support in IoT SiteWise APIs
This release adds the RESOURCE_NOT_FOUND error code as a possible value in responses to the following operations: BatchGetStandardsControlAssociations, BatchUpdateStandardsControlAssociations, and BatchGetSecurityControls. This release includes backward compatibility work on the "Expires" parameter.
1 parent 24a9a8a commit 9d6dbbb

File tree

14 files changed

+886
-841
lines changed

14 files changed

+886
-841
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.11.642
1+
1.11.643

generated/src/aws-cpp-sdk-iotsitewise/include/aws/iotsitewise/IoTSiteWiseClient.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,9 @@ namespace IoTSiteWise
328328
/**
329329
* <p>Creates an access policy that grants the specified identity (IAM Identity
330330
* Center user, IAM Identity Center group, or IAM user) access to the specified IoT
331-
* SiteWise Monitor portal or project resource.</p><p><h3>See Also:</h3> <a
331+
* SiteWise Monitor portal or project resource.</p> <p>Support for access
332+
* policies that use an SSO Group as the identity is not supported at this
333+
* time.</p> <p><h3>See Also:</h3> <a
332334
* href="http://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/CreateAccessPolicy">AWS
333335
* API Reference</a></p>
334336
*/

generated/src/aws-cpp-sdk-iotsitewise/include/aws/iotsitewise/model/DescribeComputationModelRequest.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111

1212
namespace Aws
1313
{
14+
namespace Http
15+
{
16+
class URI;
17+
} //namespace Http
1418
namespace IoTSiteWise
1519
{
1620
namespace Model
@@ -31,6 +35,8 @@ namespace Model
3135

3236
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override;
3337

38+
AWS_IOTSITEWISE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39+
3440

3541
///@{
3642
/**
@@ -43,10 +49,25 @@ namespace Model
4349
template<typename ComputationModelIdT = Aws::String>
4450
DescribeComputationModelRequest& WithComputationModelId(ComputationModelIdT&& value) { SetComputationModelId(std::forward<ComputationModelIdT>(value)); return *this;}
4551
///@}
52+
53+
///@{
54+
/**
55+
* <p>The version of the computation model.</p>
56+
*/
57+
inline const Aws::String& GetComputationModelVersion() const { return m_computationModelVersion; }
58+
inline bool ComputationModelVersionHasBeenSet() const { return m_computationModelVersionHasBeenSet; }
59+
template<typename ComputationModelVersionT = Aws::String>
60+
void SetComputationModelVersion(ComputationModelVersionT&& value) { m_computationModelVersionHasBeenSet = true; m_computationModelVersion = std::forward<ComputationModelVersionT>(value); }
61+
template<typename ComputationModelVersionT = Aws::String>
62+
DescribeComputationModelRequest& WithComputationModelVersion(ComputationModelVersionT&& value) { SetComputationModelVersion(std::forward<ComputationModelVersionT>(value)); return *this;}
63+
///@}
4664
private:
4765

4866
Aws::String m_computationModelId;
4967
bool m_computationModelIdHasBeenSet = false;
68+
69+
Aws::String m_computationModelVersion;
70+
bool m_computationModelVersionHasBeenSet = false;
5071
};
5172

5273
} // namespace Model

generated/src/aws-cpp-sdk-iotsitewise/include/aws/iotsitewise/model/ExecuteQueryRequest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ namespace Model
6060
///@{
6161
/**
6262
* <p>The maximum number of results to return at one time.</p> <ul> <li> <p>Minimum
63-
* is 1</p> </li> <li> <p>Maximum is 20000</p> </li> <li> <p>Default is 250</p>
63+
* is 1</p> </li> <li> <p>Maximum is 20000</p> </li> <li> <p>Default is 20000</p>
6464
* </li> </ul>
6565
*/
6666
inline int GetMaxResults() const { return m_maxResults; }

generated/src/aws-cpp-sdk-iotsitewise/source/model/DescribeComputationModelRequest.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,32 @@
55

66
#include <aws/iotsitewise/model/DescribeComputationModelRequest.h>
77
#include <aws/core/utils/json/JsonSerializer.h>
8+
#include <aws/core/http/URI.h>
9+
#include <aws/core/utils/memory/stl/AWSStringStream.h>
810

911
#include <utility>
1012

1113
using namespace Aws::IoTSiteWise::Model;
1214
using namespace Aws::Utils::Json;
1315
using namespace Aws::Utils;
16+
using namespace Aws::Http;
1417

1518
Aws::String DescribeComputationModelRequest::SerializePayload() const
1619
{
1720
return {};
1821
}
1922

23+
void DescribeComputationModelRequest::AddQueryStringParameters(URI& uri) const
24+
{
25+
Aws::StringStream ss;
26+
if(m_computationModelVersionHasBeenSet)
27+
{
28+
ss << m_computationModelVersion;
29+
uri.AddQueryStringParameter("computationModelVersion", ss.str());
30+
ss.str("");
31+
}
32+
33+
}
2034

2135

2236

generated/src/aws-cpp-sdk-s3-crt/include/aws/s3-crt/model/RecordsEvent.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace Model
3131
* guarantee that a record will be self-contained in one record frame. To ensure
3232
* continuous streaming of data, S3 Select might split the same record across
3333
* multiple record frames instead of aggregating the results in memory. Some S3
34-
* clients (for example, the SDKforJava) handle this behavior by creating a
34+
* clients (for example, the SDK for Java) handle this behavior by creating a
3535
* <code>ByteStream</code> out of the response by default. Other clients might not
3636
* handle this behavior by default. In those cases, you must aggregate the results
3737
* on the client side and parse the response.</p>

generated/src/aws-cpp-sdk-s3/include/aws/s3/model/RecordsEvent.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace Model
3131
* guarantee that a record will be self-contained in one record frame. To ensure
3232
* continuous streaming of data, S3 Select might split the same record across
3333
* multiple record frames instead of aggregating the results in memory. Some S3
34-
* clients (for example, the SDKforJava) handle this behavior by creating a
34+
* clients (for example, the SDK for Java) handle this behavior by creating a
3535
* <code>ByteStream</code> out of the response by default. Other clients might not
3636
* handle this behavior by default. In those cases, you must aggregate the results
3737
* on the client side and parse the response.</p>

generated/src/aws-cpp-sdk-securityhub/include/aws/securityhub/model/UnprocessedErrorCode.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ namespace Model
1919
INVALID_INPUT,
2020
ACCESS_DENIED,
2121
NOT_FOUND,
22+
RESOURCE_NOT_FOUND,
2223
LIMIT_EXCEEDED
2324
};
2425

generated/src/aws-cpp-sdk-securityhub/source/model/UnprocessedErrorCode.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ namespace Aws
2323
static const int INVALID_INPUT_HASH = HashingUtils::HashString("INVALID_INPUT");
2424
static const int ACCESS_DENIED_HASH = HashingUtils::HashString("ACCESS_DENIED");
2525
static const int NOT_FOUND_HASH = HashingUtils::HashString("NOT_FOUND");
26+
static const int RESOURCE_NOT_FOUND_HASH = HashingUtils::HashString("RESOURCE_NOT_FOUND");
2627
static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LIMIT_EXCEEDED");
2728

2829

@@ -41,6 +42,10 @@ namespace Aws
4142
{
4243
return UnprocessedErrorCode::NOT_FOUND;
4344
}
45+
else if (hashCode == RESOURCE_NOT_FOUND_HASH)
46+
{
47+
return UnprocessedErrorCode::RESOURCE_NOT_FOUND;
48+
}
4449
else if (hashCode == LIMIT_EXCEEDED_HASH)
4550
{
4651
return UnprocessedErrorCode::LIMIT_EXCEEDED;
@@ -67,6 +72,8 @@ namespace Aws
6772
return "ACCESS_DENIED";
6873
case UnprocessedErrorCode::NOT_FOUND:
6974
return "NOT_FOUND";
75+
case UnprocessedErrorCode::RESOURCE_NOT_FOUND:
76+
return "RESOURCE_NOT_FOUND";
7077
case UnprocessedErrorCode::LIMIT_EXCEEDED:
7178
return "LIMIT_EXCEEDED";
7279
default:

src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
#pragma once
66

7-
#define AWS_SDK_VERSION_STRING "1.11.642"
7+
#define AWS_SDK_VERSION_STRING "1.11.643"
88
#define AWS_SDK_VERSION_MAJOR 1
99
#define AWS_SDK_VERSION_MINOR 11
10-
#define AWS_SDK_VERSION_PATCH 642
10+
#define AWS_SDK_VERSION_PATCH 643

0 commit comments

Comments
 (0)