aws-sdk-appstream 1.60.0 → 1.80.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.
@@ -28,6 +28,8 @@ module Aws::AppStream
28
28
  #
29
29
  # ## Error Classes
30
30
  # * {ConcurrentModificationException}
31
+ # * {EntitlementAlreadyExistsException}
32
+ # * {EntitlementNotFoundException}
31
33
  # * {IncompatibleImageException}
32
34
  # * {InvalidAccountStatusException}
33
35
  # * {InvalidParameterCombinationException}
@@ -61,6 +63,36 @@ module Aws::AppStream
61
63
  end
62
64
  end
63
65
 
66
+ class EntitlementAlreadyExistsException < ServiceError
67
+
68
+ # @param [Seahorse::Client::RequestContext] context
69
+ # @param [String] message
70
+ # @param [Aws::AppStream::Types::EntitlementAlreadyExistsException] data
71
+ def initialize(context, message, data = Aws::EmptyStructure.new)
72
+ super(context, message, data)
73
+ end
74
+
75
+ # @return [String]
76
+ def message
77
+ @message || @data[:message]
78
+ end
79
+ end
80
+
81
+ class EntitlementNotFoundException < ServiceError
82
+
83
+ # @param [Seahorse::Client::RequestContext] context
84
+ # @param [String] message
85
+ # @param [Aws::AppStream::Types::EntitlementNotFoundException] data
86
+ def initialize(context, message, data = Aws::EmptyStructure.new)
87
+ super(context, message, data)
88
+ end
89
+
90
+ # @return [String]
91
+ def message
92
+ @message || @data[:message]
93
+ end
94
+ end
95
+
64
96
  class IncompatibleImageException < ServiceError
65
97
 
66
98
  # @param [Seahorse::Client::RequestContext] context
