Skip to content

Commit 7a413b8

Browse files
committed
Update format fixes and metadata.
1 parent 880f12f commit 7a413b8

File tree

8 files changed

+26
-28
lines changed

8 files changed

+26
-28
lines changed

dotnetv4/Redshift/.doc_gen/metadata/redshift_metadata.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ redshift_CreateCluster:
1313
excerpts:
1414
- description:
1515
snippet_tags:
16-
- dotnetv4.example_code.redshift.CreateCluster
16+
- Redshift.dotnetv4.CreateCluster
1717
services:
1818
redshift: {CreateCluster}
1919

@@ -30,7 +30,7 @@ redshift_DeleteCluster:
3030
excerpts:
3131
- description:
3232
snippet_tags:
33-
- dotnetv4.example_code.redshift.DeleteCluster
33+
- Redshift.dotnetv4.DeleteCluster
3434
services:
3535
redshift: {DeleteCluster}
3636

@@ -47,7 +47,7 @@ redshift_DescribeClusters:
4747
excerpts:
4848
- description:
4949
snippet_tags:
50-
- dotnetv4.example_code.redshift.DescribeClusters
50+
- Redshift.dotnetv4.DescribeClusters
5151
services:
5252
redshift: {DescribeClusters}
5353

@@ -64,7 +64,7 @@ redshift_ModifyCluster:
6464
excerpts:
6565
- description:
6666
snippet_tags:
67-
- dotnetv4.example_code.redshift.ModifyCluster
67+
- Redshift.dotnetv4.ModifyCluster
6868
services:
6969
redshift: {ModifyCluster}
7070

@@ -81,7 +81,7 @@ redshift_CreateTable:
8181
excerpts:
8282
- description:
8383
snippet_tags:
84-
- dotnetv4.example_code.redshift.CreateTable
84+
- Redshift.dotnetv4.CreateTable
8585
services:
8686
redshift-data: {ExecuteStatement}
8787

@@ -98,7 +98,7 @@ redshift_Insert:
9898
excerpts:
9999
- description:
100100
snippet_tags:
101-
- dotnetv4.example_code.redshift.Insert
101+
- Redshift.dotnetv4.Insert
102102
services:
103103
redshift-data: {ExecuteStatement}
104104

@@ -115,7 +115,7 @@ redshift_Query:
115115
excerpts:
116116
- description:
117117
snippet_tags:
118-
- dotnetv4.example_code.redshift.Query
118+
- Redshift.dotnetv4.Query
119119
services:
120120
redshift-data: {ExecuteStatement, GetStatementResult}
121121

@@ -132,7 +132,7 @@ redshift_DescribeStatement:
132132
excerpts:
133133
- description:
134134
snippet_tags:
135-
- dotnetv4.example_code.redshift.DescribeStatement
135+
- Redshift.dotnetv4.DescribeStatement
136136
services:
137137
redshift-data: {DescribeStatement}
138138

@@ -149,7 +149,7 @@ redshift_GetStatementResult:
149149
excerpts:
150150
- description:
151151
snippet_tags:
152-
- dotnetv4.example_code.redshift.GetStatementResult
152+
- Redshift.dotnetv4.GetStatementResult
153153
services:
154154
redshift-data: {GetStatementResult}
155155

@@ -166,7 +166,7 @@ redshift_ListDatabases:
166166
excerpts:
167167
- description:
168168
snippet_tags:
169-
- dotnetv4.example_code.redshift.ListDatabases
169+
- Redshift.dotnetv4.ListDatabases
170170
services:
171171
redshift-data: {ListDatabases}
172172

@@ -183,7 +183,7 @@ redshift_Hello:
183183
excerpts:
184184
- description:
185185
snippet_tags:
186-
- dotnetv4.example_code.redshift.Hello
186+
- Redshift.dotnetv4.Hello
187187
services:
188188
redshift: {DescribeClusters}
189189

@@ -200,10 +200,10 @@ redshift_Scenario:
200200
excerpts:
201201
- description: Create a Redshift wrapper class to manage operations.
202202
snippet_tags:
203-
- dotnetv4.example_code.redshift.RedshiftWrapper
203+
- Redshift.dotnetv4.RedshiftWrapper
204204
- description: Run an interactive scenario demonstrating Redshift basics.
205205
snippet_tags:
206-
- dotnetv4.example_code.redshift.RedshiftScenario
206+
- Redshift.dotnetv4.RedshiftScenario
207207
services:
208208
redshift: {CreateCluster, DeleteCluster, DescribeClusters, ModifyCluster}
209209
redshift-data: {ExecuteStatement, DescribeStatement, GetStatementResult, ListDatabases}

dotnetv4/Redshift/Actions/HelloRedshift.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ public static async Task Main(string[] args)
6565
}
6666
}
6767
// snippet-end:[Redshift.dotnetv4.Hello]
68-
}
68+
}

