@aws-sdk/client-appstream 3.42.0 → 3.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/README.md +7 -7
  3. package/dist-cjs/AppStream.js +255 -0
  4. package/dist-cjs/commands/AssociateApplicationFleetCommand.js +36 -0
  5. package/dist-cjs/commands/AssociateApplicationToEntitlementCommand.js +36 -0
  6. package/dist-cjs/commands/CreateAppBlockCommand.js +36 -0
  7. package/dist-cjs/commands/CreateApplicationCommand.js +36 -0
  8. package/dist-cjs/commands/CreateEntitlementCommand.js +36 -0
  9. package/dist-cjs/commands/DeleteAppBlockCommand.js +36 -0
  10. package/dist-cjs/commands/DeleteApplicationCommand.js +36 -0
  11. package/dist-cjs/commands/DeleteEntitlementCommand.js +36 -0
  12. package/dist-cjs/commands/DescribeAppBlocksCommand.js +36 -0
  13. package/dist-cjs/commands/DescribeApplicationFleetAssociationsCommand.js +36 -0
  14. package/dist-cjs/commands/DescribeApplicationsCommand.js +36 -0
  15. package/dist-cjs/commands/DescribeEntitlementsCommand.js +36 -0
  16. package/dist-cjs/commands/DisassociateApplicationFleetCommand.js +36 -0
  17. package/dist-cjs/commands/DisassociateApplicationFromEntitlementCommand.js +36 -0
  18. package/dist-cjs/commands/ListEntitledApplicationsCommand.js +36 -0
  19. package/dist-cjs/commands/UpdateApplicationCommand.js +36 -0
  20. package/dist-cjs/commands/UpdateEntitlementCommand.js +36 -0
  21. package/dist-cjs/commands/index.js +17 -0
  22. package/dist-cjs/endpoints.js +1 -12
  23. package/dist-cjs/models/models_0.js +254 -68
  24. package/dist-cjs/protocols/Aws_json1_1.js +1964 -115
  25. package/dist-cjs/runtimeConfig.browser.js +7 -2
  26. package/dist-cjs/runtimeConfig.js +9 -3
  27. package/dist-es/AppStream.js +255 -0
  28. package/dist-es/commands/AssociateApplicationFleetCommand.js +39 -0
  29. package/dist-es/commands/AssociateApplicationToEntitlementCommand.js +39 -0
  30. package/dist-es/commands/CreateAppBlockCommand.js +39 -0
  31. package/dist-es/commands/CreateApplicationCommand.js +39 -0
  32. package/dist-es/commands/CreateEntitlementCommand.js +39 -0
  33. package/dist-es/commands/DeleteAppBlockCommand.js +39 -0
  34. package/dist-es/commands/DeleteApplicationCommand.js +39 -0
  35. package/dist-es/commands/DeleteEntitlementCommand.js +39 -0
  36. package/dist-es/commands/DescribeAppBlocksCommand.js +39 -0
  37. package/dist-es/commands/DescribeApplicationFleetAssociationsCommand.js +39 -0
  38. package/dist-es/commands/DescribeApplicationsCommand.js +39 -0
  39. package/dist-es/commands/DescribeEntitlementsCommand.js +39 -0
  40. package/dist-es/commands/DisassociateApplicationFleetCommand.js +39 -0
  41. package/dist-es/commands/DisassociateApplicationFromEntitlementCommand.js +39 -0
  42. package/dist-es/commands/ListEntitledApplicationsCommand.js +39 -0
  43. package/dist-es/commands/UpdateApplicationCommand.js +39 -0
  44. package/dist-es/commands/UpdateEntitlementCommand.js +39 -0
  45. package/dist-es/commands/index.js +17 -0
  46. package/dist-es/endpoints.js +1 -12
  47. package/dist-es/models/models_0.js +176 -48
  48. package/dist-es/protocols/Aws_json1_1.js +2134 -222
  49. package/dist-es/runtimeConfig.browser.js +12 -3
  50. package/dist-es/runtimeConfig.js +13 -6
  51. package/dist-types/AppStream.d.ts +158 -4
  52. package/dist-types/AppStreamClient.d.ts +24 -3
  53. package/dist-types/commands/AssociateApplicationFleetCommand.d.ts +35 -0
  54. package/dist-types/commands/AssociateApplicationToEntitlementCommand.d.ts +35 -0
  55. package/dist-types/commands/CreateAppBlockCommand.d.ts +41 -0
  56. package/dist-types/commands/CreateApplicationCommand.d.ts +41 -0
  57. package/dist-types/commands/CreateEntitlementCommand.d.ts +40 -0
  58. package/dist-types/commands/CreateFleetCommand.d.ts +1 -1
  59. package/dist-types/commands/DeleteAppBlockCommand.d.ts +35 -0
  60. package/dist-types/commands/DeleteApplicationCommand.d.ts +35 -0
  61. package/dist-types/commands/DeleteEntitlementCommand.d.ts +35 -0
  62. package/dist-types/commands/DescribeAppBlocksCommand.d.ts +35 -0
  63. package/dist-types/commands/DescribeApplicationFleetAssociationsCommand.d.ts +35 -0
  64. package/dist-types/commands/DescribeApplicationsCommand.d.ts +35 -0
  65. package/dist-types/commands/DescribeEntitlementsCommand.d.ts +35 -0
  66. package/dist-types/commands/DisassociateApplicationFleetCommand.d.ts +35 -0
  67. package/dist-types/commands/DisassociateApplicationFromEntitlementCommand.d.ts +35 -0
  68. package/dist-types/commands/ListEntitledApplicationsCommand.d.ts +35 -0
  69. package/dist-types/commands/UpdateApplicationCommand.d.ts +35 -0
  70. package/dist-types/commands/UpdateEntitlementCommand.d.ts +35 -0
  71. package/dist-types/commands/UpdateFleetCommand.d.ts +21 -3
  72. package/dist-types/commands/index.d.ts +17 -0
  73. package/dist-types/models/models_0.d.ts +982 -95
  74. package/dist-types/protocols/Aws_json1_1.d.ts +51 -0
  75. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  76. package/dist-types/runtimeConfig.d.ts +4 -3
  77. package/dist-types/runtimeConfig.native.d.ts +1 -0
  78. package/dist-types/ts3.4/AppStream.d.ts +85 -0
  79. package/dist-types/ts3.4/AppStreamClient.d.ts +22 -3
  80. package/dist-types/ts3.4/commands/AssociateApplicationFleetCommand.d.ts +17 -0
  81. package/dist-types/ts3.4/commands/AssociateApplicationToEntitlementCommand.d.ts +17 -0
  82. package/dist-types/ts3.4/commands/CreateAppBlockCommand.d.ts +17 -0
  83. package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +17 -0
  84. package/dist-types/ts3.4/commands/CreateEntitlementCommand.d.ts +17 -0
  85. package/dist-types/ts3.4/commands/DeleteAppBlockCommand.d.ts +17 -0
  86. package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +17 -0
  87. package/dist-types/ts3.4/commands/DeleteEntitlementCommand.d.ts +17 -0
  88. package/dist-types/ts3.4/commands/DescribeAppBlocksCommand.d.ts +17 -0
  89. package/dist-types/ts3.4/commands/DescribeApplicationFleetAssociationsCommand.d.ts +17 -0
  90. package/dist-types/ts3.4/commands/DescribeApplicationsCommand.d.ts +17 -0
  91. package/dist-types/ts3.4/commands/DescribeEntitlementsCommand.d.ts +17 -0
  92. package/dist-types/ts3.4/commands/DisassociateApplicationFleetCommand.d.ts +17 -0
  93. package/dist-types/ts3.4/commands/DisassociateApplicationFromEntitlementCommand.d.ts +17 -0
  94. package/dist-types/ts3.4/commands/ListEntitledApplicationsCommand.d.ts +17 -0
  95. package/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +17 -0
  96. package/dist-types/ts3.4/commands/UpdateEntitlementCommand.d.ts +17 -0
  97. package/dist-types/ts3.4/commands/index.d.ts +17 -0
  98. package/dist-types/ts3.4/models/models_0.d.ts +549 -64
  99. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +51 -0
  100. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  101. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  102. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  103. package/package.json +39 -46
