Skip to content

Commit 76832b0

Browse files
committed
docs: Use var in the AWS Emulator access examples
1 parent b1fab0e commit 76832b0

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎docs/modules/aws-emulator.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ To execute the tests, use the command `dotnet test` from a terminal.
4444
The emulator generates its credentials and its certificate during the startup. Read them after the container has started:
4545

4646
```csharp title="Gets the AWS Emulator connection string"
47-
string connectionString = _awsEmulatorContainer.GetConnectionString();
47+
var connectionString = _awsEmulatorContainer.GetConnectionString();
4848
```
4949

50-
```csharp title="Gets the AWS Emulator credentials"
51-
AwsEmulatorCredentials credentials = await _awsEmulatorContainer.GetCredentialsAsync();
50+
```csharp title="Gets the AWS Emulator certificate"
51+
var certificate = await _awsEmulatorContainer.GetCertificateAsync();
5252
```
5353

54-
```csharp title="Gets the AWS Emulator certificate"
55-
X509Certificate2 certificate = await _awsEmulatorContainer.GetCertificateAsync();
54+
```csharp title="Gets the AWS Emulator credentials"
55+
var credentials = await _awsEmulatorContainer.GetCredentialsAsync();
5656
```
5757

5858
The emulator rejects requests that are not signed with the generated credentials. The credentials are valid for the emulator instance only and cannot authenticate to AWS.

0 commit comments

Comments
 (0)