@aws-sdk/client-license-manager-linux-subscriptions 3.315.0 → 3.316.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.
|
@@ -1,67 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LicenseManagerLinuxSubscriptions = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const GetServiceSettingsCommand_1 = require("./commands/GetServiceSettingsCommand");
|
|
5
6
|
const ListLinuxSubscriptionInstancesCommand_1 = require("./commands/ListLinuxSubscriptionInstancesCommand");
|
|
6
7
|
const ListLinuxSubscriptionsCommand_1 = require("./commands/ListLinuxSubscriptionsCommand");
|
|
7
8
|
const UpdateServiceSettingsCommand_1 = require("./commands/UpdateServiceSettingsCommand");
|
|
8
9
|
const LicenseManagerLinuxSubscriptionsClient_1 = require("./LicenseManagerLinuxSubscriptionsClient");
|
|
10
|
+
const commands = {
|
|
11
|
+
GetServiceSettingsCommand: GetServiceSettingsCommand_1.GetServiceSettingsCommand,
|
|
12
|
+
ListLinuxSubscriptionInstancesCommand: ListLinuxSubscriptionInstancesCommand_1.ListLinuxSubscriptionInstancesCommand,
|
|
13
|
+
ListLinuxSubscriptionsCommand: ListLinuxSubscriptionsCommand_1.ListLinuxSubscriptionsCommand,
|
|
14
|
+
UpdateServiceSettingsCommand: UpdateServiceSettingsCommand_1.UpdateServiceSettingsCommand,
|
|
15
|
+
};
|
|
9
16
|
class LicenseManagerLinuxSubscriptions extends LicenseManagerLinuxSubscriptionsClient_1.LicenseManagerLinuxSubscriptionsClient {
|
|
10
|
-
getServiceSettings(args, optionsOrCb, cb) {
|
|
11
|
-
const command = new GetServiceSettingsCommand_1.GetServiceSettingsCommand(args);
|
|
12
|
-
if (typeof optionsOrCb === "function") {
|
|
13
|
-
this.send(command, optionsOrCb);
|
|
14
|
-
}
|
|
15
|
-
else if (typeof cb === "function") {
|
|
16
|
-
if (typeof optionsOrCb !== "object")
|
|
17
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
18
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
return this.send(command, optionsOrCb);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
listLinuxSubscriptionInstances(args, optionsOrCb, cb) {
|
|
25
|
-
const command = new ListLinuxSubscriptionInstancesCommand_1.ListLinuxSubscriptionInstancesCommand(args);
|
|
26
|
-
if (typeof optionsOrCb === "function") {
|
|
27
|
-
this.send(command, optionsOrCb);
|
|
28
|
-
}
|
|
29
|
-
else if (typeof cb === "function") {
|
|
30
|
-
if (typeof optionsOrCb !== "object")
|
|
31
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
32
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
return this.send(command, optionsOrCb);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
listLinuxSubscriptions(args, optionsOrCb, cb) {
|
|
39
|
-
const command = new ListLinuxSubscriptionsCommand_1.ListLinuxSubscriptionsCommand(args);
|
|
40
|
-
if (typeof optionsOrCb === "function") {
|
|
41
|
-
this.send(command, optionsOrCb);
|
|
42
|
-
}
|
|
43
|
-
else if (typeof cb === "function") {
|
|
44
|
-
if (typeof optionsOrCb !== "object")
|
|
45
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
46
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
return this.send(command, optionsOrCb);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
updateServiceSettings(args, optionsOrCb, cb) {
|
|
53
|
-
const command = new UpdateServiceSettingsCommand_1.UpdateServiceSettingsCommand(args);
|
|
54
|
-
if (typeof optionsOrCb === "function") {
|
|
55
|
-
this.send(command, optionsOrCb);
|
|
56
|
-
}
|
|
57
|
-
else if (typeof cb === "function") {
|
|
58
|
-
if (typeof optionsOrCb !== "object")
|
|
59
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
60
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
return this.send(command, optionsOrCb);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
17
|
}
|
|
67
18
|
exports.LicenseManagerLinuxSubscriptions = LicenseManagerLinuxSubscriptions;
|
|
19
|
+
(0, smithy_client_1.createAggregatedClient)(commands, LicenseManagerLinuxSubscriptions);
|
|
@@ -1,63 +1,15 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { GetServiceSettingsCommand, } from "./commands/GetServiceSettingsCommand";
|
|
2
3
|
import { ListLinuxSubscriptionInstancesCommand, } from "./commands/ListLinuxSubscriptionInstancesCommand";
|
|
3
4
|
import { ListLinuxSubscriptionsCommand, } from "./commands/ListLinuxSubscriptionsCommand";
|
|
4
5
|
import { UpdateServiceSettingsCommand, } from "./commands/UpdateServiceSettingsCommand";
|
|
5
|
-
import { LicenseManagerLinuxSubscriptionsClient } from "./LicenseManagerLinuxSubscriptionsClient";
|
|
6
|
+
import { LicenseManagerLinuxSubscriptionsClient, } from "./LicenseManagerLinuxSubscriptionsClient";
|
|
7
|
+
const commands = {
|
|
8
|
+
GetServiceSettingsCommand,
|
|
9
|
+
ListLinuxSubscriptionInstancesCommand,
|
|
10
|
+
ListLinuxSubscriptionsCommand,
|
|
11
|
+
UpdateServiceSettingsCommand,
|
|
12
|
+
};
|
|
6
13
|
export class LicenseManagerLinuxSubscriptions extends LicenseManagerLinuxSubscriptionsClient {
|
|
7
|
-
getServiceSettings(args, optionsOrCb, cb) {
|
|
8
|
-
const command = new GetServiceSettingsCommand(args);
|
|
9
|
-
if (typeof optionsOrCb === "function") {
|
|
10
|
-
this.send(command, optionsOrCb);
|
|
11
|
-
}
|
|
12
|
-
else if (typeof cb === "function") {
|
|
13
|
-
if (typeof optionsOrCb !== "object")
|
|
14
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
15
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
return this.send(command, optionsOrCb);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
listLinuxSubscriptionInstances(args, optionsOrCb, cb) {
|
|
22
|
-
const command = new ListLinuxSubscriptionInstancesCommand(args);
|
|
23
|
-
if (typeof optionsOrCb === "function") {
|
|
24
|
-
this.send(command, optionsOrCb);
|
|
25
|
-
}
|
|
26
|
-
else if (typeof cb === "function") {
|
|
27
|
-
if (typeof optionsOrCb !== "object")
|
|
28
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
29
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
return this.send(command, optionsOrCb);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
listLinuxSubscriptions(args, optionsOrCb, cb) {
|
|
36
|
-
const command = new ListLinuxSubscriptionsCommand(args);
|
|
37
|
-
if (typeof optionsOrCb === "function") {
|
|
38
|
-
this.send(command, optionsOrCb);
|
|
39
|
-
}
|
|
40
|
-
else if (typeof cb === "function") {
|
|
41
|
-
if (typeof optionsOrCb !== "object")
|
|
42
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
43
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
return this.send(command, optionsOrCb);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
updateServiceSettings(args, optionsOrCb, cb) {
|
|
50
|
-
const command = new UpdateServiceSettingsCommand(args);
|
|
51
|
-
if (typeof optionsOrCb === "function") {
|
|
52
|
-
this.send(command, optionsOrCb);
|
|
53
|
-
}
|
|
54
|
-
else if (typeof cb === "function") {
|
|
55
|
-
if (typeof optionsOrCb !== "object")
|
|
56
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
57
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
return this.send(command, optionsOrCb);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
14
|
}
|
|
15
|
+
createAggregatedClient(commands, LicenseManagerLinuxSubscriptions);
|
|
@@ -4,41 +4,36 @@ import { ListLinuxSubscriptionInstancesCommandInput, ListLinuxSubscriptionInstan
|
|
|
4
4
|
import { ListLinuxSubscriptionsCommandInput, ListLinuxSubscriptionsCommandOutput } from "./commands/ListLinuxSubscriptionsCommand";
|
|
5
5
|
import { UpdateServiceSettingsCommandInput, UpdateServiceSettingsCommandOutput } from "./commands/UpdateServiceSettingsCommand";
|
|
6
6
|
import { LicenseManagerLinuxSubscriptionsClient } from "./LicenseManagerLinuxSubscriptionsClient";
|
|
7
|
-
|
|
8
|
-
* @public
|
|
9
|
-
* <p>With License Manager, you can discover and track your commercial Linux subscriptions on running
|
|
10
|
-
* Amazon EC2 instances.</p>
|
|
11
|
-
*/
|
|
12
|
-
export declare class LicenseManagerLinuxSubscriptions extends LicenseManagerLinuxSubscriptionsClient {
|
|
7
|
+
export interface LicenseManagerLinuxSubscriptions {
|
|
13
8
|
/**
|
|
14
|
-
* @
|
|
15
|
-
* <p>Lists the Linux subscriptions service settings.</p>
|
|
9
|
+
* @see {@link GetServiceSettingsCommand}
|
|
16
10
|
*/
|
|
17
11
|
getServiceSettings(args: GetServiceSettingsCommandInput, options?: __HttpHandlerOptions): Promise<GetServiceSettingsCommandOutput>;
|
|
18
12
|
getServiceSettings(args: GetServiceSettingsCommandInput, cb: (err: any, data?: GetServiceSettingsCommandOutput) => void): void;
|
|
19
13
|
getServiceSettings(args: GetServiceSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetServiceSettingsCommandOutput) => void): void;
|
|
20
14
|
/**
|
|
21
|
-
* @
|
|
22
|
-
* <p>Lists the running Amazon EC2 instances that were discovered with commercial Linux
|
|
23
|
-
* subscriptions.</p>
|
|
15
|
+
* @see {@link ListLinuxSubscriptionInstancesCommand}
|
|
24
16
|
*/
|
|
25
17
|
listLinuxSubscriptionInstances(args: ListLinuxSubscriptionInstancesCommandInput, options?: __HttpHandlerOptions): Promise<ListLinuxSubscriptionInstancesCommandOutput>;
|
|
26
18
|
listLinuxSubscriptionInstances(args: ListLinuxSubscriptionInstancesCommandInput, cb: (err: any, data?: ListLinuxSubscriptionInstancesCommandOutput) => void): void;
|
|
27
19
|
listLinuxSubscriptionInstances(args: ListLinuxSubscriptionInstancesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLinuxSubscriptionInstancesCommandOutput) => void): void;
|
|
28
20
|
/**
|
|
29
|
-
* @
|
|
30
|
-
* <p>Lists the Linux subscriptions that have been discovered. If you have linked your
|
|
31
|
-
* organization, the returned results will include data aggregated across your accounts in
|
|
32
|
-
* Organizations.</p>
|
|
21
|
+
* @see {@link ListLinuxSubscriptionsCommand}
|
|
33
22
|
*/
|
|
34
23
|
listLinuxSubscriptions(args: ListLinuxSubscriptionsCommandInput, options?: __HttpHandlerOptions): Promise<ListLinuxSubscriptionsCommandOutput>;
|
|
35
24
|
listLinuxSubscriptions(args: ListLinuxSubscriptionsCommandInput, cb: (err: any, data?: ListLinuxSubscriptionsCommandOutput) => void): void;
|
|
36
25
|
listLinuxSubscriptions(args: ListLinuxSubscriptionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLinuxSubscriptionsCommandOutput) => void): void;
|
|
37
26
|
/**
|
|
38
|
-
* @
|
|
39
|
-
* <p>Updates the service settings for Linux subscriptions.</p>
|
|
27
|
+
* @see {@link UpdateServiceSettingsCommand}
|
|
40
28
|
*/
|
|
41
29
|
updateServiceSettings(args: UpdateServiceSettingsCommandInput, options?: __HttpHandlerOptions): Promise<UpdateServiceSettingsCommandOutput>;
|
|
42
30
|
updateServiceSettings(args: UpdateServiceSettingsCommandInput, cb: (err: any, data?: UpdateServiceSettingsCommandOutput) => void): void;
|
|
43
31
|
updateServiceSettings(args: UpdateServiceSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateServiceSettingsCommandOutput) => void): void;
|
|
44
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* @public
|
|
35
|
+
* <p>With License Manager, you can discover and track your commercial Linux subscriptions on running
|
|
36
|
+
* Amazon EC2 instances.</p>
|
|
37
|
+
*/
|
|
38
|
+
export declare class LicenseManagerLinuxSubscriptions extends LicenseManagerLinuxSubscriptionsClient implements LicenseManagerLinuxSubscriptions {
|
|
39
|
+
}
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
UpdateServiceSettingsCommandOutput,
|
|
17
17
|
} from "./commands/UpdateServiceSettingsCommand";
|
|
18
18
|
import { LicenseManagerLinuxSubscriptionsClient } from "./LicenseManagerLinuxSubscriptionsClient";
|
|
19
|
-
export
|
|
19
|
+
export interface LicenseManagerLinuxSubscriptions {
|
|
20
20
|
getServiceSettings(
|
|
21
21
|
args: GetServiceSettingsCommandInput,
|
|
22
22
|
options?: __HttpHandlerOptions
|
|
@@ -70,3 +70,6 @@ export declare class LicenseManagerLinuxSubscriptions extends LicenseManagerLinu
|
|
|
70
70
|
cb: (err: any, data?: UpdateServiceSettingsCommandOutput) => void
|
|
71
71
|
): void;
|
|
72
72
|
}
|
|
73
|
+
export declare class LicenseManagerLinuxSubscriptions
|
|
74
|
+
extends LicenseManagerLinuxSubscriptionsClient
|
|
75
|
+
implements LicenseManagerLinuxSubscriptions {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-license-manager-linux-subscriptions",
|
|
3
3
|
"description": "AWS SDK for JavaScript License Manager Linux Subscriptions Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.316.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,9 +21,9 @@
|
|
|
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.
|
|
24
|
+
"@aws-sdk/client-sts": "3.316.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|