Skip to content

Commit 14548ec

Browse files
author
aws-sdk-cpp-automation
committed
Added 9 new APIs for AWS Glue Interactive Sessions: ListSessions, StopSession, CreateSession, GetSession, DeleteSession, RunStatement, GetStatement, ListStatements, CancelStatement
1 parent df3113e commit 14548ec

Some content is hidden

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

58 files changed

+7312
-18
lines changed

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

Lines changed: 2 additions & 2 deletions
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.217"
6+
#define AWS_SDK_VERSION_STRING "1.9.218"
77
#define AWS_SDK_VERSION_MAJOR 1
88
#define AWS_SDK_VERSION_MINOR 9
9-
#define AWS_SDK_VERSION_PATCH 217
9+
#define AWS_SDK_VERSION_PATCH 218

aws-cpp-sdk-glue/include/aws/glue/GlueClient.h

Lines changed: 279 additions & 0 deletions
Large diffs are not rendered by default.

aws-cpp-sdk-glue/include/aws/glue/GlueErrors.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ enum class GlueErrors
5959
GLUE_ENCRYPTION,
6060
IDEMPOTENT_PARAMETER_MISMATCH,
6161
ILLEGAL_BLUEPRINT_STATE,
62+
ILLEGAL_SESSION_STATE,
6263
ILLEGAL_WORKFLOW_STATE,
6364
INTERNAL_SERVICE,
6465
INVALID_INPUT,

aws-cpp-sdk-glue/include/aws/glue/model/AuditContext.h

Lines changed: 103 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#pragma once
77
#include <aws/glue/Glue_EXPORTS.h>
88
#include <aws/core/utils/memory/stl/AWSString.h>
9+
#include <aws/core/utils/memory/stl/AWSVector.h>
910
#include <utility>
1011

