aws-sdk-nimblestudio 1.14.0 → 1.16.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,162 @@
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::NimbleStudio
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::NimbleStudio::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::NimbleStudio::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::NimbleStudio::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 :accept_eulas
60
+ Aws::NimbleStudio::Endpoints::AcceptEulas.build(context)
61
+ when :create_launch_profile
62
+ Aws::NimbleStudio::Endpoints::CreateLaunchProfile.build(context)
63
+ when :create_streaming_image
64
+ Aws::NimbleStudio::Endpoints::CreateStreamingImage.build(context)
65
+ when :create_streaming_session
66
+ Aws::NimbleStudio::Endpoints::CreateStreamingSession.build(context)
67
+ when :create_streaming_session_stream
68
+ Aws::NimbleStudio::Endpoints::CreateStreamingSessionStream.build(context)
69
+ when :create_studio
70
+ Aws::NimbleStudio::Endpoints::CreateStudio.build(context)
71
+ when :create_studio_component
72
+ Aws::NimbleStudio::Endpoints::CreateStudioComponent.build(context)
73
+ when :delete_launch_profile
74
+ Aws::NimbleStudio::Endpoints::DeleteLaunchProfile.build(context)
75
+ when :delete_launch_profile_member
76
+ Aws::NimbleStudio::Endpoints::DeleteLaunchProfileMember.build(context)
77
+ when :delete_streaming_image
78
+ Aws::NimbleStudio::Endpoints::DeleteStreamingImage.build(context)
79
+ when :delete_streaming_session
80
+ Aws::NimbleStudio::Endpoints::DeleteStreamingSession.build(context)
81
+ when :delete_studio
82
+ Aws::NimbleStudio::Endpoints::DeleteStudio.build(context)
83
+ when :delete_studio_component
84
+ Aws::NimbleStudio::Endpoints::DeleteStudioComponent.build(context)
85
+ when :delete_studio_member
86
+ Aws::NimbleStudio::Endpoints::DeleteStudioMember.build(context)
87
+ when :get_eula
88
+ Aws::NimbleStudio::Endpoints::GetEula.build(context)
89
+ when :get_launch_profile
90
+ Aws::NimbleStudio::Endpoints::GetLaunchProfile.build(context)
91
+ when :get_launch_profile_details
92
+ Aws::NimbleStudio::Endpoints::GetLaunchProfileDetails.build(context)
93
+ when :get_launch_profile_initialization
94
+ Aws::NimbleStudio::Endpoints::GetLaunchProfileInitialization.build(context)
95
+ when :get_launch_profile_member
96
+ Aws::NimbleStudio::Endpoints::GetLaunchProfileMember.build(context)
97
+ when :get_streaming_image
98
+ Aws::NimbleStudio::Endpoints::GetStreamingImage.build(context)
99
+ when :get_streaming_session
100
+ Aws::NimbleStudio::Endpoints::GetStreamingSession.build(context)
101
+ when :get_streaming_session_stream
102
+ Aws::NimbleStudio::Endpoints::GetStreamingSessionStream.build(context)
103
+ when :get_studio
104
+ Aws::NimbleStudio::Endpoints::GetStudio.build(context)
105
+ when :get_studio_component
106
+ Aws::NimbleStudio::Endpoints::GetStudioComponent.build(context)
107
+ when :get_studio_member
108
+ Aws::NimbleStudio::Endpoints::GetStudioMember.build(context)
109
+ when :list_eula_acceptances
110
+ Aws::NimbleStudio::Endpoints::ListEulaAcceptances.build(context)
111
+ when :list_eulas
112
+ Aws::NimbleStudio::Endpoints::ListEulas.build(context)
113
+ when :list_launch_profile_members
114
+ Aws::NimbleStudio::Endpoints::ListLaunchProfileMembers.build(context)
115
+ when :list_launch_profiles
116
+ Aws::NimbleStudio::Endpoints::ListLaunchProfiles.build(context)
117
+ when :list_streaming_images
118
+ Aws::NimbleStudio::Endpoints::ListStreamingImages.build(context)
119
+ when :list_streaming_sessions
120
+ Aws::NimbleStudio::Endpoints::ListStreamingSessions.build(context)
121
+ when :list_studio_components
122
+ Aws::NimbleStudio::Endpoints::ListStudioComponents.build(context)
123
+ when :list_studio_members
124
+ Aws::NimbleStudio::Endpoints::ListStudioMembers.build(context)
125
+ when :list_studios
126
+ Aws::NimbleStudio::Endpoints::ListStudios.build(context)
127
+ when :list_tags_for_resource
128
+ Aws::NimbleStudio::Endpoints::ListTagsForResource.build(context)
129
+ when :put_launch_profile_members
130
+ Aws::NimbleStudio::Endpoints::PutLaunchProfileMembers.build(context)
131
+ when :put_studio_members
132
+ Aws::NimbleStudio::Endpoints::PutStudioMembers.build(context)
133
+ when :start_streaming_session
134
+ Aws::NimbleStudio::Endpoints::StartStreamingSession.build(context)
135
+ when :start_studio_sso_configuration_repair
136
+ Aws::NimbleStudio::Endpoints::StartStudioSSOConfigurationRepair.build(context)
137
+ when :stop_streaming_session
138
+ Aws::NimbleStudio::Endpoints::StopStreamingSession.build(context)
139
+ when :tag_resource
140
+ Aws::NimbleStudio::Endpoints::TagResource.build(context)
141
+ when :untag_resource
142
+ Aws::NimbleStudio::Endpoints::UntagResource.build(context)
143
+ when :update_launch_profile
144
+ Aws::NimbleStudio::Endpoints::UpdateLaunchProfile.build(context)
145
+ when :update_launch_profile_member
146
+ Aws::NimbleStudio::Endpoints::UpdateLaunchProfileMember.build(context)
147
+ when :update_streaming_image
148
+ Aws::NimbleStudio::Endpoints::UpdateStreamingImage.build(context)
149
+ when :update_studio
150
+ Aws::NimbleStudio::Endpoints::UpdateStudio.build(context)
151
+ when :update_studio_component
152
+ Aws::NimbleStudio::Endpoints::UpdateStudioComponent.build(context)
153
+ end
154
+ end
155
+ end
156
+
157
+ def add_handlers(handlers, _config)
158
+ handlers.add(Handler, step: :build, priority: 75)
159
+ end
160
+ end
161
+ end
162
+ end
@@ -34,7 +34,7 @@ module Aws::NimbleStudio
34
34
  # @return [Array<String>]
