Skip to content

Commit c051e36

Browse files
Add support for p6-b200 instance type for SageMaker Hyperpod
Add IncludeInstances parameter to DescribeAutoScalingGroups API Added CloudWatch Logs Transformer support for converting CloudTrail, VPC Flow, EKS Audit, AWS WAF and Route53 Resolver logs to OCSF v1.1 format. This is the initial SDK release for Amazon AI Operations (AIOps). AIOps is a generative AI-powered assistant that helps you respond to incidents in your system by scanning your system's telemetry and quickly surface suggestions that might be related to your issue. Added support for renaming objects within the same bucket using the new RenameObject API.
1 parent effe842 commit c051e36

File tree

141 files changed

+10637
-1029
lines changed

Some content is hidden

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

141 files changed

+10637
-1029
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.11.590
1+
1.11.591
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
add_project(aws-cpp-sdk-aiops "C++ SDK for the AWS aiops service" aws-cpp-sdk-core)
2+
3+
file(GLOB AWS_AIOPS_HEADERS
4+
"include/aws/aiops/*.h"
5+
)
6+
7+
file(GLOB AWS_AIOPS_MODEL_HEADERS
8+
"include/aws/aiops/model/*.h"
9+
)
10+
11+
file(GLOB AWS_AIOPS_SOURCE
12+
"source/*.cpp"
13+
)
14+
15+
file(GLOB AWS_AIOPS_MODEL_SOURCE
16+
"source/model/*.cpp"
17+
)
18+
19+
file(GLOB AIOPS_UNIFIED_HEADERS
20+
${AWS_AIOPS_HEADERS}
21+
${AWS_AIOPS_MODEL_HEADERS}
22+
)
23+
24+
file(GLOB AIOPS_UNITY_SRC
25+
${AWS_AIOPS_SOURCE}
26+
${AWS_AIOPS_MODEL_SOURCE}
27+
)
28+
29+
if(ENABLE_UNITY_BUILD)
30+
enable_unity_build("AIOPS" AIOPS_UNITY_SRC)
31+
endif()
32+
33+
file(GLOB AIOPS_SRC
34+
${AIOPS_UNIFIED_HEADERS}
35+
${AIOPS_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\\aiops" FILES ${AWS_AIOPS_HEADERS})
42+
source_group("Header Files\\aws\\aiops\\model" FILES ${AWS_AIOPS_MODEL_HEADERS})
43+
source_group("Source Files" FILES ${AWS_AIOPS_SOURCE})
44+
source_group("Source Files\\model" FILES ${AWS_AIOPS_MODEL_SOURCE})
45+
endif(MSVC)
46+
endif()
47+
48+
set(AIOPS_INCLUDES
49+
"${CMAKE_CURRENT_SOURCE_DIR}/include/"
50+
)
51+
52+
add_library(${PROJECT_NAME} ${AIOPS_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_AIOPS_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_AIOPS_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/aiops)
72+
install (FILES ${AWS_AIOPS_MODEL_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/aiops/model)
73+
74+
do_packaging()
75+
76+

generated/src/aws-cpp-sdk-aiops/include/aws/aiops/AIOpsClient.h

Lines changed: 423 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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/aiops/AIOps_EXPORTS.h>
8+
#include <aws/core/client/GenericClientConfiguration.h>
9+
#include <aws/core/endpoint/DefaultEndpointProvider.h>
10+
#include <aws/core/endpoint/EndpointParameter.h>
11+
#include <aws/core/utils/memory/stl/AWSString.h>
12+
#include <aws/core/utils/memory/stl/AWSVector.h>
13+
14+
#include <aws/aiops/AIOpsEndpointRules.h>
15+
16+
17+
namespace Aws
18+
{
19+
namespace AIOps
20+
{
21+
namespace Endpoint
22+
{
23+
using EndpointParameters = Aws::Endpoint::EndpointParameters;
24+
using Aws::Endpoint::EndpointProviderBase;
25+
using Aws::Endpoint::DefaultEndpointProvider;
26+
27+
using AIOpsClientContextParameters = Aws::Endpoint::ClientContextParameters;
28+
29+
using AIOpsClientConfiguration = Aws::Client::GenericClientConfiguration;
30+
using AIOpsBuiltInParameters = Aws::Endpoint::BuiltInParameters;
31+
32+
/**
33+
* The type for the AIOps Client Endpoint Provider.
34+
* Inherit from this Base class / "Interface" should you want to provide a custom endpoint provider.
35+
* The SDK must use service-specific type for each service per specification.
36+
*/
37+
using AIOpsEndpointProviderBase =
38+
EndpointProviderBase<AIOpsClientConfiguration, AIOpsBuiltInParameters, AIOpsClientContextParameters>;
39+
40+
using AIOpsDefaultEpProviderBase =
41+
DefaultEndpointProvider<AIOpsClientConfiguration, AIOpsBuiltInParameters, AIOpsClientContextParameters>;
42+
43+
/**
44+
* Default endpoint provider used for this service
45+
*/
46+
class AWS_AIOPS_API AIOpsEndpointProvider : public AIOpsDefaultEpProviderBase
47+
{
48+
public:
49+
using AIOpsResolveEndpointOutcome = Aws::Endpoint::ResolveEndpointOutcome;
50+
51+
AIOpsEndpointProvider()
52+
: AIOpsDefaultEpProviderBase(Aws::AIOps::AIOpsEndpointRules::GetRulesBlob(), Aws::AIOps::AIOpsEndpointRules::RulesBlobSize)
53+
{}
54+
55+
~AIOpsEndpointProvider()
56+
{
57+
}
58+
};
59+
} // namespace Endpoint
60+
} // namespace AIOps
61+
} // namespace Aws
Lines changed: 23 additions & 0 deletions
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+
#include <cstddef>
8+
#include <aws/aiops/AIOps_EXPORTS.h>
9+
10+
namespace Aws
11+
{
12+
namespace AIOps
13+
{
14+
class AIOpsEndpointRules
15+
{
16+
public:
17+
static const size_t RulesBlobStrLen;
18+
static const size_t RulesBlobSize;
19+
20+
static const char* GetRulesBlob();
21+
};
22+
} // namespace AIOps
23+
} // namespace Aws
Lines changed: 23 additions & 0 deletions
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/aiops/AIOps_EXPORTS.h>
9+
#include <aws/core/client/AWSErrorMarshaller.h>
10+
11+
namespace Aws
12+
{
13+
namespace Client
14+
{
15+
16+
class AWS_AIOPS_API AIOpsErrorMarshaller : 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
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
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/aiops/AIOps_EXPORTS.h>
11+
12+
namespace Aws
13+
{
14+
namespace AIOps
15+
{
16+
enum class AIOpsErrors
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+
CONFLICT= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
51+
FORBIDDEN,
52+
INTERNAL_SERVER,
53+
SERVICE_QUOTA_EXCEEDED
54+
};
55+
56+
class AWS_AIOPS_API AIOpsError : public Aws::Client::AWSError<AIOpsErrors>
57+
{
58+
public:
59+
AIOpsError() {}
60+
AIOpsError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<AIOpsErrors>(rhs) {}
61+
AIOpsError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<AIOpsErrors>(rhs) {}
62+
AIOpsError(const Aws::Client::AWSError<AIOpsErrors>& rhs) : Aws::Client::AWSError<AIOpsErrors>(rhs) {}
63+
AIOpsError(Aws::Client::AWSError<AIOpsErrors>&& rhs) : Aws::Client::AWSError<AIOpsErrors>(rhs) {}
64+
65+
template <typename T>
66+
T GetModeledError();
67+
};
68+
69+
namespace AIOpsErrorMapper
70+
{
71+
AWS_AIOPS_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
72+
}
73+
74+
} // namespace AIOps
75+
} // namespace Aws
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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/aiops/AIOps_EXPORTS.h>
8+
#include <aws/core/endpoint/AWSEndpoint.h>
9+
#include <aws/core/AmazonSerializableWebServiceRequest.h>
10+
#include <aws/core/utils/UnreferencedParam.h>
11+
#include <aws/core/http/HttpRequest.h>
12+
13+
namespace Aws
14+
{
15+
namespace AIOps
16+
{
17+
class AWS_AIOPS_API AIOpsRequest : public Aws::AmazonSerializableWebServiceRequest
18+
{
19+
public:
20+
using EndpointParameter = Aws::Endpoint::EndpointParameter;
21+
using EndpointParameters = Aws::Endpoint::EndpointParameters;
22+
23+
virtual ~AIOpsRequest () {}
24+
25+
void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
26+
27+
inline Aws::Http::HeaderValueCollection GetHeaders() const override
28+
{
29+
auto headers = GetRequestSpecificHeaders();
30+
31+
if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
32+
{
33+
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::JSON_CONTENT_TYPE ));
34+
}
35+
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2018-05-10"));
36+
return headers;
37+
}
38+
39+
protected:
40+
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
41+
42+
};
43+
44+
45+
} // namespace AIOps
46+
} // namespace Aws

0 commit comments

Comments
 (0)