@@ -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,10 +1,15 @@
1
1
  import { __extends } from "tslib";
2
2
  import { AppStreamClient } from "./AppStreamClient";
3
+ import { AssociateApplicationFleetCommand, } from "./commands/AssociateApplicationFleetCommand";
4
+ import { AssociateApplicationToEntitlementCommand, } from "./commands/AssociateApplicationToEntitlementCommand";
3
5
  import { AssociateFleetCommand, } from "./commands/AssociateFleetCommand";
4
6
  import { BatchAssociateUserStackCommand, } from "./commands/BatchAssociateUserStackCommand";
5
7
  import { BatchDisassociateUserStackCommand, } from "./commands/BatchDisassociateUserStackCommand";
6
8
  import { CopyImageCommand } from "./commands/CopyImageCommand";
9
+ import { CreateAppBlockCommand, } from "./commands/CreateAppBlockCommand";
10
+ import { CreateApplicationCommand, } from "./commands/CreateApplicationCommand";
7
11
  import { CreateDirectoryConfigCommand, } from "./commands/CreateDirectoryConfigCommand";
12
+ import { CreateEntitlementCommand, } from "./commands/CreateEntitlementCommand";
8
13
  import { CreateFleetCommand } from "./commands/CreateFleetCommand";
9
14
  import { CreateImageBuilderCommand, } from "./commands/CreateImageBuilderCommand";