35
35
  #
36
36
  # @!attribute [rw] studio_id
37
- # A collection of EULA IDs.
37
+ # The studio ID.
38
38
  # @return [String]
39
39
  #
40
40
  # @see http://docs.aws.amazon.com/goto/WebAPI/nimble-2020-08-01/AcceptEulasRequest AWS API Documentation
@@ -218,7 +218,7 @@ module Aws::NimbleStudio
218
218
  # name: "LaunchProfileName", # required
219
219
  # stream_configuration: { # required
220
220
  # clipboard_mode: "ENABLED", # required, accepts ENABLED, DISABLED
221
- # ec2_instance_types: ["g4dn.xlarge"], # required, accepts g4dn.xlarge, g4dn.2xlarge, g4dn.4xlarge, g4dn.8xlarge, g4dn.12xlarge, g4dn.16xlarge
221
+ # ec2_instance_types: ["g4dn.xlarge"], # required, accepts g4dn.xlarge, g4dn.2xlarge, g4dn.4xlarge, g4dn.8xlarge, g4dn.12xlarge, g4dn.16xlarge, g3.4xlarge, g3s.xlarge, g5.xlarge, g5.2xlarge, g5.4xlarge, g5.8xlarge, g5.16xlarge
222
222
  # max_session_length_in_minutes: 1,
223
223
  # max_stopped_session_length_in_minutes: 1,
224
224
  # session_storage: {
@@ -388,7 +388,7 @@ module Aws::NimbleStudio
388
388
  #
389
389
  # {
390
390
  # client_token: "ClientToken",
391
- # ec2_instance_type: "g4dn.xlarge", # accepts g4dn.xlarge, g4dn.2xlarge, g4dn.4xlarge, g4dn.8xlarge, g4dn.12xlarge, g4dn.16xlarge
391
+ # ec2_instance_type: "g4dn.xlarge", # accepts g4dn.xlarge, g4dn.2xlarge, g4dn.4xlarge, g4dn.8xlarge, g4dn.12xlarge, g4dn.16xlarge, g3.4xlarge, g3s.xlarge, g5.xlarge, g5.2xlarge, g5.4xlarge, g5.8xlarge, g5.16xlarge
392
392
  # launch_profile_id: "String",
393
393
  # owned_by: "String",
394
394
  # streaming_image_id: "StreamingImageId",
@@ -776,7 +776,7 @@ module Aws::NimbleStudio
776
776
  # @return [String]
777
777
  #
778
778
  # @!attribute [rw] principal_id
779
- # The principal ID. This currently supports a Amazon Web Services SSO
779
+ # The principal ID. This currently supports a IAM Identity Center
780
780
  # UserId.
