aws-sdk-appstream 1.65.0 → 1.67.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.
@@ -0,0 +1,198 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::AppStream
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::AppStream::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::AppStream::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::AppStream::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :associate_application_fleet
60
+ Aws::AppStream::Endpoints::AssociateApplicationFleet.build(context)
61
+ when :associate_application_to_entitlement
62
+ Aws::AppStream::Endpoints::AssociateApplicationToEntitlement.build(context)
63
+ when :associate_fleet
64
+ Aws::AppStream::Endpoints::AssociateFleet.build(context)
65
+ when :batch_associate_user_stack
66
+ Aws::AppStream::Endpoints::BatchAssociateUserStack.build(context)
67
+ when :batch_disassociate_user_stack
68
+ Aws::AppStream::Endpoints::BatchDisassociateUserStack.build(context)
69
+ when :copy_image
70
+ Aws::AppStream::Endpoints::CopyImage.build(context)
71
+ when :create_app_block
72
+ Aws::AppStream::Endpoints::CreateAppBlock.build(context)
73
+ when :create_application
74
+ Aws::AppStream::Endpoints::CreateApplication.build(context)
75
+ when :create_directory_config
76
+ Aws::AppStream::Endpoints::CreateDirectoryConfig.build(context)
77
+ when :create_entitlement
78
+ Aws::AppStream::Endpoints::CreateEntitlement.build(context)
79
+ when :create_fleet
80
+ Aws::AppStream::Endpoints::CreateFleet.build(context)
81
+ when :create_image_builder
82
+ Aws::AppStream::Endpoints::CreateImageBuilder.build(context)
83
+ when :create_image_builder_streaming_url
84
+ Aws::AppStream::Endpoints::CreateImageBuilderStreamingURL.build(context)
85
+ when :create_stack
86
+ Aws::AppStream::Endpoints::CreateStack.build(context)
87
+ when :create_streaming_url
88
+ Aws::AppStream::Endpoints::CreateStreamingURL.build(context)
89
+ when :create_updated_image
90
+ Aws::AppStream::Endpoints::CreateUpdatedImage.build(context)
91
+ when :create_usage_report_subscription
92
+ Aws::AppStream::Endpoints::CreateUsageReportSubscription.build(context)
93
+ when :create_user
94
+ Aws::AppStream::Endpoints::CreateUser.build(context)
95
+ when :delete_app_block
96
+ Aws::AppStream::Endpoints::DeleteAppBlock.build(context)
97
+ when :delete_application
98
+ Aws::AppStream::Endpoints::DeleteApplication.build(context)
99
+ when :delete_directory_config
100
+ Aws::AppStream::Endpoints::DeleteDirectoryConfig.build(context)
101
+ when :delete_entitlement
102
+ Aws::AppStream::Endpoints::DeleteEntitlement.build(context)
103
+ when :delete_fleet
104
+ Aws::AppStream::Endpoints::DeleteFleet.build(context)
105
+ when :delete_image
106
+ Aws::AppStream::Endpoints::DeleteImage.build(context)
107
+ when :delete_image_builder
108
+ Aws::AppStream::Endpoints::DeleteImageBuilder.build(context)
109
+ when :delete_image_permissions
110
+ Aws::AppStream::Endpoints::DeleteImagePermissions.build(context)
111
+ when :delete_stack
112
+ Aws::AppStream::Endpoints::DeleteStack.build(context)
113
+ when :delete_usage_report_subscription
114
+ Aws::AppStream::Endpoints::DeleteUsageReportSubscription.build(context)
115
+ when :delete_user
116
+ Aws::AppStream::Endpoints::DeleteUser.build(context)
117
+ when :describe_app_blocks
118
+ Aws::AppStream::Endpoints::DescribeAppBlocks.build(context)
119
+ when :describe_application_fleet_associations
120
+ Aws::AppStream::Endpoints::DescribeApplicationFleetAssociations.build(context)
121
+ when :describe_applications
122
+ Aws::AppStream::Endpoints::DescribeApplications.build(context)
123
+ when :describe_directory_configs
124
+ Aws::AppStream::Endpoints::DescribeDirectoryConfigs.build(context)
125
+ when :describe_entitlements
126
+ Aws::AppStream::Endpoints::DescribeEntitlements.build(context)
127
+ when :describe_fleets
128
+ Aws::AppStream::Endpoints::DescribeFleets.build(context)
129
+ when :describe_image_builders
130
+ Aws::AppStream::Endpoints::DescribeImageBuilders.build(context)
131
+ when :describe_image_permissions
132
+ Aws::AppStream::Endpoints::DescribeImagePermissions.build(context)
133
+ when :describe_images
134
+ Aws::AppStream::Endpoints::DescribeImages.build(context)
135
+ when :describe_sessions
136
+ Aws::AppStream::Endpoints::DescribeSessions.build(context)
137
+ when :describe_stacks
138
+ Aws::AppStream::Endpoints::DescribeStacks.build(context)
139
+ when :describe_usage_report_subscriptions
140
+ Aws::AppStream::Endpoints::DescribeUsageReportSubscriptions.build(context)
141
+ when :describe_user_stack_associations
142
+ Aws::AppStream::Endpoints::DescribeUserStackAssociations.build(context)
143
+ when :describe_users
144
+ Aws::AppStream::Endpoints::DescribeUsers.build(context)
145
+ when :disable_user
146
+ Aws::AppStream::Endpoints::DisableUser.build(context)
147
+ when :disassociate_application_fleet
148
+ Aws::AppStream::Endpoints::DisassociateApplicationFleet.build(context)
149
+ when :disassociate_application_from_entitlement
150
+ Aws::AppStream::Endpoints::DisassociateApplicationFromEntitlement.build(context)
151
+ when :disassociate_fleet
152
+ Aws::AppStream::Endpoints::DisassociateFleet.build(context)
153
+ when :enable_user
154
+ Aws::AppStream::Endpoints::EnableUser.build(context)
155
+ when :expire_session
156
+ Aws::AppStream::Endpoints::ExpireSession.build(context)
157
+ when :list_associated_fleets
158
+ Aws::AppStream::Endpoints::ListAssociatedFleets.build(context)
159
+ when :list_associated_stacks
160
+ Aws::AppStream::Endpoints::ListAssociatedStacks.build(context)
161
+ when :list_entitled_applications
162
+ Aws::AppStream::Endpoints::ListEntitledApplications.build(context)
163
+ when :list_tags_for_resource
164
+ Aws::AppStream::Endpoints::ListTagsForResource.build(context)
165
+ when :start_fleet
166
+ Aws::AppStream::Endpoints::StartFleet.build(context)
167
+ when :start_image_builder
168
+ Aws::AppStream::Endpoints::StartImageBuilder.build(context)
169
+ when :stop_fleet
170
+ Aws::AppStream::Endpoints::StopFleet.build(context)
171
+ when :stop_image_builder
172
+ Aws::AppStream::Endpoints::StopImageBuilder.build(context)
173
+ when :tag_resource
174
+ Aws::AppStream::Endpoints::TagResource.build(context)
175
+ when :untag_resource
176
+ Aws::AppStream::Endpoints::UntagResource.build(context)
177
+ when :update_application
178
+ Aws::AppStream::Endpoints::UpdateApplication.build(context)
179
+ when :update_directory_config
180
+ Aws::AppStream::Endpoints::UpdateDirectoryConfig.build(context)
181
+ when :update_entitlement
182
+ Aws::AppStream::Endpoints::UpdateEntitlement.build(context)
183
+ when :update_fleet
184
+ Aws::AppStream::Endpoints::UpdateFleet.build(context)
185
+ when :update_image_permissions
186
+ Aws::AppStream::Endpoints::UpdateImagePermissions.build(context)
187
+ when :update_stack
188
+ Aws::AppStream::Endpoints::UpdateStack.build(context)
189
+ end
190
+ end
191
+ end
192
+
193
+ def add_handlers(handlers, _config)
194
+ handlers.add(Handler, step: :build, priority: 75)
195
+ end
196
+ end
197
+ end
198
+ end
@@ -1478,6 +1478,9 @@ module Aws::AppStream
1478
1478
  # },
