@aws-sdk/client-appintegrations 3.420.0 → 3.423.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.
- package/README.md +7 -7
- package/dist-types/commands/CreateApplicationCommand.d.ts +24 -0
- package/dist-types/commands/GetApplicationCommand.d.ts +23 -0
- package/dist-types/commands/ListApplicationsCommand.d.ts +24 -0
- package/dist-types/commands/UpdateApplicationCommand.d.ts +12 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -29,16 +29,16 @@ using your favorite package manager:
|
|
|
29
29
|
|
|
30
30
|
The AWS SDK is modulized by clients and commands.
|
|
31
31
|
To send a request, you only need to import the `AppIntegrationsClient` and
|
|
32
|
-
the commands you need, for example `
|
|
32
|
+
the commands you need, for example `ListApplicationsCommand`:
|
|
33
33
|
|
|
34
34
|
```js
|
|
35
35
|
// ES5 example
|
|
36
|
-
const { AppIntegrationsClient,
|
|
36
|
+
const { AppIntegrationsClient, ListApplicationsCommand } = require("@aws-sdk/client-appintegrations");
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
```ts
|
|
40
40
|
// ES6+ example
|
|
41
|
-
import { AppIntegrationsClient,
|
|
41
|
+
import { AppIntegrationsClient, ListApplicationsCommand } from "@aws-sdk/client-appintegrations";
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
### Usage
|
|
@@ -57,7 +57,7 @@ const client = new AppIntegrationsClient({ region: "REGION" });
|
|
|
57
57
|
const params = {
|
|
58
58
|
/** input parameters */
|
|
59
59
|
};
|
|
60
|
-
const command = new
|
|
60
|
+
const command = new ListApplicationsCommand(params);
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
#### Async/await
|
|
@@ -136,7 +136,7 @@ const client = new AWS.AppIntegrations({ region: "REGION" });
|
|
|
136
136
|
|
|
137
137
|
// async/await.
|
|
138
138
|
try {
|
|
139
|
-
const data = await client.
|
|
139
|
+
const data = await client.listApplications(params);
|
|
140
140
|
// process data.
|
|
141
141
|
} catch (error) {
|
|
142
142
|
// error handling.
|
|
@@ -144,7 +144,7 @@ try {
|
|
|
144
144
|
|
|
145
145
|
// Promises.
|
|
146
146
|
client
|
|
147
|
-
.
|
|
147
|
+
.listApplications(params)
|
|
148
148
|
.then((data) => {
|
|
149
149
|
// process data.
|
|
150
150
|
})
|
|
@@ -153,7 +153,7 @@ client
|
|
|
153
153
|
});
|
|
154
154
|
|
|
155
155
|
// callbacks.
|
|
156
|
-
client.
|
|
156
|
+
client.listApplications(params, (err, data) => {
|
|
157
157
|
// process err and data.
|
|
158
158
|
});
|
|
159
159
|
```
|
|
@@ -97,6 +97,30 @@ export interface CreateApplicationCommandOutput extends CreateApplicationRespons
|
|
|
97
97
|
* @throws {@link AppIntegrationsServiceException}
|
|
98
98
|
* <p>Base exception class for all service exceptions from AppIntegrations service.</p>
|
|
99
99
|
*
|
|
100
|
+
* @example To create an application
|
|
101
|
+
* ```javascript
|
|
102
|
+
* // The following creates an application named My Application with access url https://example.com.
|
|
103
|
+
* const input = {
|
|
104
|
+
* "ApplicationSourceConfig": {
|
|
105
|
+
* "ExternalUrlConfig": {
|
|
106
|
+
* "AccessUrl": "https://example.com"
|
|
107
|
+
* }
|
|
108
|
+
* },
|
|
109
|
+
* "Description": "My first application.",
|
|
110
|
+
* "Name": "My Application",
|
|
111
|
+
* "Namespace": "myapplication"
|
|
112
|
+
* };
|
|
113
|
+
* const command = new CreateApplicationCommand(input);
|
|
114
|
+
* const response = await client.send(command);
|
|
115
|
+
* /* response ==
|
|
116
|
+
* {
|
|
117
|
+
* "Arn": "arn:aws:app-integrations:us-west-2:0123456789012:application/98542c53-e8ac-4570-9c85-c6552c8d9c5e",
|
|
118
|
+
* "Id": "98542c53-e8ac-4570-9c85-c6552c8d9c5e"
|
|
119
|
+
* }
|
|
120
|
+
* *\/
|
|
121
|
+
* // example id: create-an-application
|
|
122
|
+
* ```
|
|
123
|
+
*
|
|
100
124
|
*/
|
|
101
125
|
export declare class CreateApplicationCommand extends $Command<CreateApplicationCommandInput, CreateApplicationCommandOutput, AppIntegrationsClientResolvedConfig> {
|
|
102
126
|
readonly input: CreateApplicationCommandInput;
|
|
@@ -96,6 +96,29 @@ export interface GetApplicationCommandOutput extends GetApplicationResponse, __M
|
|
|
96
96
|
* @throws {@link AppIntegrationsServiceException}
|
|
97
97
|
* <p>Base exception class for all service exceptions from AppIntegrations service.</p>
|
|
98
98
|
*
|
|
99
|
+
* @example To get an application
|
|
100
|
+
* ```javascript
|
|
101
|
+
* // The following retrives an application.
|
|
102
|
+
* const input = {
|
|
103
|
+
* "Arn": "arn:aws:app-integrations:us-west-2:0123456789012:application/98542c53-e8ac-4570-9c85-c6552c8d9c5e"
|
|
104
|
+
* };
|
|
105
|
+
* const command = new GetApplicationCommand(input);
|
|
106
|
+
* const response = await client.send(command);
|
|
107
|
+
* /* response ==
|
|
108
|
+
* {
|
|
109
|
+
* "ApplicationSourceConfig": {
|
|
110
|
+
* "ExternalUrlConfig": {
|
|
111
|
+
* "AccessUrl": "https://example.com"
|
|
112
|
+
* }
|
|
113
|
+
* },
|
|
114
|
+
* "Description": "My first application.",
|
|
115
|
+
* "Name": "My Application",
|
|
116
|
+
* "Namespace": "myapplication"
|
|
117
|
+
* }
|
|
118
|
+
* *\/
|
|
119
|
+
* // example id: get-an-application
|
|
120
|
+
* ```
|
|
121
|
+
*
|
|
99
122
|
*/
|
|
100
123
|
export declare class GetApplicationCommand extends $Command<GetApplicationCommandInput, GetApplicationCommandOutput, AppIntegrationsClientResolvedConfig> {
|
|
101
124
|
readonly input: GetApplicationCommandInput;
|
|
@@ -74,6 +74,30 @@ export interface ListApplicationsCommandOutput extends ListApplicationsResponse,
|
|
|
74
74
|
* @throws {@link AppIntegrationsServiceException}
|
|
75
75
|
* <p>Base exception class for all service exceptions from AppIntegrations service.</p>
|
|
76
76
|
*
|
|
77
|
+
* @example To list applications in the account
|
|
78
|
+
* ```javascript
|
|
79
|
+
* // The following lists application summary in the account.
|
|
80
|
+
* const input = {
|
|
81
|
+
* "MaxResults": 1
|
|
82
|
+
* };
|
|
83
|
+
* const command = new ListApplicationsCommand(input);
|
|
84
|
+
* const response = await client.send(command);
|
|
85
|
+
* /* response ==
|
|
86
|
+
* {
|
|
87
|
+
* "Applications": [
|
|
88
|
+
* {
|
|
89
|
+
* "Arn": "arn:aws:app-integrations:us-west-2:0123456789012:application/98542c53-e8ac-4570-9c85-c6552c8d9c5e",
|
|
90
|
+
* "Id": "98542c53-e8ac-4570-9c85-c6552c8d9c5e",
|
|
91
|
+
* "Name": "My Application",
|
|
92
|
+
* "Namespace": "myapplication"
|
|
93
|
+
* }
|
|
94
|
+
* ],
|
|
95
|
+
* "NextToken": "abc"
|
|
96
|
+
* }
|
|
97
|
+
* *\/
|
|
98
|
+
* // example id: list-applications
|
|
99
|
+
* ```
|
|
100
|
+
*
|
|
77
101
|
*/
|
|
78
102
|
export declare class ListApplicationsCommand extends $Command<ListApplicationsCommandInput, ListApplicationsCommandOutput, AppIntegrationsClientResolvedConfig> {
|
|
79
103
|
readonly input: ListApplicationsCommandInput;
|
|
@@ -87,6 +87,18 @@ export interface UpdateApplicationCommandOutput extends UpdateApplicationRespons
|
|
|
87
87
|
* @throws {@link AppIntegrationsServiceException}
|
|
88
88
|
* <p>Base exception class for all service exceptions from AppIntegrations service.</p>
|
|
89
89
|
*
|
|
90
|
+
* @example To update an application
|
|
91
|
+
* ```javascript
|
|
92
|
+
* // The following updates an existing application named with a new name.
|
|
93
|
+
* const input = {
|
|
94
|
+
* "Arn": "arn:aws:app-integrations:us-west-2:0123456789012:application/98542c53-e8ac-4570-9c85-c6552c8d9c5e",
|
|
95
|
+
* "Name": "My New Application Name"
|
|
96
|
+
* };
|
|
97
|
+
* const command = new UpdateApplicationCommand(input);
|
|
98
|
+
* await client.send(command);
|
|
99
|
+
* // example id: update-an-application
|
|
100
|
+
* ```
|
|
101
|
+
*
|
|
90
102
|
*/
|
|
91
103
|
export declare class UpdateApplicationCommand extends $Command<UpdateApplicationCommandInput, UpdateApplicationCommandOutput, AppIntegrationsClientResolvedConfig> {
|
|
92
104
|
readonly input: UpdateApplicationCommandInput;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-appintegrations",
|
|
3
3
|
"description": "AWS SDK for JavaScript Appintegrations Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.423.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.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.423.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.423.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",
|