781
781
  # @return [String]
782
782
  #
@@ -1015,7 +1015,7 @@ module Aws::NimbleStudio
1015
1015
  # @return [String]
1016
1016
  #
1017
1017
  # @!attribute [rw] principal_id
1018
- # The principal ID. This currently supports a Amazon Web Services SSO
1018
+ # The principal ID. This currently supports a IAM Identity Center
1019
1019
  # UserId.
1020
1020
  # @return [String]
1021
1021
  #
@@ -1299,7 +1299,7 @@ module Aws::NimbleStudio
1299
1299
  # @return [String]
1300
1300
  #
1301
1301
  # @!attribute [rw] principal_id
1302
- # The principal ID. This currently supports a Amazon Web Services SSO
1302
+ # The principal ID. This currently supports a IAM Identity Center
1303
1303
  # UserId.
1304
1304
  # @return [String]
1305
1305
  #
@@ -1529,7 +1529,7 @@ module Aws::NimbleStudio
1529
1529
  # }
1530
1530
  #
1531
1531
  # @!attribute [rw] principal_id
1532
- # The principal ID. This currently supports a Amazon Web Services SSO
1532
+ # The principal ID. This currently supports a IAM Identity Center
1533
1533
  # UserId.
1534
1534
  # @return [String]
1535
1535
  #
@@ -2101,7 +2101,7 @@ module Aws::NimbleStudio
2101
2101
  # @return [String]
2102
2102
  #
2103
2103
  # @!attribute [rw] principal_id
2104
- # The principal ID. This currently supports a Amazon Web Services SSO
2104
+ # The principal ID. This currently supports a IAM Identity Center
2105
2105
  # UserId.
2106
2106
  # @return [String]
2107
2107
  #
@@ -2939,7 +2939,7 @@ module Aws::NimbleStudio
2939
2939
  #
2940
2940
  # {
2941
2941
  # clipboard_mode: "ENABLED", # required, accepts ENABLED, DISABLED
2942
- # ec2_instance_types: ["g4dn.xlarge"], # required, accepts g4dn.xlarge, g4dn.2xlarge, g4dn.4xlarge, g4dn.8xlarge, g4dn.12xlarge, g4dn.16xlarge
2942
+ # ec2_instance_types: ["g4dn.xlarge"], # required, accepts g4dn.xlarge, g4dn.2xlarge, g4dn.4xlarge, g4dn.8xlarge, g4dn.12xlarge, g4dn.16xlarge, g3.4xlarge, g3s.xlarge, g5.xlarge, g5.2xlarge, g5.4xlarge, g5.8xlarge, g5.16xlarge
2943
2943
  # max_session_length_in_minutes: 1,
2944
2944
  # max_stopped_session_length_in_minutes: 1,
2945
2945
  # session_storage: {
@@ -3363,8 +3363,8 @@ module Aws::NimbleStudio
3363
3363
  #
3364
3364
  # When creating a studio, you must provides two IAM roles for use with
3365
3365
  # the Nimble Studio portal. These roles are assumed by your users when
3366
- # they log in to the Nimble Studio portal via Amazon Web Services SSO
3367
- # and your identity source.
3366
+ # they log in to the Nimble Studio portal via IAM Identity Center and
3367
+ # your identity source.
3368
3368
  #
3369
3369
  # The user role must have the AmazonNimbleStudio-StudioUser managed
3370
3370
  # policy attached for the portal to function properly.
@@ -3399,9 +3399,9 @@ module Aws::NimbleStudio
3399
3399
  # @return [String]
3400
3400
  #
3401
3401
  # @!attribute [rw] sso_client_id
3402
- # The Amazon Web Services SSO application client ID used to integrate
3403
- # with Amazon Web Services SSO to enable Amazon Web Services SSO users
3404
- # to log in to Nimble Studio portal.
3402
+ # The IAM Identity Center application client ID used to integrate with
3403
+ # IAM Identity Center to enable IAM Identity Center users to log in to
3404
+ # Nimble Studio portal.
3405
3405
  # @return [String]
3406
3406
  #
3407
3407
  # @!attribute [rw] state
@@ -3772,11 +3772,11 @@ module Aws::NimbleStudio
3772
3772
  # source to elevated permissions that they are granted in the studio.
3773
3773
  #
3774
3774
  # When you add a user to your studio using the Nimble Studio console,
