aws-sdk-appstream 1.66.0 → 1.67.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -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.66.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.66.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-06-29 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