Skip to content

Commit b78f32b

Browse files
committed
WIP on project updates.
1 parent 4d5159e commit b78f32b

File tree

14 files changed

+181
-277
lines changed

14 files changed

+181
-277
lines changed

dotnetv4/ACM/DescribeCertificates/DescribeCertificate/DescribeCertificate.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// snippet-start:[ACM.dotnetv4.DescribeCertificate]
55
using System;
66
using System.Threading.Tasks;
7-
using Amazon;
87
using Amazon.CertificateManager;
98
using Amazon.CertificateManager.Model;
109

@@ -15,13 +14,11 @@ class DescribeCertificate
1514
// The following example retrieves and displays the metadata for a
1615
// certificate using the AWS Certificate Manager (ACM) service.
1716

18-
// Specify your AWS Region (an example Region is shown).
19-
private static readonly RegionEndpoint ACMRegion = RegionEndpoint.USEast1;
2017
private static AmazonCertificateManagerClient _client;
2118

2219
static void Main(string[] args)
2320
{
24-
_client = new Amazon.CertificateManager.AmazonCertificateManagerClient(ACMRegion);
21+
_client = new Amazon.CertificateManager.AmazonCertificateManagerClient();
2522

2623
var describeCertificateReq = new DescribeCertificateRequest();
2724
// The ARN used here is just an example. Replace it with the ARN of

dotnetv4/ACM/ListCertificates/ListCertificates/ListCertificates.cs

Lines changed: 29 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,51 +5,46 @@
55

66
using System;
77
using System.Threading.Tasks;
8-
using Amazon;
98
using Amazon.CertificateManager;
109
using Amazon.CertificateManager.Model;
1110

12-
namespace ListCertificates
11+
namespace ListCertificates;
12+
13+
// The following example retrieves and displays a list of the
14+
// certificates defined for the default account using the AWS
15+
// Certificate Manager (ACM) service.
16+
public class ListCertificates
1317
{
14-
// The following example retrieves and displays a list of the
15-
// certificates defined for the default account using the AWS
16-
// Certificate Manager (ACM) service.
17-
class ListCertificates
18+
private static AmazonCertificateManagerClient _client;
19+
20+
static void Main(string[] args)
1821
{
19-
// Specify your AWS Region (an example Region is shown).
22+
_client = new AmazonCertificateManagerClient();
23+
var certificateList = ListCertificatesResponseAsync(client: _client);
2024

21-
private static readonly RegionEndpoint ACMRegion = RegionEndpoint.USEast1;
22-
private static AmazonCertificateManagerClient _client;
25+
Console.WriteLine("Certificate Summary List\n");
2326

24-
static void Main(string[] args)
27+
foreach (var certificate in certificateList.Result.CertificateSummaryList)
2528
{
26-
_client = new AmazonCertificateManagerClient(ACMRegion);
27-
var certificateList = ListCertificatesResponseAsync(client: _client);
28-
29-
Console.WriteLine("Certificate Summary List\n");
30-
31-
foreach (var certificate in certificateList.Result.CertificateSummaryList)
32-
{
33-
Console.WriteLine($"Certificate Domain: {certificate.DomainName}");
34-
Console.WriteLine($"Certificate ARN: {certificate.CertificateArn}\n");
35-
}
29+
Console.WriteLine($"Certificate Domain: {certificate.DomainName}");
30+
Console.WriteLine($"Certificate ARN: {certificate.CertificateArn}\n");
3631
}
32+
}
3733

38-
/// <summary>
39-
/// Retrieves a list of the certificates defined in this Region.
40-
/// </summary>
41-
/// <param name="client">The ACM client object passed to the
42-
/// ListCertificateResAsync method call.</param>
43-
/// <param name="request"></param>
44-
/// <returns>The ListCertificatesResponse.</returns>
45-
static async Task<ListCertificatesResponse> ListCertificatesResponseAsync(
46-
AmazonCertificateManagerClient client)
47-
{
48-
var request = new ListCertificatesRequest();
34+
/// <summary>
35+
/// Retrieves a list of the certificates defined in this Region.
36+
/// </summary>
37+
/// <param name="client">The ACM client object passed to the
38+
/// ListCertificateResAsync method call.</param>
39+
/// <param name="request"></param>
40+
/// <returns>The ListCertificatesResponse.</returns>
41+
static async Task<ListCertificatesResponse> ListCertificatesResponseAsync(
42+
AmazonCertificateManagerClient client)
43+
{
44+
var request = new ListCertificatesRequest();
4945

50-
var response = await client.ListCertificatesAsync(request);
51-
return response;
52-
}
46+
var response = await client.ListCertificatesAsync(request);
47+
return response;
5348
}
5449
}
5550

dotnetv4/Bedrock-runtime/BedrockRuntimeExamples.sln

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BedrockRuntimeTests", "Test
1010
{02823466-F5FF-43A2-B70A-EF3482A0CBDD} = {02823466-F5FF-43A2-B70A-EF3482A0CBDD}
1111
{0574B2F4-D4BE-4155-902B-BF3D7CE4804E} = {0574B2F4-D4BE-4155-902B-BF3D7CE4804E}
1212
{1E62D4FB-CC59-4F1E-BB22-574CEC08C94B} = {1E62D4FB-CC59-4F1E-BB22-574CEC08C94B}
13-
{25DD40DB-953F-4AA4-A273-28848BAFFBD8} = {25DD40DB-953F-4AA4-A273-28848BAFFBD8}
1413
{2A6989CB-B273-4841-BD3E-7B1BBA4DD25F} = {2A6989CB-B273-4841-BD3E-7B1BBA4DD25F}
1514
{3D6441FC-0FE8-4D0C-910D-3D9310599C71} = {3D6441FC-0FE8-4D0C-910D-3D9310599C71}
1615
{4B5A00D6-B9F1-449F-A9D2-80E860D6BD75} = {4B5A00D6-B9F1-449F-A9D2-80E860D6BD75}
@@ -23,7 +22,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BedrockRuntimeTests", "Test
2322
{B6924BBB-9993-44C1-BEF9-DEDEA42A12B2} = {B6924BBB-9993-44C1-BEF9-DEDEA42A12B2}
2423
{B753CEB9-EA53-4AE1-997E-B7D54A299D58} = {B753CEB9-EA53-4AE1-997E-B7D54A299D58}
2524
{BCC66C37-4980-484F-819D-066D2FF2669C} = {BCC66C37-4980-484F-819D-066D2FF2669C}
26-
{C9049A40-6C4A-4071-9753-493FEB0C08BE} = {C9049A40-6C4A-4071-9753-493FEB0C08BE}
2725
{CDF1A045-0888-418C-8656-2BF5E3348A48} = {CDF1A045-0888-418C-8656-2BF5E3348A48}
2826
{D1B0719F-4F84-4DBC-BCAD-E856FB3193D7} = {D1B0719F-4F84-4DBC-BCAD-E856FB3193D7}
2927
{D3BA31F5-FF20-4321-9494-3F01439C4F61} = {D3BA31F5-FF20-4321-9494-3F01439C4F61}
@@ -80,8 +78,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "InvokeModel", "Models\Mistr
8078
EndProject
8179
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Llama3_InvokeModel", "Models\MetaLlama\Llama3_InvokeModel\Llama3_InvokeModel.csproj", "{B753CEB9-EA53-4AE1-997E-B7D54A299D58}"
8280
EndProject
83-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Llama2_InvokeModel", "Models\MetaLlama\Llama2_InvokeModel\Llama2_InvokeModel.csproj", "{25DD40DB-953F-4AA4-A273-28848BAFFBD8}"
84-
EndProject
8581
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Command_InvokeModel", "Models\CohereCommand\Command_InvokeModel\Command_InvokeModel.csproj", "{2A6989CB-B273-4841-BD3E-7B1BBA4DD25F}"
8682
EndProject
8783
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Command_R_InvokeModel", "Models\CohereCommand\Command_R_InvokeModel\Command_R_InvokeModel.csproj", "{BCC66C37-4980-484F-819D-066D2FF2669C}"
@@ -92,8 +88,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Command_InvokeModelWithResp
9288
EndProject
9389
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Command_R_InvokeModelWithResponseStream", "Models\CohereCommand\Command_R_InvokeModelWithResponseStream\Command_R_InvokeModelWithResponseStream.csproj", "{02823466-F5FF-43A2-B70A-EF3482A0CBDD}"
9490
EndProject
95-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Llama2_InvokeModelWithResponseStream", "Models\MetaLlama\Llama2_InvokeModelWithResponseStream\Llama2_InvokeModelWithResponseStream.csproj", "{C9049A40-6C4A-4071-9753-493FEB0C08BE}"
96-
EndProject
9791
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Llama3_InvokeModelWithResponseStream", "Models\MetaLlama\Llama3_InvokeModelWithResponseStream\Llama3_InvokeModelWithResponseStream.csproj", "{4B5A00D6-B9F1-449F-A9D2-80E860D6BD75}"
9892
EndProject
9993
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "InvokeModelWithResponseStream", "Models\Mistral\InvokeModelWithResponseStream\InvokeModelWithResponseStream.csproj", "{EFC7D088-EF45-464B-97CD-0BBA486B224A}"
@@ -174,10 +168,6 @@ Global
174168
{B753CEB9-EA53-4AE1-997E-B7D54A299D58}.Debug|Any CPU.Build.0 = Debug|Any CPU
175169
{B753CEB9-EA53-4AE1-997E-B7D54A299D58}.Release|Any CPU.ActiveCfg = Release|Any CPU
176170
{B753CEB9-EA53-4AE1-997E-B7D54A299D58}.Release|Any CPU.Build.0 = Release|Any CPU
177-
{25DD40DB-953F-4AA4-A273-28848BAFFBD8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
178-
{25DD40DB-953F-4AA4-A273-28848BAFFBD8}.Debug|Any CPU.Build.0 = Debug|Any CPU
179-
{25DD40DB-953F-4AA4-A273-28848BAFFBD8}.Release|Any CPU.ActiveCfg = Release|Any CPU
180-
{25DD40DB-953F-4AA4-A273-28848BAFFBD8}.Release|Any CPU.Build.0 = Release|Any CPU
181171
{2A6989CB-B273-4841-BD3E-7B1BBA4DD25F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
182172
{2A6989CB-B273-4841-BD3E-7B1BBA4DD25F}.Debug|Any CPU.Build.0 = Debug|Any CPU
183173
{2A6989CB-B273-4841-BD3E-7B1BBA4DD25F}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -198,10 +188,6 @@ Global
198188
{02823466-F5FF-43A2-B70A-EF3482A0CBDD}.Debug|Any CPU.Build.0 = Debug|Any CPU
199189
{02823466-F5FF-43A2-B70A-EF3482A0CBDD}.Release|Any CPU.ActiveCfg = Release|Any CPU
200190
{02823466-F5FF-43A2-B70A-EF3482A0CBDD}.Release|Any CPU.Build.0 = Release|Any CPU
201-
{C9049A40-6C4A-4071-9753-493FEB0C08BE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
202-
{C9049A40-6C4A-4071-9753-493FEB0C08BE}.Debug|Any CPU.Build.0 = Debug|Any CPU
203-
{C9049A40-6C4A-4071-9753-493FEB0C08BE}.Release|Any CPU.ActiveCfg = Release|Any CPU
204-
{C9049A40-6C4A-4071-9753-493FEB0C08BE}.Release|Any CPU.Build.0 = Release|Any CPU
205191
{4B5A00D6-B9F1-449F-A9D2-80E860D6BD75}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
206192
{4B5A00D6-B9F1-449F-A9D2-80E860D6BD75}.Debug|Any CPU.Build.0 = Debug|Any CPU
207193
{4B5A00D6-B9F1-449F-A9D2-80E860D6BD75}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -242,13 +228,11 @@ Global
242228
{D1B0719F-4F84-4DBC-BCAD-E856FB3193D7} = {8BAC2322-AD3C-484A-B51D-8263BC4E6646}
243229
{1E62D4FB-CC59-4F1E-BB22-574CEC08C94B} = {BBB79D3E-5DF2-4FF6-B467-52D0EEB91C4B}
244230
{B753CEB9-EA53-4AE1-997E-B7D54A299D58} = {65504C76-7E32-4A12-A42E-BCDA4FE79BC1}
245-
{25DD40DB-953F-4AA4-A273-28848BAFFBD8} = {65504C76-7E32-4A12-A42E-BCDA4FE79BC1}
246231
{2A6989CB-B273-4841-BD3E-7B1BBA4DD25F} = {EF45C0B9-ED76-4B7A-A0A7-F102E979B71C}
247232
{BCC66C37-4980-484F-819D-066D2FF2669C} = {EF45C0B9-ED76-4B7A-A0A7-F102E979B71C}
248233
{52CDA3F4-F090-4224-978A-5F42388DCF92} = {3F96ECB4-1644-43E8-8643-2CDCF9E679F1}
249234
{63984664-8230-40F3-BFF5-7AC4988D7FE7} = {EF45C0B9-ED76-4B7A-A0A7-F102E979B71C}
250235
{02823466-F5FF-43A2-B70A-EF3482A0CBDD} = {EF45C0B9-ED76-4B7A-A0A7-F102E979B71C}
251-
{C9049A40-6C4A-4071-9753-493FEB0C08BE} = {65504C76-7E32-4A12-A42E-BCDA4FE79BC1}
252236
{4B5A00D6-B9F1-449F-A9D2-80E860D6BD75} = {65504C76-7E32-4A12-A42E-BCDA4FE79BC1}
253237
{EFC7D088-EF45-464B-97CD-0BBA486B224A} = {BBB79D3E-5DF2-4FF6-B467-52D0EEB91C4B}
254238
{C75F2BBE-7C84-4B01-9836-7279DAE41499} = {8BAC2322-AD3C-484A-B51D-8263BC4E6646}

dotnetv4/Bedrock-runtime/Models/MetaLlama/Llama2_InvokeModel/InvokeModel.cs

Lines changed: 0 additions & 64 deletions
This file was deleted.

dotnetv4/Bedrock-runtime/Models/MetaLlama/Llama2_InvokeModel/Llama2_InvokeModel.csproj

Lines changed: 0 additions & 12 deletions
This file was deleted.

dotnetv4/Bedrock-runtime/Models/MetaLlama/Llama2_InvokeModelWithResponseStream/InvokeModelWithResponseStream.cs

Lines changed: 0 additions & 66 deletions
This file was deleted.

dotnetv4/Bedrock-runtime/Models/MetaLlama/Llama2_InvokeModelWithResponseStream/Llama2_InvokeModelWithResponseStream.csproj

Lines changed: 0 additions & 12 deletions
This file was deleted.

dotnetv4/Bedrock-runtime/Tests/ActionTest_InvokeModelWithResponseStream.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ public class ActionTest_InvokeModelWithResponseStream
77
{
88
[Theory, Trait("Category", "Integration")]
99
[InlineData(typeof(Mistral.InvokeModelWithResponseStream))]
10-
[InlineData(typeof(MetaLlama2.InvokeModelWithResponseStream))]
1110
[InlineData(typeof(MetaLlama3.InvokeModelWithResponseStream))]
1211
[InlineData(typeof(CohereCommand.InvokeModelWithResponseStream))]
1312
[InlineData(typeof(CohereCommandR.InvokeModelWithResponseStream))]

dotnetv4/Bedrock-runtime/Tests/ActionTests_InvokeModel.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ public class ActionTest_InvokeModel
77
{
88
[Theory, Trait("Category", "Integration")]
99
[InlineData(typeof(Mistral.InvokeModel))]
10-
[InlineData(typeof(MetaLlama2.InvokeModel))]
1110
[InlineData(typeof(MetaLlama3.InvokeModel))]
1211
[InlineData(typeof(CohereCommand.InvokeModel))]
1312
[InlineData(typeof(CohereCommandR.InvokeModel))]

dotnetv4/Bedrock-runtime/Tests/BedrockRuntimeTests.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@
4545
<ProjectReference Include="..\Models\CohereCommand\Converse\Converse.csproj" />
4646
<ProjectReference Include="..\Models\MetaLlama\ConverseStream\ConverseStream.csproj" />
4747
<ProjectReference Include="..\Models\MetaLlama\Converse\Converse.csproj" />
48-
<ProjectReference Include="..\Models\MetaLlama\Llama2_InvokeModelWithResponseStream\Llama2_InvokeModelWithResponseStream.csproj" />
49-
<ProjectReference Include="..\Models\MetaLlama\Llama2_InvokeModel\Llama2_InvokeModel.csproj" />
5048
<ProjectReference Include="..\Models\MetaLlama\Llama3_InvokeModelWithResponseStream\Llama3_InvokeModelWithResponseStream.csproj" />
5149
<ProjectReference Include="..\Models\MetaLlama\Llama3_InvokeModel\Llama3_InvokeModel.csproj" />
5250
<ProjectReference Include="..\Models\Mistral\ConverseStream\ConverseStream.csproj" />

0 commit comments

Comments
 (0)