@aws-sdk/client-appstream 3.46.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
7
18
 
8
19
 
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const regionHash = {
6
6
  "us-east-1": {
7
7
  variants: [
8
- {
9
- hostname: "appstream2.us-east-1.amazonaws.com",
10
- tags: [],
11
- },
12
8
  {
13
9
  hostname: "appstream2-fips.us-east-1.amazonaws.com",
14
10
  tags: ["fips"],
@@ -17,10 +13,6 @@ const regionHash = {
17
13
  },
18
14
  "us-gov-west-1": {
19
15
  variants: [
20
- {
21
- hostname: "appstream2.us-gov-west-1.amazonaws.com",
22
- tags: [],
23
- },
24
16
  {
25
17
  hostname: "appstream2-fips.us-gov-west-1.amazonaws.com",
26
18
  tags: ["fips"],
@@ -29,10 +21,6 @@ const regionHash = {
29
21
  },
30
22
  "us-west-2": {
31
23
  variants: [
32
- {
33
- hostname: "appstream2.us-west-2.amazonaws.com",
34
- tags: [],
35
- },
36
24
  {
37
25
  hostname: "appstream2-fips.us-west-2.amazonaws.com",
38
26
  tags: ["fips"],
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EntitlementAttribute = exports.InvalidRoleException = exports.CreateDirectoryConfigResult = exports.DirectoryConfig = exports.CreateDirectoryConfigRequest = exports.ServiceAccountCredentials = exports.CreateApplicationResult = exports.CreateApplicationRequest = exports.CreateAppBlockResult = exports.CreateAppBlockRequest = exports.ResourceNotAvailableException = exports.ResourceAlreadyExistsException = exports.CopyImageResponse = exports.CopyImageRequest = exports.ComputeCapacityStatus = exports.ComputeCapacity = exports.BatchDisassociateUserStackResult = exports.BatchDisassociateUserStackRequest = exports.BatchAssociateUserStackResult = exports.UserStackAssociationError = exports.UserStackAssociationErrorCode = exports.BatchAssociateUserStackRequest = exports.UserStackAssociation = exports.AuthenticationType = exports.InvalidAccountStatusException = exports.IncompatibleImageException = exports.AssociateFleetResult = exports.AssociateFleetRequest = exports.EntitlementNotFoundException = exports.AssociateApplicationToEntitlementResult = exports.AssociateApplicationToEntitlementRequest = exports.ResourceNotFoundException = exports.OperationNotPermittedException = exports.LimitExceededException = exports.InvalidParameterCombinationException = exports.ConcurrentModificationException = exports.AssociateApplicationFleetResult = exports.AssociateApplicationFleetRequest = exports.AppVisibility = exports.ApplicationSettingsResponse = exports.ApplicationSettings = exports.ApplicationFleetAssociation = exports.ApplicationAttribute = exports.Application = exports.AppBlock = exports.ScriptDetails = exports.S3Location = exports.Action = exports.AccessEndpoint = exports.AccessEndpointType = void 0;
4
- exports.CreateUserResult = exports.CreateUserRequest = exports.MessageAction = exports.CreateUsageReportSubscriptionResult = exports.UsageReportSchedule = exports.CreateUsageReportSubscriptionRequest = exports.CreateUpdatedImageResult = exports.Image = exports.VisibilityType = exports.ImageStateChangeReason = exports.ImageStateChangeReasonCode = exports.ImageState = exports.ImagePermissions = exports.CreateUpdatedImageRequest = exports.CreateStreamingURLResult = exports.CreateStreamingURLRequest = exports.CreateStackResult = exports.Stack = exports.StackError = exports.StackErrorCode = exports.CreateStackRequest = exports.UserSetting = exports.Permission = exports.StorageConnector = exports.StorageConnectorType = exports.CreateImageBuilderStreamingURLResult = exports.CreateImageBuilderStreamingURLRequest = exports.CreateImageBuilderResult = exports.ImageBuilder = exports.ImageBuilderStateChangeReason = exports.ImageBuilderStateChangeReasonCode = exports.ImageBuilderState = exports.NetworkAccessConfiguration = exports.ResourceError = exports.CreateImageBuilderRequest = exports.RequestLimitExceededException = exports.CreateFleetResult = exports.Fleet = exports.FleetState = exports.FleetError = exports.FleetErrorCode = exports.CreateFleetRequest = exports.VpcConfig = exports.StreamView = exports.FleetType = exports.DomainJoinInfo = exports.EntitlementAlreadyExistsException = exports.CreateEntitlementResult = exports.Entitlement = exports.CreateEntitlementRequest = void 0;
5
- exports.DescribeUsageReportSubscriptionsRequest = exports.DescribeStacksResult = exports.DescribeStacksRequest = exports.DescribeSessionsResult = exports.Session = exports.SessionState = exports.SessionConnectionState = exports.DescribeSessionsRequest = exports.DescribeImagesResult = exports.DescribeImagesRequest = exports.DescribeImagePermissionsResult = exports.SharedImagePermissions = exports.DescribeImagePermissionsRequest = exports.DescribeImageBuildersResult = exports.DescribeImageBuildersRequest = exports.DescribeFleetsResult = exports.DescribeFleetsRequest = exports.DescribeEntitlementsResult = exports.DescribeEntitlementsRequest = exports.DescribeDirectoryConfigsResult = exports.DescribeDirectoryConfigsRequest = exports.DescribeApplicationsResult = exports.DescribeApplicationsRequest = exports.DescribeApplicationFleetAssociationsResult = exports.DescribeApplicationFleetAssociationsRequest = exports.DescribeAppBlocksResult = exports.DescribeAppBlocksRequest = exports.DeleteUserResult = exports.DeleteUserRequest = exports.DeleteUsageReportSubscriptionResult = exports.DeleteUsageReportSubscriptionRequest = exports.DeleteStackResult = exports.DeleteStackRequest = exports.DeleteImagePermissionsResult = exports.DeleteImagePermissionsRequest = exports.DeleteImageBuilderResult = exports.DeleteImageBuilderRequest = exports.DeleteImageResult = exports.DeleteImageRequest = exports.DeleteFleetResult = exports.DeleteFleetRequest = exports.DeleteEntitlementResult = exports.DeleteEntitlementRequest = exports.DeleteDirectoryConfigResult = exports.DeleteDirectoryConfigRequest = exports.DeleteApplicationResult = exports.DeleteApplicationRequest = exports.ResourceInUseException = exports.DeleteAppBlockResult = exports.DeleteAppBlockRequest = void 0;
6
- exports.UpdateFleetRequest = exports.UpdateEntitlementResult = exports.UpdateEntitlementRequest = exports.UpdateDirectoryConfigResult = exports.UpdateDirectoryConfigRequest = exports.UpdateApplicationResult = exports.UpdateApplicationRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StopImageBuilderResult = exports.StopImageBuilderRequest = exports.StopFleetResult = exports.StopFleetRequest = exports.StartImageBuilderResult = exports.StartImageBuilderRequest = exports.StartFleetResult = exports.StartFleetRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListEntitledApplicationsResult = exports.ListEntitledApplicationsRequest = exports.ListAssociatedStacksResult = exports.ListAssociatedStacksRequest = exports.ListAssociatedFleetsResult = exports.ListAssociatedFleetsRequest = exports.FleetAttribute = exports.ExpireSessionResult = exports.ExpireSessionRequest = exports.EntitledApplication = exports.EnableUserResult = exports.EnableUserRequest = exports.DisassociateFleetResult = exports.DisassociateFleetRequest = exports.DisassociateApplicationFromEntitlementResult = exports.DisassociateApplicationFromEntitlementRequest = exports.DisassociateApplicationFleetResult = exports.DisassociateApplicationFleetRequest = exports.DisableUserResult = exports.DisableUserRequest = exports.DescribeUserStackAssociationsResult = exports.DescribeUserStackAssociationsRequest = exports.DescribeUsersResult = exports.User = exports.DescribeUsersRequest = exports.DescribeUsageReportSubscriptionsResult = exports.UsageReportSubscription = exports.LastReportGenerationExecutionError = exports.UsageReportExecutionErrorCode = void 0;
7
- exports.UpdateStackResult = exports.UpdateStackRequest = exports.StackAttribute = exports.UpdateImagePermissionsResult = exports.UpdateImagePermissionsRequest = exports.UpdateFleetResult = void 0;
3
+ exports.FleetState = exports.FleetError = exports.FleetErrorCode = exports.CreateFleetRequest = exports.VpcConfig = exports.StreamView = exports.FleetType = exports.DomainJoinInfo = exports.CreateEntitlementResult = exports.Entitlement = exports.CreateEntitlementRequest = exports.EntitlementAttribute = exports.CreateDirectoryConfigResult = exports.DirectoryConfig = exports.CreateDirectoryConfigRequest = exports.ServiceAccountCredentials = exports.CreateApplicationResult = exports.CreateApplicationRequest = exports.CreateAppBlockResult = exports.CreateAppBlockRequest = exports.CopyImageResponse = exports.CopyImageRequest = exports.ComputeCapacityStatus = exports.ComputeCapacity = exports.BatchDisassociateUserStackResult = exports.BatchDisassociateUserStackRequest = exports.BatchAssociateUserStackResult = exports.UserStackAssociationError = exports.UserStackAssociationErrorCode = exports.BatchAssociateUserStackRequest = exports.UserStackAssociation = exports.AuthenticationType = exports.AssociateFleetResult = exports.AssociateFleetRequest = exports.AssociateApplicationToEntitlementResult = exports.AssociateApplicationToEntitlementRequest = exports.AssociateApplicationFleetResult = exports.AssociateApplicationFleetRequest = exports.AppVisibility = exports.ApplicationSettingsResponse = exports.ApplicationSettings = exports.ApplicationFleetAssociation = exports.ApplicationAttribute = exports.Application = exports.AppBlock = exports.ScriptDetails = exports.S3Location = exports.Action = exports.AccessEndpoint = exports.AccessEndpointType = void 0;
4
+ exports.DeleteImageBuilderRequest = exports.DeleteImageResult = exports.DeleteImageRequest = exports.DeleteFleetResult = exports.DeleteFleetRequest = exports.DeleteEntitlementResult = exports.DeleteEntitlementRequest = exports.DeleteDirectoryConfigResult = exports.DeleteDirectoryConfigRequest = exports.DeleteApplicationResult = exports.DeleteApplicationRequest = exports.DeleteAppBlockResult = exports.DeleteAppBlockRequest = exports.CreateUserResult = exports.CreateUserRequest = exports.MessageAction = exports.CreateUsageReportSubscriptionResult = exports.UsageReportSchedule = exports.CreateUsageReportSubscriptionRequest = exports.CreateUpdatedImageResult = exports.Image = exports.VisibilityType = exports.ImageStateChangeReason = exports.ImageStateChangeReasonCode = exports.ImageState = exports.ImagePermissions = exports.CreateUpdatedImageRequest = exports.CreateStreamingURLResult = exports.CreateStreamingURLRequest = exports.CreateStackResult = exports.Stack = exports.StackError = exports.StackErrorCode = exports.CreateStackRequest = exports.UserSetting = exports.Permission = exports.StorageConnector = exports.StorageConnectorType = exports.CreateImageBuilderStreamingURLResult = exports.CreateImageBuilderStreamingURLRequest = exports.CreateImageBuilderResult = exports.ImageBuilder = exports.ImageBuilderStateChangeReason = exports.ImageBuilderStateChangeReasonCode = exports.ImageBuilderState = exports.NetworkAccessConfiguration = exports.ResourceError = exports.CreateImageBuilderRequest = exports.CreateFleetResult = exports.Fleet = void 0;
5
+ exports.DisassociateApplicationFromEntitlementRequest = exports.DisassociateApplicationFleetResult = exports.DisassociateApplicationFleetRequest = exports.DisableUserResult = exports.DisableUserRequest = exports.DescribeUserStackAssociationsResult = exports.DescribeUserStackAssociationsRequest = exports.DescribeUsersResult = exports.User = exports.DescribeUsersRequest = exports.DescribeUsageReportSubscriptionsResult = exports.UsageReportSubscription = exports.LastReportGenerationExecutionError = exports.UsageReportExecutionErrorCode = exports.DescribeUsageReportSubscriptionsRequest = exports.DescribeStacksResult = exports.DescribeStacksRequest = exports.DescribeSessionsResult = exports.Session = exports.SessionState = exports.SessionConnectionState = exports.DescribeSessionsRequest = exports.DescribeImagesResult = exports.DescribeImagesRequest = exports.DescribeImagePermissionsResult = exports.SharedImagePermissions = exports.DescribeImagePermissionsRequest = exports.DescribeImageBuildersResult = exports.DescribeImageBuildersRequest = exports.DescribeFleetsResult = exports.DescribeFleetsRequest = exports.DescribeEntitlementsResult = exports.DescribeEntitlementsRequest = exports.DescribeDirectoryConfigsResult = exports.DescribeDirectoryConfigsRequest = exports.DescribeApplicationsResult = exports.DescribeApplicationsRequest = exports.DescribeApplicationFleetAssociationsResult = exports.DescribeApplicationFleetAssociationsRequest = exports.DescribeAppBlocksResult = exports.DescribeAppBlocksRequest = exports.DeleteUserResult = exports.DeleteUserRequest = exports.DeleteUsageReportSubscriptionResult = exports.DeleteUsageReportSubscriptionRequest = exports.DeleteStackResult = exports.DeleteStackRequest = exports.DeleteImagePermissionsResult = exports.DeleteImagePermissionsRequest = exports.DeleteImageBuilderResult = void 0;
6
+ exports.UpdateStackResult = exports.UpdateStackRequest = exports.StackAttribute = exports.UpdateImagePermissionsResult = exports.UpdateImagePermissionsRequest = exports.UpdateFleetResult = exports.UpdateFleetRequest = exports.UpdateEntitlementResult = exports.UpdateEntitlementRequest = exports.UpdateDirectoryConfigResult = exports.UpdateDirectoryConfigRequest = exports.UpdateApplicationResult = exports.UpdateApplicationRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StopImageBuilderResult = exports.StopImageBuilderRequest = exports.StopFleetResult = exports.StopFleetRequest = exports.StartImageBuilderResult = exports.StartImageBuilderRequest = exports.StartFleetResult = exports.StartFleetRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListEntitledApplicationsResult = exports.ListEntitledApplicationsRequest = exports.ListAssociatedStacksResult = exports.ListAssociatedStacksRequest = exports.ListAssociatedFleetsResult = exports.ListAssociatedFleetsRequest = exports.FleetAttribute = exports.ExpireSessionResult = exports.ExpireSessionRequest = exports.EntitledApplication = exports.EnableUserResult = exports.EnableUserRequest = exports.DisassociateFleetResult = exports.DisassociateFleetRequest = exports.DisassociateApplicationFromEntitlementResult = void 0;
8
7
  const smithy_client_1 = require("@aws-sdk/smithy-client");
9
8
  var AccessEndpointType;
10
9
  (function (AccessEndpointType) {
@@ -90,36 +89,6 @@ var AssociateApplicationFleetResult;
90
89
  ...obj,
91
90
  });
92
91
  })(AssociateApplicationFleetResult = exports.AssociateApplicationFleetResult || (exports.AssociateApplicationFleetResult = {}));
93
- var ConcurrentModificationException;
94
- (function (ConcurrentModificationException) {
95
- ConcurrentModificationException.filterSensitiveLog = (obj) => ({
96
- ...obj,
97
- });
98
- })(ConcurrentModificationException = exports.ConcurrentModificationException || (exports.ConcurrentModificationException = {}));
99
- var InvalidParameterCombinationException;
100
- (function (InvalidParameterCombinationException) {
101
- InvalidParameterCombinationException.filterSensitiveLog = (obj) => ({
102
- ...obj,
103
- });
104
- })(InvalidParameterCombinationException = exports.InvalidParameterCombinationException || (exports.InvalidParameterCombinationException = {}));
105
- var LimitExceededException;
106
- (function (LimitExceededException) {
107
- LimitExceededException.filterSensitiveLog = (obj) => ({
108
- ...obj,
109
- });
110
- })(LimitExceededException = exports.LimitExceededException || (exports.LimitExceededException = {}));
111
- var OperationNotPermittedException;
112
- (function (OperationNotPermittedException) {
113
- OperationNotPermittedException.filterSensitiveLog = (obj) => ({
114
- ...obj,
115
- });
116
- })(OperationNotPermittedException = exports.OperationNotPermittedException || (exports.OperationNotPermittedException = {}));
117
- var ResourceNotFoundException;
118
- (function (ResourceNotFoundException) {
119
- ResourceNotFoundException.filterSensitiveLog = (obj) => ({
120
- ...obj,
121
- });
122
- })(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
123
92
  var AssociateApplicationToEntitlementRequest;
124
93
  (function (AssociateApplicationToEntitlementRequest) {
125
94
  AssociateApplicationToEntitlementRequest.filterSensitiveLog = (obj) => ({
@@ -132,12 +101,6 @@ var AssociateApplicationToEntitlementResult;
132
101
  ...obj,
133
102
  });
134
103
  })(AssociateApplicationToEntitlementResult = exports.AssociateApplicationToEntitlementResult || (exports.AssociateApplicationToEntitlementResult = {}));
135
- var EntitlementNotFoundException;
136
- (function (EntitlementNotFoundException) {
137
- EntitlementNotFoundException.filterSensitiveLog = (obj) => ({
138
- ...obj,
139
- });
140
- })(EntitlementNotFoundException = exports.EntitlementNotFoundException || (exports.EntitlementNotFoundException = {}));
141
104
  var AssociateFleetRequest;
142
105
  (function (AssociateFleetRequest) {
143
106
  AssociateFleetRequest.filterSensitiveLog = (obj) => ({
@@ -150,18 +113,6 @@ var AssociateFleetResult;
150
113
  ...obj,
151
114
  });
152
115
  })(AssociateFleetResult = exports.AssociateFleetResult || (exports.AssociateFleetResult = {}));
153
- var IncompatibleImageException;
154
- (function (IncompatibleImageException) {
155
- IncompatibleImageException.filterSensitiveLog = (obj) => ({
156
- ...obj,
157
- });
158
- })(IncompatibleImageException = exports.IncompatibleImageException || (exports.IncompatibleImageException = {}));
159
- var InvalidAccountStatusException;
160
- (function (InvalidAccountStatusException) {
161
- InvalidAccountStatusException.filterSensitiveLog = (obj) => ({
162
- ...obj,
163
- });
164
- })(InvalidAccountStatusException = exports.InvalidAccountStatusException || (exports.InvalidAccountStatusException = {}));
165
116
  var AuthenticationType;
166
117
  (function (AuthenticationType) {
167
118
  AuthenticationType["API"] = "API";
@@ -247,18 +198,6 @@ var CopyImageResponse;
247
198
  ...obj,
248
199
  });
249
200
  })(CopyImageResponse = exports.CopyImageResponse || (exports.CopyImageResponse = {}));
250
- var ResourceAlreadyExistsException;
251
- (function (ResourceAlreadyExistsException) {
252
- ResourceAlreadyExistsException.filterSensitiveLog = (obj) => ({
253
- ...obj,
254
- });
255
- })(ResourceAlreadyExistsException = exports.ResourceAlreadyExistsException || (exports.ResourceAlreadyExistsException = {}));
256
- var ResourceNotAvailableException;
257
- (function (ResourceNotAvailableException) {
258
- ResourceNotAvailableException.filterSensitiveLog = (obj) => ({
259
- ...obj,
260
- });
261
- })(ResourceNotAvailableException = exports.ResourceNotAvailableException || (exports.ResourceNotAvailableException = {}));
262
201
  var CreateAppBlockRequest;
263
202
  (function (CreateAppBlockRequest) {
264
203
  CreateAppBlockRequest.filterSensitiveLog = (obj) => ({
@@ -316,12 +255,6 @@ var CreateDirectoryConfigResult;
316
255
  ...(obj.DirectoryConfig && { DirectoryConfig: DirectoryConfig.filterSensitiveLog(obj.DirectoryConfig) }),
317
256
  });
318
257
  })(CreateDirectoryConfigResult = exports.CreateDirectoryConfigResult || (exports.CreateDirectoryConfigResult = {}));
319
- var InvalidRoleException;
320
- (function (InvalidRoleException) {
321
- InvalidRoleException.filterSensitiveLog = (obj) => ({
322
- ...obj,
323
- });
324
- })(InvalidRoleException = exports.InvalidRoleException || (exports.InvalidRoleException = {}));
325
258
  var EntitlementAttribute;
326
259
  (function (EntitlementAttribute) {
327
260
  EntitlementAttribute.filterSensitiveLog = (obj) => ({
@@ -346,12 +279,6 @@ var CreateEntitlementResult;
346
279
  ...obj,
347
280
  });
348
281
  })(CreateEntitlementResult = exports.CreateEntitlementResult || (exports.CreateEntitlementResult = {}));
349
- var EntitlementAlreadyExistsException;
350
- (function (EntitlementAlreadyExistsException) {
351
- EntitlementAlreadyExistsException.filterSensitiveLog = (obj) => ({
352
- ...obj,
353
- });
354
- })(EntitlementAlreadyExistsException = exports.EntitlementAlreadyExistsException || (exports.EntitlementAlreadyExistsException = {}));
355
282
  var DomainJoinInfo;
356
283
  (function (DomainJoinInfo) {
357
284
  DomainJoinInfo.filterSensitiveLog = (obj) => ({
@@ -439,12 +366,6 @@ var CreateFleetResult;
439
366
  ...obj,
440
367
  });
441
368
  })(CreateFleetResult = exports.CreateFleetResult || (exports.CreateFleetResult = {}));
442
- var RequestLimitExceededException;
443
- (function (RequestLimitExceededException) {
444
- RequestLimitExceededException.filterSensitiveLog = (obj) => ({
445
- ...obj,
446
- });
447
- })(RequestLimitExceededException = exports.RequestLimitExceededException || (exports.RequestLimitExceededException = {}));
448
369
  var CreateImageBuilderRequest;
449
370
  (function (CreateImageBuilderRequest) {
450
371
  CreateImageBuilderRequest.filterSensitiveLog = (obj) => ({
@@ -676,12 +597,6 @@ var DeleteAppBlockResult;
676
597
  ...obj,
677
598
  });
678
599
  })(DeleteAppBlockResult = exports.DeleteAppBlockResult || (exports.DeleteAppBlockResult = {}));
679
- var ResourceInUseException;
680
- (function (ResourceInUseException) {
681
- ResourceInUseException.filterSensitiveLog = (obj) => ({
682
- ...obj,
683
- });
684
- })(ResourceInUseException = exports.ResourceInUseException || (exports.ResourceInUseException = {}));
685
600
  var DeleteApplicationRequest;
686
601
  (function (DeleteApplicationRequest) {
687
602
  DeleteApplicationRequest.filterSensitiveLog = (obj) => ({
@@ -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)),
@@ -15,13 +15,18 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
15
15
  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
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
18
20
  const getRuntimeConfig = (config) => {
19
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
22
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
20
24
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
21
25
  return {
22
26
  ...clientSharedValues,
23
27
  ...config,
24
28
  runtime: "node",
29
+ defaultsMode,
25
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
26
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
27
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -29,8 +34,11 @@ const getRuntimeConfig = (config) => {
29
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 }),
30
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),
31
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),
32
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
33
- 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
+ }),
34
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
35
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
36
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),
@@ -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"],
@@ -64,26 +64,6 @@ export var AssociateApplicationFleetResult;
64
64
  (function (AssociateApplicationFleetResult) {
65
65
  AssociateApplicationFleetResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
66
66
  })(AssociateApplicationFleetResult || (AssociateApplicationFleetResult = {}));
67
- export var ConcurrentModificationException;
68
- (function (ConcurrentModificationException) {
69
- ConcurrentModificationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
70
- })(ConcurrentModificationException || (ConcurrentModificationException = {}));
71
- export var InvalidParameterCombinationException;
72
- (function (InvalidParameterCombinationException) {
73
- InvalidParameterCombinationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
74
- })(InvalidParameterCombinationException || (InvalidParameterCombinationException = {}));
75
- export var LimitExceededException;
76
- (function (LimitExceededException) {
77
- LimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
78
- })(LimitExceededException || (LimitExceededException = {}));
79
- export var OperationNotPermittedException;
80
- (function (OperationNotPermittedException) {
81
- OperationNotPermittedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
82
- })(OperationNotPermittedException || (OperationNotPermittedException = {}));
83
- export var ResourceNotFoundException;
84
- (function (ResourceNotFoundException) {
85
- ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
86
- })(ResourceNotFoundException || (ResourceNotFoundException = {}));
87
67
  export var AssociateApplicationToEntitlementRequest;
88
68
  (function (AssociateApplicationToEntitlementRequest) {
89
69
  AssociateApplicationToEntitlementRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -92,10 +72,6 @@ export var AssociateApplicationToEntitlementResult;
92
72
  (function (AssociateApplicationToEntitlementResult) {
93
73
  AssociateApplicationToEntitlementResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
94
74
  })(AssociateApplicationToEntitlementResult || (AssociateApplicationToEntitlementResult = {}));
95
- export var EntitlementNotFoundException;
96
- (function (EntitlementNotFoundException) {
97
- EntitlementNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
98
- })(EntitlementNotFoundException || (EntitlementNotFoundException = {}));
99
75
  export var AssociateFleetRequest;
100
76
  (function (AssociateFleetRequest) {
101
77
  AssociateFleetRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -104,14 +80,6 @@ export var AssociateFleetResult;
104
80
  (function (AssociateFleetResult) {
105
81
  AssociateFleetResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
106
82
  })(AssociateFleetResult || (AssociateFleetResult = {}));
107
- export var IncompatibleImageException;
108
- (function (IncompatibleImageException) {
109
- IncompatibleImageException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
110
- })(IncompatibleImageException || (IncompatibleImageException = {}));
111
- export var InvalidAccountStatusException;
112
- (function (InvalidAccountStatusException) {
113
- InvalidAccountStatusException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
114
- })(InvalidAccountStatusException || (InvalidAccountStatusException = {}));
115
83
  export var AuthenticationType;
116
84
  (function (AuthenticationType) {
117
85
  AuthenticationType["API"] = "API";
@@ -171,14 +139,6 @@ export var CopyImageResponse;
171
139
  (function (CopyImageResponse) {
172
140
  CopyImageResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
173
141
  })(CopyImageResponse || (CopyImageResponse = {}));
174
- export var ResourceAlreadyExistsException;
175
- (function (ResourceAlreadyExistsException) {
176
- ResourceAlreadyExistsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
177
- })(ResourceAlreadyExistsException || (ResourceAlreadyExistsException = {}));
178
- export var ResourceNotAvailableException;
179
- (function (ResourceNotAvailableException) {
180
- ResourceNotAvailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
181
- })(ResourceNotAvailableException || (ResourceNotAvailableException = {}));
182
142
  export var CreateAppBlockRequest;
183
143
  (function (CreateAppBlockRequest) {
184
144
  CreateAppBlockRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -215,10 +175,6 @@ export var CreateDirectoryConfigResult;
215
175
  (function (CreateDirectoryConfigResult) {
216
176
  CreateDirectoryConfigResult.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.DirectoryConfig && { DirectoryConfig: DirectoryConfig.filterSensitiveLog(obj.DirectoryConfig) }))); };
217
177
  })(CreateDirectoryConfigResult || (CreateDirectoryConfigResult = {}));
218
- export var InvalidRoleException;
219
- (function (InvalidRoleException) {
220
- InvalidRoleException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
221
- })(InvalidRoleException || (InvalidRoleException = {}));
222
178
  export var EntitlementAttribute;
223
179
  (function (EntitlementAttribute) {
224
180
  EntitlementAttribute.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -235,10 +191,6 @@ export var CreateEntitlementResult;
235
191
  (function (CreateEntitlementResult) {
236
192
  CreateEntitlementResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
237
193
  })(CreateEntitlementResult || (CreateEntitlementResult = {}));
238
- export var EntitlementAlreadyExistsException;
239
- (function (EntitlementAlreadyExistsException) {
240
- EntitlementAlreadyExistsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
241
- })(EntitlementAlreadyExistsException || (EntitlementAlreadyExistsException = {}));
242
194
  export var DomainJoinInfo;
243
195
  (function (DomainJoinInfo) {
244
196
  DomainJoinInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -314,10 +266,6 @@ export var CreateFleetResult;
314
266
  (function (CreateFleetResult) {
315
267
  CreateFleetResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
316
268
  })(CreateFleetResult || (CreateFleetResult = {}));
317
- export var RequestLimitExceededException;
318
- (function (RequestLimitExceededException) {
319
- RequestLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
320
- })(RequestLimitExceededException || (RequestLimitExceededException = {}));
321
269
  export var CreateImageBuilderRequest;
322
270
  (function (CreateImageBuilderRequest) {
323
271
  CreateImageBuilderRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -492,10 +440,6 @@ export var DeleteAppBlockResult;
492
440
  (function (DeleteAppBlockResult) {
493
441
  DeleteAppBlockResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
494
442
  })(DeleteAppBlockResult || (DeleteAppBlockResult = {}));
495
- export var ResourceInUseException;
496
- (function (ResourceInUseException) {
497
- ResourceInUseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
498
- })(ResourceInUseException || (ResourceInUseException = {}));
499
443
  export var DeleteApplicationRequest;
500
444
  (function (DeleteApplicationRequest) {
501
445
  DeleteApplicationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1,8 +1,8 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
5
- import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
6
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
7
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
8
8
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
10
10
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
11
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
13
15
  export var getRuntimeConfig = function (config) {
14
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ var defaultsMode = resolveDefaultsModeConfig(config);
18
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
15
19
  var clientSharedValues = getSharedRuntimeConfig(config);
16
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ switch (_a.label) {
22
+ case 0: return [4, defaultConfigProvider()];
23
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
+ }
25
+ }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
17
26
  };
@@ -1,19 +1,28 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
15
17
  export var getRuntimeConfig = function (config) {
16
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
17
21
  var clientSharedValues = getSharedRuntimeConfig(config);
18
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
22
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
23
+ switch (_a.label) {
24
+ case 0: return [4, defaultConfigProvider()];
25
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
26
+ }
27
+ }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
19
28
  };
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { AssociateApplicationFleetCommandInput, AssociateApplicationFleetCommandOutput } from "./commands/AssociateApplicationFleetCommand";
10
10
  import { AssociateApplicationToEntitlementCommandInput, AssociateApplicationToEntitlementCommandOutput } from "./commands/AssociateApplicationToEntitlementCommand";
@@ -173,6 +173,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
173
173
  * @internal
174
174
  */
175
175
  defaultUserAgentProvider?: Provider<__UserAgent>;
176
+ /**
177
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
178
+ */
179
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
176
180
  }
177
181
  declare type AppStreamClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
178
182
  /**
@@ -306,12 +306,6 @@ export interface ConcurrentModificationException extends __SmithyException, $Met
306
306
  */
307
307
  Message?: string;
308
308
  }
309
- export declare namespace ConcurrentModificationException {
310
- /**
311
- * @internal
312
- */
313
- const filterSensitiveLog: (obj: ConcurrentModificationException) => any;
314
- }
315
309
  /**
316
310
  * <p>Indicates an incorrect combination of parameters, or a missing parameter.</p>
317
311
  */
@@ -323,12 +317,6 @@ export interface InvalidParameterCombinationException extends __SmithyException,
323
317
  */
324
318
  Message?: string;
325
319
  }
326
- export declare namespace InvalidParameterCombinationException {
327
- /**
328
- * @internal
329
- */
330
- const filterSensitiveLog: (obj: InvalidParameterCombinationException) => any;
331
- }
332
320
  /**
333
321
  * <p>The requested limit exceeds the permitted limit for an account.</p>
334
322
  */
@@ -340,12 +328,6 @@ export interface LimitExceededException extends __SmithyException, $MetadataBear
340
328
  */
341
329
  Message?: string;
342
330
  }
343
- export declare namespace LimitExceededException {
344
- /**
345
- * @internal
346
- */
347
- const filterSensitiveLog: (obj: LimitExceededException) => any;
348
- }
349
331
  /**
350
332
  * <p>The attempted operation is not permitted.</p>
351
333
  */
@@ -357,12 +339,6 @@ export interface OperationNotPermittedException extends __SmithyException, $Meta
357
339
  */
358
340
  Message?: string;
359
341
  }
360
- export declare namespace OperationNotPermittedException {
361
- /**
362
- * @internal
363
- */
364
- const filterSensitiveLog: (obj: OperationNotPermittedException) => any;
365
- }
366
342
  /**
367
343
  * <p>The specified resource was not found.</p>
368
344
  */
@@ -374,12 +350,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
374
350
  */
375
351
  Message?: string;
376
352
  }
377
- export declare namespace ResourceNotFoundException {
378
- /**
379
- * @internal
380
- */
381
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
382
- }
383
353
  export interface AssociateApplicationToEntitlementRequest {
384
354
  /**
385
355
  * <p>The name of the stack.</p>
@@ -419,12 +389,6 @@ export interface EntitlementNotFoundException extends __SmithyException, $Metada
419
389
  */
420
390
  Message?: string;
421
391
  }
422
- export declare namespace EntitlementNotFoundException {
423
- /**
424
- * @internal
425
- */
426
- const filterSensitiveLog: (obj: EntitlementNotFoundException) => any;
427
- }
428
392
  export interface AssociateFleetRequest {
429
393
  /**
430
394
  * <p>The name of the fleet. </p>
@@ -460,12 +424,6 @@ export interface IncompatibleImageException extends __SmithyException, $Metadata
460
424
  */
461
425
  Message?: string;
462
426
  }
463
- export declare namespace IncompatibleImageException {
464
- /**
465
- * @internal
466
- */
467
- const filterSensitiveLog: (obj: IncompatibleImageException) => any;
468
- }
469
427
  /**
470
428
  * <p>The resource cannot be created because your AWS account is suspended. For assistance, contact AWS Support. </p>
471
429
  */
@@ -477,12 +435,6 @@ export interface InvalidAccountStatusException extends __SmithyException, $Metad
477
435
  */
478
436
  Message?: string;
479
437
  }
480
- export declare namespace InvalidAccountStatusException {
481
- /**
482
- * @internal
483
- */
484
- const filterSensitiveLog: (obj: InvalidAccountStatusException) => any;
485
- }
486
438
  export declare enum AuthenticationType {
487
439
  API = "API",
488
440
  SAML = "SAML",
@@ -686,12 +638,6 @@ export interface ResourceAlreadyExistsException extends __SmithyException, $Meta
686
638
  */
687
639
  Message?: string;
688
640
  }
689
- export declare namespace ResourceAlreadyExistsException {
690
- /**
691
- * @internal
692
- */
693
- const filterSensitiveLog: (obj: ResourceAlreadyExistsException) => any;
694
- }
695
641
  /**
696
642
  * <p>The specified resource exists and is not in use, but isn't available.</p>
697
643
  */
@@ -703,12 +649,6 @@ export interface ResourceNotAvailableException extends __SmithyException, $Metad
703
649
  */
704
650
  Message?: string;
705
651
  }
706
- export declare namespace ResourceNotAvailableException {
707
- /**
708
- * @internal
709
- */
710
- const filterSensitiveLog: (obj: ResourceNotAvailableException) => any;
711
- }
712
652
  export interface CreateAppBlockRequest {
713
653
  /**
714
654
  * <p>The name of the app block.</p>
@@ -912,12 +852,6 @@ export interface InvalidRoleException extends __SmithyException, $MetadataBearer
912
852
  */
913
853
  Message?: string;
914
854
  }
915
- export declare namespace InvalidRoleException {
916
- /**
917
- * @internal
918
- */
919
- const filterSensitiveLog: (obj: InvalidRoleException) => any;
920
- }
921
855
  /**
922
856
  * <p>An attribute associated with an entitlement. Application entitlements work by matching
923
857
  * a supported SAML 2.0 attribute name to a value when a user identity federates to an
@@ -1062,12 +996,6 @@ export interface EntitlementAlreadyExistsException extends __SmithyException, $M
1062
996
  */
1063
997
  Message?: string;
1064
998
  }
1065
- export declare namespace EntitlementAlreadyExistsException {
1066
- /**
1067
- * @internal
1068
- */
1069
- const filterSensitiveLog: (obj: EntitlementAlreadyExistsException) => any;
1070
- }
1071
999
  /**
1072
1000
  * <p>Describes the configuration information required to join fleets and image builders to Microsoft Active Directory domains.</p>
1073
1001
  */
@@ -1673,12 +1601,6 @@ export interface RequestLimitExceededException extends __SmithyException, $Metad
1673
1601
  */
1674
1602
  Message?: string;
1675
1603
  }
1676
- export declare namespace RequestLimitExceededException {
1677
- /**
1678
- * @internal
1679
- */
1680
- const filterSensitiveLog: (obj: RequestLimitExceededException) => any;
1681
- }
1682
1604
  export interface CreateImageBuilderRequest {
1683
1605
  /**
1684
1606
  * <p>A unique name for the image builder.</p>
@@ -2724,12 +2646,6 @@ export interface ResourceInUseException extends __SmithyException, $MetadataBear
2724
2646
  */
2725
2647
  Message?: string;
2726
2648
  }
2727
- export declare namespace ResourceInUseException {
2728
- /**
2729
- * @internal
2730
- */
2731
- const filterSensitiveLog: (obj: ResourceInUseException) => any;
2732
- }
2733
2649
  export interface DeleteApplicationRequest {
2734
2650
  /**
2735
2651
  * <p>The name of the application.</p>
@@ -1,10 +1,11 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { AppStreamClientConfig } from "./AppStreamClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: AppStreamClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: AppStreamClientConfig) => {
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<any>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,18 +1,19 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { AppStreamClientConfig } from "./AppStreamClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: AppStreamClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<string>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: AppStreamClientConfig) => {
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
29
30
  tls?: boolean | undefined;
30
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { AssociateApplicationFleetCommandInput, AssociateApplicationFleetCommandOutput } from "./commands/AssociateApplicationFleetCommand";
10
10
  import { AssociateApplicationToEntitlementCommandInput, AssociateApplicationToEntitlementCommandOutput } from "./commands/AssociateApplicationToEntitlementCommand";
@@ -116,6 +116,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
116
116
  regionInfoProvider?: RegionInfoProvider;
117
117
 
118
118
  defaultUserAgentProvider?: Provider<__UserAgent>;
119
+
120
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
119
121
  }
120
122
  declare type AppStreamClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
121
123
 
@@ -177,10 +177,6 @@ export interface ConcurrentModificationException extends __SmithyException, $Met
177
177
 
178
178
  Message?: string;
179
179
  }
180
- export declare namespace ConcurrentModificationException {
181
-
182
- const filterSensitiveLog: (obj: ConcurrentModificationException) => any;
183
- }
184
180
 
185
181
  export interface InvalidParameterCombinationException extends __SmithyException, $MetadataBearer {
186
182
  name: "InvalidParameterCombinationException";
@@ -188,10 +184,6 @@ export interface InvalidParameterCombinationException extends __SmithyException,
188
184
 
189
185
  Message?: string;
190
186
  }
191
- export declare namespace InvalidParameterCombinationException {
192
-
193
- const filterSensitiveLog: (obj: InvalidParameterCombinationException) => any;
194
- }
195
187
 
196
188
  export interface LimitExceededException extends __SmithyException, $MetadataBearer {
197
189
  name: "LimitExceededException";
@@ -199,10 +191,6 @@ export interface LimitExceededException extends __SmithyException, $MetadataBear
199
191
 
200
192
  Message?: string;
201
193
  }
202
- export declare namespace LimitExceededException {
203
-
204
- const filterSensitiveLog: (obj: LimitExceededException) => any;
205
- }
206
194
 
207
195
  export interface OperationNotPermittedException extends __SmithyException, $MetadataBearer {
208
196
  name: "OperationNotPermittedException";
@@ -210,10 +198,6 @@ export interface OperationNotPermittedException extends __SmithyException, $Meta
210
198
 
211
199
  Message?: string;
212
200
  }
213
- export declare namespace OperationNotPermittedException {
214
-
215
- const filterSensitiveLog: (obj: OperationNotPermittedException) => any;
216
- }
217
201
 
218
202
  export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
219
203
  name: "ResourceNotFoundException";
@@ -221,10 +205,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
221
205
 
222
206
  Message?: string;
223
207
  }
224
- export declare namespace ResourceNotFoundException {
225
-
226
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
227
- }
228
208
  export interface AssociateApplicationToEntitlementRequest {
229
209
 
230
210
  StackName: string | undefined;
@@ -250,10 +230,6 @@ export interface EntitlementNotFoundException extends __SmithyException, $Metada
250
230
 
251
231
  Message?: string;
252
232
  }
253
- export declare namespace EntitlementNotFoundException {
254
-
255
- const filterSensitiveLog: (obj: EntitlementNotFoundException) => any;
256
- }
257
233
  export interface AssociateFleetRequest {
258
234
 
259
235
  FleetName: string | undefined;
@@ -277,10 +253,6 @@ export interface IncompatibleImageException extends __SmithyException, $Metadata
277
253
 
278
254
  Message?: string;
279
255
  }
280
- export declare namespace IncompatibleImageException {
281
-
282
- const filterSensitiveLog: (obj: IncompatibleImageException) => any;
283
- }
284
256
 
285
257
  export interface InvalidAccountStatusException extends __SmithyException, $MetadataBearer {
286
258
  name: "InvalidAccountStatusException";
@@ -288,10 +260,6 @@ export interface InvalidAccountStatusException extends __SmithyException, $Metad
288
260
 
289
261
  Message?: string;
290
262
  }
291
- export declare namespace InvalidAccountStatusException {
292
-
293
- const filterSensitiveLog: (obj: InvalidAccountStatusException) => any;
294
- }
295
263
  export declare enum AuthenticationType {
296
264
  API = "API",
297
265
  SAML = "SAML",
@@ -416,10 +384,6 @@ export interface ResourceAlreadyExistsException extends __SmithyException, $Meta
416
384
 
417
385
  Message?: string;
418
386
  }
419
- export declare namespace ResourceAlreadyExistsException {
420
-
421
- const filterSensitiveLog: (obj: ResourceAlreadyExistsException) => any;
422
- }
423
387
 
424
388
  export interface ResourceNotAvailableException extends __SmithyException, $MetadataBearer {
425
389
  name: "ResourceNotAvailableException";
@@ -427,10 +391,6 @@ export interface ResourceNotAvailableException extends __SmithyException, $Metad
427
391
 
428
392
  Message?: string;
429
393
  }
430
- export declare namespace ResourceNotAvailableException {
431
-
432
- const filterSensitiveLog: (obj: ResourceNotAvailableException) => any;
433
- }
434
394
  export interface CreateAppBlockRequest {
435
395
 
436
396
  Name: string | undefined;
@@ -550,10 +510,6 @@ export interface InvalidRoleException extends __SmithyException, $MetadataBearer
550
510
 
551
511
  Message?: string;
552
512
  }
553
- export declare namespace InvalidRoleException {
554
-
555
- const filterSensitiveLog: (obj: InvalidRoleException) => any;
556
- }
557
513
 
558
514
  export interface EntitlementAttribute {
559
515
 
@@ -617,10 +573,6 @@ export interface EntitlementAlreadyExistsException extends __SmithyException, $M
617
573
 
618
574
  Message?: string;
619
575
  }
620
- export declare namespace EntitlementAlreadyExistsException {
621
-
622
- const filterSensitiveLog: (obj: EntitlementAlreadyExistsException) => any;
623
- }
624
576
 
625
577
  export interface DomainJoinInfo {
626
578
 
@@ -817,10 +769,6 @@ export interface RequestLimitExceededException extends __SmithyException, $Metad
817
769
 
818
770
  Message?: string;
819
771
  }
820
- export declare namespace RequestLimitExceededException {
821
-
822
- const filterSensitiveLog: (obj: RequestLimitExceededException) => any;
823
- }
824
772
  export interface CreateImageBuilderRequest {
825
773
 
826
774
  Name: string | undefined;
@@ -1303,10 +1251,6 @@ export interface ResourceInUseException extends __SmithyException, $MetadataBear
1303
1251
 
1304
1252
  Message?: string;
1305
1253
  }
1306
- export declare namespace ResourceInUseException {
1307
-
1308
- const filterSensitiveLog: (obj: ResourceInUseException) => any;
1309
- }
1310
1254
  export interface DeleteApplicationRequest {
1311
1255
 
1312
1256
  Name: string | undefined;
@@ -1,8 +1,9 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { AppStreamClientConfig } from "./AppStreamClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: AppStreamClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
@@ -10,7 +11,7 @@ export declare const getRuntimeConfig: (config: AppStreamClientConfig) => {
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
12
13
  region: string | import("@aws-sdk/types").Provider<any>;
13
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
14
15
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
16
  sha256: import("@aws-sdk/types").HashConstructor;
16
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,16 +1,17 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { AppStreamClientConfig } from "./AppStreamClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: AppStreamClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
9
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
10
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
12
13
  region: string | import("@aws-sdk/types").Provider<string>;
13
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
14
15
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
16
  sha256: import("@aws-sdk/types").HashConstructor;
16
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: AppStreamClientConfig) => {
23
23
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
24
24
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
25
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
26
27
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
27
28
  tls?: boolean | undefined;
28
29
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
package/package.json CHANGED
@@ -1,17 +1,15 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-appstream",
3
3
  "description": "AWS SDK for JavaScript Appstream Client for Node.js, Browser and React Native",
4
- "version": "3.46.0",
4
+ "version": "3.47.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
- "build:cjs": "tsc -p tsconfig.json",
7
+ "build:cjs": "tsc -p tsconfig.cjs.json",
8
8
  "build:docs": "typedoc",
9
9
  "build:es": "tsc -p tsconfig.es.json",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
- "clean": "yarn clean:dist && yarn clean:docs",
13
- "clean:dist": "rimraf ./dist-*",
14
- "clean:docs": "rimraf ./docs"
12
+ "clean": "rimraf ./dist-*"
15
13
  },
16
14
  "main": "./dist-cjs/index.js",
17
15
  "types": "./dist-types/index.d.ts",
@@ -20,39 +18,41 @@
20
18
  "dependencies": {
21
19
  "@aws-crypto/sha256-browser": "2.0.0",
22
20
  "@aws-crypto/sha256-js": "2.0.0",
23
- "@aws-sdk/client-sts": "3.46.0",
24
- "@aws-sdk/config-resolver": "3.46.0",
25
- "@aws-sdk/credential-provider-node": "3.46.0",
26
- "@aws-sdk/fetch-http-handler": "3.46.0",
27
- "@aws-sdk/hash-node": "3.46.0",
28
- "@aws-sdk/invalid-dependency": "3.46.0",
29
- "@aws-sdk/middleware-content-length": "3.46.0",
30
- "@aws-sdk/middleware-host-header": "3.46.0",
31
- "@aws-sdk/middleware-logger": "3.46.0",
32
- "@aws-sdk/middleware-retry": "3.46.0",
33
- "@aws-sdk/middleware-serde": "3.46.0",
34
- "@aws-sdk/middleware-signing": "3.46.0",
35
- "@aws-sdk/middleware-stack": "3.46.0",
36
- "@aws-sdk/middleware-user-agent": "3.46.0",
37
- "@aws-sdk/node-config-provider": "3.46.0",
38
- "@aws-sdk/node-http-handler": "3.46.0",
39
- "@aws-sdk/protocol-http": "3.46.0",
40
- "@aws-sdk/smithy-client": "3.46.0",
41
- "@aws-sdk/types": "3.46.0",
42
- "@aws-sdk/url-parser": "3.46.0",
43
- "@aws-sdk/util-base64-browser": "3.46.0",
44
- "@aws-sdk/util-base64-node": "3.46.0",
45
- "@aws-sdk/util-body-length-browser": "3.46.0",
46
- "@aws-sdk/util-body-length-node": "3.46.0",
47
- "@aws-sdk/util-user-agent-browser": "3.46.0",
48
- "@aws-sdk/util-user-agent-node": "3.46.0",
49
- "@aws-sdk/util-utf8-browser": "3.46.0",
50
- "@aws-sdk/util-utf8-node": "3.46.0",
51
- "@aws-sdk/util-waiter": "3.46.0",
21
+ "@aws-sdk/client-sts": "3.47.0",
22
+ "@aws-sdk/config-resolver": "3.47.0",
23
+ "@aws-sdk/credential-provider-node": "3.47.0",
24
+ "@aws-sdk/fetch-http-handler": "3.47.0",
25
+ "@aws-sdk/hash-node": "3.47.0",
26
+ "@aws-sdk/invalid-dependency": "3.47.0",
27
+ "@aws-sdk/middleware-content-length": "3.47.0",
28
+ "@aws-sdk/middleware-host-header": "3.47.0",
29
+ "@aws-sdk/middleware-logger": "3.47.0",
30
+ "@aws-sdk/middleware-retry": "3.47.0",
31
+ "@aws-sdk/middleware-serde": "3.47.0",
32
+ "@aws-sdk/middleware-signing": "3.47.0",
33
+ "@aws-sdk/middleware-stack": "3.47.0",
34
+ "@aws-sdk/middleware-user-agent": "3.47.0",
35
+ "@aws-sdk/node-config-provider": "3.47.0",
36
+ "@aws-sdk/node-http-handler": "3.47.0",
37
+ "@aws-sdk/protocol-http": "3.47.0",
38
+ "@aws-sdk/smithy-client": "3.47.0",
39
+ "@aws-sdk/types": "3.47.0",
40
+ "@aws-sdk/url-parser": "3.47.0",
41
+ "@aws-sdk/util-base64-browser": "3.47.0",
42
+ "@aws-sdk/util-base64-node": "3.47.0",
43
+ "@aws-sdk/util-body-length-browser": "3.47.0",
44
+ "@aws-sdk/util-body-length-node": "3.47.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.47.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.47.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.47.0",
48
+ "@aws-sdk/util-user-agent-node": "3.47.0",
49
+ "@aws-sdk/util-utf8-browser": "3.47.0",
50
+ "@aws-sdk/util-utf8-node": "3.47.0",
51
+ "@aws-sdk/util-waiter": "3.47.0",
52
52
  "tslib": "^2.3.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@aws-sdk/service-client-documentation-generator": "3.46.0",
55
+ "@aws-sdk/service-client-documentation-generator": "3.47.0",
56
56
  "@types/node": "^12.7.5"
57
57
  },
58
58
  "engines": {