@aws-sdk/client-appstream 3.1021.0 → 3.1023.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/README.md CHANGED
@@ -639,6 +639,13 @@ DisassociateSoftwareFromImageBuilder
639
639
  </details>
640
640
  <details>
641
641
  <summary>
642
+ DrainSessionInstance
643
+ </summary>
644
+
645
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appstream/command/DrainSessionInstanceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appstream/Interface/DrainSessionInstanceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appstream/Interface/DrainSessionInstanceCommandOutput/)
646
+ </details>
647
+ <details>
648
+ <summary>
642
649
  EnableUser
643
650
  </summary>
644
651
 
package/dist-cjs/index.js CHANGED
@@ -870,6 +870,18 @@ class DisassociateSoftwareFromImageBuilderCommand extends smithyClient.Command
870
870
  .build() {
871
871
  }
872
872
 
873
+ class DrainSessionInstanceCommand extends smithyClient.Command
874
+ .classBuilder()
875
+ .ep(commonParams)
876
+ .m(function (Command, cs, config, o) {
877
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
878
+ })
879
+ .s("PhotonAdminProxyService", "DrainSessionInstance", {})
880
+ .n("AppStreamClient", "DrainSessionInstanceCommand")
881
+ .sc(schemas_0.DrainSessionInstance$)
882
+ .build() {
883
+ }
884
+
873
885
  class EnableUserCommand extends smithyClient.Command
874
886
  .classBuilder()
875
887
  .ep(commonParams)
