Skip to content

Commit

Permalink
Correct typos
Browse files Browse the repository at this point in the history
Words with 1 letter added, 1 letter removed, or 2 letters transposed.

Usually in comments/descriptions. In a few cases, in the name of a variable
or member function. (If the typo was repeated in references to the variable
or function, I fixed it in both places.)

I don't have the familiarity with all the programming environments to recompile
and doublecheck. I found the typos by running a statistical analysis on the 'rare'
words in the source code.
  • Loading branch information
max-webster committed Oct 21, 2020
1 parent 6723006 commit 08febed
Show file tree
Hide file tree
Showing 73 changed files with 93 additions and 93 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ if [ "$INTERACTIVE" == "true" ]; then iecho "Tests running in interactive mode."

iecho ""
iecho "***************SETUP STEPS******************"
# First, get the AMI ID for the one running the latest Amazon Linix 2.
# First, get the AMI ID for the one running the latest Amazon Linux 2.
iecho -n "Retrieving the AMI ID for the latest Amazon Linux 2 AMI..."
AMI_ID=$(aws ec2 describe-images \
--owners 'amazon' \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"Default": "master"
},
"RepositoryName": {
"Description": "CodeComit repository name",
"Description": "CodeCommit repository name",
"Type": "String",
"Default": "myrepo"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Parameters:
Type: String
Default: master
RepositoryName:
Description: CodeComit repository name
Description: CodeCommit repository name
Type: String
Default: myrepo
ApplicationName:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

###################################################################################
# Prerequisites:
# - S3 SoureBucket and SourceObjectKey must exist
# - S3 SourceBucket and SourceObjectKey must exist
###################################################################################

Parameters:
Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/neptune/describe_db_clusters.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

//snippet-sourcedescription:[describe_db_clusers.cpp demonstrates how to retrieve information about Amazon Neptune provisioned DB clusters.]
//snippet-sourcedescription:[describe_db_clusters.cpp demonstrates how to retrieve information about Amazon Neptune provisioned DB clusters.]
//snippet-keyword:[C++]
//snippet-sourcesyntax:[cpp]
//snippet-keyword:[Code Sample]
Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/s3/get_put_bucket_acl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
* Prerequisites: An existing bucket.
*
* Inputs:
* - bucketName: The name of the bucket to get ACL informaton for. For example,
* - bucketName: The name of the bucket to get ACL information for. For example,
* "my-bucket".
* - region: The AWS Region identifier for the bucket. For example, "us-east-1".
*
Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/s3encryption/s3Encryption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ int main(int argc, char** argv)
Aws::String objectKey(OBJECT_KEY_PREFIX);
AwsDoc::S3Encryption::KMSWithContextEncryptionMaterialsExample(BUCKET, (objectKey + "-kms-with-context-encryption-materials").c_str(), MASTER_KEY_ID);
std::cout << std::endl;
AwsDoc::S3Encryption::SimpleEncryptionMaterialsWithGCMAADExample(BUCKET, (objectKey + "-simplie-encryption-materials-with-gcm-aad").c_str());
AwsDoc::S3Encryption::SimpleEncryptionMaterialsWithGCMAADExample(BUCKET, (objectKey + "-simple-encryption-materials-with-gcm-aad").c_str());
std::cout << std::endl;
AwsDoc::S3Encryption::DecryptObjectsEncryptedWithLegacyEncryptionExample(BUCKET, (objectKey + "-decrypt-objects-encrypted-with-legacy-encryption").c_str());
std::cout << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/s3encryption/tests/test_s3Encryption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ int main()
return 1;
}
std::cout << std::endl;
if (!AwsDoc::S3Encryption::SimpleEncryptionMaterialsWithGCMAADExample(bucketName.c_str(), (objectKey + "simplie-encryption-materials-with-gcm-aad").c_str()))
if (!AwsDoc::S3Encryption::SimpleEncryptionMaterialsWithGCMAADExample(bucketName.c_str(), (objectKey + "simple-encryption-materials-with-gcm-aad").c_str()))
{
return 1;
}
Expand Down
2 changes: 1 addition & 1 deletion cpp/example_code/transfer-manager/transferOnStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ int main(int argc, char** argv)
{
if (argc < 4)
{
std::cout << "This program is used to demostrate how transfer manager transfers large object in memory without copying it to a local file." << std::endl
std::cout << "This program is used to demonstrate how transfer manager transfers large object in memory without copying it to a local file." << std::endl
<< "It first uploads [LocalFilePath] to your S3 [Bucket] with object name [Key], then downloads the object to memory." << std::endl
<< "To verify the correctness of the file content in memory, we will dump the data to a local file [LocalFilePath]_copy." << std::endl
<< "You can use md5sum [LocalFilePath] [LocalFilePath]_copy to verify they have the same content." << std::endl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static async Task<bool> UpdatingMovie_async( UpdateItemRequest updateRequ
}
if( report )
{
Console.WriteLine( " Here is the updated movie informtion:" );
Console.WriteLine( " Here is the updated movie information:" );
Console.WriteLine( movieAttributesToJson( updateResponse.Attributes ) );
}
operationSucceeded = true;
Expand All @@ -70,4 +70,4 @@ public static async Task<bool> UpdatingMovie_async( UpdateItemRequest updateRequ
}
}

// snippet-end:[dynamodb.dotNET.CodeExample.06_UpdatingItem]
// snippet-end:[dynamodb.dotNET.CodeExample.06_UpdatingItem]
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static void PutEventExample()
{
"RESOURCE_ARN"
},
Source = "com.compnay.myapp"
Source = "com.company.myapp"
}
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public static void UpdateCertificate()
request.NewServerCertificateName = "NEW_Certificate_NAME";
var response = iamClient.UpdateServerCertificate(request);
if (response.HttpStatusCode.ToString() == "OK")
Console.WriteLine("Update succesful");
Console.WriteLine("Update successful");
else
Console.WriteLine("HTTpStatusCode returned = " + response.HttpStatusCode.ToString());
}
Expand Down
2 changes: 1 addition & 1 deletion go/cloudtrail/cloudtrailOps.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ func listTrailEvents(sess *session.Session, trailName string, userName string) e
fmt.Println("ID: ", aws.StringValue(event.EventId))
fmt.Println("Time: ", aws.TimeValue(event.EventTime))