1112
namespace Aws
@@ -23,6 +24,11 @@ namespace Glue
2324
namespace Model
2425
{
2526

27+
/**
28+
* <p>A structure containing information for audit.</p><p><h3>See Also:</h3> <a
29+
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/AuditContext">AWS
30+
* API Reference</a></p>
31+
*/
2632
class AWS_GLUE_API AuditContext
2733
{
2834
public:
@@ -32,34 +38,123 @@ namespace Model
3238
Aws::Utils::Json::JsonValue Jsonize() const;
3339

3440

35-
41+
/**
42+
* <p>The context for the audit..</p>
43+
*/
3644
inline const Aws::String& GetAdditionalAuditContext() const{ return m_additionalAuditContext; }
3745

38-
46+
/**
47+
* <p>The context for the audit..</p>
48+
*/
3949
inline bool AdditionalAuditContextHasBeenSet() const { return m_additionalAuditContextHasBeenSet; }
4050

41-
51+
/**
52+
* <p>The context for the audit..</p>
53+
*/
4254
inline void SetAdditionalAuditContext(const Aws::String& value) { m_additionalAuditContextHasBeenSet = true; m_additionalAuditContext = value; }
4355

44-
56+
/**
57+
* <p>The context for the audit..</p>
58+
*/
4559
inline void SetAdditionalAuditContext(Aws::String&& value) { m_additionalAuditContextHasBeenSet = true; m_additionalAuditContext = std::move(value); }
4660

47-
61+
/**
62+
* <p>The context for the audit..</p>
63+
*/
4864
inline void SetAdditionalAuditContext(const char* value) { m_additionalAuditContextHasBeenSet = true; m_additionalAuditContext.assign(value); }
4965

50-
66+
/**
67+
* <p>The context for the audit..</p>
68+
*/
5169
inline AuditContext& WithAdditionalAuditContext(const Aws::String& value) { SetAdditionalAuditContext(value); return *this;}
5270

53-
71+
/**
72+
* <p>The context for the audit..</p>
73+
*/
5474
inline AuditContext& WithAdditionalAuditContext(Aws::String&& value) { SetAdditionalAuditContext(std::move(value)); return *this;}
5575

56-
76+
/**
77+
* <p>The context for the audit..</p>
78+
*/
5779
inline AuditContext& WithAdditionalAuditContext(const char* value) { SetAdditionalAuditContext(value); return *this;}
5880

81+
82+
/**
83+
* <p>The requested columns for audit.</p>
84+
*/
85+
inline const Aws::Vector<Aws::String>& GetRequestedColumns() const{ return m_requestedColumns; }
86+
87+
/**
88+
* <p>The requested columns for audit.</p>
89+
*/
90+
inline bool RequestedColumnsHasBeenSet() const { return m_requestedColumnsHasBeenSet; }
91+
92+
/**
93+
* <p>The requested columns for audit.</p>
94+
*/
95+
inline void SetRequestedColumns(const Aws::Vector<Aws::String>& value) { m_requestedColumnsHasBeenSet = true; m_requestedColumns = value; }
96+
97+
/**
98+
* <p>The requested columns for audit.</p>
99+
*/
100+
inline void SetRequestedColumns(Aws::Vector<Aws::String>&& value) { m_requestedColumnsHasBeenSet = true; m_requestedColumns = std::move(value); }
101+
102+
/**
103+
* <p>The requested columns for audit.</p>
104+
*/
105+
inline AuditContext& WithRequestedColumns(const Aws::Vector<Aws::String>& value) { SetRequestedColumns(value); return *this;}
106+
107+
/**
108+
* <p>The requested columns for audit.</p>
109+
*/
110+
inline AuditContext& WithRequestedColumns(Aws::Vector<Aws::String>&& value) { SetRequestedColumns(std::move(value)); return *this;}
111+
112+
/**
113+
* <p>The requested columns for audit.</p>
114+
*/
115+
inline AuditContext& AddRequestedColumns(const Aws::String& value) { m_requestedColumnsHasBeenSet = true; m_requestedColumns.push_back(value); return *this; }
116+
117+
/**
118+
* <p>The requested columns for audit.</p>
119+
*/
120+
inline AuditContext& AddRequestedColumns(Aws::String&& value) { m_requestedColumnsHasBeenSet = true; m_requestedColumns.push_back(std::move(value)); return *this; }
121+
122+
/**
123+
* <p>The requested columns for audit.</p>
124+
*/
125+
inline AuditContext& AddRequestedColumns(const char* value) { m_requestedColumnsHasBeenSet = true; m_requestedColumns.push_back(value); return *this; }
126+
127+
128+
/**
129+
* <p>All columns request for audit.</p>
130+
*/
131+
inline bool GetAllColumnsRequested() const{ return m_allColumnsRequested; }
132+
133+
/**
134+
* <p>All columns request for audit.</p>
135+
*/
136+
inline bool AllColumnsRequestedHasBeenSet() const { return m_allColumnsRequestedHasBeenSet; }
137+
138+
/**
139+
* <p>All columns request for audit.</p>
140+
*/
141+
inline void SetAllColumnsRequested(bool value) { m_allColumnsRequestedHasBeenSet = true; m_allColumnsRequested = value; }
142+
143+
/**
144+
* <p>All columns request for audit.</p>
145+
*/
146+
inline AuditContext& WithAllColumnsRequested(bool value) { SetAllColumnsRequested(value); return *this;}
147+
59148
private:
60149

61150
Aws::String m_additionalAuditContext;
62151
bool m_additionalAuditContextHasBeenSet;
152+
153+
Aws::Vector<Aws::String> m_requestedColumns;
154+
bool m_requestedColumnsHasBeenSet;
155+
156+
bool m_allColumnsRequested;
157+
bool m_allColumnsRequestedHasBeenSet;
63158
};
64159

65160
} // namespace Model
Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
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/glue/Glue_EXPORTS.h>
8+
#include <aws/glue/GlueRequest.h>
9+
#include <aws/core/utils/memory/stl/AWSString.h>
10+
#include <utility>
11+
12+
namespace Aws
13+
{
14+
namespace Glue
15+
{
16+
namespace Model
17+
{
18+
19+
/**
20+
*/
21+
class AWS_GLUE_API CancelStatementRequest : public GlueRequest
22+
{
23+
public:
24+
CancelStatementRequest();
25+
26+
// Service request name is the Operation name which will send this request out,
27+
// each operation should has unique request name, so that we can get operation's name from this request.
28+
// Note: this is not true for response, multiple operations may have the same response name,
29+
// so we can not get operation's name from response.
30+
inline virtual const char* GetServiceRequestName() const override { return "CancelStatement"; }
31+
32+
Aws::String SerializePayload() const override;
33+
34+
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35+
36+
37+
/**
38+
* <p>The Session ID of the statement to be cancelled.</p>
39+
*/
40+
inline const Aws::String& GetSessionId() const{ return m_sessionId; }
41+
42+
/**
43+
* <p>The Session ID of the statement to be cancelled.</p>
44+
*/
45+
inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
46+
47+
/**
48+
* <p>The Session ID of the statement to be cancelled.</p>
49+
*/
50+
inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; }
51+
52+
/**
53+
* <p>The Session ID of the statement to be cancelled.</p>
54+
*/
55+
inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); }
56+
57+
/**
58+
* <p>The Session ID of the statement to be cancelled.</p>
59+
*/
60+
inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); }
61+
62+
/**
63+
* <p>The Session ID of the statement to be cancelled.</p>
64+
*/
65+
inline CancelStatementRequest& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
66+
67+
/**
68+
* <p>The Session ID of the statement to be cancelled.</p>
69+
*/
70+
inline CancelStatementRequest& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
71+
72+
/**
73+
* <p>The Session ID of the statement to be cancelled.</p>
74+
*/
75+
inline CancelStatementRequest& WithSessionId(const char* value) { SetSessionId(value); return *this;}
76+
77+
78+
/**
79+
* <p>The ID of the statement to be cancelled.</p>
80+
*/
81+
inline int GetId() const{ return m_id; }
82+
83+
/**
84+
* <p>The ID of the statement to be cancelled.</p>
85+
*/
86+
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
87+
88+
/**
89+
* <p>The ID of the statement to be cancelled.</p>
90+
*/
91+
inline void SetId(int value) { m_idHasBeenSet = true; m_id = value; }
92+
93+
/**
94+
* <p>The ID of the statement to be cancelled.</p>
95+
*/
96+
inline CancelStatementRequest& WithId(int value) { SetId(value); return *this;}
97+
98+
99+
/**
100+
* <p>The origin of the request to cancel the statement.</p>
101+
*/
102+
inline const Aws::String& GetRequestOrigin() const{ return m_requestOrigin; }
103+
104+
/**
105+
* <p>The origin of the request to cancel the statement.</p>
106+
*/
107+
inline bool RequestOriginHasBeenSet() const { return m_requestOriginHasBeenSet; }
108+
109+
/**
110+
* <p>The origin of the request to cancel the statement.</p>
111+
*/
112+
inline void SetRequestOrigin(const Aws::String& value) { m_requestOriginHasBeenSet = true; m_requestOrigin = value; }
113+
114+
/**
115+
* <p>The origin of the request to cancel the statement.</p>
116+
*/
117+
inline void SetRequestOrigin(Aws::String&& value) { m_requestOriginHasBeenSet = true; m_requestOrigin = std::move(value); }
118+
119+
/**
120+
* <p>The origin of the request to cancel the statement.</p>
121+
*/
122+
inline void SetRequestOrigin(const char* value) { m_requestOriginHasBeenSet = true; m_requestOrigin.assign(value); }
123+
124+
/**
125+
* <p>The origin of the request to cancel the statement.</p>
126+
*/
127+
inline CancelStatementRequest& WithRequestOrigin(const Aws::String& value) { SetRequestOrigin(value); return *this;}
128+
129+
/**
130+
* <p>The origin of the request to cancel the statement.</p>
131+
*/
132+
inline CancelStatementRequest& WithRequestOrigin(Aws::String&& value) { SetRequestOrigin(std::move(value)); return *this;}
133+
134+
/**
135+
* <p>The origin of the request to cancel the statement.</p>
136+
*/
137+
inline CancelStatementRequest& WithRequestOrigin(const char* value) { SetRequestOrigin(value); return *this;}
138+
139+
private:
140+
141+
Aws::String m_sessionId;
142+
bool m_sessionIdHasBeenSet;
143+
144+
int m_id;
145+
bool m_idHasBeenSet;
146+
147+
Aws::String m_requestOrigin;
148+
bool m_requestOriginHasBeenSet;
149+
};
150+
151+
} // namespace Model
152+
} // namespace Glue
153+
} // namespace Aws
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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/glue/Glue_EXPORTS.h>
8+
9+
namespace Aws
10+
{
11+
template<typename RESULT_TYPE>
12+
class AmazonWebServiceResult;
13+
14+
namespace Utils
15+
{
16+
namespace Json
17+
{
18+
class JsonValue;
19+
} // namespace Json
20+
} // namespace Utils
21+
namespace Glue
22+
{
23+
namespace Model
24+
{
25+
class AWS_GLUE_API CancelStatementResult
26+
{
27+
public:
28+
CancelStatementResult();
29+
CancelStatementResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
30+
CancelStatementResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
31+
32+
};
33+
34+
} // namespace Model
35+
} // namespace Glue
36+
} // namespace Aws

0 commit comments

Comments
 (0)