10
15
  import { CreateImageBuilderStreamingURLCommand, } from "./commands/CreateImageBuilderStreamingURLCommand";
@@ -13,7 +18,10 @@ import { CreateStreamingURLCommand, } from "./commands/CreateStreamingURLCommand
13
18
  import { CreateUpdatedImageCommand, } from "./commands/CreateUpdatedImageCommand";
14
19
  import { CreateUsageReportSubscriptionCommand, } from "./commands/CreateUsageReportSubscriptionCommand";
15
20
  import { CreateUserCommand } from "./commands/CreateUserCommand";
21
+ import { DeleteAppBlockCommand, } from "./commands/DeleteAppBlockCommand";
22
+ import { DeleteApplicationCommand, } from "./commands/DeleteApplicationCommand";
16
23
  import { DeleteDirectoryConfigCommand, } from "./commands/DeleteDirectoryConfigCommand";
24
+ import { DeleteEntitlementCommand, } from "./commands/DeleteEntitlementCommand";
17
25
  import { DeleteFleetCommand } from "./commands/DeleteFleetCommand";
18
26
  import { DeleteImageBuilderCommand, } from "./commands/DeleteImageBuilderCommand";
19
27
  import { DeleteImageCommand } from "./commands/DeleteImageCommand";
@@ -21,7 +29,11 @@ import { DeleteImagePermissionsCommand, } from "./commands/DeleteImagePermission
21
29
  import { DeleteStackCommand } from "./commands/DeleteStackCommand";
22
30
  import { DeleteUsageReportSubscriptionCommand, } from "./commands/DeleteUsageReportSubscriptionCommand";
23
31
  import { DeleteUserCommand } from "./commands/DeleteUserCommand";
