aws-sdk-appstream 1.130.0 → 1.131.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5103c3fa612becad412d4884ef50383325779713ab4531de89e0c2d2618597d
4
- data.tar.gz: 9fe9ffdc7267d8c4dc00476d425d317650658ef954320d6c816a2d32c363fc53
3
+ metadata.gz: 5a26f042aea6032b67ee04038b1137f439fe67f481ea88c0185e8531302994fe
4
+ data.tar.gz: 5e87ad0442786fc0255503e3efbbde8512724470eec7b8d1d09ee8cbb24f7aea
5
5
  SHA512:
6
- metadata.gz: ebf0643008138c350c96cfb16c2bcd42f44356765efe7684569ceccf1612dab49c33f503a12a5118c1340dc80016a83f99a24259794f545a33238e33fee0ffa9
7
- data.tar.gz: 5091b75268259a0f0dc966ab2688bbb392eaf42328a5932c42bf3f54f853988dce1645e5bc89b6612c945ac8ed31d379e51fe14b9f5cf22fc663dedbd58185e1
6
+ metadata.gz: cfd316837e473b580f20947ba33373bdcf12ea212ffe8dbc2f2ea6b827adec53ae2f10af25516aabc340d411f0c78d5401ce31bdbdba0c626ac5e405bc07a86e
7
+ data.tar.gz: 4a16c3c005b2f268db00e0865be250097a26204ec40bbdb28b2c07408075ce8f4bf9cf0cc59d6653ea1433086d047be4c41d488592c635adb81400c2c963bc5a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.131.0 (2026-04-02)
5
+ ------------------
6
+
7
+ * Feature - Amazon WorkSpaces Applications now supports drain mode for instances in multi-session fleets. This capability allows administrators to instruct individual fleet instances to stop accepting new user sessions while allowing existing sessions to continue uninterrupted.
8
+
4
9
  1.130.0 (2026-03-30)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.130.0
1
+ 1.131.0
@@ -1768,6 +1768,9 @@ module Aws::AppStream
1768
1768
  # resp.fleet.compute_capacity_status.available_user_sessions #=> Integer
1769
1769
  # resp.fleet.compute_capacity_status.active_user_sessions #=> Integer
1770
1770
  # resp.fleet.compute_capacity_status.actual_user_sessions #=> Integer
1771
+ # resp.fleet.compute_capacity_status.draining #=> Integer
1772
+ # resp.fleet.compute_capacity_status.drain_mode_active_user_sessions #=> Integer
1773
+ # resp.fleet.compute_capacity_status.drain_mode_unused_user_sessions #=> Integer
1771
1774
  # resp.fleet.max_user_duration_in_seconds #=> Integer
1772
1775
  # resp.fleet.disconnect_timeout_in_seconds #=> Integer
1773
1776
  # resp.fleet.state #=> String, one of "STARTING", "RUNNING", "STOPPING", "STOPPED"
@@ -3768,6 +3771,9 @@ module Aws::AppStream
3768
3771
  # resp.fleets[0].compute_capacity_status.available_user_sessions #=> Integer
3769
3772
  # resp.fleets[0].compute_capacity_status.active_user_sessions #=> Integer
3770
3773
  # resp.fleets[0].compute_capacity_status.actual_user_sessions #=> Integer
3774
+ # resp.fleets[0].compute_capacity_status.draining #=> Integer
3775
+ # resp.fleets[0].compute_capacity_status.drain_mode_active_user_sessions #=> Integer
3776
+ # resp.fleets[0].compute_capacity_status.drain_mode_unused_user_sessions #=> Integer
3771
3777
  # resp.fleets[0].max_user_duration_in_seconds #=> Integer
3772
3778
  # resp.fleets[0].disconnect_timeout_in_seconds #=> Integer
3773
3779
  # resp.fleets[0].state #=> String, one of "STARTING", "RUNNING", "STOPPING", "STOPPED"
@@ -4104,6 +4110,7 @@ module Aws::AppStream
4104
4110
  # resp.sessions[0].network_access_configuration.eni_ipv_6_addresses[0] #=> String
4105
4111
  # resp.sessions[0].network_access_configuration.eni_id #=> String
4106
4112
  # resp.sessions[0].instance_id #=> String
4113
+ # resp.sessions[0].instance_drain_status #=> String, one of "ACTIVE", "DRAINING", "NOT_APPLICABLE"
4107
4114
  # resp.next_token #=> String
4108
4115
  #
4109
4116
  # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeSessions AWS API Documentation
@@ -4646,6 +4653,31 @@ module Aws::AppStream
4646
4653
  req.send_request(options)
4647
4654
  end
4648
4655
 
