@aws-sdk/client-appstream 3.45.0 → 3.47.2

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 (60) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist-cjs/AppStream.js +105 -0
  3. package/dist-cjs/commands/AssociateApplicationToEntitlementCommand.js +36 -0
  4. package/dist-cjs/commands/CreateEntitlementCommand.js +36 -0
  5. package/dist-cjs/commands/DeleteEntitlementCommand.js +36 -0
  6. package/dist-cjs/commands/DescribeEntitlementsCommand.js +36 -0
  7. package/dist-cjs/commands/DisassociateApplicationFromEntitlementCommand.js +36 -0
  8. package/dist-cjs/commands/ListEntitledApplicationsCommand.js +36 -0
  9. package/dist-cjs/commands/UpdateEntitlementCommand.js +36 -0
  10. package/dist-cjs/commands/index.js +7 -0
  11. package/dist-cjs/endpoints.js +0 -12
  12. package/dist-cjs/models/models_0.js +105 -70
  13. package/dist-cjs/protocols/Aws_json1_1.js +779 -18
  14. package/dist-cjs/runtimeConfig.browser.js +7 -2
  15. package/dist-cjs/runtimeConfig.js +9 -3
  16. package/dist-es/AppStream.js +105 -0
  17. package/dist-es/commands/AssociateApplicationToEntitlementCommand.js +39 -0
  18. package/dist-es/commands/CreateEntitlementCommand.js +39 -0
  19. package/dist-es/commands/DeleteEntitlementCommand.js +39 -0
  20. package/dist-es/commands/DescribeEntitlementsCommand.js +39 -0
  21. package/dist-es/commands/DisassociateApplicationFromEntitlementCommand.js +39 -0
  22. package/dist-es/commands/ListEntitledApplicationsCommand.js +39 -0
  23. package/dist-es/commands/UpdateEntitlementCommand.js +39 -0
  24. package/dist-es/commands/index.js +7 -0
  25. package/dist-es/endpoints.js +0 -12
  26. package/dist-es/models/models_0.js +73 -48
  27. package/dist-es/protocols/Aws_json1_1.js +822 -31
  28. package/dist-es/runtimeConfig.browser.js +12 -3
  29. package/dist-es/runtimeConfig.js +13 -6
  30. package/dist-types/AppStream.d.ts +54 -0
  31. package/dist-types/AppStreamClient.d.ts +14 -3
  32. package/dist-types/commands/AssociateApplicationToEntitlementCommand.d.ts +35 -0
  33. package/dist-types/commands/CreateEntitlementCommand.d.ts +40 -0
  34. package/dist-types/commands/DeleteEntitlementCommand.d.ts +35 -0
  35. package/dist-types/commands/DescribeEntitlementsCommand.d.ts +35 -0
  36. package/dist-types/commands/DisassociateApplicationFromEntitlementCommand.d.ts +35 -0
  37. package/dist-types/commands/ListEntitledApplicationsCommand.d.ts +35 -0
  38. package/dist-types/commands/UpdateEntitlementCommand.d.ts +35 -0
  39. package/dist-types/commands/index.d.ts +7 -0
  40. package/dist-types/models/models_0.d.ts +367 -64
  41. package/dist-types/protocols/Aws_json1_1.d.ts +21 -0
  42. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  43. package/dist-types/runtimeConfig.d.ts +4 -3
  44. package/dist-types/runtimeConfig.native.d.ts +1 -0
  45. package/dist-types/ts3.4/AppStream.d.ts +35 -0
  46. package/dist-types/ts3.4/AppStreamClient.d.ts +12 -3
  47. package/dist-types/ts3.4/commands/AssociateApplicationToEntitlementCommand.d.ts +17 -0
  48. package/dist-types/ts3.4/commands/CreateEntitlementCommand.d.ts +17 -0
  49. package/dist-types/ts3.4/commands/DeleteEntitlementCommand.d.ts +17 -0
  50. package/dist-types/ts3.4/commands/DescribeEntitlementsCommand.d.ts +17 -0
  51. package/dist-types/ts3.4/commands/DisassociateApplicationFromEntitlementCommand.d.ts +17 -0
  52. package/dist-types/ts3.4/commands/ListEntitledApplicationsCommand.d.ts +17 -0
  53. package/dist-types/ts3.4/commands/UpdateEntitlementCommand.d.ts +17 -0
  54. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  55. package/dist-types/ts3.4/models/models_0.d.ts +203 -44
  56. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +21 -0
  57. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  58. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  59. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  60. package/package.json +40 -47
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
13
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
+ const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
16
18
  const getRuntimeConfig = (config) => {
17
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
+ const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
21
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
18
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
19
23
  return {
20
24
  ...clientSharedValues,
21
25
  ...config,
22
26
  runtime: "browser",
27
+ defaultsMode,
23
28
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
24
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
25
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
27
32
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
28
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
29
34
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
30
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
31
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
35
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
32
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
33
38
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
34
39
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
19
20
  const getRuntimeConfig = (config) => {
20
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
24
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
25
  return {
24
26
  ...clientSharedValues,
25
27
  ...config,
26
28
  runtime: "node",
29
+ defaultsMode,
27
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
28
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
29
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
31
34
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
32
35
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
33
36
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
34
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
35
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
37
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
39
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
+ }),
36
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
44
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
@@ -1,6 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { AppStreamClient } from "./AppStreamClient";
3
3
  import { AssociateApplicationFleetCommand, } from "./commands/AssociateApplicationFleetCommand";
4
+ import { AssociateApplicationToEntitlementCommand, } from "./commands/AssociateApplicationToEntitlementCommand";
4
5
  import { AssociateFleetCommand, } from "./commands/AssociateFleetCommand";
5
6
  import { BatchAssociateUserStackCommand, } from "./commands/BatchAssociateUserStackCommand";
6
7
  import { BatchDisassociateUserStackCommand, } from "./commands/BatchDisassociateUserStackCommand";
@@ -8,6 +9,7 @@ import { CopyImageCommand } from "./commands/CopyImageCommand";
8
9
  import { CreateAppBlockCommand, } from "./commands/CreateAppBlockCommand";
9
10
  import { CreateApplicationCommand, } from "./commands/CreateApplicationCommand";
10
11
  import { CreateDirectoryConfigCommand, } from "./commands/CreateDirectoryConfigCommand";
12
+ import { CreateEntitlementCommand, } from "./commands/CreateEntitlementCommand";
11
13
  import { CreateFleetCommand } from "./commands/CreateFleetCommand";
12
14
  import { CreateImageBuilderCommand, } from "./commands/CreateImageBuilderCommand";
13
15
  import { CreateImageBuilderStreamingURLCommand, } from "./commands/CreateImageBuilderStreamingURLCommand";
@@ -19,6 +21,7 @@ import { CreateUserCommand } from "./commands/CreateUserCommand";
19
21
  import { DeleteAppBlockCommand, } from "./commands/DeleteAppBlockCommand";
20
22
  import { DeleteApplicationCommand, } from "./commands/DeleteApplicationCommand";
21
23
  import { DeleteDirectoryConfigCommand, } from "./commands/DeleteDirectoryConfigCommand";
24
+ import { DeleteEntitlementCommand, } from "./commands/DeleteEntitlementCommand";
22
25
  import { DeleteFleetCommand } from "./commands/DeleteFleetCommand";
23
26
  import { DeleteImageBuilderCommand, } from "./commands/DeleteImageBuilderCommand";
24
27
  import { DeleteImageCommand } from "./commands/DeleteImageCommand";
@@ -30,6 +33,7 @@ import { DescribeAppBlocksCommand, } from "./commands/DescribeAppBlocksCommand";
30
33
  import { DescribeApplicationFleetAssociationsCommand, } from "./commands/DescribeApplicationFleetAssociationsCommand";
31
34
  import { DescribeApplicationsCommand, } from "./commands/DescribeApplicationsCommand";
32
35
  import { DescribeDirectoryConfigsCommand, } from "./commands/DescribeDirectoryConfigsCommand";
36
+ import { DescribeEntitlementsCommand, } from "./commands/DescribeEntitlementsCommand";
33
37
  import { DescribeFleetsCommand, } from "./commands/DescribeFleetsCommand";
34
38
  import { DescribeImageBuildersCommand, } from "./commands/DescribeImageBuildersCommand";
35
39
  import { DescribeImagePermissionsCommand, } from "./commands/DescribeImagePermissionsCommand";
@@ -41,11 +45,13 @@ import { DescribeUsersCommand, } from "./commands/DescribeUsersCommand";
41
45
  import { DescribeUserStackAssociationsCommand, } from "./commands/DescribeUserStackAssociationsCommand";
42
46
  import { DisableUserCommand } from "./commands/DisableUserCommand";
43
47
  import { DisassociateApplicationFleetCommand, } from "./commands/DisassociateApplicationFleetCommand";
48
+ import { DisassociateApplicationFromEntitlementCommand, } from "./commands/DisassociateApplicationFromEntitlementCommand";
44
49
  import { DisassociateFleetCommand, } from "./commands/DisassociateFleetCommand";
45
50
  import { EnableUserCommand } from "./commands/EnableUserCommand";
46
51
  import { ExpireSessionCommand, } from "./commands/ExpireSessionCommand";
47
52
  import { ListAssociatedFleetsCommand, } from "./commands/ListAssociatedFleetsCommand";
48
53
  import { ListAssociatedStacksCommand, } from "./commands/ListAssociatedStacksCommand";
54
+ import { ListEntitledApplicationsCommand, } from "./commands/ListEntitledApplicationsCommand";
49
55
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
50
56
  import { StartFleetCommand } from "./commands/StartFleetCommand";
51
57
  import { StartImageBuilderCommand, } from "./commands/StartImageBuilderCommand";
@@ -55,6 +61,7 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
55
61
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
56
62
  import { UpdateApplicationCommand, } from "./commands/UpdateApplicationCommand";
57
63
  import { UpdateDirectoryConfigCommand, } from "./commands/UpdateDirectoryConfigCommand";
64
+ import { UpdateEntitlementCommand, } from "./commands/UpdateEntitlementCommand";
58
65
  import { UpdateFleetCommand } from "./commands/UpdateFleetCommand";
59
66
  import { UpdateImagePermissionsCommand, } from "./commands/UpdateImagePermissionsCommand";
60
67
  import { UpdateStackCommand } from "./commands/UpdateStackCommand";
@@ -77,6 +84,20 @@ var AppStream = (function (_super) {
77
84
  return this.send(command, optionsOrCb);
78
85
  }
79
86
  };
87
+ AppStream.prototype.associateApplicationToEntitlement = function (args, optionsOrCb, cb) {
88
+ var command = new AssociateApplicationToEntitlementCommand(args);
89
+ if (typeof optionsOrCb === "function") {
90
+ this.send(command, optionsOrCb);
91
+ }
92
+ else if (typeof cb === "function") {
93
+ if (typeof optionsOrCb !== "object")
94
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
95
+ this.send(command, optionsOrCb || {}, cb);
96
+ }
97
+ else {
98
+ return this.send(command, optionsOrCb);
99
+ }
100
+ };
80
101
  AppStream.prototype.associateFleet = function (args, optionsOrCb, cb) {
81
102
  var command = new AssociateFleetCommand(args);
82
103
  if (typeof optionsOrCb === "function") {
@@ -175,6 +196,20 @@ var AppStream = (function (_super) {
175
196
  return this.send(command, optionsOrCb);
176
197
  }
177
198
  };
199
+ AppStream.prototype.createEntitlement = function (args, optionsOrCb, cb) {
200
+ var command = new CreateEntitlementCommand(args);
201
+ if (typeof optionsOrCb === "function") {
202
+ this.send(command, optionsOrCb);
203
+ }
204
+ else if (typeof cb === "function") {
205
+ if (typeof optionsOrCb !== "object")
206
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
207
+ this.send(command, optionsOrCb || {}, cb);
208
+ }
209
+ else {
210
+ return this.send(command, optionsOrCb);
211
+ }
212
+ };
178
213
  AppStream.prototype.createFleet = function (args, optionsOrCb, cb) {
179
214
  var command = new CreateFleetCommand(args);
180
215
  if (typeof optionsOrCb === "function") {
@@ -329,6 +364,20 @@ var AppStream = (function (_super) {
329
364
  return this.send(command, optionsOrCb);
330
365
  }
331
366
  };
367
+ AppStream.prototype.deleteEntitlement = function (args, optionsOrCb, cb) {
368
+ var command = new DeleteEntitlementCommand(args);
369
+ if (typeof optionsOrCb === "function") {
370
+ this.send(command, optionsOrCb);
371
+ }
372
+ else if (typeof cb === "function") {
373
+ if (typeof optionsOrCb !== "object")
374
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
375
+ this.send(command, optionsOrCb || {}, cb);
376
+ }
377
+ else {
378
+ return this.send(command, optionsOrCb);
379
+ }
380
+ };
332
381
  AppStream.prototype.deleteFleet = function (args, optionsOrCb, cb) {
333
382
  var command = new DeleteFleetCommand(args);
334
383
  if (typeof optionsOrCb === "function") {
@@ -483,6 +532,20 @@ var AppStream = (function (_super) {
483
532
  return this.send(command, optionsOrCb);
484
533
  }
485
534
  };
535
+ AppStream.prototype.describeEntitlements = function (args, optionsOrCb, cb) {
536
+ var command = new DescribeEntitlementsCommand(args);
537
+ if (typeof optionsOrCb === "function") {
538
+ this.send(command, optionsOrCb);
539
+ }
540
+ else if (typeof cb === "function") {
541
+ if (typeof optionsOrCb !== "object")
542
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
543
+ this.send(command, optionsOrCb || {}, cb);
544
+ }
545
+ else {
546
+ return this.send(command, optionsOrCb);
547
+ }
548
+ };
486
549
  AppStream.prototype.describeFleets = function (args, optionsOrCb, cb) {
487
550
  var command = new DescribeFleetsCommand(args);
488
551
  if (typeof optionsOrCb === "function") {
@@ -637,6 +700,20 @@ var AppStream = (function (_super) {
637
700
  return this.send(command, optionsOrCb);
638
701
  }
639
702
  };
703
+ AppStream.prototype.disassociateApplicationFromEntitlement = function (args, optionsOrCb, cb) {
704
+ var command = new DisassociateApplicationFromEntitlementCommand(args);
705
+ if (typeof optionsOrCb === "function") {
706
+ this.send(command, optionsOrCb);
707
+ }
708
+ else if (typeof cb === "function") {
709
+ if (typeof optionsOrCb !== "object")
710
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
711
+ this.send(command, optionsOrCb || {}, cb);
712
+ }
713
+ else {
714
+ return this.send(command, optionsOrCb);
715
+ }
716
+ };
640
717
  AppStream.prototype.disassociateFleet = function (args, optionsOrCb, cb) {
641
718
  var command = new DisassociateFleetCommand(args);
642
719
  if (typeof optionsOrCb === "function") {
@@ -707,6 +784,20 @@ var AppStream = (function (_super) {
707
784
  return this.send(command, optionsOrCb);
708
785
  }
709
786
  };
787
+ AppStream.prototype.listEntitledApplications = function (args, optionsOrCb, cb) {
788
+ var command = new ListEntitledApplicationsCommand(args);
789
+ if (typeof optionsOrCb === "function") {
790
+ this.send(command, optionsOrCb);
791
+ }
792
+ else if (typeof cb === "function") {
793
+ if (typeof optionsOrCb !== "object")
794
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
795
+ this.send(command, optionsOrCb || {}, cb);
796
+ }
797
+ else {
798
+ return this.send(command, optionsOrCb);
799
+ }
800
+ };
710
801
  AppStream.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
711
802
  var command = new ListTagsForResourceCommand(args);
712
803
  if (typeof optionsOrCb === "function") {
@@ -833,6 +924,20 @@ var AppStream = (function (_super) {
833
924
  return this.send(command, optionsOrCb);
834
925
  }
835
926
  };
927
+ AppStream.prototype.updateEntitlement = function (args, optionsOrCb, cb) {
928
+ var command = new UpdateEntitlementCommand(args);
929
+ if (typeof optionsOrCb === "function") {
930
+ this.send(command, optionsOrCb);
931
+ }
932
+ else if (typeof cb === "function") {
933
+ if (typeof optionsOrCb !== "object")
934
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
935
+ this.send(command, optionsOrCb || {}, cb);
936
+ }
937
+ else {
938
+ return this.send(command, optionsOrCb);
939
+ }
940
+ };
836
941
  AppStream.prototype.updateFleet = function (args, optionsOrCb, cb) {
837
942
  var command = new UpdateFleetCommand(args);
838
943
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { AssociateApplicationToEntitlementRequest, AssociateApplicationToEntitlementResult } from "../models/models_0";
5
+ import { deserializeAws_json1_1AssociateApplicationToEntitlementCommand, serializeAws_json1_1AssociateApplicationToEntitlementCommand, } from "../protocols/Aws_json1_1";
6
+ var AssociateApplicationToEntitlementCommand = (function (_super) {
7
+ __extends(AssociateApplicationToEntitlementCommand, _super);
8
+ function AssociateApplicationToEntitlementCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ AssociateApplicationToEntitlementCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AppStreamClient";
18
+ var commandName = "AssociateApplicationToEntitlementCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: AssociateApplicationToEntitlementRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: AssociateApplicationToEntitlementResult.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ AssociateApplicationToEntitlementCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1AssociateApplicationToEntitlementCommand(input, context);
33
+ };
34
+ AssociateApplicationToEntitlementCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1AssociateApplicationToEntitlementCommand(output, context);
36
+ };
37
+ return AssociateApplicationToEntitlementCommand;
38
+ }($Command));
39
+ export { AssociateApplicationToEntitlementCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateEntitlementRequest, CreateEntitlementResult } from "../models/models_0";
5
+ import { deserializeAws_json1_1CreateEntitlementCommand, serializeAws_json1_1CreateEntitlementCommand, } from "../protocols/Aws_json1_1";
6
+ var CreateEntitlementCommand = (function (_super) {
7
+ __extends(CreateEntitlementCommand, _super);
8
+ function CreateEntitlementCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CreateEntitlementCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AppStreamClient";
18
+ var commandName = "CreateEntitlementCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CreateEntitlementRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: CreateEntitlementResult.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateEntitlementCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1CreateEntitlementCommand(input, context);
33
+ };
34
+ CreateEntitlementCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1CreateEntitlementCommand(output, context);
36
+ };
37
+ return CreateEntitlementCommand;
38
+ }($Command));
39
+ export { CreateEntitlementCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DeleteEntitlementRequest, DeleteEntitlementResult } from "../models/models_0";
5
+ import { deserializeAws_json1_1DeleteEntitlementCommand, serializeAws_json1_1DeleteEntitlementCommand, } from "../protocols/Aws_json1_1";
6
+ var DeleteEntitlementCommand = (function (_super) {
7
+ __extends(DeleteEntitlementCommand, _super);
8
+ function DeleteEntitlementCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DeleteEntitlementCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AppStreamClient";
18
+ var commandName = "DeleteEntitlementCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DeleteEntitlementRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DeleteEntitlementResult.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteEntitlementCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1DeleteEntitlementCommand(input, context);
33
+ };
34
+ DeleteEntitlementCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1DeleteEntitlementCommand(output, context);
36
+ };
37
+ return DeleteEntitlementCommand;
38
+ }($Command));
39
+ export { DeleteEntitlementCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DescribeEntitlementsRequest, DescribeEntitlementsResult } from "../models/models_0";
5
+ import { deserializeAws_json1_1DescribeEntitlementsCommand, serializeAws_json1_1DescribeEntitlementsCommand, } from "../protocols/Aws_json1_1";
6
+ var DescribeEntitlementsCommand = (function (_super) {
7
+ __extends(DescribeEntitlementsCommand, _super);
8
+ function DescribeEntitlementsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DescribeEntitlementsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AppStreamClient";
18
+ var commandName = "DescribeEntitlementsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DescribeEntitlementsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeEntitlementsResult.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeEntitlementsCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1DescribeEntitlementsCommand(input, context);
33
+ };
34
+ DescribeEntitlementsCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1DescribeEntitlementsCommand(output, context);
36
+ };
37
+ return DescribeEntitlementsCommand;
38
+ }($Command));
39
+ export { DescribeEntitlementsCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DisassociateApplicationFromEntitlementRequest, DisassociateApplicationFromEntitlementResult, } from "../models/models_0";
5
+ import { deserializeAws_json1_1DisassociateApplicationFromEntitlementCommand, serializeAws_json1_1DisassociateApplicationFromEntitlementCommand, } from "../protocols/Aws_json1_1";
6
+ var DisassociateApplicationFromEntitlementCommand = (function (_super) {
7
+ __extends(DisassociateApplicationFromEntitlementCommand, _super);
8
+ function DisassociateApplicationFromEntitlementCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DisassociateApplicationFromEntitlementCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AppStreamClient";
18
+ var commandName = "DisassociateApplicationFromEntitlementCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DisassociateApplicationFromEntitlementRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DisassociateApplicationFromEntitlementResult.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DisassociateApplicationFromEntitlementCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1DisassociateApplicationFromEntitlementCommand(input, context);
33
+ };
34
+ DisassociateApplicationFromEntitlementCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1DisassociateApplicationFromEntitlementCommand(output, context);
36
+ };
37
+ return DisassociateApplicationFromEntitlementCommand;
38
+ }($Command));
39
+ export { DisassociateApplicationFromEntitlementCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListEntitledApplicationsRequest, ListEntitledApplicationsResult } from "../models/models_0";
5
+ import { deserializeAws_json1_1ListEntitledApplicationsCommand, serializeAws_json1_1ListEntitledApplicationsCommand, } from "../protocols/Aws_json1_1";
6
+ var ListEntitledApplicationsCommand = (function (_super) {
7
+ __extends(ListEntitledApplicationsCommand, _super);
8
+ function ListEntitledApplicationsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListEntitledApplicationsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AppStreamClient";
18
+ var commandName = "ListEntitledApplicationsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListEntitledApplicationsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListEntitledApplicationsResult.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListEntitledApplicationsCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1ListEntitledApplicationsCommand(input, context);
33
+ };
34
+ ListEntitledApplicationsCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1ListEntitledApplicationsCommand(output, context);
36
+ };
37
+ return ListEntitledApplicationsCommand;
38
+ }($Command));
39
+ export { ListEntitledApplicationsCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateEntitlementRequest, UpdateEntitlementResult } from "../models/models_0";
5
+ import { deserializeAws_json1_1UpdateEntitlementCommand, serializeAws_json1_1UpdateEntitlementCommand, } from "../protocols/Aws_json1_1";
6
+ var UpdateEntitlementCommand = (function (_super) {
7
+ __extends(UpdateEntitlementCommand, _super);
8
+ function UpdateEntitlementCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ UpdateEntitlementCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AppStreamClient";
18
+ var commandName = "UpdateEntitlementCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: UpdateEntitlementRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: UpdateEntitlementResult.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateEntitlementCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1UpdateEntitlementCommand(input, context);
33
+ };
34
+ UpdateEntitlementCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1UpdateEntitlementCommand(output, context);
36
+ };
37
+ return UpdateEntitlementCommand;
38
+ }($Command));
39
+ export { UpdateEntitlementCommand };
@@ -1,4 +1,5 @@
1
1
  export * from "./AssociateApplicationFleetCommand";
