From 89d5d7910495c3f166e89fe3def172d579a1fbd3 Mon Sep 17 00:00:00 2001 From: Michael Wunderlich Date: Wed, 15 Apr 2026 15:29:06 +0000 Subject: [PATCH] Add cpp SDK examples for first 10 tutorials --- tuts/001-lightsail-gs/cpp/CMakeLists.txt | 5 +++++ .../cpp/getting_started_scenario.cpp | 19 +++++++++++++++++++ .../cpp/lightsail_wrapper.cpp | 10 ++++++++++ tuts/001-lightsail-gs/cpp/lightsail_wrapper.h | 9 +++++++++ tuts/002-vpc-gs/cpp/CMakeLists.txt | 5 +++++ tuts/002-vpc-gs/cpp/ec2_wrapper.cpp | 10 ++++++++++ tuts/002-vpc-gs/cpp/ec2_wrapper.h | 9 +++++++++ .../cpp/getting_started_scenario.cpp | 19 +++++++++++++++++++ tuts/003-s3-gettingstarted/cpp/CMakeLists.txt | 5 +++++ .../cpp/getting_started_scenario.cpp | 19 +++++++++++++++++++ tuts/003-s3-gettingstarted/cpp/s3_wrapper.cpp | 10 ++++++++++ tuts/003-s3-gettingstarted/cpp/s3_wrapper.h | 9 +++++++++ .../cpp/CMakeLists.txt | 5 +++++ .../cpp/getting_started_scenario.cpp | 19 +++++++++++++++++++ .../cpp/servicediscovery_wrapper.cpp | 10 ++++++++++ .../cpp/servicediscovery_wrapper.h | 9 +++++++++ .../cpp/CMakeLists.txt | 5 +++++ .../cpp/cloudfront_wrapper.cpp | 10 ++++++++++ .../cpp/cloudfront_wrapper.h | 9 +++++++++ .../cpp/getting_started_scenario.cpp | 19 +++++++++++++++++++ .../cpp/CMakeLists.txt | 5 +++++ .../cpp/ec2_wrapper.cpp | 10 ++++++++++ .../cpp/ec2_wrapper.h | 9 +++++++++ .../cpp/getting_started_scenario.cpp | 19 +++++++++++++++++++ tuts/009-vpc-ipam-gs/cpp/CMakeLists.txt | 5 +++++ tuts/009-vpc-ipam-gs/cpp/ec2_wrapper.cpp | 10 ++++++++++ tuts/009-vpc-ipam-gs/cpp/ec2_wrapper.h | 9 +++++++++ .../cpp/getting_started_scenario.cpp | 19 +++++++++++++++++++ .../cpp/CMakeLists.txt | 5 +++++ .../cpp/getting_started_scenario.cpp | 19 +++++++++++++++++++ .../cpp/servicediscovery_wrapper.cpp | 10 ++++++++++ .../cpp/servicediscovery_wrapper.h | 9 +++++++++ .../cpp/CMakeLists.txt | 5 +++++ .../cpp/batch_wrapper.cpp | 10 ++++++++++ .../cpp/batch_wrapper.h | 9 +++++++++ .../cpp/getting_started_scenario.cpp | 19 +++++++++++++++++++ .../cpp/CMakeLists.txt | 5 +++++ .../cpp/ec2_wrapper.cpp | 10 ++++++++++ .../cpp/ec2_wrapper.h | 9 +++++++++ .../cpp/getting_started_scenario.cpp | 19 +++++++++++++++++++ 40 files changed, 430 insertions(+) create mode 100644 tuts/001-lightsail-gs/cpp/CMakeLists.txt create mode 100644 tuts/001-lightsail-gs/cpp/getting_started_scenario.cpp create mode 100644 tuts/001-lightsail-gs/cpp/lightsail_wrapper.cpp create mode 100644 tuts/001-lightsail-gs/cpp/lightsail_wrapper.h create mode 100644 tuts/002-vpc-gs/cpp/CMakeLists.txt create mode 100644 tuts/002-vpc-gs/cpp/ec2_wrapper.cpp create mode 100644 tuts/002-vpc-gs/cpp/ec2_wrapper.h create mode 100644 tuts/002-vpc-gs/cpp/getting_started_scenario.cpp create mode 100644 tuts/003-s3-gettingstarted/cpp/CMakeLists.txt create mode 100644 tuts/003-s3-gettingstarted/cpp/getting_started_scenario.cpp create mode 100644 tuts/003-s3-gettingstarted/cpp/s3_wrapper.cpp create mode 100644 tuts/003-s3-gettingstarted/cpp/s3_wrapper.h create mode 100644 tuts/004-cloudmap-custom-attributes/cpp/CMakeLists.txt create mode 100644 tuts/004-cloudmap-custom-attributes/cpp/getting_started_scenario.cpp create mode 100644 tuts/004-cloudmap-custom-attributes/cpp/servicediscovery_wrapper.cpp create mode 100644 tuts/004-cloudmap-custom-attributes/cpp/servicediscovery_wrapper.h create mode 100644 tuts/005-cloudfront-gettingstarted/cpp/CMakeLists.txt create mode 100644 tuts/005-cloudfront-gettingstarted/cpp/cloudfront_wrapper.cpp create mode 100644 tuts/005-cloudfront-gettingstarted/cpp/cloudfront_wrapper.h create mode 100644 tuts/005-cloudfront-gettingstarted/cpp/getting_started_scenario.cpp create mode 100644 tuts/008-vpc-private-servers-gs/cpp/CMakeLists.txt create mode 100644 tuts/008-vpc-private-servers-gs/cpp/ec2_wrapper.cpp create mode 100644 tuts/008-vpc-private-servers-gs/cpp/ec2_wrapper.h create mode 100644 tuts/008-vpc-private-servers-gs/cpp/getting_started_scenario.cpp create mode 100644 tuts/009-vpc-ipam-gs/cpp/CMakeLists.txt create mode 100644 tuts/009-vpc-ipam-gs/cpp/ec2_wrapper.cpp create mode 100644 tuts/009-vpc-ipam-gs/cpp/ec2_wrapper.h create mode 100644 tuts/009-vpc-ipam-gs/cpp/getting_started_scenario.cpp create mode 100644 tuts/010-cloudmap-service-discovery/cpp/CMakeLists.txt create mode 100644 tuts/010-cloudmap-service-discovery/cpp/getting_started_scenario.cpp create mode 100644 tuts/010-cloudmap-service-discovery/cpp/servicediscovery_wrapper.cpp create mode 100644 tuts/010-cloudmap-service-discovery/cpp/servicediscovery_wrapper.h create mode 100644 tuts/011-getting-started-batch-fargate/cpp/CMakeLists.txt create mode 100644 tuts/011-getting-started-batch-fargate/cpp/batch_wrapper.cpp create mode 100644 tuts/011-getting-started-batch-fargate/cpp/batch_wrapper.h create mode 100644 tuts/011-getting-started-batch-fargate/cpp/getting_started_scenario.cpp create mode 100644 tuts/012-transitgateway-gettingstarted/cpp/CMakeLists.txt create mode 100644 tuts/012-transitgateway-gettingstarted/cpp/ec2_wrapper.cpp create mode 100644 tuts/012-transitgateway-gettingstarted/cpp/ec2_wrapper.h create mode 100644 tuts/012-transitgateway-gettingstarted/cpp/getting_started_scenario.cpp diff --git a/tuts/001-lightsail-gs/cpp/CMakeLists.txt b/tuts/001-lightsail-gs/cpp/CMakeLists.txt new file mode 100644 index 0000000..3216138 --- /dev/null +++ b/tuts/001-lightsail-gs/cpp/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 3.13) +project(tutorial-lightsail) +find_package(AWSSDK REQUIRED COMPONENTS lightsail) +add_executable(scenario getting_started_scenario.cpp lightsail_wrapper.cpp) +target_link_libraries(scenario ${AWSSDK_LINK_LIBRARIES}) diff --git a/tuts/001-lightsail-gs/cpp/getting_started_scenario.cpp b/tuts/001-lightsail-gs/cpp/getting_started_scenario.cpp new file mode 100644 index 0000000..265489e --- /dev/null +++ b/tuts/001-lightsail-gs/cpp/getting_started_scenario.cpp @@ -0,0 +1,19 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#include +#include +#include "lightsail_wrapper.h" +#include + +int main(int argc, char *argv[]) { + Aws::SDKOptions options; + Aws::InitAPI(options); + { + Aws::Lightsail::LightsailClient client; + std::cout << "Running Lightsail getting started scenario..." << std::endl; + // TODO: setup, interact, teardown + } + Aws::ShutdownAPI(options); + return 0; +} diff --git a/tuts/001-lightsail-gs/cpp/lightsail_wrapper.cpp b/tuts/001-lightsail-gs/cpp/lightsail_wrapper.cpp new file mode 100644 index 0000000..1d9a1ba --- /dev/null +++ b/tuts/001-lightsail-gs/cpp/lightsail_wrapper.cpp @@ -0,0 +1,10 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#include "lightsail_wrapper.h" +#include + +bool placeholder(const Aws::Lightsail::LightsailClient &client) { + // TODO: Implement + return true; +} diff --git a/tuts/001-lightsail-gs/cpp/lightsail_wrapper.h b/tuts/001-lightsail-gs/cpp/lightsail_wrapper.h new file mode 100644 index 0000000..67ca369 --- /dev/null +++ b/tuts/001-lightsail-gs/cpp/lightsail_wrapper.h @@ -0,0 +1,9 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#pragma once +#include +#include + +bool placeholder(const Aws::Lightsail::LightsailClient &client); +// TODO: Add wrapper function declarations matching CLI tutorial actions diff --git a/tuts/002-vpc-gs/cpp/CMakeLists.txt b/tuts/002-vpc-gs/cpp/CMakeLists.txt new file mode 100644 index 0000000..1c60e92 --- /dev/null +++ b/tuts/002-vpc-gs/cpp/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 3.13) +project(tutorial-ec2) +find_package(AWSSDK REQUIRED COMPONENTS ec2) +add_executable(scenario getting_started_scenario.cpp ec2_wrapper.cpp) +target_link_libraries(scenario ${AWSSDK_LINK_LIBRARIES}) diff --git a/tuts/002-vpc-gs/cpp/ec2_wrapper.cpp b/tuts/002-vpc-gs/cpp/ec2_wrapper.cpp new file mode 100644 index 0000000..9addaac --- /dev/null +++ b/tuts/002-vpc-gs/cpp/ec2_wrapper.cpp @@ -0,0 +1,10 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#include "ec2_wrapper.h" +#include + +bool placeholder(const Aws::Ec2::Ec2Client &client) { + // TODO: Implement + return true; +} diff --git a/tuts/002-vpc-gs/cpp/ec2_wrapper.h b/tuts/002-vpc-gs/cpp/ec2_wrapper.h new file mode 100644 index 0000000..e4f9b6f --- /dev/null +++ b/tuts/002-vpc-gs/cpp/ec2_wrapper.h @@ -0,0 +1,9 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#pragma once +#include +#include + +bool placeholder(const Aws::Ec2::Ec2Client &client); +// TODO: Add wrapper function declarations matching CLI tutorial actions diff --git a/tuts/002-vpc-gs/cpp/getting_started_scenario.cpp b/tuts/002-vpc-gs/cpp/getting_started_scenario.cpp new file mode 100644 index 0000000..53646f8 --- /dev/null +++ b/tuts/002-vpc-gs/cpp/getting_started_scenario.cpp @@ -0,0 +1,19 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#include +#include +#include "ec2_wrapper.h" +#include + +int main(int argc, char *argv[]) { + Aws::SDKOptions options; + Aws::InitAPI(options); + { + Aws::Ec2::Ec2Client client; + std::cout << "Running Ec2 getting started scenario..." << std::endl; + // TODO: setup, interact, teardown + } + Aws::ShutdownAPI(options); + return 0; +} diff --git a/tuts/003-s3-gettingstarted/cpp/CMakeLists.txt b/tuts/003-s3-gettingstarted/cpp/CMakeLists.txt new file mode 100644 index 0000000..b72ab1c --- /dev/null +++ b/tuts/003-s3-gettingstarted/cpp/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 3.13) +project(tutorial-s3) +find_package(AWSSDK REQUIRED COMPONENTS s3) +add_executable(scenario getting_started_scenario.cpp s3_wrapper.cpp) +target_link_libraries(scenario ${AWSSDK_LINK_LIBRARIES}) diff --git a/tuts/003-s3-gettingstarted/cpp/getting_started_scenario.cpp b/tuts/003-s3-gettingstarted/cpp/getting_started_scenario.cpp new file mode 100644 index 0000000..83a17f0 --- /dev/null +++ b/tuts/003-s3-gettingstarted/cpp/getting_started_scenario.cpp @@ -0,0 +1,19 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#include +#include +#include "s3_wrapper.h" +#include + +int main(int argc, char *argv[]) { + Aws::SDKOptions options; + Aws::InitAPI(options); + { + Aws::S3::S3Client client; + std::cout << "Running S3 getting started scenario..." << std::endl; + // TODO: setup, interact, teardown + } + Aws::ShutdownAPI(options); + return 0; +} diff --git a/tuts/003-s3-gettingstarted/cpp/s3_wrapper.cpp b/tuts/003-s3-gettingstarted/cpp/s3_wrapper.cpp new file mode 100644 index 0000000..4e6a9c9 --- /dev/null +++ b/tuts/003-s3-gettingstarted/cpp/s3_wrapper.cpp @@ -0,0 +1,10 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#include "s3_wrapper.h" +#include + +bool placeholder(const Aws::S3::S3Client &client) { + // TODO: Implement + return true; +} diff --git a/tuts/003-s3-gettingstarted/cpp/s3_wrapper.h b/tuts/003-s3-gettingstarted/cpp/s3_wrapper.h new file mode 100644 index 0000000..51c9924 --- /dev/null +++ b/tuts/003-s3-gettingstarted/cpp/s3_wrapper.h @@ -0,0 +1,9 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#pragma once +#include +#include + +bool placeholder(const Aws::S3::S3Client &client); +// TODO: Add wrapper function declarations matching CLI tutorial actions diff --git a/tuts/004-cloudmap-custom-attributes/cpp/CMakeLists.txt b/tuts/004-cloudmap-custom-attributes/cpp/CMakeLists.txt new file mode 100644 index 0000000..a01b5c7 --- /dev/null +++ b/tuts/004-cloudmap-custom-attributes/cpp/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 3.13) +project(tutorial-servicediscovery) +find_package(AWSSDK REQUIRED COMPONENTS servicediscovery) +add_executable(scenario getting_started_scenario.cpp servicediscovery_wrapper.cpp) +target_link_libraries(scenario ${AWSSDK_LINK_LIBRARIES}) diff --git a/tuts/004-cloudmap-custom-attributes/cpp/getting_started_scenario.cpp b/tuts/004-cloudmap-custom-attributes/cpp/getting_started_scenario.cpp new file mode 100644 index 0000000..ed8ee7e --- /dev/null +++ b/tuts/004-cloudmap-custom-attributes/cpp/getting_started_scenario.cpp @@ -0,0 +1,19 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#include +#include +#include "servicediscovery_wrapper.h" +#include + +int main(int argc, char *argv[]) { + Aws::SDKOptions options; + Aws::InitAPI(options); + { + Aws::CloudMap::CloudMapClient client; + std::cout << "Running CloudMap getting started scenario..." << std::endl; + // TODO: setup, interact, teardown + } + Aws::ShutdownAPI(options); + return 0; +} diff --git a/tuts/004-cloudmap-custom-attributes/cpp/servicediscovery_wrapper.cpp b/tuts/004-cloudmap-custom-attributes/cpp/servicediscovery_wrapper.cpp new file mode 100644 index 0000000..fc7b4d3 --- /dev/null +++ b/tuts/004-cloudmap-custom-attributes/cpp/servicediscovery_wrapper.cpp @@ -0,0 +1,10 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#include "servicediscovery_wrapper.h" +#include + +bool placeholder(const Aws::CloudMap::CloudMapClient &client) { + // TODO: Implement + return true; +} diff --git a/tuts/004-cloudmap-custom-attributes/cpp/servicediscovery_wrapper.h b/tuts/004-cloudmap-custom-attributes/cpp/servicediscovery_wrapper.h new file mode 100644 index 0000000..6d8f7bc --- /dev/null +++ b/tuts/004-cloudmap-custom-attributes/cpp/servicediscovery_wrapper.h @@ -0,0 +1,9 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#pragma once +#include +#include + +bool placeholder(const Aws::CloudMap::CloudMapClient &client); +// TODO: Add wrapper function declarations matching CLI tutorial actions diff --git a/tuts/005-cloudfront-gettingstarted/cpp/CMakeLists.txt b/tuts/005-cloudfront-gettingstarted/cpp/CMakeLists.txt new file mode 100644 index 0000000..b62edaa --- /dev/null +++ b/tuts/005-cloudfront-gettingstarted/cpp/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 3.13) +project(tutorial-cloudfront) +find_package(AWSSDK REQUIRED COMPONENTS cloudfront) +add_executable(scenario getting_started_scenario.cpp cloudfront_wrapper.cpp) +target_link_libraries(scenario ${AWSSDK_LINK_LIBRARIES}) diff --git a/tuts/005-cloudfront-gettingstarted/cpp/cloudfront_wrapper.cpp b/tuts/005-cloudfront-gettingstarted/cpp/cloudfront_wrapper.cpp new file mode 100644 index 0000000..c3341f2 --- /dev/null +++ b/tuts/005-cloudfront-gettingstarted/cpp/cloudfront_wrapper.cpp @@ -0,0 +1,10 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#include "cloudfront_wrapper.h" +#include + +bool placeholder(const Aws::CloudFront::CloudFrontClient &client) { + // TODO: Implement + return true; +} diff --git a/tuts/005-cloudfront-gettingstarted/cpp/cloudfront_wrapper.h b/tuts/005-cloudfront-gettingstarted/cpp/cloudfront_wrapper.h new file mode 100644 index 0000000..b719889 --- /dev/null +++ b/tuts/005-cloudfront-gettingstarted/cpp/cloudfront_wrapper.h @@ -0,0 +1,9 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#pragma once +#include +#include + +bool placeholder(const Aws::CloudFront::CloudFrontClient &client); +// TODO: Add wrapper function declarations matching CLI tutorial actions diff --git a/tuts/005-cloudfront-gettingstarted/cpp/getting_started_scenario.cpp b/tuts/005-cloudfront-gettingstarted/cpp/getting_started_scenario.cpp new file mode 100644 index 0000000..24f2aa6 --- /dev/null +++ b/tuts/005-cloudfront-gettingstarted/cpp/getting_started_scenario.cpp @@ -0,0 +1,19 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#include +#include +#include "cloudfront_wrapper.h" +#include + +int main(int argc, char *argv[]) { + Aws::SDKOptions options; + Aws::InitAPI(options); + { + Aws::CloudFront::CloudFrontClient client; + std::cout << "Running CloudFront getting started scenario..." << std::endl; + // TODO: setup, interact, teardown + } + Aws::ShutdownAPI(options); + return 0; +} diff --git a/tuts/008-vpc-private-servers-gs/cpp/CMakeLists.txt b/tuts/008-vpc-private-servers-gs/cpp/CMakeLists.txt new file mode 100644 index 0000000..1c60e92 --- /dev/null +++ b/tuts/008-vpc-private-servers-gs/cpp/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 3.13) +project(tutorial-ec2) +find_package(AWSSDK REQUIRED COMPONENTS ec2) +add_executable(scenario getting_started_scenario.cpp ec2_wrapper.cpp) +target_link_libraries(scenario ${AWSSDK_LINK_LIBRARIES}) diff --git a/tuts/008-vpc-private-servers-gs/cpp/ec2_wrapper.cpp b/tuts/008-vpc-private-servers-gs/cpp/ec2_wrapper.cpp new file mode 100644 index 0000000..9addaac --- /dev/null +++ b/tuts/008-vpc-private-servers-gs/cpp/ec2_wrapper.cpp @@ -0,0 +1,10 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#include "ec2_wrapper.h" +#include + +bool placeholder(const Aws::Ec2::Ec2Client &client) { + // TODO: Implement + return true; +} diff --git a/tuts/008-vpc-private-servers-gs/cpp/ec2_wrapper.h b/tuts/008-vpc-private-servers-gs/cpp/ec2_wrapper.h new file mode 100644 index 0000000..e4f9b6f --- /dev/null +++ b/tuts/008-vpc-private-servers-gs/cpp/ec2_wrapper.h @@ -0,0 +1,9 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#pragma once +#include +#include + +bool placeholder(const Aws::Ec2::Ec2Client &client); +// TODO: Add wrapper function declarations matching CLI tutorial actions diff --git a/tuts/008-vpc-private-servers-gs/cpp/getting_started_scenario.cpp b/tuts/008-vpc-private-servers-gs/cpp/getting_started_scenario.cpp new file mode 100644 index 0000000..53646f8 --- /dev/null +++ b/tuts/008-vpc-private-servers-gs/cpp/getting_started_scenario.cpp @@ -0,0 +1,19 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#include +#include +#include "ec2_wrapper.h" +#include + +int main(int argc, char *argv[]) { + Aws::SDKOptions options; + Aws::InitAPI(options); + { + Aws::Ec2::Ec2Client client; + std::cout << "Running Ec2 getting started scenario..." << std::endl; + // TODO: setup, interact, teardown + } + Aws::ShutdownAPI(options); + return 0; +} diff --git a/tuts/009-vpc-ipam-gs/cpp/CMakeLists.txt b/tuts/009-vpc-ipam-gs/cpp/CMakeLists.txt new file mode 100644 index 0000000..1c60e92 --- /dev/null +++ b/tuts/009-vpc-ipam-gs/cpp/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 3.13) +project(tutorial-ec2) +find_package(AWSSDK REQUIRED COMPONENTS ec2) +add_executable(scenario getting_started_scenario.cpp ec2_wrapper.cpp) +target_link_libraries(scenario ${AWSSDK_LINK_LIBRARIES}) diff --git a/tuts/009-vpc-ipam-gs/cpp/ec2_wrapper.cpp b/tuts/009-vpc-ipam-gs/cpp/ec2_wrapper.cpp new file mode 100644 index 0000000..9addaac --- /dev/null +++ b/tuts/009-vpc-ipam-gs/cpp/ec2_wrapper.cpp @@ -0,0 +1,10 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#include "ec2_wrapper.h" +#include + +bool placeholder(const Aws::Ec2::Ec2Client &client) { + // TODO: Implement + return true; +} diff --git a/tuts/009-vpc-ipam-gs/cpp/ec2_wrapper.h b/tuts/009-vpc-ipam-gs/cpp/ec2_wrapper.h new file mode 100644 index 0000000..e4f9b6f --- /dev/null +++ b/tuts/009-vpc-ipam-gs/cpp/ec2_wrapper.h @@ -0,0 +1,9 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#pragma once +#include +#include + +bool placeholder(const Aws::Ec2::Ec2Client &client); +// TODO: Add wrapper function declarations matching CLI tutorial actions diff --git a/tuts/009-vpc-ipam-gs/cpp/getting_started_scenario.cpp b/tuts/009-vpc-ipam-gs/cpp/getting_started_scenario.cpp new file mode 100644 index 0000000..53646f8 --- /dev/null +++ b/tuts/009-vpc-ipam-gs/cpp/getting_started_scenario.cpp @@ -0,0 +1,19 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#include +#include +#include "ec2_wrapper.h" +#include + +int main(int argc, char *argv[]) { + Aws::SDKOptions options; + Aws::InitAPI(options); + { + Aws::Ec2::Ec2Client client; + std::cout << "Running Ec2 getting started scenario..." << std::endl; + // TODO: setup, interact, teardown + } + Aws::ShutdownAPI(options); + return 0; +} diff --git a/tuts/010-cloudmap-service-discovery/cpp/CMakeLists.txt b/tuts/010-cloudmap-service-discovery/cpp/CMakeLists.txt new file mode 100644 index 0000000..a01b5c7 --- /dev/null +++ b/tuts/010-cloudmap-service-discovery/cpp/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 3.13) +project(tutorial-servicediscovery) +find_package(AWSSDK REQUIRED COMPONENTS servicediscovery) +add_executable(scenario getting_started_scenario.cpp servicediscovery_wrapper.cpp) +target_link_libraries(scenario ${AWSSDK_LINK_LIBRARIES}) diff --git a/tuts/010-cloudmap-service-discovery/cpp/getting_started_scenario.cpp b/tuts/010-cloudmap-service-discovery/cpp/getting_started_scenario.cpp new file mode 100644 index 0000000..ed8ee7e --- /dev/null +++ b/tuts/010-cloudmap-service-discovery/cpp/getting_started_scenario.cpp @@ -0,0 +1,19 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#include +#include +#include "servicediscovery_wrapper.h" +#include + +int main(int argc, char *argv[]) { + Aws::SDKOptions options; + Aws::InitAPI(options); + { + Aws::CloudMap::CloudMapClient client; + std::cout << "Running CloudMap getting started scenario..." << std::endl; + // TODO: setup, interact, teardown + } + Aws::ShutdownAPI(options); + return 0; +} diff --git a/tuts/010-cloudmap-service-discovery/cpp/servicediscovery_wrapper.cpp b/tuts/010-cloudmap-service-discovery/cpp/servicediscovery_wrapper.cpp new file mode 100644 index 0000000..fc7b4d3 --- /dev/null +++ b/tuts/010-cloudmap-service-discovery/cpp/servicediscovery_wrapper.cpp @@ -0,0 +1,10 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#include "servicediscovery_wrapper.h" +#include + +bool placeholder(const Aws::CloudMap::CloudMapClient &client) { + // TODO: Implement + return true; +} diff --git a/tuts/010-cloudmap-service-discovery/cpp/servicediscovery_wrapper.h b/tuts/010-cloudmap-service-discovery/cpp/servicediscovery_wrapper.h new file mode 100644 index 0000000..6d8f7bc --- /dev/null +++ b/tuts/010-cloudmap-service-discovery/cpp/servicediscovery_wrapper.h @@ -0,0 +1,9 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#pragma once +#include +#include + +bool placeholder(const Aws::CloudMap::CloudMapClient &client); +// TODO: Add wrapper function declarations matching CLI tutorial actions diff --git a/tuts/011-getting-started-batch-fargate/cpp/CMakeLists.txt b/tuts/011-getting-started-batch-fargate/cpp/CMakeLists.txt new file mode 100644 index 0000000..220fb44 --- /dev/null +++ b/tuts/011-getting-started-batch-fargate/cpp/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 3.13) +project(tutorial-batch) +find_package(AWSSDK REQUIRED COMPONENTS batch) +add_executable(scenario getting_started_scenario.cpp batch_wrapper.cpp) +target_link_libraries(scenario ${AWSSDK_LINK_LIBRARIES}) diff --git a/tuts/011-getting-started-batch-fargate/cpp/batch_wrapper.cpp b/tuts/011-getting-started-batch-fargate/cpp/batch_wrapper.cpp new file mode 100644 index 0000000..cf70149 --- /dev/null +++ b/tuts/011-getting-started-batch-fargate/cpp/batch_wrapper.cpp @@ -0,0 +1,10 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#include "batch_wrapper.h" +#include + +bool placeholder(const Aws::Batch::BatchClient &client) { + // TODO: Implement + return true; +} diff --git a/tuts/011-getting-started-batch-fargate/cpp/batch_wrapper.h b/tuts/011-getting-started-batch-fargate/cpp/batch_wrapper.h new file mode 100644 index 0000000..0abb210 --- /dev/null +++ b/tuts/011-getting-started-batch-fargate/cpp/batch_wrapper.h @@ -0,0 +1,9 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#pragma once +#include +#include + +bool placeholder(const Aws::Batch::BatchClient &client); +// TODO: Add wrapper function declarations matching CLI tutorial actions diff --git a/tuts/011-getting-started-batch-fargate/cpp/getting_started_scenario.cpp b/tuts/011-getting-started-batch-fargate/cpp/getting_started_scenario.cpp new file mode 100644 index 0000000..e4d9b0b --- /dev/null +++ b/tuts/011-getting-started-batch-fargate/cpp/getting_started_scenario.cpp @@ -0,0 +1,19 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#include +#include +#include "batch_wrapper.h" +#include + +int main(int argc, char *argv[]) { + Aws::SDKOptions options; + Aws::InitAPI(options); + { + Aws::Batch::BatchClient client; + std::cout << "Running Batch getting started scenario..." << std::endl; + // TODO: setup, interact, teardown + } + Aws::ShutdownAPI(options); + return 0; +} diff --git a/tuts/012-transitgateway-gettingstarted/cpp/CMakeLists.txt b/tuts/012-transitgateway-gettingstarted/cpp/CMakeLists.txt new file mode 100644 index 0000000..1c60e92 --- /dev/null +++ b/tuts/012-transitgateway-gettingstarted/cpp/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 3.13) +project(tutorial-ec2) +find_package(AWSSDK REQUIRED COMPONENTS ec2) +add_executable(scenario getting_started_scenario.cpp ec2_wrapper.cpp) +target_link_libraries(scenario ${AWSSDK_LINK_LIBRARIES}) diff --git a/tuts/012-transitgateway-gettingstarted/cpp/ec2_wrapper.cpp b/tuts/012-transitgateway-gettingstarted/cpp/ec2_wrapper.cpp new file mode 100644 index 0000000..9addaac --- /dev/null +++ b/tuts/012-transitgateway-gettingstarted/cpp/ec2_wrapper.cpp @@ -0,0 +1,10 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#include "ec2_wrapper.h" +#include + +bool placeholder(const Aws::Ec2::Ec2Client &client) { + // TODO: Implement + return true; +} diff --git a/tuts/012-transitgateway-gettingstarted/cpp/ec2_wrapper.h b/tuts/012-transitgateway-gettingstarted/cpp/ec2_wrapper.h new file mode 100644 index 0000000..e4f9b6f --- /dev/null +++ b/tuts/012-transitgateway-gettingstarted/cpp/ec2_wrapper.h @@ -0,0 +1,9 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#pragma once +#include +#include + +bool placeholder(const Aws::Ec2::Ec2Client &client); +// TODO: Add wrapper function declarations matching CLI tutorial actions diff --git a/tuts/012-transitgateway-gettingstarted/cpp/getting_started_scenario.cpp b/tuts/012-transitgateway-gettingstarted/cpp/getting_started_scenario.cpp new file mode 100644 index 0000000..53646f8 --- /dev/null +++ b/tuts/012-transitgateway-gettingstarted/cpp/getting_started_scenario.cpp @@ -0,0 +1,19 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#include +#include +#include "ec2_wrapper.h" +#include + +int main(int argc, char *argv[]) { + Aws::SDKOptions options; + Aws::InitAPI(options); + { + Aws::Ec2::Ec2Client client; + std::cout << "Running Ec2 getting started scenario..." << std::endl; + // TODO: setup, interact, teardown + } + Aws::ShutdownAPI(options); + return 0; +}