3775
- # they are given access to the studio's AWS SSO application and are
3776
- # given access to log in to the Nimble Studio portal. These users have
3777
- # the permissions provided by the studio's user IAM role and do not
3778
- # appear in the studio membership collection. Only studio admins appear
3779
- # in studio membership.
3775
+ # they are given access to the studio's IAM Identity Center application
3776
+ # and are given access to log in to the Nimble Studio portal. These
3777
+ # users have the permissions provided by the studio's user IAM role and
3778
+ # do not appear in the studio membership collection. Only studio admins
3779
+ # appear in studio membership.
3780
3780
  #
3781
3781
  # When you add a user to studio membership with the persona ADMIN, upon
3782
3782
  # logging in to the Nimble Studio portal, they are granted permissions
@@ -3927,7 +3927,7 @@ module Aws::NimbleStudio
3927
3927
  # @return [String]
3928
3928
  #
3929
3929
  # @!attribute [rw] principal_id
3930
- # The principal ID. This currently supports a Amazon Web Services SSO
3930
+ # The principal ID. This currently supports a IAM Identity Center
3931
3931
  # UserId.
3932
3932
  # @return [String]
3933
3933
  #
@@ -3970,7 +3970,7 @@ module Aws::NimbleStudio
3970
3970
  # name: "LaunchProfileName",
3971
3971
  # stream_configuration: {
3972
3972
  # clipboard_mode: "ENABLED", # required, accepts ENABLED, DISABLED
3973
- # ec2_instance_types: ["g4dn.xlarge"], # required, accepts g4dn.xlarge, g4dn.2xlarge, g4dn.4xlarge, g4dn.8xlarge, g4dn.12xlarge, g4dn.16xlarge
3973
+ # ec2_instance_types: ["g4dn.xlarge"], # required, accepts g4dn.xlarge, g4dn.2xlarge, g4dn.4xlarge, g4dn.8xlarge, g4dn.12xlarge, g4dn.16xlarge, g3.4xlarge, g3s.xlarge, g5.xlarge, g5.2xlarge, g5.4xlarge, g5.8xlarge, g5.16xlarge
3974
3974
  # max_session_length_in_minutes: 1,
3975
3975
  # max_stopped_session_length_in_minutes: 1,
3976
3976
  # session_storage: {
@@ -276,7 +276,7 @@ module Aws::NimbleStudio
276
276
 
277
277
  end
278
278
 
279
- # Wait until a StreamingSessionDeleted. Use this after invoking Deletesession
279
+ # Wait until a StreamingSessionDeleted. Use this after invoking DeleteStreamingSession
280
280
  class StreamingSessionDeleted
281
281
 
282
282
  # @param [Hash] options
@@ -13,10 +13,14 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-nimblestudio/types'
15
15
  require_relative 'aws-sdk-nimblestudio/client_api'
16
+ require_relative 'aws-sdk-nimblestudio/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-nimblestudio/client'
17
18
  require_relative 'aws-sdk-nimblestudio/errors'
18
19
  require_relative 'aws-sdk-nimblestudio/waiters'
19
20
  require_relative 'aws-sdk-nimblestudio/resource'
21
+ require_relative 'aws-sdk-nimblestudio/endpoint_parameters'
22
+ require_relative 'aws-sdk-nimblestudio/endpoint_provider'
23
+ require_relative 'aws-sdk-nimblestudio/endpoints'
20
24
  require_relative 'aws-sdk-nimblestudio/customizations'
21
25
 
22
26
  # This module provides support for AmazonNimbleStudio. This module is available in the
@@ -49,6 +53,6 @@ require_relative 'aws-sdk-nimblestudio/customizations'
49
53
  # @!group service
50
54
  module Aws::NimbleStudio
51
55
 
52
- GEM_VERSION = '1.14.0'
56
+ GEM_VERSION = '1.16.0'
53
57
 
54
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-nimblestudio
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.0
4
+ version: 1.16.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-07-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-nimblestudio/client.rb
60
60
  - lib/aws-sdk-nimblestudio/client_api.rb
61
61
  - lib/aws-sdk-nimblestudio/customizations.rb
62
+ - lib/aws-sdk-nimblestudio/endpoint_parameters.rb
63
+ - lib/aws-sdk-nimblestudio/endpoint_provider.rb
64
+ - lib/aws-sdk-nimblestudio/endpoints.rb
62
65
  - lib/aws-sdk-nimblestudio/errors.rb
66
+ - lib/aws-sdk-nimblestudio/plugins/endpoints.rb
63
67
  - lib/aws-sdk-nimblestudio/resource.rb
64
68
  - lib/aws-sdk-nimblestudio/types.rb
65
69
  - lib/aws-sdk-nimblestudio/waiters.rb