@@ -1378,6 +1390,7 @@ const commands = {
1378
1390
  DisassociateApplicationFromEntitlementCommand,
1379
1391
  DisassociateFleetCommand,
1380
1392
  DisassociateSoftwareFromImageBuilderCommand,
1393
+ DrainSessionInstanceCommand,
1381
1394
  EnableUserCommand,
1382
1395
  ExpireSessionCommand,
1383
1396
  GetExportImageTaskCommand,
@@ -1645,6 +1658,11 @@ const SessionConnectionState = {
1645
1658
  CONNECTED: "CONNECTED",
1646
1659
  NOT_CONNECTED: "NOT_CONNECTED",
1647
1660
  };
1661
+ const InstanceDrainStatus = {
1662
+ ACTIVE: "ACTIVE",
1663
+ DRAINING: "DRAINING",
1664
+ NOT_APPLICABLE: "NOT_APPLICABLE",
1665
+ };
1648
1666
  const SessionState = {
1649
1667
  ACTIVE: "ACTIVE",
1650
1668
  EXPIRED: "EXPIRED",
@@ -1773,6 +1791,7 @@ exports.DisassociateApplicationFleetCommand = DisassociateApplicationFleetComman
1773
1791
  exports.DisassociateApplicationFromEntitlementCommand = DisassociateApplicationFromEntitlementCommand;
1774
1792
  exports.DisassociateFleetCommand = DisassociateFleetCommand;
1775
1793
  exports.DisassociateSoftwareFromImageBuilderCommand = DisassociateSoftwareFromImageBuilderCommand;
1794
+ exports.DrainSessionInstanceCommand = DrainSessionInstanceCommand;
1776
1795
  exports.DynamicAppProvidersEnabled = DynamicAppProvidersEnabled;
1777
1796
  exports.EnableUserCommand = EnableUserCommand;
1778
1797
  exports.ExpireSessionCommand = ExpireSessionCommand;
@@ -1788,6 +1807,7 @@ exports.ImageSharedWithOthers = ImageSharedWithOthers;
1788
1807
  exports.ImageState = ImageState;
1789
1808
  exports.ImageStateChangeReasonCode = ImageStateChangeReasonCode;
1790
1809
  exports.ImageType = ImageType;
1810
+ exports.InstanceDrainStatus = InstanceDrainStatus;
1791
1811
  exports.LatestAppstreamAgentVersion = LatestAppstreamAgentVersion;
1792
1812
  exports.ListAssociatedFleetsCommand = ListAssociatedFleetsCommand;
1793
1813
  exports.ListAssociatedStacksCommand = ListAssociatedStacksCommand;
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CreateAppBlockBuilderResult$ = exports.CreateAppBlockBuilderRequest$ = exports.CopyImageResponse$ = exports.CopyImageRequest$ = exports.ContentRedirection$ = exports.ComputeCapacityStatus$ = exports.ComputeCapacity$ = exports.CertificateBasedAuthProperties$ = exports.BatchDisassociateUserStackResult$ = exports.BatchDisassociateUserStackRequest$ = exports.BatchAssociateUserStackResult$ = exports.BatchAssociateUserStackRequest$ = exports.AssociateSoftwareToImageBuilderResult$ = exports.AssociateSoftwareToImageBuilderRequest$ = exports.AssociateFleetResult$ = exports.AssociateFleetRequest$ = exports.AssociateApplicationToEntitlementResult$ = exports.AssociateApplicationToEntitlementRequest$ = exports.AssociateApplicationFleetResult$ = exports.AssociateApplicationFleetRequest$ = exports.AssociateAppBlockBuilderAppBlockResult$ = exports.AssociateAppBlockBuilderAppBlockRequest$ = exports.ApplicationSettingsResponse$ = exports.ApplicationSettings$ = exports.ApplicationFleetAssociation$ = exports.ApplicationConfig$ = exports.Application$ = exports.AppBlockBuilderStateChangeReason$ = exports.AppBlockBuilderAppBlockAssociation$ = exports.AppBlockBuilder$ = exports.AppBlock$ = exports.AdminAppLicenseUsageRecord$ = exports.AccessEndpoint$ = exports.errorTypeRegistries = exports.ResourceNotFoundException$ = exports.ResourceNotAvailableException$ = exports.ResourceInUseException$ = exports.ResourceAlreadyExistsException$ = exports.RequestLimitExceededException$ = exports.OperationNotPermittedException$ = exports.LimitExceededException$ = exports.InvalidRoleException$ = exports.InvalidParameterCombinationException$ = exports.InvalidAccountStatusException$ = exports.IncompatibleImageException$ = exports.EntitlementNotFoundException$ = exports.EntitlementAlreadyExistsException$ = exports.DryRunOperationException$ = exports.ConcurrentModificationException$ = exports.AppStreamServiceException$ = void 0;
4
4
  exports.DeleteImageResult$ = exports.DeleteImageRequest$ = exports.DeleteImagePermissionsResult$ = exports.DeleteImagePermissionsRequest$ = exports.DeleteImageBuilderResult$ = exports.DeleteImageBuilderRequest$ = exports.DeleteFleetResult$ = exports.DeleteFleetRequest$ = exports.DeleteEntitlementResult$ = exports.DeleteEntitlementRequest$ = exports.DeleteDirectoryConfigResult$ = exports.DeleteDirectoryConfigRequest$ = exports.DeleteApplicationResult$ = exports.DeleteApplicationRequest$ = exports.DeleteAppBlockResult$ = exports.DeleteAppBlockRequest$ = exports.DeleteAppBlockBuilderResult$ = exports.DeleteAppBlockBuilderRequest$ = exports.CreateUserResult$ = exports.CreateUserRequest$ = exports.CreateUsageReportSubscriptionResult$ = exports.CreateUsageReportSubscriptionRequest$ = exports.CreateUpdatedImageResult$ = exports.CreateUpdatedImageRequest$ = exports.CreateThemeForStackResult$ = exports.CreateThemeForStackRequest$ = exports.CreateStreamingURLResult$ = exports.CreateStreamingURLRequest$ = exports.CreateStackResult$ = exports.CreateStackRequest$ = exports.CreateImportedImageResult$ = exports.CreateImportedImageRequest$ = exports.CreateImageBuilderStreamingURLResult$ = exports.CreateImageBuilderStreamingURLRequest$ = exports.CreateImageBuilderResult$ = exports.CreateImageBuilderRequest$ = exports.CreateFleetResult$ = exports.CreateFleetRequest$ = exports.CreateExportImageTaskResult$ = exports.CreateExportImageTaskRequest$ = exports.CreateEntitlementResult$ = exports.CreateEntitlementRequest$ = exports.CreateDirectoryConfigResult$ = exports.CreateDirectoryConfigRequest$ = exports.CreateApplicationResult$ = exports.CreateApplicationRequest$ = exports.CreateAppBlockResult$ = exports.CreateAppBlockRequest$ = exports.CreateAppBlockBuilderStreamingURLResult$ = exports.CreateAppBlockBuilderStreamingURLRequest$ = void 0;
5
5
  exports.DisassociateAppBlockBuilderAppBlockRequest$ = exports.DisableUserResult$ = exports.DisableUserRequest$ = exports.DirectoryConfig$ = exports.DescribeUserStackAssociationsResult$ = exports.DescribeUserStackAssociationsRequest$ = exports.DescribeUsersResult$ = exports.DescribeUsersRequest$ = exports.DescribeUsageReportSubscriptionsResult$ = exports.DescribeUsageReportSubscriptionsRequest$ = exports.DescribeThemeForStackResult$ = exports.DescribeThemeForStackRequest$ = exports.DescribeStacksResult$ = exports.DescribeStacksRequest$ = exports.DescribeSoftwareAssociationsResult$ = exports.DescribeSoftwareAssociationsRequest$ = exports.DescribeSessionsResult$ = exports.DescribeSessionsRequest$ = exports.DescribeImagesResult$ = exports.DescribeImagesRequest$ = exports.DescribeImagePermissionsResult$ = exports.DescribeImagePermissionsRequest$ = exports.DescribeImageBuildersResult$ = exports.DescribeImageBuildersRequest$ = exports.DescribeFleetsResult$ = exports.DescribeFleetsRequest$ = exports.DescribeEntitlementsResult$ = exports.DescribeEntitlementsRequest$ = exports.DescribeDirectoryConfigsResult$ = exports.DescribeDirectoryConfigsRequest$ = exports.DescribeAppLicenseUsageResult$ = exports.DescribeAppLicenseUsageRequest$ = exports.DescribeApplicationsResult$ = exports.DescribeApplicationsRequest$ = exports.DescribeApplicationFleetAssociationsResult$ = exports.DescribeApplicationFleetAssociationsRequest$ = exports.DescribeAppBlocksResult$ = exports.DescribeAppBlocksRequest$ = exports.DescribeAppBlockBuildersResult$ = exports.DescribeAppBlockBuildersRequest$ = exports.DescribeAppBlockBuilderAppBlockAssociationsResult$ = exports.DescribeAppBlockBuilderAppBlockAssociationsRequest$ = exports.DeleteUserResult$ = exports.DeleteUserRequest$ = exports.DeleteUsageReportSubscriptionResult$ = exports.DeleteUsageReportSubscriptionRequest$ = exports.DeleteThemeForStackResult$ = exports.DeleteThemeForStackRequest$ = exports.DeleteStackResult$ = exports.DeleteStackRequest$ = void 0;
6
- exports.Stack$ = exports.SoftwareAssociations$ = exports.SharedImagePermissions$ = exports.Session$ = exports.ServiceAccountCredentials$ = exports.ScriptDetails$ = exports.S3Location$ = exports.RuntimeValidationConfig$ = exports.ResourceError$ = exports.NetworkAccessConfiguration$ = exports.ListTagsForResourceResponse$ = exports.ListTagsForResourceRequest$ = exports.ListExportImageTasksResult$ = exports.ListExportImageTasksRequest$ = exports.ListEntitledApplicationsResult$ = exports.ListEntitledApplicationsRequest$ = exports.ListAssociatedStacksResult$ = exports.ListAssociatedStacksRequest$ = exports.ListAssociatedFleetsResult$ = exports.ListAssociatedFleetsRequest$ = exports.LastReportGenerationExecutionError$ = exports.ImageStateChangeReason$ = exports.ImagePermissions$ = exports.ImageBuilderStateChangeReason$ = exports.ImageBuilder$ = exports.Image$ = exports.GetExportImageTaskResult$ = exports.GetExportImageTaskRequest$ = exports.FleetError$ = exports.Fleet$ = exports.Filter$ = exports.ExportImageTask$ = exports.ExpireSessionResult$ = exports.ExpireSessionRequest$ = exports.ErrorDetails$ = exports.EntitlementAttribute$ = exports.Entitlement$ = exports.EntitledApplication$ = exports.EnableUserResult$ = exports.EnableUserRequest$ = exports.DomainJoinInfo$ = exports.DisassociateSoftwareFromImageBuilderResult$ = exports.DisassociateSoftwareFromImageBuilderRequest$ = exports.DisassociateFleetResult$ = exports.DisassociateFleetRequest$ = exports.DisassociateApplicationFromEntitlementResult$ = exports.DisassociateApplicationFromEntitlementRequest$ = exports.DisassociateApplicationFleetResult$ = exports.DisassociateApplicationFleetRequest$ = exports.DisassociateAppBlockBuilderAppBlockResult$ = void 0;
7
- exports.AssociateApplicationToEntitlement$ = exports.AssociateApplicationFleet$ = exports.AssociateAppBlockBuilderAppBlock$ = exports.VpcConfig$ = exports.VolumeConfig$ = exports.UserStackAssociationError$ = exports.UserStackAssociation$ = exports.UserSetting$ = exports.User$ = exports.UsageReportSubscription$ = exports.UrlRedirectionConfig$ = exports.UpdateThemeForStackResult$ = exports.UpdateThemeForStackRequest$ = exports.UpdateStackResult$ = exports.UpdateStackRequest$ = exports.UpdateImagePermissionsResult$ = exports.UpdateImagePermissionsRequest$ = exports.UpdateFleetResult$ = exports.UpdateFleetRequest$ = exports.UpdateEntitlementResult$ = exports.UpdateEntitlementRequest$ = exports.UpdateDirectoryConfigResult$ = exports.UpdateDirectoryConfigRequest$ = exports.UpdateApplicationResult$ = exports.UpdateApplicationRequest$ = exports.UpdateAppBlockBuilderResult$ = exports.UpdateAppBlockBuilderRequest$ = exports.UntagResourceResponse$ = exports.UntagResourceRequest$ = exports.ThemeFooterLink$ = exports.Theme$ = exports.TagResourceResponse$ = exports.TagResourceRequest$ = exports.StreamingExperienceSettings$ = exports.StorageConnector$ = exports.StopImageBuilderResult$ = exports.StopImageBuilderRequest$ = exports.StopFleetResult$ = exports.StopFleetRequest$ = exports.StopAppBlockBuilderResult$ = exports.StopAppBlockBuilderRequest$ = exports.StartSoftwareDeploymentToImageBuilderResult$ = exports.StartSoftwareDeploymentToImageBuilderRequest$ = exports.StartImageBuilderResult$ = exports.StartImageBuilderRequest$ = exports.StartFleetResult$ = exports.StartFleetRequest$ = exports.StartAppBlockBuilderResult$ = exports.StartAppBlockBuilderRequest$ = exports.StackError$ = void 0;
8
- exports.DescribeStacks$ = exports.DescribeSoftwareAssociations$ = exports.DescribeSessions$ = exports.DescribeImages$ = exports.DescribeImagePermissions$ = exports.DescribeImageBuilders$ = exports.DescribeFleets$ = exports.DescribeEntitlements$ = exports.DescribeDirectoryConfigs$ = exports.DescribeAppLicenseUsage$ = exports.DescribeApplications$ = exports.DescribeApplicationFleetAssociations$ = exports.DescribeAppBlocks$ = exports.DescribeAppBlockBuilders$ = exports.DescribeAppBlockBuilderAppBlockAssociations$ = exports.DeleteUser$ = exports.DeleteUsageReportSubscription$ = exports.DeleteThemeForStack$ = exports.DeleteStack$ = exports.DeleteImagePermissions$ = exports.DeleteImageBuilder$ = exports.DeleteImage$ = exports.DeleteFleet$ = exports.DeleteEntitlement$ = exports.DeleteDirectoryConfig$ = exports.DeleteApplication$ = exports.DeleteAppBlockBuilder$ = exports.DeleteAppBlock$ = exports.CreateUser$ = exports.CreateUsageReportSubscription$ = exports.CreateUpdatedImage$ = exports.CreateThemeForStack$ = exports.CreateStreamingURL$ = exports.CreateStack$ = exports.CreateImportedImage$ = exports.CreateImageBuilderStreamingURL$ = exports.CreateImageBuilder$ = exports.CreateFleet$ = exports.CreateExportImageTask$ = exports.CreateEntitlement$ = exports.CreateDirectoryConfig$ = exports.CreateApplication$ = exports.CreateAppBlockBuilderStreamingURL$ = exports.CreateAppBlockBuilder$ = exports.CreateAppBlock$ = exports.CopyImage$ = exports.BatchDisassociateUserStack$ = exports.BatchAssociateUserStack$ = exports.AssociateSoftwareToImageBuilder$ = exports.AssociateFleet$ = void 0;
9
- exports.UpdateThemeForStack$ = exports.UpdateStack$ = exports.UpdateImagePermissions$ = exports.UpdateFleet$ = exports.UpdateEntitlement$ = exports.UpdateDirectoryConfig$ = exports.UpdateApplication$ = exports.UpdateAppBlockBuilder$ = exports.UntagResource$ = exports.TagResource$ = exports.StopImageBuilder$ = exports.StopFleet$ = exports.StopAppBlockBuilder$ = exports.StartSoftwareDeploymentToImageBuilder$ = exports.StartImageBuilder$ = exports.StartFleet$ = exports.StartAppBlockBuilder$ = exports.ListTagsForResource$ = exports.ListExportImageTasks$ = exports.ListEntitledApplications$ = exports.ListAssociatedStacks$ = exports.ListAssociatedFleets$ = exports.GetExportImageTask$ = exports.ExpireSession$ = exports.EnableUser$ = exports.DisassociateSoftwareFromImageBuilder$ = exports.DisassociateFleet$ = exports.DisassociateApplicationFromEntitlement$ = exports.DisassociateApplicationFleet$ = exports.DisassociateAppBlockBuilderAppBlock$ = exports.DisableUser$ = exports.DescribeUserStackAssociations$ = exports.DescribeUsers$ = exports.DescribeUsageReportSubscriptions$ = exports.DescribeThemeForStack$ = void 0;
6
+ exports.SharedImagePermissions$ = exports.Session$ = exports.ServiceAccountCredentials$ = exports.ScriptDetails$ = exports.S3Location$ = exports.RuntimeValidationConfig$ = exports.ResourceError$ = exports.NetworkAccessConfiguration$ = exports.ListTagsForResourceResponse$ = exports.ListTagsForResourceRequest$ = exports.ListExportImageTasksResult$ = exports.ListExportImageTasksRequest$ = exports.ListEntitledApplicationsResult$ = exports.ListEntitledApplicationsRequest$ = exports.ListAssociatedStacksResult$ = exports.ListAssociatedStacksRequest$ = exports.ListAssociatedFleetsResult$ = exports.ListAssociatedFleetsRequest$ = exports.LastReportGenerationExecutionError$ = exports.ImageStateChangeReason$ = exports.ImagePermissions$ = exports.ImageBuilderStateChangeReason$ = exports.ImageBuilder$ = exports.Image$ = exports.GetExportImageTaskResult$ = exports.GetExportImageTaskRequest$ = exports.FleetError$ = exports.Fleet$ = exports.Filter$ = exports.ExportImageTask$ = exports.ExpireSessionResult$ = exports.ExpireSessionRequest$ = exports.ErrorDetails$ = exports.EntitlementAttribute$ = exports.Entitlement$ = exports.EntitledApplication$ = exports.EnableUserResult$ = exports.EnableUserRequest$ = exports.DrainSessionInstanceResult$ = exports.DrainSessionInstanceRequest$ = exports.DomainJoinInfo$ = exports.DisassociateSoftwareFromImageBuilderResult$ = exports.DisassociateSoftwareFromImageBuilderRequest$ = exports.DisassociateFleetResult$ = exports.DisassociateFleetRequest$ = exports.DisassociateApplicationFromEntitlementResult$ = exports.DisassociateApplicationFromEntitlementRequest$ = exports.DisassociateApplicationFleetResult$ = exports.DisassociateApplicationFleetRequest$ = exports.DisassociateAppBlockBuilderAppBlockResult$ = void 0;
7
+ exports.AssociateAppBlockBuilderAppBlock$ = exports.VpcConfig$ = exports.VolumeConfig$ = exports.UserStackAssociationError$ = exports.UserStackAssociation$ = exports.UserSetting$ = exports.User$ = exports.UsageReportSubscription$ = exports.UrlRedirectionConfig$ = exports.UpdateThemeForStackResult$ = exports.UpdateThemeForStackRequest$ = exports.UpdateStackResult$ = exports.UpdateStackRequest$ = exports.UpdateImagePermissionsResult$ = exports.UpdateImagePermissionsRequest$ = exports.UpdateFleetResult$ = exports.UpdateFleetRequest$ = exports.UpdateEntitlementResult$ = exports.UpdateEntitlementRequest$ = exports.UpdateDirectoryConfigResult$ = exports.UpdateDirectoryConfigRequest$ = exports.UpdateApplicationResult$ = exports.UpdateApplicationRequest$ = exports.UpdateAppBlockBuilderResult$ = exports.UpdateAppBlockBuilderRequest$ = exports.UntagResourceResponse$ = exports.UntagResourceRequest$ = exports.ThemeFooterLink$ = exports.Theme$ = exports.TagResourceResponse$ = exports.TagResourceRequest$ = exports.StreamingExperienceSettings$ = exports.StorageConnector$ = exports.StopImageBuilderResult$ = exports.StopImageBuilderRequest$ = exports.StopFleetResult$ = exports.StopFleetRequest$ = exports.StopAppBlockBuilderResult$ = exports.StopAppBlockBuilderRequest$ = exports.StartSoftwareDeploymentToImageBuilderResult$ = exports.StartSoftwareDeploymentToImageBuilderRequest$ = exports.StartImageBuilderResult$ = exports.StartImageBuilderRequest$ = exports.StartFleetResult$ = exports.StartFleetRequest$ = exports.StartAppBlockBuilderResult$ = exports.StartAppBlockBuilderRequest$ = exports.StackError$ = exports.Stack$ = exports.SoftwareAssociations$ = void 0;
8
+ exports.DescribeSessions$ = exports.DescribeImages$ = exports.DescribeImagePermissions$ = exports.DescribeImageBuilders$ = exports.DescribeFleets$ = exports.DescribeEntitlements$ = exports.DescribeDirectoryConfigs$ = exports.DescribeAppLicenseUsage$ = exports.DescribeApplications$ = exports.DescribeApplicationFleetAssociations$ = exports.DescribeAppBlocks$ = exports.DescribeAppBlockBuilders$ = exports.DescribeAppBlockBuilderAppBlockAssociations$ = exports.DeleteUser$ = exports.DeleteUsageReportSubscription$ = exports.DeleteThemeForStack$ = exports.DeleteStack$ = exports.DeleteImagePermissions$ = exports.DeleteImageBuilder$ = exports.DeleteImage$ = exports.DeleteFleet$ = exports.DeleteEntitlement$ = exports.DeleteDirectoryConfig$ = exports.DeleteApplication$ = exports.DeleteAppBlockBuilder$ = exports.DeleteAppBlock$ = exports.CreateUser$ = exports.CreateUsageReportSubscription$ = exports.CreateUpdatedImage$ = exports.CreateThemeForStack$ = exports.CreateStreamingURL$ = exports.CreateStack$ = exports.CreateImportedImage$ = exports.CreateImageBuilderStreamingURL$ = exports.CreateImageBuilder$ = exports.CreateFleet$ = exports.CreateExportImageTask$ = exports.CreateEntitlement$ = exports.CreateDirectoryConfig$ = exports.CreateApplication$ = exports.CreateAppBlockBuilderStreamingURL$ = exports.CreateAppBlockBuilder$ = exports.CreateAppBlock$ = exports.CopyImage$ = exports.BatchDisassociateUserStack$ = exports.BatchAssociateUserStack$ = exports.AssociateSoftwareToImageBuilder$ = exports.AssociateFleet$ = exports.AssociateApplicationToEntitlement$ = exports.AssociateApplicationFleet$ = void 0;
9
+ exports.UpdateThemeForStack$ = exports.UpdateStack$ = exports.UpdateImagePermissions$ = exports.UpdateFleet$ = exports.UpdateEntitlement$ = exports.UpdateDirectoryConfig$ = exports.UpdateApplication$ = exports.UpdateAppBlockBuilder$ = exports.UntagResource$ = exports.TagResource$ = exports.StopImageBuilder$ = exports.StopFleet$ = exports.StopAppBlockBuilder$ = exports.StartSoftwareDeploymentToImageBuilder$ = exports.StartImageBuilder$ = exports.StartFleet$ = exports.StartAppBlockBuilder$ = exports.ListTagsForResource$ = exports.ListExportImageTasks$ = exports.ListEntitledApplications$ = exports.ListAssociatedStacks$ = exports.ListAssociatedFleets$ = exports.GetExportImageTask$ = exports.ExpireSession$ = exports.EnableUser$ = exports.DrainSessionInstance$ = exports.DisassociateSoftwareFromImageBuilder$ = exports.DisassociateFleet$ = exports.DisassociateApplicationFromEntitlement$ = exports.DisassociateApplicationFleet$ = exports.DisassociateAppBlockBuilderAppBlock$ = exports.DisableUser$ = exports.DescribeUserStackAssociations$ = exports.DescribeUsers$ = exports.DescribeUsageReportSubscriptions$ = exports.DescribeThemeForStack$ = exports.DescribeStacks$ = exports.DescribeSoftwareAssociations$ = void 0;
10
10
  const _A = "Arn";
11
11
  const _AA = "ApplicationArn";
12
12
  const _AABBAB = "AssociateAppBlockBuilderAppBlock";
@@ -235,6 +235,8 @@ const _DIResc = "DescribeImagesResult";
235
235
  const _DIe = "DeleteImage";
236
236
  const _DIes = "DescribeImages";
237
237
  const _DJI = "DomainJoinInfo";
238
+ const _DMAUS = "DrainModeActiveUserSessions";
239
+ const _DMUUS = "DrainModeUnusedUserSessions";
238
240
  const _DN = "DisplayName";
239
241
  const _DNi = "DirectoryName";
240
242
  const _DNir = "DirectoryNames";
@@ -250,6 +252,9 @@ const _DSC = "DeleteStorageConnectors";
250
252
  const _DSFIB = "DisassociateSoftwareFromImageBuilder";
251
253
  const _DSFIBR = "DisassociateSoftwareFromImageBuilderRequest";
252
254
  const _DSFIBRi = "DisassociateSoftwareFromImageBuilderResult";
255
+ const _DSI = "DrainSessionInstance";
256
+ const _DSIR = "DrainSessionInstanceRequest";
257
+ const _DSIRr = "DrainSessionInstanceResult";
253
258
  const _DSR = "DeleteStackRequest";
254
259
  const _DSRe = "DeleteStackResult";
255
260
  const _DSRes = "DescribeSessionsRequest";
@@ -289,6 +294,7 @@ const _DUi = "DisableUser";
289
294
  const _DVC = "DeleteVpcConfig";
290
295
  const _De = "Desired";
291
296
  const _Do = "Domains";
297
+ const _Dr = "Draining";
292
298
  const _E = "Enabled";
293
299
  const _EA = "EntitledApplication";
294
300
  const _EAEE = "EntitlementAlreadyExistsException";
@@ -352,6 +358,7 @@ const _IBN = "ImageBuilderName";
352
358
  const _IBS = "ImageBuilderSupported";
353
359
  const _IBSCR = "ImageBuilderStateChangeReason";
354
360
  const _IBm = "ImageBuilders";
361
+ const _IDS = "InstanceDrainStatus";
355
362
  const _IDTIS = "IdleDisconnectTimeoutInSeconds";
356
363
  const _IE = "ImageErrors";
357
364
  const _IF = "InstanceFamilies";
@@ -848,8 +855,8 @@ exports.ComputeCapacity$ = [3, n0, _CC,
848
855
  ];
849
856
  exports.ComputeCapacityStatus$ = [3, n0, _CCS,
850
857
  0,
851
- [_De, _R, _IU, _Av, _DUS, _AUS, _AUSc, _AUSct],
852
- [1, 1, 1, 1, 1, 1, 1, 1], 1
858
+ [_De, _R, _IU, _Av, _DUS, _AUS, _AUSc, _AUSct, _Dr, _DMAUS, _DMUUS],
859
+ [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], 1
853
860
  ];
854
861
  exports.ContentRedirection$ = [3, n0, _CR,
855
862
  0,
@@ -1426,6 +1433,16 @@ exports.DomainJoinInfo$ = [3, n0, _DJI,
1426
1433
  [_DNi, _OUDNr],
1427
1434
  [0, 0]
1428
1435
  ];
1436
+ exports.DrainSessionInstanceRequest$ = [3, n0, _DSIR,
1437
+ 0,
1438
+ [_SI],
1439
+ [0], 1
1440
+ ];
1441
+ exports.DrainSessionInstanceResult$ = [3, n0, _DSIRr,
1442
+ 0,
1443
+ [],
1444
+ []
1445
+ ];
1429
1446
  exports.EnableUserRequest$ = [3, n0, _EUR,
1430
1447
  0,
1431
1448
  [_UN, _AT],
@@ -1608,8 +1625,8 @@ exports.ServiceAccountCredentials$ = [3, n0, _SAC,
1608
1625
  ];
1609
1626
  exports.Session$ = [3, n0, _Ses,
1610
1627
  0,
1611
- [_Id, _UI, _SN, _FN, _S, _CS, _ST, _MET, _AT, _NAC, _II],
1612
- [0, 0, 0, 0, 0, 0, 4, 4, 0, () => exports.NetworkAccessConfiguration$, 0], 5
1628
+ [_Id, _UI, _SN, _FN, _S, _CS, _ST, _MET, _AT, _NAC, _II, _IDS],
1629
+ [0, 0, 0, 0, 0, 0, 4, 4, 0, () => exports.NetworkAccessConfiguration$, 0, 0], 5
1613
1630
  ];
1614
1631
  exports.SharedImagePermissions$ = [3, n0, _SIP,
1615
1632
  0,
@@ -2175,6 +2192,9 @@ exports.DisassociateFleet$ = [9, n0, _DFi,
2175
2192
  exports.DisassociateSoftwareFromImageBuilder$ = [9, n0, _DSFIB,
2176
2193
  0, () => exports.DisassociateSoftwareFromImageBuilderRequest$, () => exports.DisassociateSoftwareFromImageBuilderResult$
2177
2194
  ];
2195
+ exports.DrainSessionInstance$ = [9, n0, _DSI,
2196
+ 0, () => exports.DrainSessionInstanceRequest$, () => exports.DrainSessionInstanceResult$
2197
+ ];
2178
2198
  exports.EnableUser$ = [9, n0, _EU,
2179
2199
  0, () => exports.EnableUserRequest$, () => exports.EnableUserResult$
2180
2200
  ];
@@ -63,6 +63,7 @@ import { DisassociateApplicationFleetCommand, } from "./commands/DisassociateApp
63
63
  import { DisassociateApplicationFromEntitlementCommand, } from "./commands/DisassociateApplicationFromEntitlementCommand";
64
64
  import { DisassociateFleetCommand, } from "./commands/DisassociateFleetCommand";
65
65
  import { DisassociateSoftwareFromImageBuilderCommand, } from "./commands/DisassociateSoftwareFromImageBuilderCommand";
66
+ import { DrainSessionInstanceCommand, } from "./commands/DrainSessionInstanceCommand";
66
67
  import { EnableUserCommand, } from "./commands/EnableUserCommand";
67
68
  import { ExpireSessionCommand, } from "./commands/ExpireSessionCommand";
68
69
  import { GetExportImageTaskCommand, } from "./commands/GetExportImageTaskCommand";
@@ -158,6 +159,7 @@ const commands = {
158
159
  DisassociateApplicationFromEntitlementCommand,
159
160
  DisassociateFleetCommand,
160
161
  DisassociateSoftwareFromImageBuilderCommand,
162
+ DrainSessionInstanceCommand,
161
163
  EnableUserCommand,
162
164
  ExpireSessionCommand,
163
165
  GetExportImageTaskCommand,
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DrainSessionInstance$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class DrainSessionInstanceCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("PhotonAdminProxyService", "DrainSessionInstance", {})
13
+ .n("AppStreamClient", "DrainSessionInstanceCommand")
14
+ .sc(DrainSessionInstance$)
15
+ .build() {
16
+ }
@@ -61,6 +61,7 @@ export * from "./DisassociateApplicationFleetCommand";
61
61
  export * from "./DisassociateApplicationFromEntitlementCommand";
62
62
  export * from "./DisassociateFleetCommand";
63
63
  export * from "./DisassociateSoftwareFromImageBuilderCommand";
64
+ export * from "./DrainSessionInstanceCommand";
64
65
  export * from "./EnableUserCommand";
65
66
  export * from "./ExpireSessionCommand";
66
67
  export * from "./GetExportImageTaskCommand";
@@ -225,6 +225,11 @@ export const SessionConnectionState = {
225
225
  CONNECTED: "CONNECTED",
226
226
  NOT_CONNECTED: "NOT_CONNECTED",
227
227
  };
228
+ export const InstanceDrainStatus = {
229
+ ACTIVE: "ACTIVE",
230
+ DRAINING: "DRAINING",
231
+ NOT_APPLICABLE: "NOT_APPLICABLE",
232
+ };
228
233
  export const SessionState = {
229
234
  ACTIVE: "ACTIVE",
230
235
  EXPIRED: "EXPIRED",
@@ -226,6 +226,8 @@ const _DIResc = "DescribeImagesResult";
226
226
  const _DIe = "DeleteImage";
227
227
  const _DIes = "DescribeImages";
228
228
  const _DJI = "DomainJoinInfo";
229
+ const _DMAUS = "DrainModeActiveUserSessions";
230
+ const _DMUUS = "DrainModeUnusedUserSessions";
229
231
  const _DN = "DisplayName";
230
232
  const _DNi = "DirectoryName";
231
233
  const _DNir = "DirectoryNames";
@@ -241,6 +243,9 @@ const _DSC = "DeleteStorageConnectors";
241
243
  const _DSFIB = "DisassociateSoftwareFromImageBuilder";
242
244
  const _DSFIBR = "DisassociateSoftwareFromImageBuilderRequest";
243
245
  const _DSFIBRi = "DisassociateSoftwareFromImageBuilderResult";
246
+ const _DSI = "DrainSessionInstance";
247
+ const _DSIR = "DrainSessionInstanceRequest";
248
+ const _DSIRr = "DrainSessionInstanceResult";
244
249
  const _DSR = "DeleteStackRequest";
245
250
  const _DSRe = "DeleteStackResult";
246
251
  const _DSRes = "DescribeSessionsRequest";
@@ -280,6 +285,7 @@ const _DUi = "DisableUser";
280
285
  const _DVC = "DeleteVpcConfig";
281
286
  const _De = "Desired";
282
287
  const _Do = "Domains";
288
+ const _Dr = "Draining";
283
289
  const _E = "Enabled";
284
290
  const _EA = "EntitledApplication";
285
291
  const _EAEE = "EntitlementAlreadyExistsException";
@@ -343,6 +349,7 @@ const _IBN = "ImageBuilderName";
343
349
  const _IBS = "ImageBuilderSupported";
344
350
  const _IBSCR = "ImageBuilderStateChangeReason";
345
351
  const _IBm = "ImageBuilders";
352
+ const _IDS = "InstanceDrainStatus";
346
353
  const _IDTIS = "IdleDisconnectTimeoutInSeconds";
347
354
  const _IE = "ImageErrors";
348
355
  const _IF = "InstanceFamilies";
@@ -839,8 +846,8 @@ export var ComputeCapacity$ = [3, n0, _CC,
839
846
  ];
840
847
  export var ComputeCapacityStatus$ = [3, n0, _CCS,
841
848
  0,
842
- [_De, _R, _IU, _Av, _DUS, _AUS, _AUSc, _AUSct],
843
- [1, 1, 1, 1, 1, 1, 1, 1], 1
849
+ [_De, _R, _IU, _Av, _DUS, _AUS, _AUSc, _AUSct, _Dr, _DMAUS, _DMUUS],
850
+ [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], 1
844
851
  ];
845
852
  export var ContentRedirection$ = [3, n0, _CR,
846
853
  0,
@@ -1417,6 +1424,16 @@ export var DomainJoinInfo$ = [3, n0, _DJI,
1417
1424
  [_DNi, _OUDNr],
1418
1425
  [0, 0]
1419
1426
  ];
1427
+ export var DrainSessionInstanceRequest$ = [3, n0, _DSIR,
1428
+ 0,
1429
+ [_SI],
1430
+ [0], 1
1431
+ ];
1432
+ export var DrainSessionInstanceResult$ = [3, n0, _DSIRr,
1433
+ 0,
1434
+ [],
1435
+ []
1436
+ ];
1420
1437
  export var EnableUserRequest$ = [3, n0, _EUR,
1421
1438
  0,
1422
1439
  [_UN, _AT],
@@ -1599,8 +1616,8 @@ export var ServiceAccountCredentials$ = [3, n0, _SAC,
1599
1616
  ];
1600
1617
  export var Session$ = [3, n0, _Ses,
1601
1618
  0,
1602
- [_Id, _UI, _SN, _FN, _S, _CS, _ST, _MET, _AT, _NAC, _II],
1603
- [0, 0, 0, 0, 0, 0, 4, 4, 0, () => NetworkAccessConfiguration$, 0], 5
1619
+ [_Id, _UI, _SN, _FN, _S, _CS, _ST, _MET, _AT, _NAC, _II, _IDS],
1620
+ [0, 0, 0, 0, 0, 0, 4, 4, 0, () => NetworkAccessConfiguration$, 0, 0], 5
1604
1621
  ];
1605
1622
  export var SharedImagePermissions$ = [3, n0, _SIP,
1606
1623
  0,
@@ -2166,6 +2183,9 @@ export var DisassociateFleet$ = [9, n0, _DFi,
2166
2183
  export var DisassociateSoftwareFromImageBuilder$ = [9, n0, _DSFIB,
2167
2184
  0, () => DisassociateSoftwareFromImageBuilderRequest$, () => DisassociateSoftwareFromImageBuilderResult$
2168
2185
  ];
2186
+ export var DrainSessionInstance$ = [9, n0, _DSI,
2187
+ 0, () => DrainSessionInstanceRequest$, () => DrainSessionInstanceResult$
2188
+ ];
2169
2189
  export var EnableUser$ = [9, n0, _EU,
2170
2190
  0, () => EnableUserRequest$, () => EnableUserResult$
2171
2191
  ];
@@ -64,6 +64,7 @@ import { type DisassociateApplicationFleetCommandInput, type DisassociateApplica
64
64
  import { type DisassociateApplicationFromEntitlementCommandInput, type DisassociateApplicationFromEntitlementCommandOutput } from "./commands/DisassociateApplicationFromEntitlementCommand";
65
65
  import { type DisassociateFleetCommandInput, type DisassociateFleetCommandOutput } from "./commands/DisassociateFleetCommand";
66
66
  import { type DisassociateSoftwareFromImageBuilderCommandInput, type DisassociateSoftwareFromImageBuilderCommandOutput } from "./commands/DisassociateSoftwareFromImageBuilderCommand";
67
+ import { type DrainSessionInstanceCommandInput, type DrainSessionInstanceCommandOutput } from "./commands/DrainSessionInstanceCommand";
67
68
  import { type EnableUserCommandInput, type EnableUserCommandOutput } from "./commands/EnableUserCommand";
68
69
  import { type ExpireSessionCommandInput, type ExpireSessionCommandOutput } from "./commands/ExpireSessionCommand";
69
70
  import { type GetExportImageTaskCommandInput, type GetExportImageTaskCommandOutput } from "./commands/GetExportImageTaskCommand";
@@ -482,6 +483,12 @@ export interface AppStream {
482
483
  disassociateSoftwareFromImageBuilder(args: DisassociateSoftwareFromImageBuilderCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateSoftwareFromImageBuilderCommandOutput>;
483
484
  disassociateSoftwareFromImageBuilder(args: DisassociateSoftwareFromImageBuilderCommandInput, cb: (err: any, data?: DisassociateSoftwareFromImageBuilderCommandOutput) => void): void;
484
485
  disassociateSoftwareFromImageBuilder(args: DisassociateSoftwareFromImageBuilderCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateSoftwareFromImageBuilderCommandOutput) => void): void;
486
+ /**
487
+ * @see {@link DrainSessionInstanceCommand}
488
+ */
489
+ drainSessionInstance(args: DrainSessionInstanceCommandInput, options?: __HttpHandlerOptions): Promise<DrainSessionInstanceCommandOutput>;
490
+ drainSessionInstance(args: DrainSessionInstanceCommandInput, cb: (err: any, data?: DrainSessionInstanceCommandOutput) => void): void;
491
+ drainSessionInstance(args: DrainSessionInstanceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DrainSessionInstanceCommandOutput) => void): void;
485
492
  /**
486
493
  * @see {@link EnableUserCommand}
487
494
  */
@@ -70,6 +70,7 @@ import type { DisassociateApplicationFleetCommandInput, DisassociateApplicationF
70
70
  import type { DisassociateApplicationFromEntitlementCommandInput, DisassociateApplicationFromEntitlementCommandOutput } from "./commands/DisassociateApplicationFromEntitlementCommand";
71
71
  import type { DisassociateFleetCommandInput, DisassociateFleetCommandOutput } from "./commands/DisassociateFleetCommand";
72
72
  import type { DisassociateSoftwareFromImageBuilderCommandInput, DisassociateSoftwareFromImageBuilderCommandOutput } from "./commands/DisassociateSoftwareFromImageBuilderCommand";
73
+ import type { DrainSessionInstanceCommandInput, DrainSessionInstanceCommandOutput } from "./commands/DrainSessionInstanceCommand";
73
74
  import type { EnableUserCommandInput, EnableUserCommandOutput } from "./commands/EnableUserCommand";
74
75
  import type { ExpireSessionCommandInput, ExpireSessionCommandOutput } from "./commands/ExpireSessionCommand";
75
76
  import type { GetExportImageTaskCommandInput, GetExportImageTaskCommandOutput } from "./commands/GetExportImageTaskCommand";
@@ -101,11 +102,11 @@ export { __Client };
101
102
  /**
102
103
  * @public
103
104
  */
104
- export type ServiceInputTypes = AssociateAppBlockBuilderAppBlockCommandInput | AssociateApplicationFleetCommandInput | AssociateApplicationToEntitlementCommandInput | AssociateFleetCommandInput | AssociateSoftwareToImageBuilderCommandInput | BatchAssociateUserStackCommandInput | BatchDisassociateUserStackCommandInput | CopyImageCommandInput | CreateAppBlockBuilderCommandInput | CreateAppBlockBuilderStreamingURLCommandInput | CreateAppBlockCommandInput | CreateApplicationCommandInput | CreateDirectoryConfigCommandInput | CreateEntitlementCommandInput | CreateExportImageTaskCommandInput | CreateFleetCommandInput | CreateImageBuilderCommandInput | CreateImageBuilderStreamingURLCommandInput | CreateImportedImageCommandInput | CreateStackCommandInput | CreateStreamingURLCommandInput | CreateThemeForStackCommandInput | CreateUpdatedImageCommandInput | CreateUsageReportSubscriptionCommandInput | CreateUserCommandInput | DeleteAppBlockBuilderCommandInput | DeleteAppBlockCommandInput | DeleteApplicationCommandInput | DeleteDirectoryConfigCommandInput | DeleteEntitlementCommandInput | DeleteFleetCommandInput | DeleteImageBuilderCommandInput | DeleteImageCommandInput | DeleteImagePermissionsCommandInput | DeleteStackCommandInput | DeleteThemeForStackCommandInput | DeleteUsageReportSubscriptionCommandInput | DeleteUserCommandInput | DescribeAppBlockBuilderAppBlockAssociationsCommandInput | DescribeAppBlockBuildersCommandInput | DescribeAppBlocksCommandInput | DescribeAppLicenseUsageCommandInput | DescribeApplicationFleetAssociationsCommandInput | DescribeApplicationsCommandInput | DescribeDirectoryConfigsCommandInput | DescribeEntitlementsCommandInput | DescribeFleetsCommandInput | DescribeImageBuildersCommandInput | DescribeImagePermissionsCommandInput | DescribeImagesCommandInput | DescribeSessionsCommandInput | DescribeSoftwareAssociationsCommandInput | DescribeStacksCommandInput | DescribeThemeForStackCommandInput | DescribeUsageReportSubscriptionsCommandInput | DescribeUserStackAssociationsCommandInput | DescribeUsersCommandInput | DisableUserCommandInput | DisassociateAppBlockBuilderAppBlockCommandInput | DisassociateApplicationFleetCommandInput | DisassociateApplicationFromEntitlementCommandInput | DisassociateFleetCommandInput | DisassociateSoftwareFromImageBuilderCommandInput | EnableUserCommandInput | ExpireSessionCommandInput | GetExportImageTaskCommandInput | ListAssociatedFleetsCommandInput | ListAssociatedStacksCommandInput | ListEntitledApplicationsCommandInput | ListExportImageTasksCommandInput | ListTagsForResourceCommandInput | StartAppBlockBuilderCommandInput | StartFleetCommandInput | StartImageBuilderCommandInput | StartSoftwareDeploymentToImageBuilderCommandInput | StopAppBlockBuilderCommandInput | StopFleetCommandInput | StopImageBuilderCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAppBlockBuilderCommandInput | UpdateApplicationCommandInput | UpdateDirectoryConfigCommandInput | UpdateEntitlementCommandInput | UpdateFleetCommandInput | UpdateImagePermissionsCommandInput | UpdateStackCommandInput | UpdateThemeForStackCommandInput;
105
+ export type ServiceInputTypes = AssociateAppBlockBuilderAppBlockCommandInput | AssociateApplicationFleetCommandInput | AssociateApplicationToEntitlementCommandInput | AssociateFleetCommandInput | AssociateSoftwareToImageBuilderCommandInput | BatchAssociateUserStackCommandInput | BatchDisassociateUserStackCommandInput | CopyImageCommandInput | CreateAppBlockBuilderCommandInput | CreateAppBlockBuilderStreamingURLCommandInput | CreateAppBlockCommandInput | CreateApplicationCommandInput | CreateDirectoryConfigCommandInput | CreateEntitlementCommandInput | CreateExportImageTaskCommandInput | CreateFleetCommandInput | CreateImageBuilderCommandInput | CreateImageBuilderStreamingURLCommandInput | CreateImportedImageCommandInput | CreateStackCommandInput | CreateStreamingURLCommandInput | CreateThemeForStackCommandInput | CreateUpdatedImageCommandInput | CreateUsageReportSubscriptionCommandInput | CreateUserCommandInput | DeleteAppBlockBuilderCommandInput | DeleteAppBlockCommandInput | DeleteApplicationCommandInput | DeleteDirectoryConfigCommandInput | DeleteEntitlementCommandInput | DeleteFleetCommandInput | DeleteImageBuilderCommandInput | DeleteImageCommandInput | DeleteImagePermissionsCommandInput | DeleteStackCommandInput | DeleteThemeForStackCommandInput | DeleteUsageReportSubscriptionCommandInput | DeleteUserCommandInput | DescribeAppBlockBuilderAppBlockAssociationsCommandInput | DescribeAppBlockBuildersCommandInput | DescribeAppBlocksCommandInput | DescribeAppLicenseUsageCommandInput | DescribeApplicationFleetAssociationsCommandInput | DescribeApplicationsCommandInput | DescribeDirectoryConfigsCommandInput | DescribeEntitlementsCommandInput | DescribeFleetsCommandInput | DescribeImageBuildersCommandInput | DescribeImagePermissionsCommandInput | DescribeImagesCommandInput | DescribeSessionsCommandInput | DescribeSoftwareAssociationsCommandInput | DescribeStacksCommandInput | DescribeThemeForStackCommandInput | DescribeUsageReportSubscriptionsCommandInput | DescribeUserStackAssociationsCommandInput | DescribeUsersCommandInput | DisableUserCommandInput | DisassociateAppBlockBuilderAppBlockCommandInput | DisassociateApplicationFleetCommandInput | DisassociateApplicationFromEntitlementCommandInput | DisassociateFleetCommandInput | DisassociateSoftwareFromImageBuilderCommandInput | DrainSessionInstanceCommandInput | EnableUserCommandInput | ExpireSessionCommandInput | GetExportImageTaskCommandInput | ListAssociatedFleetsCommandInput | ListAssociatedStacksCommandInput | ListEntitledApplicationsCommandInput | ListExportImageTasksCommandInput | ListTagsForResourceCommandInput | StartAppBlockBuilderCommandInput | StartFleetCommandInput | StartImageBuilderCommandInput | StartSoftwareDeploymentToImageBuilderCommandInput | StopAppBlockBuilderCommandInput | StopFleetCommandInput | StopImageBuilderCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAppBlockBuilderCommandInput | UpdateApplicationCommandInput | UpdateDirectoryConfigCommandInput | UpdateEntitlementCommandInput | UpdateFleetCommandInput | UpdateImagePermissionsCommandInput | UpdateStackCommandInput | UpdateThemeForStackCommandInput;
105
106
  /**
106
107
  * @public
107
108
  */
108
- export type ServiceOutputTypes = AssociateAppBlockBuilderAppBlockCommandOutput | AssociateApplicationFleetCommandOutput | AssociateApplicationToEntitlementCommandOutput | AssociateFleetCommandOutput | AssociateSoftwareToImageBuilderCommandOutput | BatchAssociateUserStackCommandOutput | BatchDisassociateUserStackCommandOutput | CopyImageCommandOutput | CreateAppBlockBuilderCommandOutput | CreateAppBlockBuilderStreamingURLCommandOutput | CreateAppBlockCommandOutput | CreateApplicationCommandOutput | CreateDirectoryConfigCommandOutput | CreateEntitlementCommandOutput | CreateExportImageTaskCommandOutput | CreateFleetCommandOutput | CreateImageBuilderCommandOutput | CreateImageBuilderStreamingURLCommandOutput | CreateImportedImageCommandOutput | CreateStackCommandOutput | CreateStreamingURLCommandOutput | CreateThemeForStackCommandOutput | CreateUpdatedImageCommandOutput | CreateUsageReportSubscriptionCommandOutput | CreateUserCommandOutput | DeleteAppBlockBuilderCommandOutput | DeleteAppBlockCommandOutput | DeleteApplicationCommandOutput | DeleteDirectoryConfigCommandOutput | DeleteEntitlementCommandOutput | DeleteFleetCommandOutput | DeleteImageBuilderCommandOutput | DeleteImageCommandOutput | DeleteImagePermissionsCommandOutput | DeleteStackCommandOutput | DeleteThemeForStackCommandOutput | DeleteUsageReportSubscriptionCommandOutput | DeleteUserCommandOutput | DescribeAppBlockBuilderAppBlockAssociationsCommandOutput | DescribeAppBlockBuildersCommandOutput | DescribeAppBlocksCommandOutput | DescribeAppLicenseUsageCommandOutput | DescribeApplicationFleetAssociationsCommandOutput | DescribeApplicationsCommandOutput | DescribeDirectoryConfigsCommandOutput | DescribeEntitlementsCommandOutput | DescribeFleetsCommandOutput | DescribeImageBuildersCommandOutput | DescribeImagePermissionsCommandOutput | DescribeImagesCommandOutput | DescribeSessionsCommandOutput | DescribeSoftwareAssociationsCommandOutput | DescribeStacksCommandOutput | DescribeThemeForStackCommandOutput | DescribeUsageReportSubscriptionsCommandOutput | DescribeUserStackAssociationsCommandOutput | DescribeUsersCommandOutput | DisableUserCommandOutput | DisassociateAppBlockBuilderAppBlockCommandOutput | DisassociateApplicationFleetCommandOutput | DisassociateApplicationFromEntitlementCommandOutput | DisassociateFleetCommandOutput | DisassociateSoftwareFromImageBuilderCommandOutput | EnableUserCommandOutput | ExpireSessionCommandOutput | GetExportImageTaskCommandOutput | ListAssociatedFleetsCommandOutput | ListAssociatedStacksCommandOutput | ListEntitledApplicationsCommandOutput | ListExportImageTasksCommandOutput | ListTagsForResourceCommandOutput | StartAppBlockBuilderCommandOutput | StartFleetCommandOutput | StartImageBuilderCommandOutput | StartSoftwareDeploymentToImageBuilderCommandOutput | StopAppBlockBuilderCommandOutput | StopFleetCommandOutput | StopImageBuilderCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAppBlockBuilderCommandOutput | UpdateApplicationCommandOutput | UpdateDirectoryConfigCommandOutput | UpdateEntitlementCommandOutput | UpdateFleetCommandOutput | UpdateImagePermissionsCommandOutput | UpdateStackCommandOutput | UpdateThemeForStackCommandOutput;
109
+ export type ServiceOutputTypes = AssociateAppBlockBuilderAppBlockCommandOutput | AssociateApplicationFleetCommandOutput | AssociateApplicationToEntitlementCommandOutput | AssociateFleetCommandOutput | AssociateSoftwareToImageBuilderCommandOutput | BatchAssociateUserStackCommandOutput | BatchDisassociateUserStackCommandOutput | CopyImageCommandOutput | CreateAppBlockBuilderCommandOutput | CreateAppBlockBuilderStreamingURLCommandOutput | CreateAppBlockCommandOutput | CreateApplicationCommandOutput | CreateDirectoryConfigCommandOutput | CreateEntitlementCommandOutput | CreateExportImageTaskCommandOutput | CreateFleetCommandOutput | CreateImageBuilderCommandOutput | CreateImageBuilderStreamingURLCommandOutput | CreateImportedImageCommandOutput | CreateStackCommandOutput | CreateStreamingURLCommandOutput | CreateThemeForStackCommandOutput | CreateUpdatedImageCommandOutput | CreateUsageReportSubscriptionCommandOutput | CreateUserCommandOutput | DeleteAppBlockBuilderCommandOutput | DeleteAppBlockCommandOutput | DeleteApplicationCommandOutput | DeleteDirectoryConfigCommandOutput | DeleteEntitlementCommandOutput | DeleteFleetCommandOutput | DeleteImageBuilderCommandOutput | DeleteImageCommandOutput | DeleteImagePermissionsCommandOutput | DeleteStackCommandOutput | DeleteThemeForStackCommandOutput | DeleteUsageReportSubscriptionCommandOutput | DeleteUserCommandOutput | DescribeAppBlockBuilderAppBlockAssociationsCommandOutput | DescribeAppBlockBuildersCommandOutput | DescribeAppBlocksCommandOutput | DescribeAppLicenseUsageCommandOutput | DescribeApplicationFleetAssociationsCommandOutput | DescribeApplicationsCommandOutput | DescribeDirectoryConfigsCommandOutput | DescribeEntitlementsCommandOutput | DescribeFleetsCommandOutput | DescribeImageBuildersCommandOutput | DescribeImagePermissionsCommandOutput | DescribeImagesCommandOutput | DescribeSessionsCommandOutput | DescribeSoftwareAssociationsCommandOutput | DescribeStacksCommandOutput | DescribeThemeForStackCommandOutput | DescribeUsageReportSubscriptionsCommandOutput | DescribeUserStackAssociationsCommandOutput | DescribeUsersCommandOutput | DisableUserCommandOutput | DisassociateAppBlockBuilderAppBlockCommandOutput | DisassociateApplicationFleetCommandOutput | DisassociateApplicationFromEntitlementCommandOutput | DisassociateFleetCommandOutput | DisassociateSoftwareFromImageBuilderCommandOutput | DrainSessionInstanceCommandOutput | EnableUserCommandOutput | ExpireSessionCommandOutput | GetExportImageTaskCommandOutput | ListAssociatedFleetsCommandOutput | ListAssociatedStacksCommandOutput | ListEntitledApplicationsCommandOutput | ListExportImageTasksCommandOutput | ListTagsForResourceCommandOutput | StartAppBlockBuilderCommandOutput | StartFleetCommandOutput | StartImageBuilderCommandOutput | StartSoftwareDeploymentToImageBuilderCommandOutput | StopAppBlockBuilderCommandOutput | StopFleetCommandOutput | StopImageBuilderCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAppBlockBuilderCommandOutput | UpdateApplicationCommandOutput | UpdateDirectoryConfigCommandOutput | UpdateEntitlementCommandOutput | UpdateFleetCommandOutput | UpdateImagePermissionsCommandOutput | UpdateStackCommandOutput | UpdateThemeForStackCommandOutput;
109
110
  /**
110
111
  * @public
111
112
  */
@@ -105,6 +105,9 @@ declare const CreateFleetCommand_base: {
105
105
  * // AvailableUserSessions: Number("int"),
106
106
  * // ActiveUserSessions: Number("int"),
107
107
  * // ActualUserSessions: Number("int"),
108
+ * // Draining: Number("int"),
109
+ * // DrainModeActiveUserSessions: Number("int"),
110
+ * // DrainModeUnusedUserSessions: Number("int"),
108
111
  * // },
109
112
  * // MaxUserDurationInSeconds: Number("int"),
110
113
  * // DisconnectTimeoutInSeconds: Number("int"),
@@ -64,6 +64,9 @@ declare const DescribeFleetsCommand_base: {
64
64
  * // AvailableUserSessions: Number("int"),
65
65
  * // ActiveUserSessions: Number("int"),
66
66
  * // ActualUserSessions: Number("int"),
67
+ * // Draining: Number("int"),
68
+ * // DrainModeActiveUserSessions: Number("int"),
69
+ * // DrainModeUnusedUserSessions: Number("int"),
67
70
  * // },
68
71
  * // MaxUserDurationInSeconds: Number("int"),
69
72
  * // DisconnectTimeoutInSeconds: Number("int"),
@@ -69,6 +69,7 @@ declare const DescribeSessionsCommand_base: {
69
69
  * // EniId: "STRING_VALUE",
70
70
  * // },
71
71
  * // InstanceId: "STRING_VALUE",
72
+ * // InstanceDrainStatus: "ACTIVE" || "DRAINING" || "NOT_APPLICABLE",
72
73
  * // },
73
74
  * // ],
74
75
  * // NextToken: "STRING_VALUE",
@@ -0,0 +1,81 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { AppStreamClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppStreamClient";
4
+ import type { DrainSessionInstanceRequest, DrainSessionInstanceResult } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DrainSessionInstanceCommand}.
14
+ */
15
+ export interface DrainSessionInstanceCommandInput extends DrainSessionInstanceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DrainSessionInstanceCommand}.
21
+ */
22
+ export interface DrainSessionInstanceCommandOutput extends DrainSessionInstanceResult, __MetadataBearer {
23
+ }
24
+ declare const DrainSessionInstanceCommand_base: {
25
+ new (input: DrainSessionInstanceCommandInput): import("@smithy/smithy-client").CommandImpl<DrainSessionInstanceCommandInput, DrainSessionInstanceCommandOutput, AppStreamClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DrainSessionInstanceCommandInput): import("@smithy/smithy-client").CommandImpl<DrainSessionInstanceCommandInput, DrainSessionInstanceCommandOutput, AppStreamClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Drains the instance hosting the specified streaming session. The instance stops accepting new sessions while existing sessions continue uninterrupted. Once all sessions end, the instance is reclaimed and replaced. This only applies to multi-session fleets.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { AppStreamClient, DrainSessionInstanceCommand } from "@aws-sdk/client-appstream"; // ES Modules import
35
+ * // const { AppStreamClient, DrainSessionInstanceCommand } = require("@aws-sdk/client-appstream"); // CommonJS import
36
+ * // import type { AppStreamClientConfig } from "@aws-sdk/client-appstream";
37
+ * const config = {}; // type is AppStreamClientConfig
38
+ * const client = new AppStreamClient(config);
39
+ * const input = { // DrainSessionInstanceRequest
40
+ * SessionId: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new DrainSessionInstanceCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param DrainSessionInstanceCommandInput - {@link DrainSessionInstanceCommandInput}
49
+ * @returns {@link DrainSessionInstanceCommandOutput}
50
+ * @see {@link DrainSessionInstanceCommandInput} for command's `input` shape.
51
+ * @see {@link DrainSessionInstanceCommandOutput} for command's `response` shape.
52
+ * @see {@link AppStreamClientResolvedConfig | config} for AppStreamClient's `config` shape.
53
+ *
54
+ * @throws {@link ConcurrentModificationException} (client fault)
55
+ * <p>An API error occurred. Wait a few minutes and try again.</p>
56
+ *
57
+ * @throws {@link OperationNotPermittedException} (client fault)
58
+ * <p>The attempted operation is not permitted.</p>
59
+ *
60
+ * @throws {@link ResourceNotFoundException} (client fault)
61
+ * <p>The specified resource was not found.</p>
62
+ *
63
+ * @throws {@link AppStreamServiceException}
64
+ * <p>Base exception class for all service exceptions from AppStream service.</p>
65
+ *
66
+ *
67
+ * @public
68
+ */
69
+ export declare class DrainSessionInstanceCommand extends DrainSessionInstanceCommand_base {
70
+ /** @internal type navigation helper, not in runtime. */
71
+ protected static __types: {
72
+ api: {
73
+ input: DrainSessionInstanceRequest;
74
+ output: {};
75
+ };
76
+ sdk: {
77
+ input: DrainSessionInstanceCommandInput;
78
+ output: DrainSessionInstanceCommandOutput;
79
+ };
80
+ };
81
+ }
@@ -126,6 +126,9 @@ declare const UpdateFleetCommand_base: {
126
126
  * // AvailableUserSessions: Number("int"),
127
127
  * // ActiveUserSessions: Number("int"),
128
128
  * // ActualUserSessions: Number("int"),
129
+ * // Draining: Number("int"),
130
+ * // DrainModeActiveUserSessions: Number("int"),
131
+ * // DrainModeUnusedUserSessions: Number("int"),
129
132
  * // },
130
133
  * // MaxUserDurationInSeconds: Number("int"),
131
134
  * // DisconnectTimeoutInSeconds: Number("int"),
@@ -61,6 +61,7 @@ export * from "./DisassociateApplicationFleetCommand";
61
61
  export * from "./DisassociateApplicationFromEntitlementCommand";
62
62
  export * from "./DisassociateFleetCommand";
63
63
  export * from "./DisassociateSoftwareFromImageBuilderCommand";
64
+ export * from "./DrainSessionInstanceCommand";
64
65
  export * from "./EnableUserCommand";
65
66
  export * from "./ExpireSessionCommand";
66
67
  export * from "./GetExportImageTaskCommand";
@@ -529,6 +529,19 @@ export declare const SessionConnectionState: {
529
529
  * @public
530
530
  */
531
531
  export type SessionConnectionState = (typeof SessionConnectionState)[keyof typeof SessionConnectionState];
532
+ /**
533
+ * @public
534
+ * @enum
535
+ */
536
+ export declare const InstanceDrainStatus: {
537
+ readonly ACTIVE: "ACTIVE";
538
+ readonly DRAINING: "DRAINING";
539
+ readonly NOT_APPLICABLE: "NOT_APPLICABLE";
540
+ };
541
+ /**
542
+ * @public
543
+ */
544
+ export type InstanceDrainStatus = (typeof InstanceDrainStatus)[keyof typeof InstanceDrainStatus];
532
545
  /**
533
546
  * @public
534
547
  * @enum
@@ -1,4 +1,4 @@
1
- import type { AccessEndpointType, Action, AgentSoftwareVersion, AppBlockBuilderAttribute, AppBlockBuilderPlatformType, AppBlockBuilderState, AppBlockBuilderStateChangeReasonCode, AppBlockState, ApplicationAttribute, AppVisibility, AuthenticationType, CertificateBasedAuthStatus, DynamicAppProvidersEnabled, ExportImageTaskState, FleetAttribute, FleetErrorCode, FleetState, FleetType, ImageBuilderState, ImageBuilderStateChangeReasonCode, ImageSharedWithOthers, ImageState, ImageStateChangeReasonCode, ImageType, LatestAppstreamAgentVersion, MessageAction, PackagingType, Permission, PlatformType, PreferredProtocol, SessionConnectionState, SessionState, SoftwareDeploymentStatus, StackAttribute, StackErrorCode, StorageConnectorType, StreamView, ThemeAttribute, ThemeState, ThemeStyling, UsageReportExecutionErrorCode, UsageReportSchedule, UserStackAssociationErrorCode, VisibilityType } from "./enums";
1
+ import type { AccessEndpointType, Action, AgentSoftwareVersion, AppBlockBuilderAttribute, AppBlockBuilderPlatformType, AppBlockBuilderState, AppBlockBuilderStateChangeReasonCode, AppBlockState, ApplicationAttribute, AppVisibility, AuthenticationType, CertificateBasedAuthStatus, DynamicAppProvidersEnabled, ExportImageTaskState, FleetAttribute, FleetErrorCode, FleetState, FleetType, ImageBuilderState, ImageBuilderStateChangeReasonCode, ImageSharedWithOthers, ImageState, ImageStateChangeReasonCode, ImageType, InstanceDrainStatus, LatestAppstreamAgentVersion, MessageAction, PackagingType, Permission, PlatformType, PreferredProtocol, SessionConnectionState, SessionState, SoftwareDeploymentStatus, StackAttribute, StackErrorCode, StorageConnectorType, StreamView, ThemeAttribute, ThemeState, ThemeStyling, UsageReportExecutionErrorCode, UsageReportSchedule, UserStackAssociationErrorCode, VisibilityType } from "./enums";
2
2
  /**
3
3
  * <p>Describes an interface VPC endpoint (interface endpoint) that lets you create a private connection between the virtual private cloud (VPC) that you specify and WorkSpaces Applications. When you specify an interface endpoint for a stack, users of the stack can connect to WorkSpaces Applications only through that endpoint. When you specify an interface endpoint for an image builder, administrators can connect to the image builder only through that endpoint.</p>
4
4
  * @public
@@ -911,6 +911,21 @@ export interface ComputeCapacityStatus {
911
911
  * @public
912
912
  */
913
913
  ActualUserSessions?: number | undefined;
914
+ /**
915
+ * <p>The number of instances in drain mode. This only applies to multi-session fleets.</p>
916
+ * @public
917
+ */
918
+ Draining?: number | undefined;
919
+ /**
920
+ * <p>The number of active user sessions on instances in drain mode. This only applies to multi-session fleets.</p>
921
+ * @public
922
+ */
923
+ DrainModeActiveUserSessions?: number | undefined;
924
+ /**
925
+ * <p>The number of unused session slots on instances in drain mode that cannot be used for user session provisioning. This only applies to multi-session fleets.</p>
926
+ * @public
927
+ */
928
+ DrainModeUnusedUserSessions?: number | undefined;
914
929
  }
915
930
  /**
916
931
  * <p>Configuration for URL redirection in a specific direction (host-to-client or client-to-host). When enabled, URLs matching the allowed or denied patterns are redirected accordingly. The denied list takes precedence over the allowed list.</p>
@@ -4540,6 +4555,11 @@ export interface Session {
4540
4555
  * @public
4541
4556
  */
4542
4557
  InstanceId?: string | undefined;
4558
+ /**
4559
+ * <p>The drain status of the instance hosting the streaming session. This only applies to multi-session fleets.</p>
4560
+ * @public
4561
+ */
4562
+ InstanceDrainStatus?: InstanceDrainStatus | undefined;
4543
4563
  }
4544
4564
  /**
4545
4565
  * @public
@@ -5185,6 +5205,21 @@ export interface DisassociateSoftwareFromImageBuilderRequest {
5185
5205
  */
5186
5206
  export interface DisassociateSoftwareFromImageBuilderResult {
5187
5207
  }
5208
+ /**
5209
+ * @public
5210
+ */
5211
+ export interface DrainSessionInstanceRequest {
5212
+ /**
5213
+ * <p>The identifier of the streaming session.</p>
5214
+ * @public
5215
+ */
5216
+ SessionId: string | undefined;
5217
+ }
5218
+ /**
5219
+ * @public
5220
+ */
5221
+ export interface DrainSessionInstanceResult {
5222
+ }
5188
5223
  /**
5189
5224
  * @public
5190
5225
  */
@@ -165,6 +165,8 @@ export declare var DisassociateFleetResult$: StaticStructureSchema;
165
165
  export declare var DisassociateSoftwareFromImageBuilderRequest$: StaticStructureSchema;
166
166
  export declare var DisassociateSoftwareFromImageBuilderResult$: StaticStructureSchema;
167
167
  export declare var DomainJoinInfo$: StaticStructureSchema;
168
+ export declare var DrainSessionInstanceRequest$: StaticStructureSchema;
169
+ export declare var DrainSessionInstanceResult$: StaticStructureSchema;
168
170
  export declare var EnableUserRequest$: StaticStructureSchema;
169
171
  export declare var EnableUserResult$: StaticStructureSchema;
170
172
  export declare var EntitledApplication$: StaticStructureSchema;
@@ -315,6 +317,7 @@ export declare var DisassociateApplicationFleet$: StaticOperationSchema;
315
317
  export declare var DisassociateApplicationFromEntitlement$: StaticOperationSchema;
316
318
  export declare var DisassociateFleet$: StaticOperationSchema;
317
319
  export declare var DisassociateSoftwareFromImageBuilder$: StaticOperationSchema;
320
+ export declare var DrainSessionInstance$: StaticOperationSchema;
318
321
  export declare var EnableUser$: StaticOperationSchema;
319
322
  export declare var ExpireSession$: StaticOperationSchema;
320
323
  export declare var GetExportImageTask$: StaticOperationSchema;
@@ -258,6 +258,10 @@ import {
258
258
  DisassociateSoftwareFromImageBuilderCommandInput,
259
259
  DisassociateSoftwareFromImageBuilderCommandOutput,
260
260
  } from "./commands/DisassociateSoftwareFromImageBuilderCommand";
261
+ import {
262
+ DrainSessionInstanceCommandInput,
263
+ DrainSessionInstanceCommandOutput,
264
+ } from "./commands/DrainSessionInstanceCommand";
261
265
  import {
262
266
  EnableUserCommandInput,
263
267
  EnableUserCommandOutput,
@@ -1234,6 +1238,19 @@ export interface AppStream {
1234
1238
  data?: DisassociateSoftwareFromImageBuilderCommandOutput
1235
1239
  ) => void
1236
1240
  ): void;
1241
+ drainSessionInstance(
1242
+ args: DrainSessionInstanceCommandInput,
1243
+ options?: __HttpHandlerOptions
1244
+ ): Promise<DrainSessionInstanceCommandOutput>;
1245
+ drainSessionInstance(
1246
+ args: DrainSessionInstanceCommandInput,
1247
+ cb: (err: any, data?: DrainSessionInstanceCommandOutput) => void
1248
+ ): void;
1249
+ drainSessionInstance(
1250
+ args: DrainSessionInstanceCommandInput,
1251
+ options: __HttpHandlerOptions,
1252
+ cb: (err: any, data?: DrainSessionInstanceCommandOutput) => void
1253
+ ): void;
1237
1254
  enableUser(
1238
1255
  args: EnableUserCommandInput,
1239
1256
  options?: __HttpHandlerOptions
@@ -296,6 +296,10 @@ import {
296
296
  DisassociateSoftwareFromImageBuilderCommandInput,
297
297
  DisassociateSoftwareFromImageBuilderCommandOutput,
298
298
  } from "./commands/DisassociateSoftwareFromImageBuilderCommand";
299
+ import {
300
+ DrainSessionInstanceCommandInput,
301
+ DrainSessionInstanceCommandOutput,
302
+ } from "./commands/DrainSessionInstanceCommand";
299
303
  import {
300
304
  EnableUserCommandInput,
301
305
  EnableUserCommandOutput,
@@ -467,6 +471,7 @@ export type ServiceInputTypes =
467
471
  | DisassociateApplicationFromEntitlementCommandInput
468
472
  | DisassociateFleetCommandInput
469
473
  | DisassociateSoftwareFromImageBuilderCommandInput
474
+ | DrainSessionInstanceCommandInput
470
475
  | EnableUserCommandInput
471
476
  | ExpireSessionCommandInput
472
477
  | GetExportImageTaskCommandInput
@@ -556,6 +561,7 @@ export type ServiceOutputTypes =
556
561
  | DisassociateApplicationFromEntitlementCommandOutput
557
562
  | DisassociateFleetCommandOutput
558
563
  | DisassociateSoftwareFromImageBuilderCommandOutput
564
+ | DrainSessionInstanceCommandOutput
559
565
  | EnableUserCommandOutput
560
566
  | ExpireSessionCommandOutput
561
567
  | GetExportImageTaskCommandOutput
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ AppStreamClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../AppStreamClient";
8
+ import {
9
+ DrainSessionInstanceRequest,
10
+ DrainSessionInstanceResult,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface DrainSessionInstanceCommandInput
15
+ extends DrainSessionInstanceRequest {}
16
+ export interface DrainSessionInstanceCommandOutput
17
+ extends DrainSessionInstanceResult,
18
+ __MetadataBearer {}
19
+ declare const DrainSessionInstanceCommand_base: {
20
+ new (
21
+ input: DrainSessionInstanceCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ DrainSessionInstanceCommandInput,
24
+ DrainSessionInstanceCommandOutput,
25
+ AppStreamClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ input: DrainSessionInstanceCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ DrainSessionInstanceCommandInput,
33
+ DrainSessionInstanceCommandOutput,
34
+ AppStreamClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class DrainSessionInstanceCommand extends DrainSessionInstanceCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: DrainSessionInstanceRequest;
44
+ output: {};
45
+ };
46
+ sdk: {
47
+ input: DrainSessionInstanceCommandInput;
48
+ output: DrainSessionInstanceCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -61,6 +61,7 @@ export * from "./DisassociateApplicationFleetCommand";
61
61
  export * from "./DisassociateApplicationFromEntitlementCommand";
62
62
  export * from "./DisassociateFleetCommand";
63
63
  export * from "./DisassociateSoftwareFromImageBuilderCommand";
64
+ export * from "./DrainSessionInstanceCommand";
64
65
  export * from "./EnableUserCommand";
65
66
  export * from "./ExpireSessionCommand";
66
67
  export * from "./GetExportImageTaskCommand";
@@ -287,6 +287,13 @@ export declare const SessionConnectionState: {
287
287
  };
288
288
  export type SessionConnectionState =
289
289
  (typeof SessionConnectionState)[keyof typeof SessionConnectionState];
290
+ export declare const InstanceDrainStatus: {
291
+ readonly ACTIVE: "ACTIVE";
292
+ readonly DRAINING: "DRAINING";
293
+ readonly NOT_APPLICABLE: "NOT_APPLICABLE";
294
+ };
295
+ export type InstanceDrainStatus =
296
+ (typeof InstanceDrainStatus)[keyof typeof InstanceDrainStatus];
290
297
  export declare const SessionState: {
291
298
  readonly ACTIVE: "ACTIVE";
292
299
  readonly EXPIRED: "EXPIRED";
@@ -23,6 +23,7 @@ import {
23
23
  ImageState,
24
24
  ImageStateChangeReasonCode,
25
25
  ImageType,
26
+ InstanceDrainStatus,
26
27
  LatestAppstreamAgentVersion,
27
28
  MessageAction,
28
29
  PackagingType,
@@ -229,6 +230,9 @@ export interface ComputeCapacityStatus {
229
230
  AvailableUserSessions?: number | undefined;
230
231
  ActiveUserSessions?: number | undefined;
231
232
  ActualUserSessions?: number | undefined;
233
+ Draining?: number | undefined;
234
+ DrainModeActiveUserSessions?: number | undefined;
235
+ DrainModeUnusedUserSessions?: number | undefined;
232
236
  }
233
237
  export interface UrlRedirectionConfig {
234
238
  Enabled: boolean | undefined;
@@ -859,6 +863,7 @@ export interface Session {
859
863
  AuthenticationType?: AuthenticationType | undefined;
860
864
  NetworkAccessConfiguration?: NetworkAccessConfiguration | undefined;
861
865
  InstanceId?: string | undefined;
866
+ InstanceDrainStatus?: InstanceDrainStatus | undefined;
862
867
  }
863
868
  export interface DescribeSessionsResult {
864
869
  Sessions?: Session[] | undefined;
@@ -972,6 +977,10 @@ export interface DisassociateSoftwareFromImageBuilderRequest {
972
977
  SoftwareNames: string[] | undefined;
973
978
  }
974
979
  export interface DisassociateSoftwareFromImageBuilderResult {}
980
+ export interface DrainSessionInstanceRequest {
981
+ SessionId: string | undefined;
982
+ }
983
+ export interface DrainSessionInstanceResult {}
975
984
  export interface EnableUserRequest {
976
985
  UserName: string | undefined;
977
986
  AuthenticationType: AuthenticationType | undefined;
@@ -164,6 +164,8 @@ export declare var DisassociateFleetResult$: StaticStructureSchema;
164
164
  export declare var DisassociateSoftwareFromImageBuilderRequest$: StaticStructureSchema;
165
165
  export declare var DisassociateSoftwareFromImageBuilderResult$: StaticStructureSchema;
166
166
  export declare var DomainJoinInfo$: StaticStructureSchema;
167
+ export declare var DrainSessionInstanceRequest$: StaticStructureSchema;
168
+ export declare var DrainSessionInstanceResult$: StaticStructureSchema;
167
169
  export declare var EnableUserRequest$: StaticStructureSchema;
168
170
  export declare var EnableUserResult$: StaticStructureSchema;
169
171
  export declare var EntitledApplication$: StaticStructureSchema;
@@ -314,6 +316,7 @@ export declare var DisassociateApplicationFleet$: StaticOperationSchema;
314
316
  export declare var DisassociateApplicationFromEntitlement$: StaticOperationSchema;
315
317
  export declare var DisassociateFleet$: StaticOperationSchema;
316
318
  export declare var DisassociateSoftwareFromImageBuilder$: StaticOperationSchema;
319
+ export declare var DrainSessionInstance$: StaticOperationSchema;
317
320
  export declare var EnableUser$: StaticOperationSchema;
318
321
  export declare var ExpireSession$: StaticOperationSchema;
319
322
  export declare var GetExportImageTask$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
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.1021.0",
4
+ "version": "3.1023.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-appstream",