2
+ export * from "./AssociateApplicationToEntitlementCommand";
2
3
  export * from "./AssociateFleetCommand";
3
4
  export * from "./BatchAssociateUserStackCommand";
4
5
  export * from "./BatchDisassociateUserStackCommand";
@@ -6,6 +7,7 @@ export * from "./CopyImageCommand";
6
7
  export * from "./CreateAppBlockCommand";
7
8
  export * from "./CreateApplicationCommand";
8
9
  export * from "./CreateDirectoryConfigCommand";
10
+ export * from "./CreateEntitlementCommand";
9
11
  export * from "./CreateFleetCommand";
10
12
  export * from "./CreateImageBuilderCommand";
11
13
  export * from "./CreateImageBuilderStreamingURLCommand";
@@ -17,6 +19,7 @@ export * from "./CreateUserCommand";
17
19
  export * from "./DeleteAppBlockCommand";
18
20
  export * from "./DeleteApplicationCommand";
19
21
  export * from "./DeleteDirectoryConfigCommand";
22
+ export * from "./DeleteEntitlementCommand";
20
23
  export * from "./DeleteFleetCommand";
21
24
  export * from "./DeleteImageBuilderCommand";
22
25
  export * from "./DeleteImageCommand";
@@ -28,6 +31,7 @@ export * from "./DescribeAppBlocksCommand";
28
31
  export * from "./DescribeApplicationFleetAssociationsCommand";
