@aws-sdk/client-direct-connect 3.418.0 → 3.421.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +7 -13
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -28,22 +28,16 @@ using your favorite package manager:
28
28
 
29
29
  The AWS SDK is modulized by clients and commands.
30
30
  To send a request, you only need to import the `DirectConnectClient` and
31
- the commands you need, for example `AcceptDirectConnectGatewayAssociationProposalCommand`:
31
+ the commands you need, for example `ListVirtualInterfaceTestHistoryCommand`:
32
32
 
33
33
  ```js
34
34
  // ES5 example
35
- const {
36
- DirectConnectClient,
37
- AcceptDirectConnectGatewayAssociationProposalCommand,
38
- } = require("@aws-sdk/client-direct-connect");
35
+ const { DirectConnectClient, ListVirtualInterfaceTestHistoryCommand } = require("@aws-sdk/client-direct-connect");
39
36
  ```
40
37
 
41
38
  ```ts
42
39
  // ES6+ example
43
- import {
44
- DirectConnectClient,
45
- AcceptDirectConnectGatewayAssociationProposalCommand,
46
- } from "@aws-sdk/client-direct-connect";
40
+ import { DirectConnectClient, ListVirtualInterfaceTestHistoryCommand } from "@aws-sdk/client-direct-connect";
47
41
  ```
48
42
 
49
43
  ### Usage
@@ -62,7 +56,7 @@ const client = new DirectConnectClient({ region: "REGION" });
62
56
  const params = {
63
57
  /** input parameters */
64
58
  };
65
- const command = new AcceptDirectConnectGatewayAssociationProposalCommand(params);
59
+ const command = new ListVirtualInterfaceTestHistoryCommand(params);
66
60
  ```
67
61
 
68
62
  #### Async/await
@@ -141,7 +135,7 @@ const client = new AWS.DirectConnect({ region: "REGION" });
141
135
 
142
136
  // async/await.
143
137
  try {
144
- const data = await client.acceptDirectConnectGatewayAssociationProposal(params);
138
+ const data = await client.listVirtualInterfaceTestHistory(params);
145
139
  // process data.
146
140
  } catch (error) {
147
141
  // error handling.
@@ -149,7 +143,7 @@ try {
149
143
 
150
144
  // Promises.
151
145
  client
152
- .acceptDirectConnectGatewayAssociationProposal(params)
146
+ .listVirtualInterfaceTestHistory(params)
153
147
  .then((data) => {
154
148
  // process data.
155
149
  })
@@ -158,7 +152,7 @@ client
158
152
  });
159
153
 
160
154
  // callbacks.
161
- client.acceptDirectConnectGatewayAssociationProposal(params, (err, data) => {
155
+ client.listVirtualInterfaceTestHistory(params, (err, data) => {
162
156
  // process err and data.
163
157
  });
164
158
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-direct-connect",
3
3
  "description": "AWS SDK for JavaScript Direct Connect Client for Node.js, Browser and React Native",
4
- "version": "3.418.0",
4
+ "version": "3.421.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,8 +21,8 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.418.0",
25
- "@aws-sdk/credential-provider-node": "3.418.0",
24
+ "@aws-sdk/client-sts": "3.421.0",
25
+ "@aws-sdk/credential-provider-node": "3.421.0",
26
26
  "@aws-sdk/middleware-host-header": "3.418.0",
27
27
  "@aws-sdk/middleware-logger": "3.418.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.418.0",