dotnetv4/Redshift/Actions/RedshiftWrapper.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,5 +497,4 @@ public async Task WaitForClusterAvailableAsync(string clusterIdentifier, bool is
497497
Console.WriteLine($"Cluster is available! Total Elapsed Time: {totalElapsed:mm\\:ss}");
498498
}
499499
}
500-
// snippet-end:[Redshift.dotnetv4.RedshiftWrapper]
501-
500+
// snippet-end:[Redshift.dotnetv4.RedshiftWrapper]

dotnetv4/Redshift/Scenarios/RedshiftBasics.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ public static async Task RunScenarioAsync()
6060
Console.WriteLine("Welcome to the Amazon Redshift SDK Getting Started scenario.");
6161
Console.WriteLine(
6262
"This .NET program demonstrates how to interact with Amazon Redshift by using the AWS SDK for .NET.");
63-
Console.WriteLine(
64-
"Upon completion of the program, all resources are cleaned up.");
6563
Console.WriteLine("Let's get started...");
6664
Console.WriteLine(
6765
"================================================================================");
@@ -89,7 +87,6 @@ public static async Task RunScenarioAsync()
8987
userPassword = passwordInput;
9088

9189
Console.WriteLine("================================================================================");
92-
Console.WriteLine("A Redshift cluster refers to the collection of computing resources and storage that work together to process and analyze large volumes of data.");
9390

9491
// Step 2: Get cluster identifier
9592
Console.WriteLine("Enter a cluster id value (default is redshift-cluster-movies):");
@@ -147,7 +144,7 @@ public static async Task RunScenarioAsync()
147144
// Step 7: Populate the Movies table
148145
Console.WriteLine("================================================================================");
149146
Console.WriteLine("Populate the Movies table using the Movies.json file.");
150-
147+
151148
if (IsInteractive)
152149
{
153150
Console.WriteLine("Specify the number of records you would like to add to the Movies Table.");
@@ -176,7 +173,7 @@ public static async Task RunScenarioAsync()
176173
// Step 8 & 9: Query movies by year
177174
Console.WriteLine("================================================================================");
178175
Console.WriteLine("Query the Movies table by year. Enter a value between 2012-2014.");
179-
176+
180177
if (IsInteractive)
181178
{
182179
Console.Write("Enter a year: ");
@@ -282,5 +279,4 @@ private class Movie
282279
public int Year { get; set; }
283280
}
284281
}
285-
// snippet-end:[Redshift.dotnetv4.RedshiftScenario]
286-
282+
// snippet-end:[Redshift.dotnetv4.RedshiftScenario]

dotnetv4/Redshift/Tests/RedshiftIntegrationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ public async Task TestScenarioIntegration()
5858
It.IsAny<Func<It.IsAnyType, Exception?, string>>()),
5959
Times.Never);
6060
}
61-
}
61+
}

steering_docs/dotnet-tech/basics.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,7 @@ public async Task<Cluster> CreateClusterAsync(...)
667667
668668
// ❌ WRONG - Old format
669669
// snippet-start:[dotnetv4.example_code.redshift.CreateCluster]
670+
// snippet-end:[dotnetv4.example_code.redshift.CreateCluster]
670671
```
671672

672673
**Format**: `[{Service}.dotnetv4.{ActionName}]`

steering_docs/dotnet-tech/hello.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ public static async Task Main(string[] args)
187187
188188
// ❌ WRONG - Old format
189189
// snippet-start:[dotnetv4.example_code.redshift.Hello]
190+
// snippet-end:[dotnetv4.example_code.redshift.Hello]
190191
```
191192

192193
**Format**: `[{Service}.dotnetv4.Hello]`

steering_docs/dotnet-tech/wrapper.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public class {Service}Wrapper
192192
throw;
193193
}
194194
}
195-
// snippet-end:[{Service}.dotnetv4.List{Resources}WithFilter]
195+
// snippet-end:[{Service}.dotnetv4.List{Resources}WithFilterSteering]
196196
```
197197

198198
## Error Handling Requirements
@@ -289,15 +289,16 @@ await foreach (var response in itemsPaginator.Responses)
289289

290290
```csharp
291291
// ✅ CORRECT - Service name first, then dotnetv4
292-
// snippet-start:[Redshift.dotnetv4.CreateCluster]
292+
// snippet-start:[Redshift.dotnetv4.CreateClusterSteering]
293293
public async Task<Cluster> CreateClusterAsync(...)
294294
{
295295
// Implementation
296296
}
297-
// snippet-end:[Redshift.dotnetv4.CreateCluster]
297+
// snippet-end:[Redshift.dotnetv4.CreateClusterSteering]
298298
299299
// ❌ WRONG - Old format
300-
// snippet-start:[dotnetv4.example_code.redshift.CreateCluster]
300+
// snippet-start:[dotnetv4.example_code.redshift.CreateClusterSteering]
301+
// snippet-end:[dotnetv4.example_code.redshift.CreateClusterSteering]
301302
```
302303

303304
**Format**: `[{Service}.dotnetv4.{ActionName}]`

0 commit comments

Comments
 (0)