4656
+ # Drains the instance hosting the specified streaming session. The
4657
+ # instance stops accepting new sessions while existing sessions continue
4658
+ # uninterrupted. Once all sessions end, the instance is reclaimed and
4659
+ # replaced. This only applies to multi-session fleets.
4660
+ #
4661
+ # @option params [required, String] :session_id
4662
+ # The identifier of the streaming session.
4663
+ #
4664
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
4665
+ #
4666
+ # @example Request syntax with placeholder values
4667
+ #
4668
+ # resp = client.drain_session_instance({
4669
+ # session_id: "String", # required
4670
+ # })
4671
+ #
4672
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DrainSessionInstance AWS API Documentation
4673
+ #
4674
+ # @overload drain_session_instance(params = {})
4675
+ # @param [Hash] params ({})
4676
+ def drain_session_instance(params = {}, options = {})
4677
+ req = build_request(:drain_session_instance, params)
4678
+ req.send_request(options)
4679
+ end
4680
+
4649
4681
  # Enables a user in the user pool. After being enabled, users can sign
4650
4682
  # in to WorkSpaces Applications and open applications from the stacks to
4651
4683
  # which they are assigned.
@@ -6050,6 +6082,9 @@ module Aws::AppStream
6050
6082
  # resp.fleet.compute_capacity_status.available_user_sessions #=> Integer
6051
6083
  # resp.fleet.compute_capacity_status.active_user_sessions #=> Integer
6052
6084
  # resp.fleet.compute_capacity_status.actual_user_sessions #=> Integer
6085
+ # resp.fleet.compute_capacity_status.draining #=> Integer
6086
+ # resp.fleet.compute_capacity_status.drain_mode_active_user_sessions #=> Integer
6087
+ # resp.fleet.compute_capacity_status.drain_mode_unused_user_sessions #=> Integer
6053
6088
  # resp.fleet.max_user_duration_in_seconds #=> Integer
6054
6089
  # resp.fleet.disconnect_timeout_in_seconds #=> Integer
6055
6090
  # resp.fleet.state #=> String, one of "STARTING", "RUNNING", "STOPPING", "STOPPED"
@@ -6370,7 +6405,7 @@ module Aws::AppStream
6370
6405
  tracer: tracer
6371
6406
  )
6372
6407
  context[:gem_name] = 'aws-sdk-appstream'
6373
- context[:gem_version] = '1.130.0'
6408
+ context[:gem_version] = '1.131.0'
6374
6409
  Seahorse::Client::Request.new(handlers, context)
6375
6410
  end
6376
6411
 
@@ -200,6 +200,8 @@ module Aws::AppStream
200
200
  Domain = Shapes::StringShape.new(name: 'Domain')
201
201
  DomainJoinInfo = Shapes::StructureShape.new(name: 'DomainJoinInfo')
202
202
  DomainList = Shapes::ListShape.new(name: 'DomainList')
203
+ DrainSessionInstanceRequest = Shapes::StructureShape.new(name: 'DrainSessionInstanceRequest')
204
+ DrainSessionInstanceResult = Shapes::StructureShape.new(name: 'DrainSessionInstanceResult')
203
205
  DryRunOperationException = Shapes::StructureShape.new(name: 'DryRunOperationException')
204
206
  DynamicAppProvidersEnabled = Shapes::StringShape.new(name: 'DynamicAppProvidersEnabled')
205
207
  EmbedHostDomain = Shapes::StringShape.new(name: 'EmbedHostDomain')
@@ -256,6 +258,7 @@ module Aws::AppStream
256
258
  ImageStateChangeReasonCode = Shapes::StringShape.new(name: 'ImageStateChangeReasonCode')
257
259
  ImageType = Shapes::StringShape.new(name: 'ImageType')
258
260
  IncompatibleImageException = Shapes::StructureShape.new(name: 'IncompatibleImageException')
261
+ InstanceDrainStatus = Shapes::StringShape.new(name: 'InstanceDrainStatus')
259
262
  InstanceType = Shapes::StringShape.new(name: 'InstanceType')
260
263
  Integer = Shapes::IntegerShape.new(name: 'Integer')
261
264
  InvalidAccountStatusException = Shapes::StructureShape.new(name: 'InvalidAccountStatusException')
@@ -584,6 +587,9 @@ module Aws::AppStream
584
587
  ComputeCapacityStatus.add_member(:available_user_sessions, Shapes::ShapeRef.new(shape: Integer, location_name: "AvailableUserSessions"))
585
588
  ComputeCapacityStatus.add_member(:active_user_sessions, Shapes::ShapeRef.new(shape: Integer, location_name: "ActiveUserSessions"))
