Skip to content

Commit e5e38a7

Browse files
author
aws-sdk-cpp-automation
committed
SDK release for Cloud Control API to include paginators for Python SDK.
Add detail message inside GetExperimentResults API response to indicate experiment result availability Fixed an error in the DescribeEngagement example for AWS Incident Manager.
1 parent 4c40794 commit e5e38a7

File tree

12 files changed

+325
-179
lines changed

12 files changed

+325
-179
lines changed

aws-cpp-sdk-cloudcontrol/include/aws/cloudcontrol/model/CreateResourceRequest.h

+104-72
Large diffs are not rendered by default.

aws-cpp-sdk-cloudcontrol/source/CloudControlApiErrors.cpp

+10-10
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ namespace CloudControlApiErrorMapper
2121
static const int HANDLER_INTERNAL_FAILURE_HASH = HashingUtils::HashString("HandlerInternalFailureException");
2222
static const int NETWORK_FAILURE_HASH = HashingUtils::HashString("NetworkFailureException");
2323
static const int HANDLER_FAILURE_HASH = HashingUtils::HashString("HandlerFailureException");
24-
static const int CONCURRENT_OPERATION_HASH = HashingUtils::HashString("ConcurrentOperationException");
2524
static const int GENERAL_SERVICE_HASH = HashingUtils::HashString("GeneralServiceException");
25+
static const int CONCURRENT_OPERATION_HASH = HashingUtils::HashString("ConcurrentOperationException");
2626
static const int PRIVATE_TYPE_HASH = HashingUtils::HashString("PrivateTypeException");
2727
static const int CONCURRENT_MODIFICATION_HASH = HashingUtils::HashString("ConcurrentModificationException");
2828
static const int ALREADY_EXISTS_HASH = HashingUtils::HashString("AlreadyExistsException");
2929
static const int SERVICE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ServiceLimitExceededException");
30-
static const int TYPE_NOT_FOUND_HASH = HashingUtils::HashString("TypeNotFoundException");
3130
static const int NOT_UPDATABLE_HASH = HashingUtils::HashString("NotUpdatableException");
31+
static const int TYPE_NOT_FOUND_HASH = HashingUtils::HashString("TypeNotFoundException");
3232
static const int UNSUPPORTED_ACTION_HASH = HashingUtils::HashString("UnsupportedActionException");
3333
static const int NOT_STABILIZED_HASH = HashingUtils::HashString("NotStabilizedException");
3434
static const int RESOURCE_CONFLICT_HASH = HashingUtils::HashString("ResourceConflictException");
@@ -55,14 +55,14 @@ AWSError<CoreErrors> GetErrorForName(const char* errorName)
5555
{
5656
return AWSError<CoreErrors>(static_cast<CoreErrors>(CloudControlApiErrors::HANDLER_FAILURE), false);
5757
}
58-
else if (hashCode == CONCURRENT_OPERATION_HASH)
59-
{
60-
return AWSError<CoreErrors>(static_cast<CoreErrors>(CloudControlApiErrors::CONCURRENT_OPERATION), false);
61-
}
6258
else if (hashCode == GENERAL_SERVICE_HASH)
6359
{
6460
return AWSError<CoreErrors>(static_cast<CoreErrors>(CloudControlApiErrors::GENERAL_SERVICE), false);
6561
}
62+
else if (hashCode == CONCURRENT_OPERATION_HASH)
63+
{
64+
return AWSError<CoreErrors>(static_cast<CoreErrors>(CloudControlApiErrors::CONCURRENT_OPERATION), false);
65+
}
6666
else if (hashCode == PRIVATE_TYPE_HASH)
6767
{
6868
return AWSError<CoreErrors>(static_cast<CoreErrors>(CloudControlApiErrors::PRIVATE_TYPE), false);
@@ -79,14 +79,14 @@ AWSError<CoreErrors> GetErrorForName(const char* errorName)
7979
{
8080
return AWSError<CoreErrors>(static_cast<CoreErrors>(CloudControlApiErrors::SERVICE_LIMIT_EXCEEDED), false);
8181
}
82-
else if (hashCode == TYPE_NOT_FOUND_HASH)
83-
{
84-
return AWSError<CoreErrors>(static_cast<CoreErrors>(CloudControlApiErrors::TYPE_NOT_FOUND), false);
85-
}
8682
else if (hashCode == NOT_UPDATABLE_HASH)
8783
{
8884
return AWSError<CoreErrors>(static_cast<CoreErrors>(CloudControlApiErrors::NOT_UPDATABLE), false);
8985
}
86+
else if (hashCode == TYPE_NOT_FOUND_HASH)
87+
{
88+
return AWSError<CoreErrors>(static_cast<CoreErrors>(CloudControlApiErrors::TYPE_NOT_FOUND), false);
89+
}
9090
else if (hashCode == UNSUPPORTED_ACTION_HASH)
9191
{
9292
return AWSError<CoreErrors>(static_cast<CoreErrors>(CloudControlApiErrors::UNSUPPORTED_ACTION), false);

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6-
#define AWS_SDK_VERSION_STRING "1.9.252"
6+
#define AWS_SDK_VERSION_STRING "1.9.253"
77
#define AWS_SDK_VERSION_MAJOR 1
88
#define AWS_SDK_VERSION_MINOR 9
9-
#define AWS_SDK_VERSION_PATCH 252
9+
#define AWS_SDK_VERSION_PATCH 253

aws-cpp-sdk-evidently/include/aws/evidently/CloudWatchEvidentlyClient.h

+18-6
Original file line numberDiff line numberDiff line change
@@ -748,16 +748,24 @@ namespace Model
748748
virtual void GetExperimentAsync(const Model::GetExperimentRequest& request, const GetExperimentResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
749749

750750
/**
751-
* <p>Retrieves the results of a running or completed experiment.</p><p><h3>See
752-
* Also:</h3> <a
751+
* <p>Retrieves the results of a running or completed experiment. No results are
752+
* available until there have been 100 events for each variation and at least 10
753+
* minutes have passed since the start of the experiment.</p> <p>Experiment results
754+
* are available up to 63 days after the start of the experiment. They are not
755+
* available after that because of CloudWatch data retention
756+
* policies.</p><p><h3>See Also:</h3> <a
753757
* href="http://docs.aws.amazon.com/goto/WebAPI/evidently-2021-02-01/GetExperimentResults">AWS
754758
* API Reference</a></p>
755759
*/
756760
virtual Model::GetExperimentResultsOutcome GetExperimentResults(const Model::GetExperimentResultsRequest& request) const;
757761

758762
/**
759-
* <p>Retrieves the results of a running or completed experiment.</p><p><h3>See
760-
* Also:</h3> <a
763+
* <p>Retrieves the results of a running or completed experiment. No results are
764+
* available until there have been 100 events for each variation and at least 10
765+
* minutes have passed since the start of the experiment.</p> <p>Experiment results
766+
* are available up to 63 days after the start of the experiment. They are not
767+
* available after that because of CloudWatch data retention
768+
* policies.</p><p><h3>See Also:</h3> <a
761769
* href="http://docs.aws.amazon.com/goto/WebAPI/evidently-2021-02-01/GetExperimentResults">AWS
762770
* API Reference</a></p>
763771
*
@@ -766,8 +774,12 @@ namespace Model
766774
virtual Model::GetExperimentResultsOutcomeCallable GetExperimentResultsCallable(const Model::GetExperimentResultsRequest& request) const;
767775

768776
/**
769-
* <p>Retrieves the results of a running or completed experiment.</p><p><h3>See
770-
* Also:</h3> <a
777+
* <p>Retrieves the results of a running or completed experiment. No results are
778+
* available until there have been 100 events for each variation and at least 10
779+
* minutes have passed since the start of the experiment.</p> <p>Experiment results
780+
* are available up to 63 days after the start of the experiment. They are not
781+
* available after that because of CloudWatch data retention
782+
* policies.</p><p><h3>See Also:</h3> <a
771783
* href="http://docs.aws.amazon.com/goto/WebAPI/evidently-2021-02-01/GetExperimentResults">AWS
772784
* API Reference</a></p>
773785
*

aws-cpp-sdk-evidently/include/aws/evidently/model/GetExperimentResultsRequest.h

+12-6
Original file line numberDiff line numberDiff line change
@@ -81,32 +81,38 @@ namespace Model
8181

8282

8383
/**
84-
* <p>The date and time that the experiment ended, if it is completed.</p>
84+
* <p>The date and time that the experiment ended, if it is completed. This must be
85+
* no longer than 30 days after the experiment start time.</p>
8586
*/
8687
inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
8788

8889
/**
89-
* <p>The date and time that the experiment ended, if it is completed.</p>
90+
* <p>The date and time that the experiment ended, if it is completed. This must be
91+
* no longer than 30 days after the experiment start time.</p>
9092
*/
9193
inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
9294

9395
/**
94-
* <p>The date and time that the experiment ended, if it is completed.</p>
96+
* <p>The date and time that the experiment ended, if it is completed. This must be
97+
* no longer than 30 days after the experiment start time.</p>
9598
*/
9699
inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
97100

98101
/**
99-
* <p>The date and time that the experiment ended, if it is completed.</p>
102+
* <p>The date and time that the experiment ended, if it is completed. This must be
103+
* no longer than 30 days after the experiment start time.</p>
100104
*/
101105
inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
102106

103107
/**
104-
* <p>The date and time that the experiment ended, if it is completed.</p>
108+
* <p>The date and time that the experiment ended, if it is completed. This must be
109+
* no longer than 30 days after the experiment start time.</p>
105110
*/
106111
inline GetExperimentResultsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
107112

108113
/**
109-
* <p>The date and time that the experiment ended, if it is completed.</p>
114+
* <p>The date and time that the experiment ended, if it is completed. This must be
115+
* no longer than 30 days after the experiment start time.</p>
110116
*/
111117
inline GetExperimentResultsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
112118

aws-cpp-sdk-evidently/include/aws/evidently/model/GetExperimentResultsResult.h

+60
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#pragma once
77
#include <aws/evidently/CloudWatchEvidently_EXPORTS.h>
8+
#include <aws/core/utils/memory/stl/AWSString.h>
89
#include <aws/core/utils/memory/stl/AWSVector.h>
910
#include <aws/evidently/model/ExperimentReport.h>
1011
#include <aws/evidently/model/ExperimentResultsData.h>
@@ -35,6 +36,63 @@ namespace Model
3536
GetExperimentResultsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
3637

3738

39+
/**
40+
* <p>If the experiment doesn't yet have enough events to provide valid results,
41+
* this field is returned with the message <code>Not enough events to generate
42+
* results</code>. If there are enough events to provide valid results, this field
43+
* is not returned.</p>
44+
*/
45+
inline const Aws::String& GetDetails() const{ return m_details; }
46+
47+
/**
48+
* <p>If the experiment doesn't yet have enough events to provide valid results,
49+
* this field is returned with the message <code>Not enough events to generate
50+
* results</code>. If there are enough events to provide valid results, this field
51+
* is not returned.</p>
52+
*/
53+
inline void SetDetails(const Aws::String& value) { m_details = value; }
54+
55+
/**
56+
* <p>If the experiment doesn't yet have enough events to provide valid results,
57+
* this field is returned with the message <code>Not enough events to generate
58+
* results</code>. If there are enough events to provide valid results, this field
59+
* is not returned.</p>
60+
*/
61+
inline void SetDetails(Aws::String&& value) { m_details = std::move(value); }
62+
63+
/**
64+
* <p>If the experiment doesn't yet have enough events to provide valid results,
65+
* this field is returned with the message <code>Not enough events to generate
66+
* results</code>. If there are enough events to provide valid results, this field
67+
* is not returned.</p>
68+
*/
69+
inline void SetDetails(const char* value) { m_details.assign(value); }
70+
71+
/**
72+
* <p>If the experiment doesn't yet have enough events to provide valid results,
73+
* this field is returned with the message <code>Not enough events to generate
74+
* results</code>. If there are enough events to provide valid results, this field
75+
* is not returned.</p>
76+
*/
77+
inline GetExperimentResultsResult& WithDetails(const Aws::String& value) { SetDetails(value); return *this;}
78+
79+
/**
80+
* <p>If the experiment doesn't yet have enough events to provide valid results,
81+
* this field is returned with the message <code>Not enough events to generate
82+
* results</code>. If there are enough events to provide valid results, this field
83+
* is not returned.</p>
84+
*/
85+
inline GetExperimentResultsResult& WithDetails(Aws::String&& value) { SetDetails(std::move(value)); return *this;}
86+
87+
/**
88+
* <p>If the experiment doesn't yet have enough events to provide valid results,
89+
* this field is returned with the message <code>Not enough events to generate
90+
* results</code>. If there are enough events to provide valid results, this field
91+
* is not returned.</p>
92+
*/
93+
inline GetExperimentResultsResult& WithDetails(const char* value) { SetDetails(value); return *this;}
94+
95+
3896
/**
3997
* <p>An array of structures that include the reports that you requested.</p>
4098
*/
@@ -151,6 +209,8 @@ namespace Model
151209

152210
private:
153211

212+
Aws::String m_details;
213+
154214
Aws::Vector<ExperimentReport> m_reports;
155215

156216
Aws::Vector<ExperimentResultsData> m_resultsData;

aws-cpp-sdk-evidently/include/aws/evidently/model/StartExperimentRequest.h

+12-6
Original file line numberDiff line numberDiff line change
@@ -34,32 +34,38 @@ namespace Model
3434

3535

3636
/**
37-
* <p>The date and time to end the experiment.</p>
37+
* <p>The date and time to end the experiment. This must be no more than 30 days
38+
* after the experiment starts.</p>
3839
*/
3940
inline const Aws::Utils::DateTime& GetAnalysisCompleteTime() const{ return m_analysisCompleteTime; }
4041

4142
/**
42-
* <p>The date and time to end the experiment.</p>
43+
* <p>The date and time to end the experiment. This must be no more than 30 days
44+
* after the experiment starts.</p>
4345
*/
4446
inline bool AnalysisCompleteTimeHasBeenSet() const { return m_analysisCompleteTimeHasBeenSet; }
4547

4648
/**
47-
* <p>The date and time to end the experiment.</p>
49+
* <p>The date and time to end the experiment. This must be no more than 30 days
50+
* after the experiment starts.</p>
4851
*/
4952
inline void SetAnalysisCompleteTime(const Aws::Utils::DateTime& value) { m_analysisCompleteTimeHasBeenSet = true; m_analysisCompleteTime = value; }
5053

5154
/**
52-
* <p>The date and time to end the experiment.</p>
55+
* <p>The date and time to end the experiment. This must be no more than 30 days
56+
* after the experiment starts.</p>
5357
*/
5458
inline void SetAnalysisCompleteTime(Aws::Utils::DateTime&& value) { m_analysisCompleteTimeHasBeenSet = true; m_analysisCompleteTime = std::move(value); }
5559

5660
/**
57-
* <p>The date and time to end the experiment.</p>
61+
* <p>The date and time to end the experiment. This must be no more than 30 days
62+
* after the experiment starts.</p>
5863
*/
5964
inline StartExperimentRequest& WithAnalysisCompleteTime(const Aws::Utils::DateTime& value) { SetAnalysisCompleteTime(value); return *this;}
6065

6166
/**
62-
* <p>The date and time to end the experiment.</p>
67+
* <p>The date and time to end the experiment. This must be no more than 30 days
68+
* after the experiment starts.</p>
6369
*/
6470
inline StartExperimentRequest& WithAnalysisCompleteTime(Aws::Utils::DateTime&& value) { SetAnalysisCompleteTime(std::move(value)); return *this;}
6571

aws-cpp-sdk-evidently/source/model/GetExperimentResultsResult.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ GetExperimentResultsResult::GetExperimentResultsResult(const Aws::AmazonWebServi
2828
GetExperimentResultsResult& GetExperimentResultsResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
2929
{
3030
JsonView jsonValue = result.GetPayload().View();
31+
if(jsonValue.ValueExists("details"))
32+
{
33+
m_details = jsonValue.GetString("details");
34+
35+
}
36+
3137
if(jsonValue.ValueExists("reports"))
3238
{
3339
Array<JsonView> reportsJsonList = jsonValue.GetArray("reports");

aws-cpp-sdk-ssm-contacts/include/aws/ssm-contacts/SSMContactsClient.h

+15-6
Original file line numberDiff line numberDiff line change
@@ -787,16 +787,22 @@ namespace Model
787787
virtual void ListTagsForResourceAsync(const Model::ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
788788

789789
/**
790-
* <p>Adds a resource to the specified contact or escalation plan.</p><p><h3>See
791-
* Also:</h3> <a
790+
* <p>Adds a resource policy to the specified contact or escalation plan. The
791+
* resource policy is used to share the contact or escalation plan using Resource
792+
* Access Manager (RAM). For more information about cross-account sharing, see <a
793+
* href="https://docs.aws.amazon.com/incident-manager/latest/userguide/xa.html">Setting
794+
* up cross-account functionality</a>.</p><p><h3>See Also:</h3> <a
792795
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-contacts-2021-05-03/PutContactPolicy">AWS
793796
* API Reference</a></p>
794797
*/
795798
virtual Model::PutContactPolicyOutcome PutContactPolicy(const Model::PutContactPolicyRequest& request) const;
796799

797800
/**
798-
* <p>Adds a resource to the specified contact or escalation plan.</p><p><h3>See
799-
* Also:</h3> <a
801+
* <p>Adds a resource policy to the specified contact or escalation plan. The
802+
* resource policy is used to share the contact or escalation plan using Resource
803+
* Access Manager (RAM). For more information about cross-account sharing, see <a
804+
* href="https://docs.aws.amazon.com/incident-manager/latest/userguide/xa.html">Setting
805+
* up cross-account functionality</a>.</p><p><h3>See Also:</h3> <a
800806
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-contacts-2021-05-03/PutContactPolicy">AWS
801807
* API Reference</a></p>
802808
*
@@ -805,8 +811,11 @@ namespace Model
805811
virtual Model::PutContactPolicyOutcomeCallable PutContactPolicyCallable(const Model::PutContactPolicyRequest& request) const;
806812

807813
/**
808-
* <p>Adds a resource to the specified contact or escalation plan.</p><p><h3>See
809-
* Also:</h3> <a
814+
* <p>Adds a resource policy to the specified contact or escalation plan. The
815+
* resource policy is used to share the contact or escalation plan using Resource
816+
* Access Manager (RAM). For more information about cross-account sharing, see <a
817+
* href="https://docs.aws.amazon.com/incident-manager/latest/userguide/xa.html">Setting
818+
* up cross-account functionality</a>.</p><p><h3>See Also:</h3> <a
810819
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-contacts-2021-05-03/PutContactPolicy">AWS
811820
* API Reference</a></p>
812821
*

0 commit comments

Comments
 (0)