Skip to content

Commit

Permalink
Merge branch 'dotnet-topics-queues-metadata-updates' of github.com:rl…
Browse files Browse the repository at this point in the history
…hagerm/aws-doc-sdk-examples into dotnet-topics-queues-metadata-updates
  • Loading branch information
rlhagerm committed Aug 18, 2023
2 parents 08b2881 + a9b8175 commit adf9cca
Show file tree
Hide file tree
Showing 101 changed files with 174 additions and 141 deletions.
4 changes: 2 additions & 2 deletions .doc_gen/metadata/glacier_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,8 @@ glacier_DownloadArchive:
github: dotnetv3/Glacier
sdkguide:
excerpts:
- description:
- description: This example uses the ArchiveTransferManager class. For API details see <ulink type="documentation" url="sdkfornet/v3/apidocs/items/Glacier/TArchiveTransferManager">ArchiveTransferManager</ulink>.
snippet_tags:
- Glacier.dotnetv3.GlacierActions.ArchiveTransferManager.Download
services:
glacier: {DownloadArchive}
glacier: {}
2 changes: 1 addition & 1 deletion .doc_gen/metadata/s3_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2673,7 +2673,7 @@ s3_MultipartCopy:
snippet_tags:
- S3.dotnetv3.MPUapiCopyObjectExample
services:
s3: {UploadCopyPart, InitiateMultipartUpload, GetObjectMetadata, CompleteMultipartUpload}
s3: {UploadPartCopy, CreateMultipartUpload, GetObjectMetadata, CompleteMultipartUpload}
s3_Scenario_ListObjectsWeb:
title: A web page that lists &S3; objects using an &AWS; SDK
title_abbrev: Create a web page that lists &S3; objects
Expand Down
1 change: 1 addition & 0 deletions applications/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ Every example is different, but each will have the following:
| Name | Path | Supported languages |
| ------------------- | -------------------------------------------- | ------------------- |
| Photo Asset Manager | [photo-asset-manager](./photo-asset-manager) | Java |
| Feedback Sentiment Analyzer | [feedback_sentiment_analyzer](./feedback_sentiment_analyzer/)| Ruby, JavaScript |
1 change: 1 addition & 0 deletions applications/feedback_sentiment_analyzer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ These comment cards are uploaded through a web client, transformed using a suite
This application has been implemented with the following AWS SDKs.

- [Ruby](../../ruby/cross_service_examples/feedback_sentiment_analyzer/README.md)
- [JavaScript](../../javascriptv3/example_code/cross-services/feedback-sentiment-analyzer/README.md)

To deploy one of these implementations, follow the [Deployment instructions](#deployment-instructions).

Expand Down
3 changes: 2 additions & 1 deletion cpp/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
build/
cmake-build*/
.vs/
build_tests
build_tests
CMakeSettings.json
5 changes: 4 additions & 1 deletion cpp/build_all_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@


CMAKE_FILES=$(ls example_code/*/CMakeLists.txt)
HELLO_CMAKE_FILES=$(ls example_code/*/hello_*/CMakeLists.txt)
CMAKE_FILES="$CMAKE_FILES $HELLO_CMAKE_FILES"

CMAKE_FILES=($CMAKE_FILES)
echo "CMAKE_FILES ${CMAKE_FILES}"
echo "CMAKE_FILES ${CMAKE_FILES[@]}"

len=${#CMAKE_FILES[@]}
echo "len ${len}"
Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/acm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0

# Set the minimum required version of CMake for this project.
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.13)

# Set this project's name.
project("acm-examples")
Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/aurora/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0

# Set the minimum required version of CMake for this project.
cmake_minimum_required(VERSION 3.11)
cmake_minimum_required(VERSION 3.13)

set(SERVICE_NAME aurora)
set(SERVICE_COMPONENTS rds)
Expand Down
14 changes: 10 additions & 4 deletions cpp/example_code/aurora/getting_started_with_db_clusters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -767,15 +767,18 @@ bool AwsDoc::Aurora::describeDBCluster(const Aws::String &dbClusterIdentifier,
if (outcome.IsSuccess()) {
clusterResult = outcome.GetResult().GetDBClusters()[0];
}
// This example does not log an error if the DB cluster does not exist.
// Instead, it returns false.
else if (outcome.GetError().GetErrorType() !=
Aws::RDS::RDSErrors::D_B_CLUSTER_NOT_FOUND_FAULT) {
result = false;
std::cerr << "Error with Aurora::GDescribeDBClusters. "
<< outcome.GetError().GetMessage()
<< std::endl;
}
// This example does not log an error if the DB cluster does not exist.
// Instead, clusterResult is set to empty.
else {
clusterResult = Aws::RDS::Model::DBCluster();
}

return result;

Expand Down Expand Up @@ -902,15 +905,18 @@ bool AwsDoc::Aurora::describeDBInstance(const Aws::String &dbInstanceIdentifier,
if (outcome.IsSuccess()) {
instanceResult = outcome.GetResult().GetDBInstances()[0];
}
// This example does not log an error if the DB instance does not exist.
// Instead, it returns false.
else if (outcome.GetError().GetErrorType() !=
Aws::RDS::RDSErrors::D_B_INSTANCE_NOT_FOUND_FAULT) {
result = false;
std::cerr << "Error with Aurora::DescribeDBInstances. "
<< outcome.GetError().GetMessage()
<< std::endl;
}
// This example does not log an error if the DB instance does not exist.
// Instead, instanceResult is set to empty.
else {
instanceResult = Aws::RDS::Model::DBInstance();
}

return result;
}
Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/aurora/hello_aurora/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# snippet-start:[cpp.example_code.aurora.hello_aurora.cmake]
# Set the minimum required version of CMake for this project.
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.13)

# Set the AWS service components used by this project.
set(SERVICE_COMPONENTS rds)
Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/autoscaling/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0

# Set the minimum required version of CMake for this project.
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.13)