@@ -0,0 +1,218 @@
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_app_block_builder_app_block
60
+ Aws::AppStream::Endpoints::AssociateAppBlockBuilderAppBlock.build(context)
61
+ when :associate_application_fleet
62
+ Aws::AppStream::Endpoints::AssociateApplicationFleet.build(context)
63
+ when :associate_application_to_entitlement
64
+ Aws::AppStream::Endpoints::AssociateApplicationToEntitlement.build(context)
65
+ when :associate_fleet
66
+ Aws::AppStream::Endpoints::AssociateFleet.build(context)
67
+ when :batch_associate_user_stack
68
+ Aws::AppStream::Endpoints::BatchAssociateUserStack.build(context)
69
+ when :batch_disassociate_user_stack
70
+ Aws::AppStream::Endpoints::BatchDisassociateUserStack.build(context)
71
+ when :copy_image
72
+ Aws::AppStream::Endpoints::CopyImage.build(context)
73
+ when :create_app_block
74
+ Aws::AppStream::Endpoints::CreateAppBlock.build(context)
75
+ when :create_app_block_builder
76
+ Aws::AppStream::Endpoints::CreateAppBlockBuilder.build(context)
77
+ when :create_app_block_builder_streaming_url
78
+ Aws::AppStream::Endpoints::CreateAppBlockBuilderStreamingURL.build(context)
79
+ when :create_application
80
+ Aws::AppStream::Endpoints::CreateApplication.build(context)
81
+ when :create_directory_config
82
+ Aws::AppStream::Endpoints::CreateDirectoryConfig.build(context)
83
+ when :create_entitlement
84
+ Aws::AppStream::Endpoints::CreateEntitlement.build(context)
85
+ when :create_fleet
86
+ Aws::AppStream::Endpoints::CreateFleet.build(context)
87
+ when :create_image_builder
88
+ Aws::AppStream::Endpoints::CreateImageBuilder.build(context)
89
+ when :create_image_builder_streaming_url
90
+ Aws::AppStream::Endpoints::CreateImageBuilderStreamingURL.build(context)
91
+ when :create_stack
92
+ Aws::AppStream::Endpoints::CreateStack.build(context)
93
+ when :create_streaming_url
94
+ Aws::AppStream::Endpoints::CreateStreamingURL.build(context)
95
+ when :create_updated_image
96
+ Aws::AppStream::Endpoints::CreateUpdatedImage.build(context)
97
+ when :create_usage_report_subscription
98
+ Aws::AppStream::Endpoints::CreateUsageReportSubscription.build(context)
99
+ when :create_user
100
+ Aws::AppStream::Endpoints::CreateUser.build(context)
101
+ when :delete_app_block
102
+ Aws::AppStream::Endpoints::DeleteAppBlock.build(context)
103
+ when :delete_app_block_builder
104
+ Aws::AppStream::Endpoints::DeleteAppBlockBuilder.build(context)
105
+ when :delete_application
106
+ Aws::AppStream::Endpoints::DeleteApplication.build(context)
107
+ when :delete_directory_config
108
+ Aws::AppStream::Endpoints::DeleteDirectoryConfig.build(context)
109
+ when :delete_entitlement
110
+ Aws::AppStream::Endpoints::DeleteEntitlement.build(context)
111
+ when :delete_fleet
112
+ Aws::AppStream::Endpoints::DeleteFleet.build(context)
113
+ when :delete_image
114
+ Aws::AppStream::Endpoints::DeleteImage.build(context)
115
+ when :delete_image_builder
116
+ Aws::AppStream::Endpoints::DeleteImageBuilder.build(context)
117
+ when :delete_image_permissions
118
+ Aws::AppStream::Endpoints::DeleteImagePermissions.build(context)
119
+ when :delete_stack
120
+ Aws::AppStream::Endpoints::DeleteStack.build(context)
121
+ when :delete_usage_report_subscription
122
+ Aws::AppStream::Endpoints::DeleteUsageReportSubscription.build(context)
123
+ when :delete_user
124
+ Aws::AppStream::Endpoints::DeleteUser.build(context)
125
+ when :describe_app_block_builder_app_block_associations
126
+ Aws::AppStream::Endpoints::DescribeAppBlockBuilderAppBlockAssociations.build(context)
127
+ when :describe_app_block_builders
128
+ Aws::AppStream::Endpoints::DescribeAppBlockBuilders.build(context)
129
+ when :describe_app_blocks
130
+ Aws::AppStream::Endpoints::DescribeAppBlocks.build(context)
131
+ when :describe_application_fleet_associations
132
+ Aws::AppStream::Endpoints::DescribeApplicationFleetAssociations.build(context)
133
+ when :describe_applications
134
+ Aws::AppStream::Endpoints::DescribeApplications.build(context)
135
+ when :describe_directory_configs
136
+ Aws::AppStream::Endpoints::DescribeDirectoryConfigs.build(context)
137
+ when :describe_entitlements
138
+ Aws::AppStream::Endpoints::DescribeEntitlements.build(context)
139
+ when :describe_fleets
140
+ Aws::AppStream::Endpoints::DescribeFleets.build(context)
141
+ when :describe_image_builders
142
+ Aws::AppStream::Endpoints::DescribeImageBuilders.build(context)
143
+ when :describe_image_permissions
144
+ Aws::AppStream::Endpoints::DescribeImagePermissions.build(context)
145
+ when :describe_images
146
+ Aws::AppStream::Endpoints::DescribeImages.build(context)
147
+ when :describe_sessions
148
+ Aws::AppStream::Endpoints::DescribeSessions.build(context)
149
+ when :describe_stacks
150
+ Aws::AppStream::Endpoints::DescribeStacks.build(context)
151
+ when :describe_usage_report_subscriptions
152
+ Aws::AppStream::Endpoints::DescribeUsageReportSubscriptions.build(context)
153
+ when :describe_user_stack_associations
154
+ Aws::AppStream::Endpoints::DescribeUserStackAssociations.build(context)
155
+ when :describe_users
156
+ Aws::AppStream::Endpoints::DescribeUsers.build(context)
157
+ when :disable_user
158
+ Aws::AppStream::Endpoints::DisableUser.build(context)
159
+ when :disassociate_app_block_builder_app_block
160
+ Aws::AppStream::Endpoints::DisassociateAppBlockBuilderAppBlock.build(context)
161
+ when :disassociate_application_fleet
162
+ Aws::AppStream::Endpoints::DisassociateApplicationFleet.build(context)
163
+ when :disassociate_application_from_entitlement
164
+ Aws::AppStream::Endpoints::DisassociateApplicationFromEntitlement.build(context)
165
+ when :disassociate_fleet
166
+ Aws::AppStream::Endpoints::DisassociateFleet.build(context)
167
+ when :enable_user
168
+ Aws::AppStream::Endpoints::EnableUser.build(context)
169
+ when :expire_session
170
+ Aws::AppStream::Endpoints::ExpireSession.build(context)
171
+ when :list_associated_fleets
172
+ Aws::AppStream::Endpoints::ListAssociatedFleets.build(context)
173
+ when :list_associated_stacks
174
+ Aws::AppStream::Endpoints::ListAssociatedStacks.build(context)
175
+ when :list_entitled_applications
176
+ Aws::AppStream::Endpoints::ListEntitledApplications.build(context)
177
+ when :list_tags_for_resource
178
+ Aws::AppStream::Endpoints::ListTagsForResource.build(context)
179
+ when :start_app_block_builder
180
+ Aws::AppStream::Endpoints::StartAppBlockBuilder.build(context)
181
+ when :start_fleet
182
+ Aws::AppStream::Endpoints::StartFleet.build(context)
183
+ when :start_image_builder
184
+ Aws::AppStream::Endpoints::StartImageBuilder.build(context)
185
+ when :stop_app_block_builder
186
+ Aws::AppStream::Endpoints::StopAppBlockBuilder.build(context)
187
+ when :stop_fleet
188
+ Aws::AppStream::Endpoints::StopFleet.build(context)
189
+ when :stop_image_builder
190
+ Aws::AppStream::Endpoints::StopImageBuilder.build(context)
191
+ when :tag_resource
192
+ Aws::AppStream::Endpoints::TagResource.build(context)
193
+ when :untag_resource
194
+ Aws::AppStream::Endpoints::UntagResource.build(context)
195
+ when :update_app_block_builder
196
+ Aws::AppStream::Endpoints::UpdateAppBlockBuilder.build(context)
197
+ when :update_application
198
+ Aws::AppStream::Endpoints::UpdateApplication.build(context)
199
+ when :update_directory_config
200
+ Aws::AppStream::Endpoints::UpdateDirectoryConfig.build(context)
201
+ when :update_entitlement
202
+ Aws::AppStream::Endpoints::UpdateEntitlement.build(context)
203
+ when :update_fleet
204
+ Aws::AppStream::Endpoints::UpdateFleet.build(context)
205
+ when :update_image_permissions
206
+ Aws::AppStream::Endpoints::UpdateImagePermissions.build(context)
207
+ when :update_stack
208
+ Aws::AppStream::Endpoints::UpdateStack.build(context)
209
+ end
210
+ end
211
+ end
212
+
213
+ def add_handlers(handlers, _config)
214
+ handlers.add(Handler, step: :build, priority: 75)
215
+ end
216
+ end
217
+ end
218
+ end