32
+ import { DescribeAppBlocksCommand, } from "./commands/DescribeAppBlocksCommand";
33
+ import { DescribeApplicationFleetAssociationsCommand, } from "./commands/DescribeApplicationFleetAssociationsCommand";
34
+ import { DescribeApplicationsCommand, } from "./commands/DescribeApplicationsCommand";
24
35
  import { DescribeDirectoryConfigsCommand, } from "./commands/DescribeDirectoryConfigsCommand";
36
+ import { DescribeEntitlementsCommand, } from "./commands/DescribeEntitlementsCommand";
25
37
  import { DescribeFleetsCommand, } from "./commands/DescribeFleetsCommand";
26
38
  import { DescribeImageBuildersCommand, } from "./commands/DescribeImageBuildersCommand";
27
39
  import { DescribeImagePermissionsCommand, } from "./commands/DescribeImagePermissionsCommand";
@@ -32,11 +44,14 @@ import { DescribeUsageReportSubscriptionsCommand, } from "./commands/DescribeUsa
32
44
  import { DescribeUsersCommand, } from "./commands/DescribeUsersCommand";
33
45
  import { DescribeUserStackAssociationsCommand, } from "./commands/DescribeUserStackAssociationsCommand";
34
46
  import { DisableUserCommand } from "./commands/DisableUserCommand";
47
+ import { DisassociateApplicationFleetCommand, } from "./commands/DisassociateApplicationFleetCommand";
48
+ import { DisassociateApplicationFromEntitlementCommand, } from "./commands/DisassociateApplicationFromEntitlementCommand";
35
49
  import { DisassociateFleetCommand, } from "./commands/DisassociateFleetCommand";
36
50
  import { EnableUserCommand } from "./commands/EnableUserCommand";
37
51
  import { ExpireSessionCommand, } from "./commands/ExpireSessionCommand";
38
52
  import { ListAssociatedFleetsCommand, } from "./commands/ListAssociatedFleetsCommand";
39
53
  import { ListAssociatedStacksCommand, } from "./commands/ListAssociatedStacksCommand";
54
+ import { ListEntitledApplicationsCommand, } from "./commands/ListEntitledApplicationsCommand";
40
55
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
41
56
  import { StartFleetCommand } from "./commands/StartFleetCommand";
42
57
  import { StartImageBuilderCommand, } from "./commands/StartImageBuilderCommand";
@@ -44,7 +59,9 @@ import { StopFleetCommand } from "./commands/StopFleetCommand";
44
59
  import { StopImageBuilderCommand, } from "./commands/StopImageBuilderCommand";
45
60
  import { TagResourceCommand } from "./commands/TagResourceCommand";
46
61
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
62
+ import { UpdateApplicationCommand, } from "./commands/UpdateApplicationCommand";
47
63
  import { UpdateDirectoryConfigCommand, } from "./commands/UpdateDirectoryConfigCommand";
64
+ import { UpdateEntitlementCommand, } from "./commands/UpdateEntitlementCommand";
48
65
  import { UpdateFleetCommand } from "./commands/UpdateFleetCommand";
49
66
  import { UpdateImagePermissionsCommand, } from "./commands/UpdateImagePermissionsCommand";
50
67
  import { UpdateStackCommand } from "./commands/UpdateStackCommand";