586
589
  ComputeCapacityStatus.add_member(:actual_user_sessions, Shapes::ShapeRef.new(shape: Integer, location_name: "ActualUserSessions"))
590
+ ComputeCapacityStatus.add_member(:draining, Shapes::ShapeRef.new(shape: Integer, location_name: "Draining"))
591
+ ComputeCapacityStatus.add_member(:drain_mode_active_user_sessions, Shapes::ShapeRef.new(shape: Integer, location_name: "DrainModeActiveUserSessions"))
592
+ ComputeCapacityStatus.add_member(:drain_mode_unused_user_sessions, Shapes::ShapeRef.new(shape: Integer, location_name: "DrainModeUnusedUserSessions"))
587
593
  ComputeCapacityStatus.struct_class = Types::ComputeCapacityStatus
588
594
 
589
595
  ConcurrentModificationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
@@ -1127,6 +1133,11 @@ module Aws::AppStream
1127
1133
 
1128
1134
  DomainList.member = Shapes::ShapeRef.new(shape: Domain)
1129
1135
 
1136
+ DrainSessionInstanceRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "SessionId"))
1137
+ DrainSessionInstanceRequest.struct_class = Types::DrainSessionInstanceRequest
1138
+
1139
+ DrainSessionInstanceResult.struct_class = Types::DrainSessionInstanceResult
1140
+
1130
1141
  DryRunOperationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
1131
1142
  DryRunOperationException.struct_class = Types::DryRunOperationException
1132
1143
 
@@ -1436,6 +1447,7 @@ module Aws::AppStream
1436
1447
  Session.add_member(:authentication_type, Shapes::ShapeRef.new(shape: AuthenticationType, location_name: "AuthenticationType"))
1437
1448
  Session.add_member(:network_access_configuration, Shapes::ShapeRef.new(shape: NetworkAccessConfiguration, location_name: "NetworkAccessConfiguration"))
1438
1449
  Session.add_member(:instance_id, Shapes::ShapeRef.new(shape: String, location_name: "InstanceId"))
1450
+ Session.add_member(:instance_drain_status, Shapes::ShapeRef.new(shape: InstanceDrainStatus, location_name: "InstanceDrainStatus"))
1439
1451
  Session.struct_class = Types::Session
1440
1452
 
1441
1453
  SessionList.member = Shapes::ShapeRef.new(shape: Session)
@@ -2528,6 +2540,17 @@ module Aws::AppStream
2528
2540
  o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
2529
2541
  end)
2530
2542
 
2543
+ api.add_operation(:drain_session_instance, Seahorse::Model::Operation.new.tap do |o|
2544
+ o.name = "DrainSessionInstance"
2545
+ o.http_method = "POST"
2546
+ o.http_request_uri = "/"
2547
+ o.input = Shapes::ShapeRef.new(shape: DrainSessionInstanceRequest)
2548
+ o.output = Shapes::ShapeRef.new(shape: DrainSessionInstanceResult)
2549
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2550
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
2551
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
2552
+ end)
2553
+
2531
2554
  api.add_operation(:enable_user, Seahorse::Model::Operation.new.tap do |o|
2532
2555
  o.name = "EnableUser"
2533
2556
  o.http_method = "POST"
@@ -851,6 +851,22 @@ module Aws::AppStream
851
851
  # This only applies to multi-session fleets.
852
852
  # @return [Integer]
853
853
  #
854
+ # @!attribute [rw] draining
855
+ # The number of instances in drain mode. This only applies to
856
+ # multi-session fleets.
857
+ # @return [Integer]
858
+ #
859
+ # @!attribute [rw] drain_mode_active_user_sessions
860
+ # The number of active user sessions on instances in drain mode. This
861
+ # only applies to multi-session fleets.
862
+ # @return [Integer]
863
+ #
864
+ # @!attribute [rw] drain_mode_unused_user_sessions
865
+ # The number of unused session slots on instances in drain mode that
866
+ # cannot be used for user session provisioning. This only applies to
867
+ # multi-session fleets.
868
+ # @return [Integer]
869
+ #
854
870
  # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ComputeCapacityStatus AWS API Documentation
855
871
  #
856
872
  class ComputeCapacityStatus < Struct.new(
@@ -861,7 +877,10 @@ module Aws::AppStream
861
877
  :desired_user_sessions,
862
878
  :available_user_sessions,
863
879
  :active_user_sessions,
864
- :actual_user_sessions)
880
+ :actual_user_sessions,
881
+ :draining,
882
+ :drain_mode_active_user_sessions,
883
+ :drain_mode_unused_user_sessions)
865
884
  SENSITIVE = []
866
885
  include Aws::Structure
867
886
  end
@@ -3954,6 +3973,22 @@ module Aws::AppStream
3954
3973
  include Aws::Structure