fmt.Println("Resourcs:")
fmt.Println("Resources:")

for _, resource := range event.Resources {
fmt.Println(" Name:", aws.StringValue(resource.ResourceName))
Expand Down
2 changes: 1 addition & 1 deletion go/cloudtrail/cloudtrailOps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func showEvents(t *testing.T, sess *session.Session, trailName string, userName
t.Log("Time: ", aws.TimeValue(event.EventTime))
}

t.Log("Resourcs:")
t.Log("Resources:")

for _, resource := range event.Resources {
if nil != resource.ResourceName {
Expand Down
2 changes: 1 addition & 1 deletion go/cloudwatch/CreateTarget/CreateTarget.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
// Inputs:
// sess is the current session, which provides configuration for the SDK's service clients
// rule is the name of the rule
// lammbdaARN is the ARN of the Lambda function that is invoked
// lambdaARN is the ARN of the Lambda function that is invoked
// targetID is the identifier for the target
// Output:
// If successful, a PutTargetsOutput and nil
Expand Down
2 changes: 1 addition & 1 deletion go/dynamodb/ScanItems/ScanItems.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func ScanTableItems(sess *session.Session, year *int, table *string, minRating *
func main() {
// snippet-start:[dynamodb.go.scan_table_items.args]
tableName := flag.String("t", "", "The name of the table")
minRating := flag.Float64("r", -1.0, "The minumum rating of the movies to retrieve")
minRating := flag.Float64("r", -1.0, "The minimum rating of the movies to retrieve")
year := flag.Int("y", -1, "The year the movies to retrieve were released")
flag.Parse()

Expand Down
2 changes: 1 addition & 1 deletion go/ec2/CreateImage/CreateImage.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func main() {

resp, err := MakeImage(svc, description, instanceID, name)
if err != nil {
fmt.Println("Got an error createing image:")
fmt.Println("Got an error creating image:")
fmt.Println(err)
return
}
Expand Down
2 changes: 1 addition & 1 deletion go/ec2/DescribeInstances/DescribeInstances.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
// sess is the current session, which provides configuration for the SDK's service clients
// Output:
// If success, a list of Amazon EC2 instances and nil
// Otherwise, nil and an error from the call to DescibeInstances
// Otherwise, nil and an error from the call to DescribeInstances
func GetInstances(sess *session.Session) (*ec2.DescribeInstancesOutput, error) {
// snippet-start:[ec2.go.describe_instances.call]
svc := ec2.New(sess)
Expand Down
2 changes: 1 addition & 1 deletion go/example_code/cloudformation/CfnCrudOps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type Config struct {

var configFileName = "config.json"

// Gloval variable for configuration set in config.json
// Global variable for configuration set in config.json
var globalConfig Config

func PopulateConfiguration() error {
Expand Down
2 changes: 1 addition & 1 deletion go/example_code/cloudtrail/lookup_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func main() {
fmt.Println("Time: ", aws.TimeValue(event.EventTime))
fmt.Println("User: ", aws.StringValue(event.Username))

fmt.Println("Resourcs:")
fmt.Println("Resources:")

for _, resource := range event.Resources {
fmt.Println(" Name:", aws.StringValue(resource.ResourceName))
Expand Down
2 changes: 1 addition & 1 deletion go/example_code/iam/iam_updateuser.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.]
// snippet-sourceauthor:[Doug-AWS]
// snippet-sourcedescription:[Udates an IAM user.]
// snippet-sourcedescription:[Updates an IAM user.]
// snippet-keyword:[AWS Identity and Access Management]
// snippet-keyword:[UpdateUser function]
// snippet-keyword:[Go]
Expand Down
2 changes: 1 addition & 1 deletion go/example_code/rds/rds_copy_snapshot_to_s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func main() {
IndentifierSanpshotTime := currentTime.Format("20060102")
exportIdentifier := exportRDSSnapshotName + IndentifierSanpshotTime

// Getting latest snapsnot from rds snapshot list
// Getting latest snapshot from rds snapshot list
for _, s := range result.DBSnapshots {

if strings.Contains(*s.DBSnapshotArn, rdsSnapshot) {
Expand Down
2 changes: 1 addition & 1 deletion go/lambda/RunFunction/RunFunction.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func main() {

result, err := CallFunction(svc, maxItems, function)
if err != nil {
fmt.Println("Got drror calling " + *function + ":")
fmt.Println("Got error calling " + *function + ":")
fmt.Println(err)
return
}
Expand Down
2 changes: 1 addition & 1 deletion go/polly/SynthesizeSpeech/SynthesizeSpeech.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func MakeSpeech(svc pollyiface.PollyAPI, fileName *string) (*polly.SynthesizeSpe

func main() {
// snippet-start:[polly.go.synthesize_speech.args]
fileName := flag.String("f", "", "The file to tranlate into speech")
fileName := flag.String("f", "", "The file to translate into speech")
flag.Parse()

if *fileName == "" {
Expand Down
4 changes: 2 additions & 2 deletions go/rds/CreateClusterSnapshot/CreateClusterSnapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func main() {

err := MakeClusterSnapshot(svc, clusterID)
if err != nil {
fmt.Println("Got an error creating snapshop for cluster " + *clusterID)
fmt.Println("Got an error creating snapshot for cluster " + *clusterID)
return
}

Expand All @@ -75,7 +75,7 @@ func main() {
})
// snippet-end:[rds.go.create_db_cluster_snapshot.wait]
if err != nil {
fmt.Println("Got an error waiting for snapshop for cluster " + *clusterID)
fmt.Println("Got an error waiting for snapshot for cluster " + *clusterID)
return
}

Expand Down
2 changes: 1 addition & 1 deletion go/rds/ListInstanceSnapshots/ListInstanceSnapshots.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
// Inputs:
// sess is the current session, which provides configuration for the SDK's service clients
// Output:
// If success, the list of snapshopts and nil
// If success, the list of snapshots and nil
// Otherwise, nil and an error from the call to DescribeDBSnapshots
func GetInstanceSnapShots(sess *session.Session) (*rds.DescribeDBSnapshotsOutput, error) {
svc := rds.New(sess)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static void main(String[] args) {
}
} catch (AmazonServiceException ase) {
System.out.println("Caught Exception: " + ase.getMessage());
System.out.println("Reponse Status Code: " + ase.getStatusCode());
System.out.println("Response Status Code: " + ase.getStatusCode());
System.out.println("Error Code: " + ase.getErrorCode());
System.out.println("Request ID: " + ase.getRequestId());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static void main(String[] args) {
}
} catch (AmazonServiceException ase) {
System.out.println("Caught Exception: " + ase.getMessage());
System.out.println("Reponse Status Code: " + ase.getStatusCode());
System.out.println("Response Status Code: " + ase.getStatusCode());
System.out.println("Error Code: " + ase.getErrorCode());
System.out.println("Request ID: " + ase.getRequestId());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static void main(String[] args) {
DeleteFunctionRequest delFunc = new DeleteFunctionRequest();
delFunc.withFunctionName(functionName);

//Delete the functiom
//Delete the function
awsLambda.deleteFunction(delFunc);
System.out.println("The function is deleted");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static void main(String[] args) {
"Usage: ImportSegment <appId> <bucket> <key> <roleArn> \n\n" +
"Where:\n" +
" appId - the ID the application to create a segment for.\n\n" +
" bucket - name of the s3 bucket that contains the segment definitons.\n\n" +
" bucket - name of the s3 bucket that contains the segment definitions.\n\n" +
" key - key of the s3 object " +
" roleArn - ARN of the role that allows pinpoint to access S3";

Expand Down
4 changes: 2 additions & 2 deletions java/example_code/redshift/CreateAndDescribeSnapshot.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private static void printResultSnapshots(DescribeClusterSnapshotsResult result)

private static Boolean waitForSnapshotAvailable(String snapshotId) throws InterruptedException {
Boolean snapshotAvailable = false;
System.out.println("Wating for snapshot to become available.");
System.out.println("Waiting for snapshot to become available.");
while (!snapshotAvailable) {
DescribeClusterSnapshotsResult result = client.describeClusterSnapshots(new DescribeClusterSnapshotsRequest()
.withSnapshotIdentifier(snapshotId));
Expand All @@ -125,4 +125,4 @@ private static Boolean waitForSnapshotAvailable(String snapshotId) throws Interr
}

}
// snippet-end:[redshift.java.CreateAndDescribeSnapshot.complete]
// snippet-end:[redshift.java.CreateAndDescribeSnapshot.complete]
2 changes: 1 addition & 1 deletion java/example_code/redshift/CreateAndModifyCluster.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private static void printResult(DescribeClustersResult result)

private static void waitForClusterReady() throws InterruptedException {
Boolean clusterReady = false;
System.out.println("Wating for cluster to become available.");
System.out.println("Waiting for cluster to become available.");
while (!clusterReady) {
DescribeClustersResult result = client.describeClusters(new DescribeClustersRequest()
.withClusterIdentifier(clusterIdentifier));
Expand Down
2 changes: 1 addition & 1 deletion javascript/example_code/cognito/cognito_getcreds.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<html>
<head>
<meta charset="UTF-8">
<title>Amazon Cognito Credenials Example</title>
<title>Amazon Cognito Credentials Example</title>
<meta charset="utf-8">
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.244.1.min.js"></script>
</head>
Expand Down
2 changes: 1 addition & 1 deletion javascript/example_code/ec2/ec2_describeregionsandzones.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* specific language governing permissions and limitations under the License.
*/

//snippet-sourcedescription:[ec2_describeresionsandzones.js demonstrates how to retrieve information about Amazon EC2 regions and availability zones.]
//snippet-sourcedescription:[ec2_describeregionsandzones.js demonstrates how to retrieve information about Amazon EC2 regions and availability zones.]
//snippet-service:[ec2]
//snippet-keyword:[JavaScript]
//snippet-sourcesyntax:[javascript]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<html>
<head>
<meta charset="UTF-8" />
<title>Amazon Cognito credenials example</title>
<title>Amazon Cognito credentials example</title>
<meta charset="utf-8" />
<script src="./main.ts"></script>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const {
fromCognitoIdentityPool,
} = require("@aws-sdk/credential-provider-cognito-identity");

// Set the paramerter
// Set the parameter
const IDENTITY_POOL_ID = "IDENTITY_POOL_ID";
const ACCOUNT_ID = "ACCOUNT_ID";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ at https://github.com/aws/aws-sdk-js-v3. This example is in the 'AWS SDK for Jav
https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/ec2-example-security-groups.html
Purpose:
ec2_describeresionsandzones.ts demonstrates how to retrieve information about Amazon EC2 regions and availability zones.
ec2_describeregionsandzones.ts demonstrates how to retrieve information about Amazon EC2 regions and availability zones.
Inputs (replace in code):
- REGION
Running the code:
ts-node ec2_describeresionsandzones.ts
ts-node ec2_describeregionsandzones.ts
*/
// snippet-start:[ec2.JavaScript.Regions.describeRegionsV3]
// Import required AWS SDK clients and commands for Node.js
Expand Down
2 changes: 1 addition & 1 deletion javascriptv3/example_code/glacier/src/uploadArchive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SPDX-License-Identifier: Apache-2.0
ABOUT THIS NODE.JS EXAMPLE: This example works with AWS SDK for JavaScript version 3 (v3),
which is pending release. The preview version of the SDK is available
at https://github.com/aws/aws-sdk-js-v3. This example is in the 'AWS SDK for JavaScript v3 Developer Guide' at
https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/glacier-example-uploadrchive.html.
https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/glacier-example-uploadarchive.html.
Purpose:
uploadArchive.js demonstrates how to upload an archive to Amazon S3 Glacier.
Expand Down
4 changes: 2 additions & 2 deletions javascriptv3/example_code/iam/src/iam_updateuser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ iam_updateuser.js demonstrates how to update the name of an IAM user.
Inputs :
- REGION
- ORIGINGAL_USER_NAME
- ORIGINAL_USER_NAME
- NEW_USER_NAME
Running the code:
Expand All @@ -27,7 +27,7 @@ const REGION = "REGION"; //e.g. "us-east-1"

// Set the parameters
const params = {
UserName: "ORIGINGAL_USER_NAME", //ORIGINGAL_USER_NAME
UserName: "ORIGINAL_USER_NAME", //ORIGINAL_USER_NAME
NewUserName: "NEW_USER_NAME", //NEW_USER_NAME
};

Expand Down
2 changes: 1 addition & 1 deletion javascriptv3/example_code/kinesis/src/blog_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<!--
snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.]
snippet-sourcedescription:[blog_page.html contains the HTML for the scroll-progress exmaple]
snippet-sourcedescription:[blog_page.html contains the HTML for the scroll-progress example]
snippet-service:[kinesis]
snippet-keyword:[HTML]
snippet-keyword:[Amazon Kinesis]
Expand Down
Loading

0 comments on commit 08febed

Please sign in to comment.