@@ -53,6 +70,34 @@ var AppStream = (function (_super) {
53
70
  function AppStream() {
54
71
  return _super !== null && _super.apply(this, arguments) || this;
55
72
  }
73
+ AppStream.prototype.associateApplicationFleet = function (args, optionsOrCb, cb) {
74
+ var command = new AssociateApplicationFleetCommand(args);
75
+ if (typeof optionsOrCb === "function") {
76
+ this.send(command, optionsOrCb);
77
+ }
78
+ else if (typeof cb === "function") {
79
+ if (typeof optionsOrCb !== "object")
80
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
81
+ this.send(command, optionsOrCb || {}, cb);
82
+ }
83
+ else {
84
+ return this.send(command, optionsOrCb);
85
+ }
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
+ };
56
101
  AppStream.prototype.associateFleet = function (args, optionsOrCb, cb) {
57
102
  var command = new AssociateFleetCommand(args);
58
103
  if (typeof optionsOrCb === "function") {
@@ -109,6 +154,34 @@ var AppStream = (function (_super) {
109
154
  return this.send(command, optionsOrCb);
110
155
  }
111
156
  };
157
+ AppStream.prototype.createAppBlock = function (args, optionsOrCb, cb) {
158
+ var command = new CreateAppBlockCommand(args);
159
+ if (typeof optionsOrCb === "function") {
160
+ this.send(command, optionsOrCb);
161
+ }
162
+ else if (typeof cb === "function") {
163
+ if (typeof optionsOrCb !== "object")
164
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
165
+ this.send(command, optionsOrCb || {}, cb);
166
+ }
167
+ else {
168
+ return this.send(command, optionsOrCb);
169
+ }
170
+ };
171
+ AppStream.prototype.createApplication = function (args, optionsOrCb, cb) {
172
+ var command = new CreateApplicationCommand(args);
173
+ if (typeof optionsOrCb === "function") {
174
+ this.send(command, optionsOrCb);
175
+ }
176
+ else if (typeof cb === "function") {
177
+ if (typeof optionsOrCb !== "object")
178
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
179
+ this.send(command, optionsOrCb || {}, cb);
180
+ }
181
+ else {
182
+ return this.send(command, optionsOrCb);
183
+ }
184
+ };
112
185
  AppStream.prototype.createDirectoryConfig = function (args, optionsOrCb, cb) {
113
186
  var command = new CreateDirectoryConfigCommand(args);
114
187
  if (typeof optionsOrCb === "function") {
@@ -123,6 +196,20 @@ var AppStream = (function (_super) {
123
196
  return this.send(command, optionsOrCb);
124
197
  }
125
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
+ };
126
213
  AppStream.prototype.createFleet = function (args, optionsOrCb, cb) {
127
214
  var command = new CreateFleetCommand(args);
128
215
  if (typeof optionsOrCb === "function") {
@@ -235,6 +322,34 @@ var AppStream = (function (_super) {
235
322
  return this.send(command, optionsOrCb);
236
323
  }
237
324
  };
325
+ AppStream.prototype.deleteAppBlock = function (args, optionsOrCb, cb) {
326
+ var command = new DeleteAppBlockCommand(args);
327
+ if (typeof optionsOrCb === "function") {
328
+ this.send(command, optionsOrCb);
329
+ }
330
+ else if (typeof cb === "function") {
331
+ if (typeof optionsOrCb !== "object")
332
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
333
+ this.send(command, optionsOrCb || {}, cb);
334
+ }
335
+ else {
336
+ return this.send(command, optionsOrCb);
337
+ }
338
+ };
339
+ AppStream.prototype.deleteApplication = function (args, optionsOrCb, cb) {
340
+ var command = new DeleteApplicationCommand(args);
341
+ if (typeof optionsOrCb === "function") {
342
+ this.send(command, optionsOrCb);
343
+ }
344
+ else if (typeof cb === "function") {
345
+ if (typeof optionsOrCb !== "object")
346
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
347
+ this.send(command, optionsOrCb || {}, cb);
348
+ }
349
+ else {
350
+ return this.send(command, optionsOrCb);
351
+ }
352
+ };
238
353
  AppStream.prototype.deleteDirectoryConfig = function (args, optionsOrCb, cb) {
239
354
  var command = new DeleteDirectoryConfigCommand(args);
240
355
  if (typeof optionsOrCb === "function") {
@@ -249,6 +364,20 @@ var AppStream = (function (_super) {
249
364
  return this.send(command, optionsOrCb);
250
365
  }
251
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
+ };
252
381
  AppStream.prototype.deleteFleet = function (args, optionsOrCb, cb) {
253
382
  var command = new DeleteFleetCommand(args);
254
383
  if (typeof optionsOrCb === "function") {
@@ -347,6 +476,48 @@ var AppStream = (function (_super) {
347
476
  return this.send(command, optionsOrCb);
348
477
  }
349
478
  };
479
+ AppStream.prototype.describeAppBlocks = function (args, optionsOrCb, cb) {
480
+ var command = new DescribeAppBlocksCommand(args);
481
+ if (typeof optionsOrCb === "function") {
482
+ this.send(command, optionsOrCb);
483
+ }
484
+ else if (typeof cb === "function") {
485
+ if (typeof optionsOrCb !== "object")
486
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
487
+ this.send(command, optionsOrCb || {}, cb);
488
+ }
489
+ else {
490
+ return this.send(command, optionsOrCb);
491
+ }
492
+ };
493
+ AppStream.prototype.describeApplicationFleetAssociations = function (args, optionsOrCb, cb) {
494
+ var command = new DescribeApplicationFleetAssociationsCommand(args);
495
+ if (typeof optionsOrCb === "function") {
496
+ this.send(command, optionsOrCb);
497
+ }
498
+ else if (typeof cb === "function") {
499
+ if (typeof optionsOrCb !== "object")
500
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
501
+ this.send(command, optionsOrCb || {}, cb);
502
+ }
503
+ else {
504
+ return this.send(command, optionsOrCb);
505
+ }
506
+ };
507
+ AppStream.prototype.describeApplications = function (args, optionsOrCb, cb) {
508
+ var command = new DescribeApplicationsCommand(args);
509
+ if (typeof optionsOrCb === "function") {
510
+ this.send(command, optionsOrCb);
511
+ }
512
+ else if (typeof cb === "function") {
513
+ if (typeof optionsOrCb !== "object")
514
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
515
+ this.send(command, optionsOrCb || {}, cb);
516
+ }
517
+ else {
518
+ return this.send(command, optionsOrCb);
519
+ }
520
+ };
350
521
  AppStream.prototype.describeDirectoryConfigs = function (args, optionsOrCb, cb) {
351
522
  var command = new DescribeDirectoryConfigsCommand(args);
352
523
  if (typeof optionsOrCb === "function") {
@@ -361,6 +532,20 @@ var AppStream = (function (_super) {
361
532
  return this.send(command, optionsOrCb);
362
533
  }
363
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
+ };
364
549
  AppStream.prototype.describeFleets = function (args, optionsOrCb, cb) {
365
550
  var command = new DescribeFleetsCommand(args);
366
551
  if (typeof optionsOrCb === "function") {
@@ -501,6 +686,34 @@ var AppStream = (function (_super) {
501
686
  return this.send(command, optionsOrCb);
502
687
  }
503
688
  };
689
+ AppStream.prototype.disassociateApplicationFleet = function (args, optionsOrCb, cb) {
690
+ var command = new DisassociateApplicationFleetCommand(args);
691
+ if (typeof optionsOrCb === "function") {
692
+ this.send(command, optionsOrCb);
693
+ }
694
+ else if (typeof cb === "function") {
695
+ if (typeof optionsOrCb !== "object")
696
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
697
+ this.send(command, optionsOrCb || {}, cb);
698
+ }
699
+ else {
700
+ return this.send(command, optionsOrCb);
701
+ }
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
+ };
504
717
  AppStream.prototype.disassociateFleet = function (args, optionsOrCb, cb) {
505
718
  var command = new DisassociateFleetCommand(args);
506
719
  if (typeof optionsOrCb === "function") {
@@ -571,6 +784,20 @@ var AppStream = (function (_super) {
571
784
  return this.send(command, optionsOrCb);
572
785
  }
573
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
+ };
574
801
  AppStream.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
575
802
  var command = new ListTagsForResourceCommand(args);
576
803
  if (typeof optionsOrCb === "function") {
@@ -669,6 +896,20 @@ var AppStream = (function (_super) {
669
896
  return this.send(command, optionsOrCb);
670
897
  }
671
898
  };
899
+ AppStream.prototype.updateApplication = function (args, optionsOrCb, cb) {
900
+ var command = new UpdateApplicationCommand(args);
901
+ if (typeof optionsOrCb === "function") {
902
+ this.send(command, optionsOrCb);
903
+ }
904
+ else if (typeof cb === "function") {
905
+ if (typeof optionsOrCb !== "object")
906
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
907
+ this.send(command, optionsOrCb || {}, cb);
908
+ }
909
+ else {
910
+ return this.send(command, optionsOrCb);
911
+ }
912
+ };
672
913
  AppStream.prototype.updateDirectoryConfig = function (args, optionsOrCb, cb) {
673
914
  var command = new UpdateDirectoryConfigCommand(args);
674
915
  if (typeof optionsOrCb === "function") {
@@ -683,6 +924,20 @@ var AppStream = (function (_super) {
683
924
  return this.send(command, optionsOrCb);
684
925
  }
685
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
+ };
686
941
  AppStream.prototype.updateFleet = function (args, optionsOrCb, cb) {
687
942
  var command = new UpdateFleetCommand(args);
688
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 { AssociateApplicationFleetRequest, AssociateApplicationFleetResult } from "../models/models_0";
5
+ import { deserializeAws_json1_1AssociateApplicationFleetCommand, serializeAws_json1_1AssociateApplicationFleetCommand, } from "../protocols/Aws_json1_1";
6
+ var AssociateApplicationFleetCommand = (function (_super) {
7
+ __extends(AssociateApplicationFleetCommand, _super);
8
+ function AssociateApplicationFleetCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ AssociateApplicationFleetCommand.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 = "AssociateApplicationFleetCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: AssociateApplicationFleetRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: AssociateApplicationFleetResult.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ AssociateApplicationFleetCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1AssociateApplicationFleetCommand(input, context);
33
+ };
34
+ AssociateApplicationFleetCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1AssociateApplicationFleetCommand(output, context);
36
+ };
37
+ return AssociateApplicationFleetCommand;
38
+ }($Command));
39
+ export { AssociateApplicationFleetCommand };
@@ -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 { CreateAppBlockRequest, CreateAppBlockResult } from "../models/models_0";
5
+ import { deserializeAws_json1_1CreateAppBlockCommand, serializeAws_json1_1CreateAppBlockCommand, } from "../protocols/Aws_json1_1";
6
+ var CreateAppBlockCommand = (function (_super) {
7
+ __extends(CreateAppBlockCommand, _super);
8
+ function CreateAppBlockCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CreateAppBlockCommand.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 = "CreateAppBlockCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CreateAppBlockRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: CreateAppBlockResult.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateAppBlockCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1CreateAppBlockCommand(input, context);
33
+ };
34
+ CreateAppBlockCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1CreateAppBlockCommand(output, context);
36
+ };
37
+ return CreateAppBlockCommand;
38
+ }($Command));
39
+ export { CreateAppBlockCommand };
@@ -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 { CreateApplicationRequest, CreateApplicationResult } from "../models/models_0";
5
+ import { deserializeAws_json1_1CreateApplicationCommand, serializeAws_json1_1CreateApplicationCommand, } from "../protocols/Aws_json1_1";
6
+ var CreateApplicationCommand = (function (_super) {
7
+ __extends(CreateApplicationCommand, _super);
8
+ function CreateApplicationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CreateApplicationCommand.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 = "CreateApplicationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CreateApplicationRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: CreateApplicationResult.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateApplicationCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1CreateApplicationCommand(input, context);
33
+ };
34
+ CreateApplicationCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1CreateApplicationCommand(output, context);
36
+ };
37
+ return CreateApplicationCommand;
38
+ }($Command));
39
+ export { CreateApplicationCommand };
@@ -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 };