1479
1479
  # ],
1480
1480
  # embed_host_domains: ["EmbedHostDomain"],
1481
+ # streaming_experience_settings: {
1482
+ # preferred_protocol: "TCP", # accepts TCP, UDP
1483
+ # },
1481
1484
  # }
1482
1485
  #
1483
1486
  # @!attribute [rw] name
@@ -1551,6 +1554,12 @@ module Aws::AppStream
1551
1554
  # embedded AppStream 2.0 streaming sessions.
1552
1555
  # @return [Array<String>]
1553
1556
  #
1557
+ # @!attribute [rw] streaming_experience_settings
1558
+ # The streaming protocol you want your stack to prefer. This can be
1559
+ # UDP or TCP. Currently, UDP is only supported in the Windows native
1560
+ # client.
1561
+ # @return [Types::StreamingExperienceSettings]
1562
+ #
1554
1563
  # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateStackRequest AWS API Documentation
1555
1564
  #
1556
1565
  class CreateStackRequest < Struct.new(
@@ -1564,7 +1573,8 @@ module Aws::AppStream
1564
1573
  :application_settings,
1565
1574
  :tags,
1566
1575
  :access_endpoints,
1567
- :embed_host_domains)
1576
+ :embed_host_domains,
1577
+ :streaming_experience_settings)
1568
1578
  SENSITIVE = []