29
32
  export * from "./DescribeApplicationsCommand";
30
33
  export * from "./DescribeDirectoryConfigsCommand";
34
+ export * from "./DescribeEntitlementsCommand";
31
35
  export * from "./DescribeFleetsCommand";
32
36
  export * from "./DescribeImageBuildersCommand";
33
37
  export * from "./DescribeImagePermissionsCommand";
@@ -39,11 +43,13 @@ export * from "./DescribeUserStackAssociationsCommand";
39
43
  export * from "./DescribeUsersCommand";
40
44
  export * from "./DisableUserCommand";
41
45
  export * from "./DisassociateApplicationFleetCommand";
46
+ export * from "./DisassociateApplicationFromEntitlementCommand";
42
47
  export * from "./DisassociateFleetCommand";
43
48
  export * from "./EnableUserCommand";
44
49
  export * from "./ExpireSessionCommand";
45
50
  export * from "./ListAssociatedFleetsCommand";
46
51
  export * from "./ListAssociatedStacksCommand";
52
+ export * from "./ListEntitledApplicationsCommand";
47
53
  export * from "./ListTagsForResourceCommand";
48
54
  export * from "./StartFleetCommand";
49
55
  export * from "./StartImageBuilderCommand";
@@ -53,6 +59,7 @@ export * from "./TagResourceCommand";
53
59
  export * from "./UntagResourceCommand";
