Skip to content

Commit

Permalink
adding source syntax for Go
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwarzwalder committed Sep 9, 2019
1 parent 4515ead commit ce1a5b7
Show file tree
Hide file tree
Showing 169 changed files with 304 additions and 135 deletions.
3 changes: 2 additions & 1 deletion go/example_code/cloudformation/CfnCreateStack.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
// snippet-keyword:[AWS CloudFormation]
// snippet-keyword:[CreateStack function]
// snippet-keyword:[WaitUntilStackCreateComplete function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[cloudformation]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/cloudformation/CfnDeleteStack.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
// snippet-keyword:[AWS CloudFormation]
// snippet-keyword:[DeleteStack function]
// snippet-keyword:[WaitUntilStackDeleteComplete function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[cloudformation]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/cloudformation/CfnListStacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// snippet-sourcedescription:[Lists your CloudFormation stacks.]
// snippet-keyword:[AWS CloudFormation]
// snippet-keyword:[ListStacks function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[cloudformation]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/cloudtrail/create_trail.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// snippet-sourcedescription:[Creates an AWS CloudTrail trail.]
// snippet-keyword:[AWS CloudTrail]
// snippet-keyword:[CreateTrail function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[cloudtrail]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/cloudtrail/delete_trail.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// snippet-sourcedescription:[Deletes an AWS CloudTrail trail.]
// snippet-keyword:[AWS CloudTrail]
// snippet-keyword:[DeleteTrail function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[cloudtrail]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/cloudtrail/describe_trails.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// snippet-sourcedescription:[Lists the AWS CloudTrail trails.]
// snippet-keyword:[AWS CloudTrail]
// snippet-keyword:[DescribeTrails function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[cloudtrail]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/cloudtrail/lookup_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// snippet-sourcedescription:[Lists the AWS CloudTrail events.]
// snippet-keyword:[AWS CloudTrail]
// snippet-keyword:[LookupEvents function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[cloudtrail]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
1 change: 1 addition & 0 deletions go/example_code/cloudwatch/CloudWatchGetLogEvents.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// snippet-keyword:[AWS CloudWatch]
// snippet-keyword:[GetLogEvents function]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[cloudwatch]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/cloudwatch/create_enable_alarms.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
// snippet-keyword:[AWS CloudWatch]
// snippet-keyword:[EnableAlarmActions function]
// snippet-keyword:[PutMetricAlarm function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[cloudwatch]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/cloudwatch/custom_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
// snippet-keyword:[AWS CloudWatch]
// snippet-keyword:[ListMetrics function]
// snippet-keyword:[PutMetricData function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[cloudwatch]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/cloudwatch/delete_alarms.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// snippet-sourcedescription:[Deletes a CloudWatch alarm.]
// snippet-keyword:[Amazon CloudWatch]
// snippet-keyword:[DeleteAlarms function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[cloudwatch]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/cloudwatch/describe_alarm_history.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// snippet-sourcedescription:[Gets the history for a CloudWatch alarm.]
// snippet-keyword:[Amazon CloudWatch]
// snippet-keyword:[DescribeAlarmHistory function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[cloudwatch]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/cloudwatch/describe_alarms.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// snippet-sourcedescription:[Describes the Amazon Cloudwatch alarms.]
// snippet-keyword:[Amazon CloudWatch]
// snippet-keyword:[DescribeAlarms function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[cloudwatch]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/cloudwatch/describe_alarms_for_metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// snippet-sourcedescription:[Gets the CloudWatch alarms for a specific metric.]
// snippet-keyword:[Amazon CloudWatch]
// snippet-keyword:[DescribeAlarmsForMetric function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[cloudwatch]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/cloudwatch/disable_alarm.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// snippet-sourcedescription:[Disables the actions on an alarm.]
// snippet-keyword:[AWS CloudWatch]
// snippet-keyword:[DisableAlarmActions function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[cloudwatch]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/cloudwatch/events_put_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// snippet-sourcedescription:[Sends an event that is matched to targets for handling.]
// snippet-keyword:[AWS CloudWatch]
// snippet-keyword:[PutEvents function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[cloudwatch]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/cloudwatch/events_put_targets.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// snippet-sourcedescription:[Defines a target to respond to an event.]
// snippet-keyword:[AWS CloudWatch]
// snippet-keyword:[PutTargets function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[cloudwatch]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/cloudwatch/events_schedule_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// snippet-sourcedescription:[Creates a rule used to trigger an event.]
// snippet-keyword:[AWS CloudWatch]
// snippet-keyword:[PutRule function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[cloudwatch]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/cloudwatch/listing_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// snippet-sourcedescription:[Retrieves a list of published AWS CloudWatch metrics.]
// snippet-keyword:[AWS CloudWatch]
// snippet-keyword:[ListMetrics function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[cloudwatch]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/codebuild/cb_build_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// snippet-sourcedescription:[Builds the AWS CodeBuild project specified on the command line.]
// snippet-keyword:[AWS CodeBuild]
// snippet-keyword:[StartBuild function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[codebuild]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/codebuild/cb_list_builds.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// snippet-sourcedescription:[Displays information about your AWS CodeBuild project builds.]
// snippet-keyword:[AWS CodeBuild]
// snippet-keyword:[ListBuilds function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[codebuild]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/codebuild/cb_list_projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// snippet-sourcedescription:[Lists the names of up to 100 of your AWS CodeBuild projects.]
// snippet-keyword:[AWS CodeBuild]
// snippet-keyword:[ListProjects function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[codebuild]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
1 change: 1 addition & 0 deletions go/example_code/cognito/CognitoCreateUser.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// snippet-keyword:[Amazon Cognito]
// snippet-keyword:[AdminCreateUser function]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[cognito]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
1 change: 1 addition & 0 deletions go/example_code/cognito/CognitoCreateUserPool.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// snippet-keyword:[Amazon Cognito]
// snippet-keyword:[CreateUserPool function]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[cognito]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
1 change: 1 addition & 0 deletions go/example_code/cognito/CognitoListUserPools.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// snippet-keyword:[Amazon Cognito]
// snippet-keyword:[ListUserPools function]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[cognito]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
1 change: 1 addition & 0 deletions go/example_code/cognito/CognitoListUsers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// snippet-keyword:[Amazon Cognito]
// snippet-keyword:[ListUsers function]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[cognito]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
1 change: 1 addition & 0 deletions go/example_code/costexplorer/get_cost_and_usage.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// snippet-keyword:[Amazon CE]
// snippet-keyword:[GetCostAndUsage function]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[ce]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[snippet]
Expand Down
1 change: 1 addition & 0 deletions go/example_code/dynamodb/DynamoDBCreateItem.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// snippet-keyword:[Amazon DynamoDB]
// snippet-keyword:[PutItem function]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[dynamodb]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
1 change: 1 addition & 0 deletions go/example_code/dynamodb/DynamoDBCreateTable.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// snippet-keyword:[Amazon DynamoDB]
// snippet-keyword:[CreateTable function]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[dynamodb]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
1 change: 1 addition & 0 deletions go/example_code/dynamodb/DynamoDBDeleteItem.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// snippet-keyword:[Amazon DynamoDB]
// snippet-keyword:[DeleteItem function]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[dynamodb]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
1 change: 1 addition & 0 deletions go/example_code/dynamodb/DynamoDBListTables.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// snippet-keyword:[Amazon DynamoDB]
// snippet-keyword:[ListTables function]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[dynamodb]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
1 change: 1 addition & 0 deletions go/example_code/dynamodb/DynamoDBLoadItems.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// snippet-keyword:[Amazon DynamoDB]
// snippet-keyword:[PutItem function]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[dynamodb]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
1 change: 1 addition & 0 deletions go/example_code/dynamodb/DynamoDBReadItem.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// snippet-keyword:[Amazon DynamoDB]
// snippet-keyword:[GetItem function]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[dynamodb]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
1 change: 1 addition & 0 deletions go/example_code/dynamodb/DynamoDBScanItems.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// snippet-keyword:[Scan function]
// snippet-keyword:[Expression Builder]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[dynamodb]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
1 change: 1 addition & 0 deletions go/example_code/dynamodb/DynamoDBUpdateItem.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// snippet-keyword:[Amazon DynamoDB]
// snippet-keyword:[UpdateItem function]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[dynamodb]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/dynamodb/create_item.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// snippet-sourcedescription:[Creates an item in an Amazon DynamoDB table.]
// snippet-keyword:[Amazon DynamoDB]
// snippet-keyword:[PutItem function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[dynamodb]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/dynamodb/create_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// snippet-sourcedescription:[Creates an Amazon DynamoDB table.]
// snippet-keyword:[Amazon DynamoDB]
// snippet-keyword:[CreateTable function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[dynamodb]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/dynamodb/delete_item.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// snippet-sourcedescription:[Deletes an item from an Amazon DynamoDB table.]
// snippet-keyword:[Amazon DynamoDB]
// snippet-keyword:[DeleteItem function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[dynamodb]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/dynamodb/list_tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// snippet-sourcedescription:[Lists your Amazon DynamoDB tables.]
// snippet-keyword:[Amazon DynamoDB]
// snippet-keyword:[ListTables function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[dynamodb]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/dynamodb/load_items.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// snippet-sourcedescription:[Adds items from a JSON file to an Amazon DynamoDB table.]
// snippet-keyword:[Amazon DynamoDB]
// snippet-keyword:[PutItem function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[dynamodb]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/dynamodb/read_item.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// snippet-sourcedescription:[Gets an item from an Amazon DynamoDB table.]
// snippet-keyword:[Amazon DynamoDB]
// snippet-keyword:[GetItem function]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[dynamodb]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
3 changes: 2 additions & 1 deletion go/example_code/dynamodb/scan_items.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
// snippet-keyword:[Amazon DynamoDB]
// snippet-keyword:[Scan function]
// snippet-keyword:[Expression Builder]
// snippet-keyword:[Go]
// snippet-keyword:[Go]
// snippet-sourcesyntax:[go]
// snippet-service:[dynamodb]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
Expand Down
Loading

0 comments on commit ce1a5b7

Please sign in to comment.