set(SERVICE_NAME auto_scaling)
set(SERVICE_COMPONENTS autoscaling ec2 monitoring)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# snippet-start:[cpp.example_code.autoscaling.hello_autoscaling.cmake]
# Set the minimum required version of CMake for this project.
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.13)

# Set the AWS service components used by this project.
set(SERVICE_COMPONENTS autoscaling)
Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/cloudtrail/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

cmake_minimum_required(VERSION 3.2)
cmake_minimum_required(VERSION 3.13)
project(cloudtrail-examples)
set (CMAKE_CXX_STANDARD 11)

Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/cloudwatch/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# SPDX-License-Identifier: Apache-2.0

# Set the minimum required version of CMake for this project.
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.13)

set(SERVICE_NAME cloudwatch)
set(SERVICE_COMPONENTS monitoring events logs)
Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/codebuild/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

cmake_minimum_required(VERSION 3.2)
cmake_minimum_required(VERSION 3.13)
project(codebuild-examples)
set (CMAKE_CXX_STANDARD 11)

Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/codecommit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

cmake_minimum_required(VERSION 3.2)
cmake_minimum_required(VERSION 3.13)
project(codecommit-examples)
set (CMAKE_CXX_STANDARD 11)

Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/cognito/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0

# Set the minimum required version of CMake for this project.
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.13)

set(SERVICE_NAME cognito)
set(SERVICE_COMPONENTS cognito-idp)
Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/cognito/hello_cognito/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# snippet-start:[cpp.example_code.cognito.hello_cognito.cmake]
# Set the minimum required version of CMake for this project.
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.13)

# Set the AWS service components used by this project.
set(SERVICE_COMPONENTS cognito-idp)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.12)
cmake_minimum_required(VERSION 3.13)
set(CMAKE_CXX_STANDARD 11)
project(cpp_pam_lambdas LANGUAGES CXX)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0

# Set the minimum required version of CMake for this project.
cmake_minimum_required(VERSION 3.9)
cmake_minimum_required(VERSION 3.13)

set(SERVICE_COMPONENTS sesv2 rds-data)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0

# Set the minimum required version of CMake for this project.
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.13)

set(SERVICE_COMPONENTS sns sqs)

Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/dynamodb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0

# Set the minimum required version of CMake for this project.
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.13)

set(SERVICE_NAME dynamodb)
set(SERVICE_COMPONENTS dynamodb s3) # s3 is required for tests, and it must be included here because of caching.
Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/dynamodb/hello_dynamodb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# snippet-start:[cpp.example_code.dynamodb.hello_dynamodb.cmake]
# Set the minimum required version of CMake for this project.
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.13)

# Set the AWS service components used by this project.
set(SERVICE_COMPONENTS dynamodb)
Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/ebs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

cmake_minimum_required(VERSION 3.2)
cmake_minimum_required(VERSION 3.13)
project(ebs-examples)
set (CMAKE_CXX_STANDARD 11)

Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/ec2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0

# Set the minimum required version of CMake for this project.
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.13)

set(SERVICE_NAME ec2)
set(SERVICE_COMPONENTS ec2)
Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/ec2/hello_ec2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# snippet-start:[cpp.example_code.ec2.hello_ec2.cmake]
# Set the minimum required version of CMake for this project.
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.13)

# Set the AWS service components used by this project.
set(SERVICE_COMPONENTS ec2)
Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/efs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

cmake_minimum_required(VERSION 3.2)
cmake_minimum_required(VERSION 3.13)
project(efs-examples)
set (CMAKE_CXX_STANDARD 11)

Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/elasticache/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

cmake_minimum_required(VERSION 3.2)
cmake_minimum_required(VERSION 3.13)
project(elasticache-examples)
set (CMAKE_CXX_STANDARD 11)

Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/elasticfilesystem/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

cmake_minimum_required(VERSION 3.2)
cmake_minimum_required(VERSION 3.13)
project(elasticfilesystem-examples)
set (CMAKE_CXX_STANDARD 11)

Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/general/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# snippet-start:[general.cpp.starter.cmakelists]

cmake_minimum_required(VERSION 3.3)
cmake_minimum_required(VERSION 3.13)
set(CMAKE_CXX_STANDARD 11)
project(app LANGUAGES CXX)

Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/glacier/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

cmake_minimum_required(VERSION 3.2)
cmake_minimum_required(VERSION 3.13)
project(glacier-examples)
set (CMAKE_CXX_STANDARD 11)

Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/glue/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0

# Set the minimum required version of CMake for this project.
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.13)

set(SERVICE_NAME glue)
set(SERVICE_COMPONENTS glue s3 iam)
Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/glue/hello_glue/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# snippet-start:[cpp.example_code.glue.hello_glue.cmake]
# Set the minimum required version of CMake for this project.
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.13)

# Set the AWS service components used by this project.
set(SERVICE_COMPONENTS glue)
Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/guardduty/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

cmake_minimum_required(VERSION 3.2)
cmake_minimum_required(VERSION 3.13)
project(guardduty-examples)
set (CMAKE_CXX_STANDARD 11)

Expand Down
Loading

0 comments on commit adf9cca

Please sign in to comment.