Skip to content

Commit 475d367

Browse files
This release adds support for updating the analytics engine of a collaboration.
Added tagging support for SageMaker notebook instance lifecycle configurations
1 parent dc13399 commit 475d367

File tree

9 files changed

+873
-813
lines changed

9 files changed

+873
-813
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.11.537
1+
1.11.538

generated/src/aws-cpp-sdk-cleanrooms/include/aws/cleanrooms/model/UpdateCollaborationRequest.h

+14
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <aws/cleanrooms/CleanRooms_EXPORTS.h>
88
#include <aws/cleanrooms/CleanRoomsRequest.h>
99
#include <aws/core/utils/memory/stl/AWSString.h>
10+
#include <aws/cleanrooms/model/AnalyticsEngine.h>
1011
#include <utility>
1112

1213
namespace Aws
@@ -68,6 +69,16 @@ namespace Model
6869
template<typename DescriptionT = Aws::String>
6970
UpdateCollaborationRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
7071
///@}
72+
73+
///@{
74+
/**
75+
* <p>The analytics engine.</p>
76+
*/
77+
inline AnalyticsEngine GetAnalyticsEngine() const { return m_analyticsEngine; }
78+
inline bool AnalyticsEngineHasBeenSet() const { return m_analyticsEngineHasBeenSet; }
79+
inline void SetAnalyticsEngine(AnalyticsEngine value) { m_analyticsEngineHasBeenSet = true; m_analyticsEngine = value; }
80+
inline UpdateCollaborationRequest& WithAnalyticsEngine(AnalyticsEngine value) { SetAnalyticsEngine(value); return *this;}
81+
///@}
7182
private:
7283

7384
Aws::String m_collaborationIdentifier;
@@ -78,6 +89,9 @@ namespace Model
7889

7990
Aws::String m_description;
8091
bool m_descriptionHasBeenSet = false;
92+
93+
AnalyticsEngine m_analyticsEngine{AnalyticsEngine::NOT_SET};
94+
bool m_analyticsEngineHasBeenSet = false;
8195
};
8296

8397
} // namespace Model

generated/src/aws-cpp-sdk-cleanrooms/source/model/UpdateCollaborationRequest.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ Aws::String UpdateCollaborationRequest::SerializePayload() const
2828

2929
}
3030

31+
if(m_analyticsEngineHasBeenSet)
32+
{
33+
payload.WithString("analyticsEngine", AnalyticsEngineMapper::GetNameForAnalyticsEngine(m_analyticsEngine));
34+
}
35+
3136
return payload.View().WriteReadable();
3237
}
3338

generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CreateNotebookInstanceLifecycleConfigRequest.h

+22
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <aws/core/utils/memory/stl/AWSString.h>
1010
#include <aws/core/utils/memory/stl/AWSVector.h>
1111
#include <aws/sagemaker/model/NotebookInstanceLifecycleHook.h>
12+
#include <aws/sagemaker/model/Tag.h>
1213
#include <utility>
1314

1415
namespace Aws
@@ -78,6 +79,24 @@ namespace Model
7879
template<typename OnStartT = NotebookInstanceLifecycleHook>
7980
CreateNotebookInstanceLifecycleConfigRequest& AddOnStart(OnStartT&& value) { m_onStartHasBeenSet = true; m_onStart.emplace_back(std::forward<OnStartT>(value)); return *this; }
8081
///@}
82+
83+
///@{
84+
/**
85+
* <p>An array of key-value pairs. You can use tags to categorize your Amazon Web
86+
* Services resources in different ways, for example, by purpose, owner, or
87+
* environment. For more information, see <a
88+
* href="https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html">Tagging
89+
* Amazon Web Services Resources</a>.</p>
90+
*/
91+
inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
92+
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93+
template<typename TagsT = Aws::Vector<Tag>>
94+
void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
95+
template<typename TagsT = Aws::Vector<Tag>>
96+
CreateNotebookInstanceLifecycleConfigRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
97+
template<typename TagsT = Tag>
98+
CreateNotebookInstanceLifecycleConfigRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
99+
///@}
81100
private:
82101

83102
Aws::String m_notebookInstanceLifecycleConfigName;
@@ -88,6 +107,9 @@ namespace Model
88107

89108
Aws::Vector<NotebookInstanceLifecycleHook> m_onStart;
90109
bool m_onStartHasBeenSet = false;
110+
111+
Aws::Vector<Tag> m_tags;
112+
bool m_tagsHasBeenSet = false;
91113
};
92114

93115
} // namespace Model

generated/src/aws-cpp-sdk-sagemaker/source/model/CreateNotebookInstanceLifecycleConfigRequest.cpp

+11
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ Aws::String CreateNotebookInstanceLifecycleConfigRequest::SerializePayload() con
4444

4545
}
4646

47+
if(m_tagsHasBeenSet)
48+
{
49+
Aws::Utils::Array<JsonValue> tagsJsonList(m_tags.size());
50+
for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex)
51+
{
52+
tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize());
53+
}
54+
payload.WithArray("Tags", std::move(tagsJsonList));
55+
56+
}
57+
4758
return payload.View().WriteReadable();
4859
}
4960

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

+2-2
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.537"
7+
#define AWS_SDK_VERSION_STRING "1.11.538"
88
#define AWS_SDK_VERSION_MAJOR 1
99
#define AWS_SDK_VERSION_MINOR 11
10-
#define AWS_SDK_VERSION_PATCH 537
10+
#define AWS_SDK_VERSION_PATCH 538

tools/code-generation/api-descriptions/cleanrooms-2022-02-17.normal.json

+4
Original file line numberDiff line numberDiff line change
@@ -9709,6 +9709,10 @@
97099709
"description":{
97109710
"shape":"CollaborationDescription",
97119711
"documentation":"<p>A description of the collaboration.</p>"
9712+
},
9713+
"analyticsEngine":{
9714+
"shape":"AnalyticsEngine",
9715+
"documentation":"<p>The analytics engine.</p>"
97129716
}
97139717
}
97149718
},

tools/code-generation/api-descriptions/sagemaker-2017-07-24.normal.json

+4
Original file line numberDiff line numberDiff line change
@@ -11197,6 +11197,10 @@
1119711197
"OnStart":{
1119811198
"shape":"NotebookInstanceLifecycleConfigList",
1119911199
"documentation":"<p>A shell script that runs every time you start a notebook instance, including when you create the notebook instance. The shell script must be a base64-encoded string.</p>"
11200+
},
11201+
"Tags":{
11202+
"shape":"TagList",
11203+
"documentation":"<p>An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see <a href=\"https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html\">Tagging Amazon Web Services Resources</a>.</p>"
1120011204
}
1120111205
}
1120211206
},

0 commit comments

Comments
 (0)