Skip to content

Commit 3bac022

Browse files
author
aws-sdk-cpp-automation
committed
Introducing Amazon Interactive Video Service - a managed live streaming solution that is quick and easy to set up, and ideal for creating interactive video experiences.
1 parent 44f616a commit 3bac022

File tree

119 files changed

+12211
-1
lines changed

Some content is hidden

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

119 files changed

+12211
-1
lines changed

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

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

6-
#define AWS_SDK_VERSION_STRING "1.8.7"
6+
#define AWS_SDK_VERSION_STRING "1.8.8"

aws-cpp-sdk-ivs/CMakeLists.txt

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
add_project(aws-cpp-sdk-ivs "C++ SDK for the AWS ivs service" aws-cpp-sdk-core)
2+
3+
file(GLOB AWS_IVS_HEADERS
4+
"include/aws/ivs/*.h"
5+
)
6+
7+
file(GLOB AWS_IVS_MODEL_HEADERS
8+
"include/aws/ivs/model/*.h"
9+
)
10+
11+
file(GLOB AWS_IVS_SOURCE
12+
"source/*.cpp"
13+
)
14+
15+
file(GLOB AWS_IVS_MODEL_SOURCE
16+
"source/model/*.cpp"
17+
)
18+
19+
file(GLOB IVS_UNIFIED_HEADERS
20+
${AWS_IVS_HEADERS}
21+
${AWS_IVS_MODEL_HEADERS}
22+
)
23+
24+
file(GLOB IVS_UNITY_SRC
25+
${AWS_IVS_SOURCE}
26+
${AWS_IVS_MODEL_SOURCE}
27+
)
28+
29+
if(ENABLE_UNITY_BUILD)
30+
enable_unity_build("IVS" IVS_UNITY_SRC)
31+
endif()
32+
33+
file(GLOB IVS_SRC
34+
${IVS_UNIFIED_HEADERS}
35+
${IVS_UNITY_SRC}
36+
)
37+
38+
if(WIN32)
39+
#if we are compiling for visual studio, create a sane directory tree.
40+
if(MSVC)
41+
source_group("Header Files\\aws\\ivs" FILES ${AWS_IVS_HEADERS})
42+
source_group("Header Files\\aws\\ivs\\model" FILES ${AWS_IVS_MODEL_HEADERS})
43+
source_group("Source Files" FILES ${AWS_IVS_SOURCE})
44+
source_group("Source Files\\model" FILES ${AWS_IVS_MODEL_SOURCE})
45+
endif(MSVC)
46+
endif()
47+
48+
set(IVS_INCLUDES
49+
"${CMAKE_CURRENT_SOURCE_DIR}/include/"
50+
)
51+
52+
add_library(${PROJECT_NAME} ${IVS_SRC})
53+
add_library(AWS::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
54+
55+
set_compiler_flags(${PROJECT_NAME})
56+
set_compiler_warnings(${PROJECT_NAME})
57+
58+
if(USE_WINDOWS_DLL_SEMANTICS AND BUILD_SHARED_LIBS)
59+
target_compile_definitions(${PROJECT_NAME} PRIVATE "AWS_IVS_EXPORTS")
60+
endif()
61+
62+
target_include_directories(${PROJECT_NAME} PUBLIC
63+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
64+
$<INSTALL_INTERFACE:include>)
65+
66+
target_link_libraries(${PROJECT_NAME} PRIVATE ${PLATFORM_DEP_LIBS} ${PROJECT_LIBS})
67+
68+
69+
setup_install()
70+
71+
install (FILES ${AWS_IVS_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/ivs)
72+
install (FILES ${AWS_IVS_MODEL_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/ivs/model)
73+
74+
do_packaging()
75+
76+

aws-cpp-sdk-ivs/include/aws/ivs/IVSClient.h

+808
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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/ivs/IVS_EXPORTS.h>
8+
#include <aws/core/Region.h>
9+
#include <aws/core/utils/memory/stl/AWSString.h>
10+
11+
namespace Aws
12+
{
13+
14+
namespace IVS
15+
{
16+
namespace IVSEndpoint
17+
{
18+
AWS_IVS_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
19+
} // namespace IVSEndpoint
20+
} // namespace IVS
21+
} // namespace Aws
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
8+
#include <aws/ivs/IVS_EXPORTS.h>
9+
#include <aws/core/client/AWSErrorMarshaller.h>
10+
11+
namespace Aws
12+
{
13+
namespace Client
14+
{
15+
16+
class AWS_IVS_API IVSErrorMarshaller : public Aws::Client::JsonErrorMarshaller
17+
{
18+
public:
19+
Aws::Client::AWSError<Aws::Client::CoreErrors> FindErrorByName(const char* exceptionName) const override;
20+
};
21+
22+
} // namespace Client
23+
} // namespace Aws
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
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+
8+
#include <aws/core/client/AWSError.h>
9+
#include <aws/core/client/CoreErrors.h>
10+
#include <aws/ivs/IVS_EXPORTS.h>
11+
12+
namespace Aws
13+
{
14+
namespace IVS
15+
{
16+
enum class IVSErrors
17+
{
18+
//From Core//
19+
//////////////////////////////////////////////////////////////////////////////////////////
20+
INCOMPLETE_SIGNATURE = 0,
21+
INTERNAL_FAILURE = 1,
22+
INVALID_ACTION = 2,
23+
INVALID_CLIENT_TOKEN_ID = 3,
24+
INVALID_PARAMETER_COMBINATION = 4,
25+
INVALID_QUERY_PARAMETER = 5,
26+
INVALID_PARAMETER_VALUE = 6,
27+
MISSING_ACTION = 7, // SDK should never allow
28+
MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow
29+
MISSING_PARAMETER = 9, // SDK should never allow
30+
OPT_IN_REQUIRED = 10,
31+
REQUEST_EXPIRED = 11,
32+
SERVICE_UNAVAILABLE = 12,
33+
THROTTLING = 13,
34+
VALIDATION = 14,
35+
ACCESS_DENIED = 15,
36+
RESOURCE_NOT_FOUND = 16,
37+
UNRECOGNIZED_CLIENT = 17,
38+
MALFORMED_QUERY_STRING = 18,
39+
SLOW_DOWN = 19,
40+
REQUEST_TIME_TOO_SKEWED = 20,
41+
INVALID_SIGNATURE = 21,
42+
SIGNATURE_DOES_NOT_MATCH = 22,
43+
INVALID_ACCESS_KEY_ID = 23,
44+
REQUEST_TIMEOUT = 24,
45+
NETWORK_CONNECTION = 99,
46+
47+
UNKNOWN = 100,
48+
///////////////////////////////////////////////////////////////////////////////////////////
49+
50+
CHANNEL_NOT_BROADCASTING= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
51+
CONFLICT,
52+
INTERNAL_SERVER,
53+
SERVICE_QUOTA_EXCEEDED,
54+
STREAM_UNAVAILABLE
55+
};
56+
57+
class AWS_IVS_API IVSError : public Aws::Client::AWSError<IVSErrors>
58+
{
59+
public:
60+
IVSError() {}
61+
IVSError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<IVSErrors>(rhs) {}
62+
IVSError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<IVSErrors>(rhs) {}
63+
IVSError(const Aws::Client::AWSError<IVSErrors>& rhs) : Aws::Client::AWSError<IVSErrors>(rhs) {}
64+
IVSError(Aws::Client::AWSError<IVSErrors>&& rhs) : Aws::Client::AWSError<IVSErrors>(rhs) {}
65+
66+
template <typename T>
67+
T GetModeledError();
68+
};
69+
70+
namespace IVSErrorMapper
71+
{
72+
AWS_IVS_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
73+
}
74+
75+
} // namespace IVS
76+
} // namespace Aws
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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/ivs/IVS_EXPORTS.h>
8+
#include <aws/core/AmazonSerializableWebServiceRequest.h>
9+
#include <aws/core/utils/UnreferencedParam.h>
10+
#include <aws/core/http/HttpRequest.h>
11+
12+
namespace Aws
13+
{
14+
namespace IVS
15+
{
16+
class AWS_IVS_API IVSRequest : public Aws::AmazonSerializableWebServiceRequest
17+
{
18+
public:
19+
virtual ~IVSRequest () {}
20+
21+
void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
22+
23+
inline Aws::Http::HeaderValueCollection GetHeaders() const override
24+
{
25+
auto headers = GetRequestSpecificHeaders();
26+
27+
if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
28+
{
29+
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 ));
30+
}
31+
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2020-07-14"));
32+
return headers;
33+
}
34+
35+
protected:
36+
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
37+
38+
};
39+
40+
41+
} // namespace IVS
42+
} // namespace Aws
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
8+
#ifdef _MSC_VER
9+
//disable windows complaining about max template size.
10+
#pragma warning (disable : 4503)
11+
#endif // _MSC_VER
12+
13+
#if defined (USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32)
14+
#ifdef _MSC_VER
15+
#pragma warning(disable : 4251)
16+
#endif // _MSC_VER
17+
18+
#ifdef USE_IMPORT_EXPORT
19+
#ifdef AWS_IVS_EXPORTS
20+
#define AWS_IVS_API __declspec(dllexport)
21+
#else
22+
#define AWS_IVS_API __declspec(dllimport)
23+
#endif /* AWS_IVS_EXPORTS */
24+
#else
25+
#define AWS_IVS_API
26+
#endif // USE_IMPORT_EXPORT
27+
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
28+
#define AWS_IVS_API
29+
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
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/ivs/IVS_EXPORTS.h>
8+
#include <aws/core/utils/memory/stl/AWSString.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 IVS
22+
{
23+
namespace Model
24+
{
25+
26+
class AWS_IVS_API AccessDeniedException
27+
{
28+
public:
29+
AccessDeniedException();
30+
AccessDeniedException(Aws::Utils::Json::JsonView jsonValue);
31+
AccessDeniedException& operator=(Aws::Utils::Json::JsonView jsonValue);
32+
Aws::Utils::Json::JsonValue Jsonize() const;
33+
34+
35+
/**
36+
* <p>User does not have sufficient access to perform this action.</p>
37+
*/
38+
inline const Aws::String& GetExceptionMessage() const{ return m_exceptionMessage; }
39+
40+
/**
41+
* <p>User does not have sufficient access to perform this action.</p>
42+
*/
43+
inline bool ExceptionMessageHasBeenSet() const { return m_exceptionMessageHasBeenSet; }
44+
45+
/**
46+
* <p>User does not have sufficient access to perform this action.</p>
47+
*/
48+
inline void SetExceptionMessage(const Aws::String& value) { m_exceptionMessageHasBeenSet = true; m_exceptionMessage = value; }
49+
50+
/**
51+
* <p>User does not have sufficient access to perform this action.</p>
52+
*/
53+
inline void SetExceptionMessage(Aws::String&& value) { m_exceptionMessageHasBeenSet = true; m_exceptionMessage = std::move(value); }
54+
55+
/**
56+
* <p>User does not have sufficient access to perform this action.</p>
57+
*/
58+
inline void SetExceptionMessage(const char* value) { m_exceptionMessageHasBeenSet = true; m_exceptionMessage.assign(value); }
59+
60+
/**
61+
* <p>User does not have sufficient access to perform this action.</p>
62+
*/
63+
inline AccessDeniedException& WithExceptionMessage(const Aws::String& value) { SetExceptionMessage(value); return *this;}
64+
65+
/**
66+
* <p>User does not have sufficient access to perform this action.</p>
67+
*/
68+
inline AccessDeniedException& WithExceptionMessage(Aws::String&& value) { SetExceptionMessage(std::move(value)); return *this;}
69+
70+
/**
71+
* <p>User does not have sufficient access to perform this action.</p>
72+
*/
73+
inline AccessDeniedException& WithExceptionMessage(const char* value) { SetExceptionMessage(value); return *this;}
74+
75+
private:
76+
77+
Aws::String m_exceptionMessage;
78+
bool m_exceptionMessageHasBeenSet;
79+
};
80+
81+
} // namespace Model
82+
} // namespace IVS
83+
} // namespace Aws

0 commit comments

Comments
 (0)