@aws-sdk/client-license-manager-linux-subscriptions 3.236.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/LICENSE +201 -0
- package/README.md +212 -0
- package/dist-cjs/LicenseManagerLinuxSubscriptions.js +67 -0
- package/dist-cjs/LicenseManagerLinuxSubscriptionsClient.js +40 -0
- package/dist-cjs/commands/GetServiceSettingsCommand.js +46 -0
- package/dist-cjs/commands/ListLinuxSubscriptionInstancesCommand.js +46 -0
- package/dist-cjs/commands/ListLinuxSubscriptionsCommand.js +46 -0
- package/dist-cjs/commands/UpdateServiceSettingsCommand.js +46 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/LicenseManagerLinuxSubscriptionsServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +114 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListLinuxSubscriptionInstancesPaginator.js +36 -0
- package/dist-cjs/pagination/ListLinuxSubscriptionsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_restJson1.js +494 -0
- package/dist-cjs/runtimeConfig.browser.js +42 -0
- package/dist-cjs/runtimeConfig.js +51 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +18 -0
- package/dist-es/LicenseManagerLinuxSubscriptions.js +63 -0
- package/dist-es/LicenseManagerLinuxSubscriptionsClient.js +36 -0
- package/dist-es/commands/GetServiceSettingsCommand.js +42 -0
- package/dist-es/commands/ListLinuxSubscriptionInstancesCommand.js +42 -0
- package/dist-es/commands/ListLinuxSubscriptionsCommand.js +42 -0
- package/dist-es/commands/UpdateServiceSettingsCommand.js +42 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/LicenseManagerLinuxSubscriptionsServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +96 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListLinuxSubscriptionInstancesPaginator.js +32 -0
- package/dist-es/pagination/ListLinuxSubscriptionsPaginator.js +32 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +483 -0
- package/dist-es/runtimeConfig.browser.js +37 -0
- package/dist-es/runtimeConfig.js +46 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +14 -0
- package/dist-types/LicenseManagerLinuxSubscriptions.d.ts +39 -0
- package/dist-types/LicenseManagerLinuxSubscriptionsClient.d.ts +146 -0
- package/dist-types/commands/GetServiceSettingsCommand.d.ts +37 -0
- package/dist-types/commands/ListLinuxSubscriptionInstancesCommand.d.ts +38 -0
- package/dist-types/commands/ListLinuxSubscriptionsCommand.d.ts +39 -0
- package/dist-types/commands/UpdateServiceSettingsCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/LicenseManagerLinuxSubscriptionsServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +448 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListLinuxSubscriptionInstancesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListLinuxSubscriptionsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +14 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +16 -0
- package/dist-types/ts3.4/LicenseManagerLinuxSubscriptions.d.ts +72 -0
- package/dist-types/ts3.4/LicenseManagerLinuxSubscriptionsClient.d.ts +136 -0
- package/dist-types/ts3.4/commands/GetServiceSettingsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListLinuxSubscriptionInstancesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListLinuxSubscriptionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateServiceSettingsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/LicenseManagerLinuxSubscriptionsServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +138 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +9 -0
- package/dist-types/ts3.4/pagination/ListLinuxSubscriptionInstancesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListLinuxSubscriptionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +53 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +82 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +18 -0
- package/package.json +102 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { GetServiceSettingsCommand, } from "./commands/GetServiceSettingsCommand";
|
|
2
|
+
import { ListLinuxSubscriptionInstancesCommand, } from "./commands/ListLinuxSubscriptionInstancesCommand";
|
|
3
|
+
import { ListLinuxSubscriptionsCommand, } from "./commands/ListLinuxSubscriptionsCommand";
|
|
4
|
+
import { UpdateServiceSettingsCommand, } from "./commands/UpdateServiceSettingsCommand";
|
|
5
|
+
import { LicenseManagerLinuxSubscriptionsClient } from "./LicenseManagerLinuxSubscriptionsClient";
|
|
6
|
+
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
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { resolveRegionConfig } from "@aws-sdk/config-resolver";
|
|
2
|
+
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
|
+
import { resolveEndpointConfig } from "@aws-sdk/middleware-endpoint";
|
|
4
|
+
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
5
|
+
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
6
|
+
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
7
|
+
import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
8
|
+
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
9
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
|
+
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
12
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
13
|
+
export class LicenseManagerLinuxSubscriptionsClient extends __Client {
|
|
14
|
+
constructor(configuration) {
|
|
15
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
16
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
17
|
+
const _config_2 = resolveRegionConfig(_config_1);
|
|
18
|
+
const _config_3 = resolveEndpointConfig(_config_2);
|
|
19
|
+
const _config_4 = resolveRetryConfig(_config_3);
|
|
20
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
21
|
+
const _config_6 = resolveAwsAuthConfig(_config_5);
|
|
22
|
+
const _config_7 = resolveUserAgentConfig(_config_6);
|
|
23
|
+
super(_config_7);
|
|
24
|
+
this.config = _config_7;
|
|
25
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
26
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
27
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
29
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
30
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
31
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
32
|
+
}
|
|
33
|
+
destroy() {
|
|
34
|
+
super.destroy();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetServiceSettingsRequestFilterSensitiveLog, GetServiceSettingsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetServiceSettingsCommand, serializeAws_restJson1GetServiceSettingsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class GetServiceSettingsCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetServiceSettingsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "LicenseManagerLinuxSubscriptionsClient";
|
|
25
|
+
const commandName = "GetServiceSettingsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: GetServiceSettingsRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: GetServiceSettingsResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1GetServiceSettingsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1GetServiceSettingsCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListLinuxSubscriptionInstancesRequestFilterSensitiveLog, ListLinuxSubscriptionInstancesResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListLinuxSubscriptionInstancesCommand, serializeAws_restJson1ListLinuxSubscriptionInstancesCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class ListLinuxSubscriptionInstancesCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListLinuxSubscriptionInstancesCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "LicenseManagerLinuxSubscriptionsClient";
|
|
25
|
+
const commandName = "ListLinuxSubscriptionInstancesCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ListLinuxSubscriptionInstancesRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ListLinuxSubscriptionInstancesResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1ListLinuxSubscriptionInstancesCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1ListLinuxSubscriptionInstancesCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListLinuxSubscriptionsRequestFilterSensitiveLog, ListLinuxSubscriptionsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListLinuxSubscriptionsCommand, serializeAws_restJson1ListLinuxSubscriptionsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class ListLinuxSubscriptionsCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListLinuxSubscriptionsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "LicenseManagerLinuxSubscriptionsClient";
|
|
25
|
+
const commandName = "ListLinuxSubscriptionsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ListLinuxSubscriptionsRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ListLinuxSubscriptionsResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1ListLinuxSubscriptionsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1ListLinuxSubscriptionsCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { UpdateServiceSettingsRequestFilterSensitiveLog, UpdateServiceSettingsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1UpdateServiceSettingsCommand, serializeAws_restJson1UpdateServiceSettingsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class UpdateServiceSettingsCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateServiceSettingsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "LicenseManagerLinuxSubscriptionsClient";
|
|
25
|
+
const commandName = "UpdateServiceSettingsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: UpdateServiceSettingsRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: UpdateServiceSettingsResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1UpdateServiceSettingsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1UpdateServiceSettingsCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
+
return {
|
|
3
|
+
...options,
|
|
4
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
5
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
6
|
+
defaultSigningName: "license-manager-linux-subscriptions",
|
|
7
|
+
};
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { resolveEndpoint } from "@aws-sdk/util-endpoints";
|
|
2
|
+
import { ruleSet } from "./ruleset";
|
|
3
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
4
|
+
return resolveEndpoint(ruleSet, {
|
|
5
|
+
endpointParams: endpointParams,
|
|
6
|
+
logger: context.logger,
|
|
7
|
+
});
|
|
8
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const q = "fn", r = "argv", s = "ref";
|
|
2
|
+
const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://license-manager-linux-subscriptions-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ endpoint: { url: "https://license-manager-linux-subscriptions-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://license-manager-linux-subscriptions.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://license-manager-linux-subscriptions.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
|
|
4
|
+
export const ruleSet = _data;
|
package/dist-es/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from "./LicenseManagerLinuxSubscriptions";
|
|
2
|
+
export * from "./LicenseManagerLinuxSubscriptionsClient";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./models";
|
|
5
|
+
export * from "./pagination";
|
|
6
|
+
export { LicenseManagerLinuxSubscriptionsServiceException } from "./models/LicenseManagerLinuxSubscriptionsServiceException";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
2
|
+
export class LicenseManagerLinuxSubscriptionsServiceException extends __ServiceException {
|
|
3
|
+
constructor(options) {
|
|
4
|
+
super(options);
|
|
5
|
+
Object.setPrototypeOf(this, LicenseManagerLinuxSubscriptionsServiceException.prototype);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { LicenseManagerLinuxSubscriptionsServiceException as __BaseException } from "./LicenseManagerLinuxSubscriptionsServiceException";
|
|
2
|
+
export var Operator;
|
|
3
|
+
(function (Operator) {
|
|
4
|
+
Operator["CONTAINS"] = "Contains";
|
|
5
|
+
Operator["EQUAL"] = "Equal";
|
|
6
|
+
Operator["NOT_EQUAL"] = "NotEqual";
|
|
7
|
+
})(Operator || (Operator = {}));
|
|
8
|
+
export var LinuxSubscriptionsDiscovery;
|
|
9
|
+
(function (LinuxSubscriptionsDiscovery) {
|
|
10
|
+
LinuxSubscriptionsDiscovery["Disabled"] = "Disabled";
|
|
11
|
+
LinuxSubscriptionsDiscovery["Enabled"] = "Enabled";
|
|
12
|
+
})(LinuxSubscriptionsDiscovery || (LinuxSubscriptionsDiscovery = {}));
|
|
13
|
+
export var OrganizationIntegration;
|
|
14
|
+
(function (OrganizationIntegration) {
|
|
15
|
+
OrganizationIntegration["Disabled"] = "Disabled";
|
|
16
|
+
OrganizationIntegration["Enabled"] = "Enabled";
|
|
17
|
+
})(OrganizationIntegration || (OrganizationIntegration = {}));
|
|
18
|
+
export var Status;
|
|
19
|
+
(function (Status) {
|
|
20
|
+
Status["Completed"] = "Completed";
|
|
21
|
+
Status["Failed"] = "Failed";
|
|
22
|
+
Status["InProgress"] = "InProgress";
|
|
23
|
+
Status["Successful"] = "Successful";
|
|
24
|
+
})(Status || (Status = {}));
|
|
25
|
+
export class InternalServerException extends __BaseException {
|
|
26
|
+
constructor(opts) {
|
|
27
|
+
super({
|
|
28
|
+
name: "InternalServerException",
|
|
29
|
+
$fault: "server",
|
|
30
|
+
...opts,
|
|
31
|
+
});
|
|
32
|
+
this.name = "InternalServerException";
|
|
33
|
+
this.$fault = "server";
|
|
34
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export class ThrottlingException extends __BaseException {
|
|
38
|
+
constructor(opts) {
|
|
39
|
+
super({
|
|
40
|
+
name: "ThrottlingException",
|
|
41
|
+
$fault: "client",
|
|
42
|
+
...opts,
|
|
43
|
+
});
|
|
44
|
+
this.name = "ThrottlingException";
|
|
45
|
+
this.$fault = "client";
|
|
46
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
export class ValidationException extends __BaseException {
|
|
50
|
+
constructor(opts) {
|
|
51
|
+
super({
|
|
52
|
+
name: "ValidationException",
|
|
53
|
+
$fault: "client",
|
|
54
|
+
...opts,
|
|
55
|
+
});
|
|
56
|
+
this.name = "ValidationException";
|
|
57
|
+
this.$fault = "client";
|
|
58
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
export const FilterFilterSensitiveLog = (obj) => ({
|
|
62
|
+
...obj,
|
|
63
|
+
});
|
|
64
|
+
export const GetServiceSettingsRequestFilterSensitiveLog = (obj) => ({
|
|
65
|
+
...obj,
|
|
66
|
+
});
|
|
67
|
+
export const LinuxSubscriptionsDiscoverySettingsFilterSensitiveLog = (obj) => ({
|
|
68
|
+
...obj,
|
|
69
|
+
});
|
|
70
|
+
export const GetServiceSettingsResponseFilterSensitiveLog = (obj) => ({
|
|
71
|
+
...obj,
|
|
72
|
+
});
|
|
73
|
+
export const InstanceFilterSensitiveLog = (obj) => ({
|
|
74
|
+
...obj,
|
|
75
|
+
});
|
|
76
|
+
export const ListLinuxSubscriptionInstancesRequestFilterSensitiveLog = (obj) => ({
|
|
77
|
+
...obj,
|
|
78
|
+
});
|
|
79
|
+
export const ListLinuxSubscriptionInstancesResponseFilterSensitiveLog = (obj) => ({
|
|
80
|
+
...obj,
|
|
81
|
+
});
|
|
82
|
+
export const ListLinuxSubscriptionsRequestFilterSensitiveLog = (obj) => ({
|
|
83
|
+
...obj,
|
|
84
|
+
});
|
|
85
|
+
export const SubscriptionFilterSensitiveLog = (obj) => ({
|
|
86
|
+
...obj,
|
|
87
|
+
});
|
|
88
|
+
export const ListLinuxSubscriptionsResponseFilterSensitiveLog = (obj) => ({
|
|
89
|
+
...obj,
|
|
90
|
+
});
|
|
91
|
+
export const UpdateServiceSettingsRequestFilterSensitiveLog = (obj) => ({
|
|
92
|
+
...obj,
|
|
93
|
+
});
|
|
94
|
+
export const UpdateServiceSettingsResponseFilterSensitiveLog = (obj) => ({
|
|
95
|
+
...obj,
|
|
96
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ListLinuxSubscriptionInstancesCommand, } from "../commands/ListLinuxSubscriptionInstancesCommand";
|
|
2
|
+
import { LicenseManagerLinuxSubscriptions } from "../LicenseManagerLinuxSubscriptions";
|
|
3
|
+
import { LicenseManagerLinuxSubscriptionsClient } from "../LicenseManagerLinuxSubscriptionsClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListLinuxSubscriptionInstancesCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listLinuxSubscriptionInstances(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListLinuxSubscriptionInstances(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["MaxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof LicenseManagerLinuxSubscriptions) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof LicenseManagerLinuxSubscriptionsClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected LicenseManagerLinuxSubscriptions | LicenseManagerLinuxSubscriptionsClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ListLinuxSubscriptionsCommand, } from "../commands/ListLinuxSubscriptionsCommand";
|
|
2
|
+
import { LicenseManagerLinuxSubscriptions } from "../LicenseManagerLinuxSubscriptions";
|
|
3
|
+
import { LicenseManagerLinuxSubscriptionsClient } from "../LicenseManagerLinuxSubscriptionsClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListLinuxSubscriptionsCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listLinuxSubscriptions(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListLinuxSubscriptions(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["MaxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof LicenseManagerLinuxSubscriptions) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof LicenseManagerLinuxSubscriptionsClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected LicenseManagerLinuxSubscriptions | LicenseManagerLinuxSubscriptionsClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|