3955
3974
  end
3956
3975
 
3976
+ # @!attribute [rw] session_id
3977
+ # The identifier of the streaming session.
3978
+ # @return [String]
3979
+ #
3980
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DrainSessionInstanceRequest AWS API Documentation
3981
+ #
3982
+ class DrainSessionInstanceRequest < Struct.new(
3983
+ :session_id)
3984
+ SENSITIVE = []
3985
+ include Aws::Structure
3986
+ end
3987
+
3988
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DrainSessionInstanceResult AWS API Documentation
3989
+ #
3990
+ class DrainSessionInstanceResult < Aws::EmptyStructure; end
3991
+
3957
3992
  # The exception that is thrown when a dry run operation is requested.
3958
3993
  # This indicates that the validation checks have been performed
3959
3994
  # successfully, but no actual resources were created or modified.
@@ -5629,6 +5664,11 @@ module Aws::AppStream
5629
5664
  # The identifier for the instance hosting the session.
5630
5665
  # @return [String]
5631
5666
  #
5667
+ # @!attribute [rw] instance_drain_status
5668
+ # The drain status of the instance hosting the streaming session. This
5669
+ # only applies to multi-session fleets.
5670
+ # @return [String]
5671
+ #
5632
5672
  # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/Session AWS API Documentation
5633
5673
  #
5634
5674
  class Session < Struct.new(
@@ -5642,7 +5682,8 @@ module Aws::AppStream
5642
5682
  :max_expiration_time,
5643
5683
  :authentication_type,
5644
5684
  :network_access_configuration,
5645
- :instance_id)
5685
+ :instance_id,
5686
+ :instance_drain_status)
5646
5687
  SENSITIVE = []
5647
5688
  include Aws::Structure
5648
5689
  end
@@ -55,7 +55,7 @@ module Aws::AppStream
55
55
  autoload :EndpointProvider, 'aws-sdk-appstream/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-appstream/endpoints'
57
57
 
58
- GEM_VERSION = '1.130.0'
58
+ GEM_VERSION = '1.131.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -1028,6 +1028,15 @@ module Aws
1028
1028
  ) -> _DisassociateSoftwareFromImageBuilderResponseSuccess
1029
1029
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DisassociateSoftwareFromImageBuilderResponseSuccess
1030
1030
 
1031
+ interface _DrainSessionInstanceResponseSuccess
1032
+ include ::Seahorse::Client::_ResponseSuccess[Types::DrainSessionInstanceResult]
1033
+ end
1034
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AppStream/Client.html#drain_session_instance-instance_method
1035
+ def drain_session_instance: (
1036
+ session_id: ::String
1037
+ ) -> _DrainSessionInstanceResponseSuccess
1038
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DrainSessionInstanceResponseSuccess
1039
+
1031
1040
  interface _EnableUserResponseSuccess
1032
1041
  include ::Seahorse::Client::_ResponseSuccess[Types::EnableUserResult]
1033
1042
  end
data/sig/types.rbs CHANGED
@@ -211,6 +211,9 @@ module Aws::AppStream
211
211
  attr_accessor available_user_sessions: ::Integer
212
212
  attr_accessor active_user_sessions: ::Integer
213
213
  attr_accessor actual_user_sessions: ::Integer
214
+ attr_accessor draining: ::Integer
215
+ attr_accessor drain_mode_active_user_sessions: ::Integer
216
+ attr_accessor drain_mode_unused_user_sessions: ::Integer
214
217
  SENSITIVE: []
215
218
  end
216
219
 
@@ -961,6 +964,14 @@ module Aws::AppStream
961
964
  SENSITIVE: []
962
965
  end
963
966
 
967
+ class DrainSessionInstanceRequest
968
+ attr_accessor session_id: ::String
969
+ SENSITIVE: []
970
+ end
971
+
972
+ class DrainSessionInstanceResult < Aws::EmptyStructure
973
+ end
974
+
964
975
  class DryRunOperationException
965
976
  attr_accessor message: ::String
966
977
  SENSITIVE: []
@@ -1330,6 +1341,7 @@ module Aws::AppStream
1330
1341
  attr_accessor authentication_type: ("API" | "SAML" | "USERPOOL" | "AWS_AD")
1331
1342
  attr_accessor network_access_configuration: Types::NetworkAccessConfiguration
1332
1343
  attr_accessor instance_id: ::String
1344
+ attr_accessor instance_drain_status: ("ACTIVE" | "DRAINING" | "NOT_APPLICABLE")
1333
1345
  SENSITIVE: []
1334
1346
  end
1335
1347
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-appstream
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.130.0
4
+ version: 1.131.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services