1569
1579
  include Aws::Structure
1570
1580
  end
@@ -4566,6 +4576,12 @@ module Aws::AppStream
4566
4576
  # embedded AppStream 2.0 streaming sessions.
4567
4577
  # @return [Array<String>]
4568
4578
  #
4579
+ # @!attribute [rw] streaming_experience_settings
4580
+ # The streaming protocol you want your stack to prefer. This can be
4581
+ # UDP or TCP. Currently, UDP is only supported in the Windows native
4582
+ # client.
4583
+ # @return [Types::StreamingExperienceSettings]
4584
+ #
4569
4585
  # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/Stack AWS API Documentation
4570
4586
  #
4571
4587
  class Stack < Struct.new(
@@ -4581,7 +4597,8 @@ module Aws::AppStream
4581
4597
  :user_settings,
4582
4598
  :application_settings,
4583
4599
  :access_endpoints,
4584
- :embed_host_domains)
4600
+ :embed_host_domains,
4601
+ :streaming_experience_settings)
4585
4602
  SENSITIVE = []
4586
4603
  include Aws::Structure
4587
4604
  end
@@ -4754,6 +4771,29 @@ module Aws::AppStream
4754
4771
  include Aws::Structure
4755
4772
  end
4756
4773
 
4774
+ # The streaming protocol you want your stack to prefer. This can be UDP
4775
+ # or TCP. Currently, UDP is only supported in the Windows native client.
4776
+ #
4777
+ # @note When making an API call, you may pass StreamingExperienceSettings
4778
+ # data as a hash:
4779
+ #
4780
+ # {
4781
+ # preferred_protocol: "TCP", # accepts TCP, UDP
4782
+ # }
4783
+ #
4784
+ # @!attribute [rw] preferred_protocol
4785
+ # The preferred protocol that you want to use while streaming your
4786
+ # application.
4787
+ # @return [String]
4788
+ #
4789
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StreamingExperienceSettings AWS API Documentation
4790
+ #
4791
+ class StreamingExperienceSettings < Struct.new(
4792
+ :preferred_protocol)
4793
+ SENSITIVE = []
4794
+ include Aws::Structure
4795
+ end
4796
+
4757
4797
  # @note When making an API call, you may pass TagResourceRequest
4758
4798
  # data as a hash:
4759
4799
  #
@@ -5374,7 +5414,7 @@ module Aws::AppStream
5374
5414
  # delete_storage_connectors: false,
5375
5415
  # redirect_url: "RedirectURL",
5376
5416
  # feedback_url: "FeedbackURL",
5377
- # attributes_to_delete: ["STORAGE_CONNECTORS"], # accepts STORAGE_CONNECTORS, STORAGE_CONNECTOR_HOMEFOLDERS, STORAGE_CONNECTOR_GOOGLE_DRIVE, STORAGE_CONNECTOR_ONE_DRIVE, REDIRECT_URL, FEEDBACK_URL, THEME_NAME, USER_SETTINGS, EMBED_HOST_DOMAINS, IAM_ROLE_ARN, ACCESS_ENDPOINTS
5417
+ # attributes_to_delete: ["STORAGE_CONNECTORS"], # accepts STORAGE_CONNECTORS, STORAGE_CONNECTOR_HOMEFOLDERS, STORAGE_CONNECTOR_GOOGLE_DRIVE, STORAGE_CONNECTOR_ONE_DRIVE, REDIRECT_URL, FEEDBACK_URL, THEME_NAME, USER_SETTINGS, EMBED_HOST_DOMAINS, IAM_ROLE_ARN, ACCESS_ENDPOINTS, STREAMING_EXPERIENCE_SETTINGS
5378
5418
  # user_settings: [