54
60
  export * from "./UpdateApplicationCommand";
55
61
  export * from "./UpdateDirectoryConfigCommand";
62
+ export * from "./UpdateEntitlementCommand";
56
63
  export * from "./UpdateFleetCommand";
57
64
  export * from "./UpdateImagePermissionsCommand";
58
65
  export * from "./UpdateStackCommand";
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
3
3
  var regionHash = {
4
4
  "us-east-1": {
5
5
  variants: [
6
- {
7
- hostname: "appstream2.us-east-1.amazonaws.com",
8
- tags: [],
9
- },
10
6
  {
11
7
  hostname: "appstream2-fips.us-east-1.amazonaws.com",
12
8
  tags: ["fips"],
@@ -15,10 +11,6 @@ var regionHash = {
15
11
  },
16
12
  "us-gov-west-1": {
17
13
  variants: [
18
- {
19
- hostname: "appstream2.us-gov-west-1.amazonaws.com",
20
- tags: [],
21
- },
22
14
  {
23
15
  hostname: "appstream2-fips.us-gov-west-1.amazonaws.com",
24
16
  tags: ["fips"],
@@ -27,10 +19,6 @@ var regionHash = {
27
19
  },
28
20
  "us-west-2": {
29
21
  variants: [
30
- {
31
- hostname: "appstream2.us-west-2.amazonaws.com",
32
- tags: [],
33
- },
34
22
  {
35
23
  hostname: "appstream2-fips.us-west-2.amazonaws.com",
36
24
  tags: ["fips"],