@@ -19,16 +19,16 @@ using your favorite package manager:
19
19
20
20
The AWS SDK is modulized by clients and commands.
21
21
To send a request, you only need to import the ` CodeWhispererStreamingClient ` and
22
- the commands you need, for example ` ExportResultArchiveCommand ` :
22
+ the commands you need, for example ` ConverseStreamCommand ` :
23
23
24
24
``` js
25
25
// ES5 example
26
- const { CodeWhispererStreamingClient , ExportResultArchiveCommand } = require (" @amzn/codewhisperer-streaming" );
26
+ const { CodeWhispererStreamingClient , ConverseStreamCommand } = require (" @amzn/codewhisperer-streaming" );
27
27
```
28
28
29
29
``` ts
30
30
// ES6+ example
31
- import { CodeWhispererStreamingClient , ExportResultArchiveCommand } from " @amzn/codewhisperer-streaming" ;
31
+ import { CodeWhispererStreamingClient , ConverseStreamCommand } from " @amzn/codewhisperer-streaming" ;
32
32
```
33
33
34
34
### Usage
@@ -45,7 +45,7 @@ To send a request, you:
45
45
const client = new CodeWhispererStreamingClient ({ region: " REGION" });
46
46
47
47
const params = { /** input parameters */ };
48
- const command = new ExportResultArchiveCommand (params);
48
+ const command = new ConverseStreamCommand (params);
49
49
```
50
50
51
51
#### Async/await
@@ -124,15 +124,15 @@ const client = new AWS.CodeWhispererStreaming({ region: "REGION" });
124
124
125
125
// async/await.
126
126
try {
127
- const data = await client .exportResultArchive (params );
127
+ const data = await client .converseStream (params );
128
128
// process data.
129
129
} catch (error ) {
130
130
// error handling.
131
131
}
132
132
133
133
// Promises.
134
134
client
135
- .exportResultArchive (params )
135
+ .converseStream (params )
136
136
.then ((data ) => {
137
137
// process data.
138
138
})
@@ -141,7 +141,7 @@ client
141
141
});
142
142
143
143
// callbacks.
144
- client .exportResultArchive (params , (err , data ) => {
144
+ client .converseStream (params , (err , data ) => {
145
145
// process err and data.
146
146
});
147
147
```
@@ -560,3 +560,17 @@ UpdateTroubleshootingCommandResult
560
560
561
561
[ Command API Reference] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/updatetroubleshootingcommandresultcommand.html ) / [ Input] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/updatetroubleshootingcommandresultcommandinput.html ) / [ Output] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/updatetroubleshootingcommandresultcommandoutput.html )
562
562
</details >
563
+ <details >
564
+ <summary >
565
+ ConverseStream
566
+ </summary >
567
+
568
+ [ Command API Reference] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/conversestreamcommand.html ) / [ Input] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/conversestreamcommandinput.html ) / [ Output] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/conversestreamcommandoutput.html )
569
+ </details >
570
+ <details >
571
+ <summary >
572
+ GenerateInfrastructureCode
573
+ </summary >
574
+
575
+ [ Command API Reference] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/classes/generateinfrastructurecodecommand.html ) / [ Input] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/generateinfrastructurecodecommandinput.html ) / [ Output] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codewhispererstreaming/interfaces/generateinfrastructurecodecommandoutput.html )
576
+ </details >
0 commit comments