5379
5419
  # {
5380
5420
  # action: "CLIPBOARD_COPY_FROM_LOCAL_DEVICE", # required, accepts CLIPBOARD_COPY_FROM_LOCAL_DEVICE, CLIPBOARD_COPY_TO_LOCAL_DEVICE, FILE_UPLOAD, FILE_DOWNLOAD, PRINTING_TO_LOCAL_DEVICE, DOMAIN_PASSWORD_SIGNIN, DOMAIN_SMART_CARD_SIGNIN
@@ -5392,6 +5432,9 @@ module Aws::AppStream
5392
5432
  # },
5393
5433
  # ],
5394
5434
  # embed_host_domains: ["EmbedHostDomain"],
5435
+ # streaming_experience_settings: {
5436
+ # preferred_protocol: "TCP", # accepts TCP, UDP
5437
+ # },
5395
5438
  # }
5396
5439
  #
5397
5440
  # @!attribute [rw] display_name
@@ -5453,6 +5496,12 @@ module Aws::AppStream
5453
5496
  # embedded AppStream 2.0 streaming sessions.
5454
5497
  # @return [Array<String>]
5455
5498
  #
5499
+ # @!attribute [rw] streaming_experience_settings
5500
+ # The streaming protocol you want your stack to prefer. This can be
5501
+ # UDP or TCP. Currently, UDP is only supported in the Windows native
5502
+ # client.
5503
+ # @return [Types::StreamingExperienceSettings]
5504
+ #
5456
5505
  # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateStackRequest AWS API Documentation
5457
5506
  #
5458
5507
  class UpdateStackRequest < Struct.new(
@@ -5467,7 +5516,8 @@ module Aws::AppStream
5467
5516
  :user_settings,
5468
5517
  :application_settings,
5469
5518
  :access_endpoints,
5470
- :embed_host_domains)
5519
+ :embed_host_domains,
5520
+ :streaming_experience_settings)
5471
5521
  SENSITIVE = []
5472
5522
  include Aws::Structure
5473
5523
  end
@@ -13,10 +13,14 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-appstream/types'
15
15
  require_relative 'aws-sdk-appstream/client_api'
16
+ require_relative 'aws-sdk-appstream/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-appstream/client'
17
18
  require_relative 'aws-sdk-appstream/errors'
18
19
  require_relative 'aws-sdk-appstream/waiters'
19
20
  require_relative 'aws-sdk-appstream/resource'
21
+ require_relative 'aws-sdk-appstream/endpoint_parameters'
22
+ require_relative 'aws-sdk-appstream/endpoint_provider'
23
+ require_relative 'aws-sdk-appstream/endpoints'
20
24
  require_relative 'aws-sdk-appstream/customizations'
21
25
 
22
26
  # This module provides support for Amazon AppStream. This module is available in the
@@ -49,6 +53,6 @@ require_relative 'aws-sdk-appstream/customizations'
49
53
  # @!group service
50
54
  module Aws::AppStream
51
55
 
52
- GEM_VERSION = '1.65.0'
56
+ GEM_VERSION = '1.67.0'
53
57
 
54
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-appstream
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.65.0
4
+ version: 1.67.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-14 00:00:00.000000000 Z
11
+ date: 2022-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.127.0
22
+ version: 3.165.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-appstream/client.rb
60
60
  - lib/aws-sdk-appstream/client_api.rb
61
61
  - lib/aws-sdk-appstream/customizations.rb
62
+ - lib/aws-sdk-appstream/endpoint_parameters.rb
63
+ - lib/aws-sdk-appstream/endpoint_provider.rb
64
+ - lib/aws-sdk-appstream/endpoints.rb
62
65
  - lib/aws-sdk-appstream/errors.rb
66
+ - lib/aws-sdk-appstream/plugins/endpoints.rb
63
67
  - lib/aws-sdk-appstream/resource.rb
64
68
  - lib/aws-sdk-appstream/types.rb
65
69
  - lib/aws-sdk-appstream/waiters.rb