aws-sdk-core 3.173.0 → 3.254.1

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.
Files changed (213) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +947 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-defaults/default_configuration.rb +5 -6
  5. data/lib/aws-defaults.rb +4 -1
  6. data/lib/aws-sdk-core/arn.rb +1 -3
  7. data/lib/aws-sdk-core/assume_role_credentials.rb +21 -13
  8. data/lib/aws-sdk-core/assume_role_web_identity_credentials.rb +16 -9
  9. data/lib/aws-sdk-core/binary/decode_handler.rb +3 -9
  10. data/lib/aws-sdk-core/binary/encode_handler.rb +1 -1
  11. data/lib/aws-sdk-core/binary/event_builder.rb +34 -37
  12. data/lib/aws-sdk-core/binary/event_stream_decoder.rb +1 -0
  13. data/lib/aws-sdk-core/binary/event_stream_encoder.rb +4 -3
  14. data/lib/aws-sdk-core/cbor/decoder.rb +309 -0
  15. data/lib/aws-sdk-core/cbor/encoder.rb +243 -0
  16. data/lib/aws-sdk-core/cbor.rb +53 -0
  17. data/lib/aws-sdk-core/client_side_monitoring.rb +9 -0
  18. data/lib/aws-sdk-core/client_stubs.rb +39 -55
  19. data/lib/aws-sdk-core/credential_provider.rb +8 -1
  20. data/lib/aws-sdk-core/credential_provider_chain.rb +101 -25
  21. data/lib/aws-sdk-core/credentials.rb +19 -6
  22. data/lib/aws-sdk-core/ec2_metadata.rb +1 -1
  23. data/lib/aws-sdk-core/ecs_credentials.rb +104 -26
  24. data/lib/aws-sdk-core/endpoints/endpoint.rb +3 -1
  25. data/lib/aws-sdk-core/endpoints/matchers.rb +21 -19
  26. data/lib/aws-sdk-core/endpoints.rb +106 -22
  27. data/lib/aws-sdk-core/error_handler.rb +46 -0
  28. data/lib/aws-sdk-core/errors.rb +17 -5
  29. data/lib/aws-sdk-core/event_emitter.rb +1 -17
  30. data/lib/aws-sdk-core/ini_parser.rb +7 -0
  31. data/lib/aws-sdk-core/instance_profile_credentials.rb +181 -158
  32. data/lib/aws-sdk-core/json/builder.rb +23 -1
  33. data/lib/aws-sdk-core/json/error_handler.rb +31 -14
  34. data/lib/aws-sdk-core/json/handler.rb +13 -6
  35. data/lib/aws-sdk-core/json/json_engine.rb +3 -1
  36. data/lib/aws-sdk-core/json/oj_engine.rb +7 -1
  37. data/lib/aws-sdk-core/json/parser.rb +33 -3
  38. data/lib/aws-sdk-core/json.rb +43 -14
  39. data/lib/aws-sdk-core/log/param_filter.rb +2 -2
  40. data/lib/aws-sdk-core/log/param_formatter.rb +7 -3
  41. data/lib/aws-sdk-core/log.rb +10 -0
  42. data/lib/aws-sdk-core/login_credentials.rb +230 -0
  43. data/lib/aws-sdk-core/lru_cache.rb +75 -0
  44. data/lib/aws-sdk-core/pageable_response.rb +3 -1
  45. data/lib/aws-sdk-core/param_validator.rb +9 -4
  46. data/lib/aws-sdk-core/plugins/bearer_authorization.rb +2 -0
  47. data/lib/aws-sdk-core/plugins/checksum_algorithm.rb +437 -201
  48. data/lib/aws-sdk-core/plugins/client_metrics_plugin.rb +1 -1
  49. data/lib/aws-sdk-core/plugins/client_metrics_send_plugin.rb +14 -2
  50. data/lib/aws-sdk-core/plugins/credentials_configuration.rb +78 -56
  51. data/lib/aws-sdk-core/plugins/endpoint_pattern.rb +40 -32
  52. data/lib/aws-sdk-core/plugins/global_configuration.rb +8 -9
  53. data/lib/aws-sdk-core/plugins/http_checksum.rb +3 -8
  54. data/lib/aws-sdk-core/plugins/invocation_id.rb +1 -11
  55. data/lib/aws-sdk-core/plugins/logging.rb +2 -0
  56. data/lib/aws-sdk-core/plugins/protocols/api_gateway.rb +3 -1
  57. data/lib/aws-sdk-core/plugins/protocols/ec2.rb +2 -24
  58. data/lib/aws-sdk-core/plugins/protocols/json_rpc.rb +6 -8
  59. data/lib/aws-sdk-core/plugins/protocols/query.rb +4 -2
  60. data/lib/aws-sdk-core/plugins/protocols/rest_json.rb +3 -15
  61. data/lib/aws-sdk-core/plugins/protocols/rest_xml.rb +3 -0
  62. data/lib/aws-sdk-core/plugins/protocols/rpc_v2.rb +17 -0
  63. data/lib/aws-sdk-core/plugins/regional_endpoint.rb +162 -37
  64. data/lib/aws-sdk-core/plugins/request_compression.rb +226 -0
  65. data/lib/aws-sdk-core/plugins/retries/clock_skew.rb +28 -16
  66. data/lib/aws-sdk-core/plugins/retries/retry_quota.rb +11 -8
  67. data/lib/aws-sdk-core/plugins/retry_errors.rb +211 -110
  68. data/lib/aws-sdk-core/plugins/sign.rb +55 -33
  69. data/lib/aws-sdk-core/plugins/signature_v2.rb +2 -1
  70. data/lib/aws-sdk-core/plugins/signature_v4.rb +2 -1
  71. data/lib/aws-sdk-core/plugins/stub_responses.rb +59 -9
  72. data/lib/aws-sdk-core/plugins/telemetry.rb +75 -0
  73. data/lib/aws-sdk-core/plugins/transfer_encoding.rb +16 -9
  74. data/lib/aws-sdk-core/plugins/user_agent.rb +205 -14
  75. data/lib/aws-sdk-core/plugins.rb +39 -0
  76. data/lib/aws-sdk-core/process_credentials.rb +48 -29
  77. data/lib/aws-sdk-core/query/ec2_handler.rb +27 -0
  78. data/lib/aws-sdk-core/query/ec2_param_builder.rb +5 -7
  79. data/lib/aws-sdk-core/query/handler.rb +4 -4
  80. data/lib/aws-sdk-core/query/param_builder.rb +2 -2
  81. data/lib/aws-sdk-core/query.rb +2 -1
  82. data/lib/aws-sdk-core/refreshing_credentials.rb +20 -23
  83. data/lib/aws-sdk-core/resources.rb +8 -0
  84. data/lib/aws-sdk-core/rest/content_type_handler.rb +60 -0
  85. data/lib/aws-sdk-core/rest/handler.rb +3 -4
  86. data/lib/aws-sdk-core/rest/request/body.rb +32 -5
  87. data/lib/aws-sdk-core/rest/request/endpoint.rb +24 -4
  88. data/lib/aws-sdk-core/rest/request/headers.rb +15 -7
  89. data/lib/aws-sdk-core/rest/request/querystring_builder.rb +62 -36
  90. data/lib/aws-sdk-core/rest/response/body.rb +15 -1
  91. data/lib/aws-sdk-core/rest/response/header_list_parser.rb +79 -0
  92. data/lib/aws-sdk-core/rest/response/headers.rb +8 -3
  93. data/lib/aws-sdk-core/rest.rb +1 -0
  94. data/lib/aws-sdk-core/rpc_v2/builder.rb +62 -0
  95. data/lib/aws-sdk-core/rpc_v2/cbor_engine.rb +18 -0
  96. data/lib/aws-sdk-core/rpc_v2/content_type_handler.rb +47 -0
  97. data/lib/aws-sdk-core/rpc_v2/error_handler.rb +95 -0
  98. data/lib/aws-sdk-core/rpc_v2/handler.rb +79 -0
  99. data/lib/aws-sdk-core/rpc_v2/parser.rb +98 -0
  100. data/lib/aws-sdk-core/rpc_v2.rb +69 -0
  101. data/lib/aws-sdk-core/shared_config.rb +155 -39
  102. data/lib/aws-sdk-core/shared_credentials.rb +1 -7
  103. data/lib/aws-sdk-core/sso_credentials.rb +6 -3
  104. data/lib/aws-sdk-core/sso_token_provider.rb +1 -0
  105. data/lib/aws-sdk-core/static_token_provider.rb +1 -2
  106. data/lib/aws-sdk-core/stubbing/protocols/ec2.rb +12 -11
  107. data/lib/aws-sdk-core/stubbing/protocols/json.rb +11 -10
  108. data/lib/aws-sdk-core/stubbing/protocols/query.rb +7 -6
  109. data/lib/aws-sdk-core/stubbing/protocols/rest.rb +2 -1
  110. data/lib/aws-sdk-core/stubbing/protocols/rest_json.rb +9 -8
  111. data/lib/aws-sdk-core/stubbing/protocols/rest_xml.rb +6 -5
  112. data/lib/aws-sdk-core/stubbing/protocols/rpc_v2.rb +39 -0
  113. data/lib/aws-sdk-core/stubbing/stub_data.rb +11 -0
  114. data/lib/aws-sdk-core/stubbing.rb +22 -0
  115. data/lib/aws-sdk-core/telemetry/base.rb +177 -0
  116. data/lib/aws-sdk-core/telemetry/no_op.rb +70 -0
  117. data/lib/aws-sdk-core/telemetry/otel.rb +235 -0
  118. data/lib/aws-sdk-core/telemetry/span_kind.rb +22 -0
  119. data/lib/aws-sdk-core/telemetry/span_status.rb +59 -0
  120. data/lib/aws-sdk-core/telemetry.rb +78 -0
  121. data/lib/aws-sdk-core/token.rb +3 -3
  122. data/lib/aws-sdk-core/token_provider.rb +4 -0
  123. data/lib/aws-sdk-core/token_provider_chain.rb +2 -6
  124. data/lib/aws-sdk-core/util.rb +41 -1
  125. data/lib/aws-sdk-core/waiters/poller.rb +12 -5
  126. data/lib/aws-sdk-core/xml/builder.rb +17 -9
  127. data/lib/aws-sdk-core/xml/error_handler.rb +35 -43
  128. data/lib/aws-sdk-core/xml/parser/frame.rb +4 -20
  129. data/lib/aws-sdk-core/xml/parser/stack.rb +2 -0
  130. data/lib/aws-sdk-core/xml/parser.rb +2 -6
  131. data/lib/aws-sdk-core.rb +86 -107
  132. data/lib/aws-sdk-signin/client.rb +1008 -0
  133. data/lib/aws-sdk-signin/client_api.rb +444 -0
  134. data/lib/aws-sdk-signin/customizations.rb +1 -0
  135. data/lib/aws-sdk-signin/endpoint_parameters.rb +85 -0
  136. data/lib/aws-sdk-signin/endpoint_provider.rb +107 -0
  137. data/lib/aws-sdk-signin/endpoints.rb +133 -0
  138. data/lib/aws-sdk-signin/errors.rb +185 -0
  139. data/lib/aws-sdk-signin/plugins/endpoints.rb +77 -0
  140. data/lib/aws-sdk-signin/resource.rb +26 -0
  141. data/lib/aws-sdk-signin/types.rb +909 -0
  142. data/lib/aws-sdk-signin.rb +63 -0
  143. data/lib/aws-sdk-sso/client.rb +210 -99
  144. data/lib/aws-sdk-sso/client_api.rb +7 -0
  145. data/lib/aws-sdk-sso/endpoint_parameters.rb +13 -10
  146. data/lib/aws-sdk-sso/endpoint_provider.rb +30 -28
  147. data/lib/aws-sdk-sso/endpoints.rb +3 -54
  148. data/lib/aws-sdk-sso/plugins/endpoints.rb +23 -22
  149. data/lib/aws-sdk-sso/types.rb +1 -0
  150. data/lib/aws-sdk-sso.rb +15 -11
  151. data/lib/aws-sdk-ssooidc/client.rb +630 -132
  152. data/lib/aws-sdk-ssooidc/client_api.rb +94 -1
  153. data/lib/aws-sdk-ssooidc/endpoint_parameters.rb +13 -10
  154. data/lib/aws-sdk-ssooidc/endpoint_provider.rb +30 -28
  155. data/lib/aws-sdk-ssooidc/endpoints.rb +3 -40
  156. data/lib/aws-sdk-ssooidc/errors.rb +62 -0
  157. data/lib/aws-sdk-ssooidc/plugins/endpoints.rb +23 -20
  158. data/lib/aws-sdk-ssooidc/types.rb +419 -53
  159. data/lib/aws-sdk-ssooidc.rb +15 -11
  160. data/lib/aws-sdk-sts/client.rb +567 -158
  161. data/lib/aws-sdk-sts/client_api.rb +120 -9
  162. data/lib/aws-sdk-sts/customizations.rb +5 -2
  163. data/lib/aws-sdk-sts/endpoint_parameters.rb +15 -14
  164. data/lib/aws-sdk-sts/endpoint_provider.rb +52 -57
  165. data/lib/aws-sdk-sts/endpoints.rb +3 -118
  166. data/lib/aws-sdk-sts/errors.rb +79 -0
  167. data/lib/aws-sdk-sts/plugins/endpoints.rb +23 -30
  168. data/lib/aws-sdk-sts/presigner.rb +3 -7
  169. data/lib/aws-sdk-sts/types.rb +382 -31
  170. data/lib/aws-sdk-sts.rb +15 -11
  171. data/lib/seahorse/client/async_base.rb +4 -5
  172. data/lib/seahorse/client/async_response.rb +19 -0
  173. data/lib/seahorse/client/base.rb +18 -21
  174. data/lib/seahorse/client/configuration.rb +0 -4
  175. data/lib/seahorse/client/h2/connection.rb +18 -28
  176. data/lib/seahorse/client/h2/handler.rb +19 -3
  177. data/lib/seahorse/client/handler.rb +1 -1
  178. data/lib/seahorse/client/http/response.rb +1 -1
  179. data/lib/seahorse/client/net_http/connection_pool.rb +15 -12
  180. data/lib/seahorse/client/net_http/handler.rb +21 -9
  181. data/lib/seahorse/client/net_http/patches.rb +44 -14
  182. data/lib/seahorse/client/networking_error.rb +1 -1
  183. data/lib/seahorse/client/plugin.rb +9 -0
  184. data/lib/seahorse/client/plugins/endpoint.rb +0 -1
  185. data/lib/seahorse/client/plugins/h2.rb +4 -4
  186. data/lib/seahorse/client/plugins/net_http.rb +57 -16
  187. data/lib/seahorse/client/plugins/request_callback.rb +31 -0
  188. data/lib/seahorse/client/request_context.rb +9 -2
  189. data/lib/seahorse/client/response.rb +8 -0
  190. data/lib/seahorse/model/operation.rb +3 -0
  191. data/lib/seahorse/model/shapes.rb +2 -2
  192. data/lib/seahorse/util.rb +2 -1
  193. data/sig/aws-sdk-core/async_client_stubs.rbs +21 -0
  194. data/sig/aws-sdk-core/client_stubs.rbs +10 -0
  195. data/sig/aws-sdk-core/errors.rbs +22 -0
  196. data/sig/aws-sdk-core/resources/collection.rbs +21 -0
  197. data/sig/aws-sdk-core/structure.rbs +4 -0
  198. data/sig/aws-sdk-core/telemetry/base.rbs +46 -0
  199. data/sig/aws-sdk-core/telemetry/otel.rbs +22 -0
  200. data/sig/aws-sdk-core/telemetry/span_kind.rbs +15 -0
  201. data/sig/aws-sdk-core/telemetry/span_status.rbs +24 -0
  202. data/sig/aws-sdk-core/waiters/errors.rbs +20 -0
  203. data/sig/aws-sdk-core.rbs +7 -0
  204. data/sig/seahorse/client/async_base.rbs +18 -0
  205. data/sig/seahorse/client/base.rbs +25 -0
  206. data/sig/seahorse/client/handler_builder.rbs +16 -0
  207. data/sig/seahorse/client/response.rbs +61 -0
  208. metadata +118 -23
  209. /data/lib/aws-sdk-core/xml/parser/{engines/libxml.rb → libxml_engine.rb} +0 -0
  210. /data/lib/aws-sdk-core/xml/parser/{engines/nokogiri.rb → nokogiri_engine.rb} +0 -0
  211. /data/lib/aws-sdk-core/xml/parser/{engines/oga.rb → oga_engine.rb} +0 -0
  212. /data/lib/aws-sdk-core/xml/parser/{engines/ox.rb → ox_engine.rb} +0 -0
  213. /data/lib/aws-sdk-core/xml/parser/{engines/rexml.rb → rexml_engine.rb} +0 -0
@@ -0,0 +1,444 @@
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::Signin
12
+ # @api private
13
+ module ClientApi
14
+
15
+ include Seahorse::Model
16
+
17
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
18
+ AccessToken = Shapes::StructureShape.new(name: 'AccessToken')
19
+ AccountId = Shapes::StringShape.new(name: 'AccountId')
20
+ AuthorizationCode = Shapes::StringShape.new(name: 'AuthorizationCode')
21
+ BearerTokenType = Shapes::StringShape.new(name: 'BearerTokenType')
22
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
23
+ ClientCredentialsGrantType = Shapes::StringShape.new(name: 'ClientCredentialsGrantType')
24
+ ClientId = Shapes::StringShape.new(name: 'ClientId')
25
+ ClientToken = Shapes::StringShape.new(name: 'ClientToken')
26
+ CodeVerifier = Shapes::StringShape.new(name: 'CodeVerifier')
27
+ Condition = Shapes::MapShape.new(name: 'Condition')
28
+ ConditionBlock = Shapes::MapShape.new(name: 'ConditionBlock')
29
+ ConditionType = Shapes::StringShape.new(name: 'ConditionType')
30
+ ConditionValues = Shapes::ListShape.new(name: 'ConditionValues')
31
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
32
+ ConsolePermissionMaxResults = Shapes::IntegerShape.new(name: 'ConsolePermissionMaxResults')
33
+ CreateOAuth2TokenRequest = Shapes::StructureShape.new(name: 'CreateOAuth2TokenRequest')
34
+ CreateOAuth2TokenRequestBody = Shapes::StructureShape.new(name: 'CreateOAuth2TokenRequestBody')
35
+ CreateOAuth2TokenResponse = Shapes::StructureShape.new(name: 'CreateOAuth2TokenResponse')
36
+ CreateOAuth2TokenResponseBody = Shapes::StructureShape.new(name: 'CreateOAuth2TokenResponseBody')
37
+ CreateOAuth2TokenWithIAMRequest = Shapes::StructureShape.new(name: 'CreateOAuth2TokenWithIAMRequest')
38
+ CreateOAuth2TokenWithIAMRequestResourceString = Shapes::StringShape.new(name: 'CreateOAuth2TokenWithIAMRequestResourceString')
39
+ CreateOAuth2TokenWithIAMResponse = Shapes::StructureShape.new(name: 'CreateOAuth2TokenWithIAMResponse')
40
+ DeleteConsoleAuthorizationConfigurationInput = Shapes::StructureShape.new(name: 'DeleteConsoleAuthorizationConfigurationInput')
41
+ DeleteConsoleAuthorizationConfigurationOutput = Shapes::StructureShape.new(name: 'DeleteConsoleAuthorizationConfigurationOutput')
42
+ DeleteResourcePermissionStatementInput = Shapes::StructureShape.new(name: 'DeleteResourcePermissionStatementInput')
43
+ DeleteResourcePermissionStatementOutput = Shapes::StructureShape.new(name: 'DeleteResourcePermissionStatementOutput')
44
+ ExcludedPrincipal = Shapes::StringShape.new(name: 'ExcludedPrincipal')
45
+ ExpiresIn = Shapes::IntegerShape.new(name: 'ExpiresIn')
46
+ GetConsoleAuthorizationConfigurationInput = Shapes::StructureShape.new(name: 'GetConsoleAuthorizationConfigurationInput')
47
+ GetConsoleAuthorizationConfigurationOutput = Shapes::StructureShape.new(name: 'GetConsoleAuthorizationConfigurationOutput')
48
+ GetResourcePolicyInput = Shapes::StructureShape.new(name: 'GetResourcePolicyInput')
49
+ GetResourcePolicyOutput = Shapes::StructureShape.new(name: 'GetResourcePolicyOutput')
50
+ GrantType = Shapes::StringShape.new(name: 'GrantType')
51
+ IdToken = Shapes::StringShape.new(name: 'IdToken')
52
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
53
+ IntrospectOAuth2TokenWithIAMRequest = Shapes::StructureShape.new(name: 'IntrospectOAuth2TokenWithIAMRequest')
54
+ IntrospectOAuth2TokenWithIAMResponse = Shapes::StructureShape.new(name: 'IntrospectOAuth2TokenWithIAMResponse')
55
+ IntrospectedTokenType = Shapes::StringShape.new(name: 'IntrospectedTokenType')
56
+ IntrospectionToken = Shapes::StringShape.new(name: 'IntrospectionToken')
57
+ ListResourcePermissionStatementsInput = Shapes::StructureShape.new(name: 'ListResourcePermissionStatementsInput')
58
+ ListResourcePermissionStatementsOutput = Shapes::StructureShape.new(name: 'ListResourcePermissionStatementsOutput')
59
+ Long = Shapes::IntegerShape.new(name: 'Long')
60
+ NextToken = Shapes::StringShape.new(name: 'NextToken')
61
+ OAuth2ErrorCode = Shapes::StringShape.new(name: 'OAuth2ErrorCode')
62
+ OAuthAccessToken = Shapes::StringShape.new(name: 'OAuthAccessToken')
63
+ PermissionStatementSummaries = Shapes::ListShape.new(name: 'PermissionStatementSummaries')
64
+ PermissionStatementSummary = Shapes::StructureShape.new(name: 'PermissionStatementSummary')
65
+ PolicyActions = Shapes::ListShape.new(name: 'PolicyActions')
66
+ PolicyStatement = Shapes::StructureShape.new(name: 'PolicyStatement')
67
+ PolicyStatements = Shapes::ListShape.new(name: 'PolicyStatements')
68
+ Principal = Shapes::MapShape.new(name: 'Principal')
69
+ PutConsoleAuthorizationConfigurationInput = Shapes::StructureShape.new(name: 'PutConsoleAuthorizationConfigurationInput')
70
+ PutConsoleAuthorizationConfigurationOutput = Shapes::StructureShape.new(name: 'PutConsoleAuthorizationConfigurationOutput')
71
+ PutResourcePermissionStatementInput = Shapes::StructureShape.new(name: 'PutResourcePermissionStatementInput')
72
+ PutResourcePermissionStatementOutput = Shapes::StructureShape.new(name: 'PutResourcePermissionStatementOutput')
73
+ RedirectUri = Shapes::StringShape.new(name: 'RedirectUri')
74
+ RefreshToken = Shapes::StringShape.new(name: 'RefreshToken')
75
+ RequestedRegion = Shapes::StringShape.new(name: 'RequestedRegion')
76
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
77
+ RevocationToken = Shapes::StringShape.new(name: 'RevocationToken')
78
+ RevokeOAuth2TokenWithIAMRequest = Shapes::StructureShape.new(name: 'RevokeOAuth2TokenWithIAMRequest')
79
+ RevokeOAuth2TokenWithIAMResponse = Shapes::StructureShape.new(name: 'RevokeOAuth2TokenWithIAMResponse')
80
+ ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
81
+ SigninResourceBasedPolicy = Shapes::StructureShape.new(name: 'SigninResourceBasedPolicy')
82
+ SourceIp = Shapes::StringShape.new(name: 'SourceIp')
83
+ SourceVpc = Shapes::StringShape.new(name: 'SourceVpc')
84
+ SourceVpce = Shapes::StringShape.new(name: 'SourceVpce')
85
+ StatementId = Shapes::StringShape.new(name: 'StatementId')
86
+ String = Shapes::StringShape.new(name: 'String')
87
+ TargetId = Shapes::StringShape.new(name: 'TargetId')
88
+ TokenExpiresIn = Shapes::IntegerShape.new(name: 'TokenExpiresIn')
89
+ TokenType = Shapes::StringShape.new(name: 'TokenType')
90
+ TokenTypeHint = Shapes::StringShape.new(name: 'TokenTypeHint')
91
+ TooManyRequestsError = Shapes::StructureShape.new(name: 'TooManyRequestsError')
92
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
93
+ VpcSourceIp = Shapes::StringShape.new(name: 'VpcSourceIp')
94
+
95
+ AccessDeniedException.add_member(:error, Shapes::ShapeRef.new(shape: OAuth2ErrorCode, required: true, location_name: "error"))
96
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
97
+ AccessDeniedException.struct_class = Types::AccessDeniedException
98
+
99
+ AccessToken.add_member(:access_key_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "accessKeyId"))
100
+ AccessToken.add_member(:secret_access_key, Shapes::ShapeRef.new(shape: String, required: true, location_name: "secretAccessKey"))
101
+ AccessToken.add_member(:session_token, Shapes::ShapeRef.new(shape: String, required: true, location_name: "sessionToken"))
102
+ AccessToken.struct_class = Types::AccessToken
103
+
104
+ Condition.key = Shapes::ShapeRef.new(shape: String)
105
+ Condition.value = Shapes::ShapeRef.new(shape: ConditionValues)
106
+
107
+ ConditionBlock.key = Shapes::ShapeRef.new(shape: ConditionType)
108
+ ConditionBlock.value = Shapes::ShapeRef.new(shape: Condition)
109
+
110
+ ConditionValues.member = Shapes::ShapeRef.new(shape: String)
111
+
112
+ ConflictException.add_member(:error, Shapes::ShapeRef.new(shape: OAuth2ErrorCode, required: true, location_name: "error"))
113
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
114
+ ConflictException.struct_class = Types::ConflictException
115
+
116
+ CreateOAuth2TokenRequest.add_member(:token_input, Shapes::ShapeRef.new(shape: CreateOAuth2TokenRequestBody, required: true, location_name: "tokenInput"))
117
+ CreateOAuth2TokenRequest.struct_class = Types::CreateOAuth2TokenRequest
118
+ CreateOAuth2TokenRequest[:payload] = :token_input
119
+ CreateOAuth2TokenRequest[:payload_member] = CreateOAuth2TokenRequest.member(:token_input)
120
+
121
+ CreateOAuth2TokenRequestBody.add_member(:client_id, Shapes::ShapeRef.new(shape: ClientId, required: true, location_name: "clientId"))
122
+ CreateOAuth2TokenRequestBody.add_member(:grant_type, Shapes::ShapeRef.new(shape: GrantType, required: true, location_name: "grantType"))
123
+ CreateOAuth2TokenRequestBody.add_member(:code, Shapes::ShapeRef.new(shape: AuthorizationCode, location_name: "code"))
124
+ CreateOAuth2TokenRequestBody.add_member(:redirect_uri, Shapes::ShapeRef.new(shape: RedirectUri, location_name: "redirectUri"))
125
+ CreateOAuth2TokenRequestBody.add_member(:code_verifier, Shapes::ShapeRef.new(shape: CodeVerifier, location_name: "codeVerifier"))
126
+ CreateOAuth2TokenRequestBody.add_member(:refresh_token, Shapes::ShapeRef.new(shape: RefreshToken, location_name: "refreshToken"))
127
+ CreateOAuth2TokenRequestBody.struct_class = Types::CreateOAuth2TokenRequestBody
128
+
129
+ CreateOAuth2TokenResponse.add_member(:token_output, Shapes::ShapeRef.new(shape: CreateOAuth2TokenResponseBody, required: true, location_name: "tokenOutput"))
130
+ CreateOAuth2TokenResponse.struct_class = Types::CreateOAuth2TokenResponse
131
+ CreateOAuth2TokenResponse[:payload] = :token_output
132
+ CreateOAuth2TokenResponse[:payload_member] = CreateOAuth2TokenResponse.member(:token_output)
133
+
134
+ CreateOAuth2TokenResponseBody.add_member(:access_token, Shapes::ShapeRef.new(shape: AccessToken, required: true, location_name: "accessToken"))
135
+ CreateOAuth2TokenResponseBody.add_member(:token_type, Shapes::ShapeRef.new(shape: TokenType, required: true, location_name: "tokenType"))
136
+ CreateOAuth2TokenResponseBody.add_member(:expires_in, Shapes::ShapeRef.new(shape: ExpiresIn, required: true, location_name: "expiresIn"))
137
+ CreateOAuth2TokenResponseBody.add_member(:refresh_token, Shapes::ShapeRef.new(shape: RefreshToken, required: true, location_name: "refreshToken"))
138
+ CreateOAuth2TokenResponseBody.add_member(:id_token, Shapes::ShapeRef.new(shape: IdToken, location_name: "idToken"))
139
+ CreateOAuth2TokenResponseBody.struct_class = Types::CreateOAuth2TokenResponseBody
140
+
141
+ CreateOAuth2TokenWithIAMRequest.add_member(:grant_type, Shapes::ShapeRef.new(shape: ClientCredentialsGrantType, required: true, location_name: "grant_type"))
142
+ CreateOAuth2TokenWithIAMRequest.add_member(:resource, Shapes::ShapeRef.new(shape: CreateOAuth2TokenWithIAMRequestResourceString, required: true, location_name: "resource"))
143
+ CreateOAuth2TokenWithIAMRequest.struct_class = Types::CreateOAuth2TokenWithIAMRequest
144
+
145
+ CreateOAuth2TokenWithIAMResponse.add_member(:access_token, Shapes::ShapeRef.new(shape: OAuthAccessToken, required: true, location_name: "access_token"))
146
+ CreateOAuth2TokenWithIAMResponse.add_member(:token_type, Shapes::ShapeRef.new(shape: BearerTokenType, required: true, location_name: "token_type"))
147
+ CreateOAuth2TokenWithIAMResponse.add_member(:expires_in, Shapes::ShapeRef.new(shape: TokenExpiresIn, required: true, location_name: "expires_in"))
148
+ CreateOAuth2TokenWithIAMResponse.struct_class = Types::CreateOAuth2TokenWithIAMResponse
149
+
150
+ DeleteConsoleAuthorizationConfigurationInput.add_member(:target_id, Shapes::ShapeRef.new(shape: TargetId, location_name: "targetId"))
151
+ DeleteConsoleAuthorizationConfigurationInput.struct_class = Types::DeleteConsoleAuthorizationConfigurationInput
152
+
153
+ DeleteConsoleAuthorizationConfigurationOutput.add_member(:target_id, Shapes::ShapeRef.new(shape: TargetId, required: true, location_name: "targetId"))
154
+ DeleteConsoleAuthorizationConfigurationOutput.add_member(:scope, Shapes::ShapeRef.new(shape: String, required: true, location_name: "scope"))
155
+ DeleteConsoleAuthorizationConfigurationOutput.add_member(:console_authorization_enabled, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "consoleAuthorizationEnabled"))
156
+ DeleteConsoleAuthorizationConfigurationOutput.struct_class = Types::DeleteConsoleAuthorizationConfigurationOutput
157
+
158
+ DeleteResourcePermissionStatementInput.add_member(:statement_id, Shapes::ShapeRef.new(shape: StatementId, required: true, location_name: "statementId"))
159
+ DeleteResourcePermissionStatementInput.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
160
+ DeleteResourcePermissionStatementInput.struct_class = Types::DeleteResourcePermissionStatementInput
161
+
162
+ DeleteResourcePermissionStatementOutput.struct_class = Types::DeleteResourcePermissionStatementOutput
163
+
164
+ GetConsoleAuthorizationConfigurationInput.add_member(:target_id, Shapes::ShapeRef.new(shape: TargetId, location_name: "targetId"))
165
+ GetConsoleAuthorizationConfigurationInput.struct_class = Types::GetConsoleAuthorizationConfigurationInput
166
+
167
+ GetConsoleAuthorizationConfigurationOutput.add_member(:target_id, Shapes::ShapeRef.new(shape: TargetId, required: true, location_name: "targetId"))
168
+ GetConsoleAuthorizationConfigurationOutput.add_member(:scope, Shapes::ShapeRef.new(shape: String, required: true, location_name: "scope"))
169
+ GetConsoleAuthorizationConfigurationOutput.add_member(:console_authorization_enabled, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "consoleAuthorizationEnabled"))
170
+ GetConsoleAuthorizationConfigurationOutput.struct_class = Types::GetConsoleAuthorizationConfigurationOutput
171
+
172
+ GetResourcePolicyInput.struct_class = Types::GetResourcePolicyInput
173
+
174
+ GetResourcePolicyOutput.add_member(:signin_resource_based_policy, Shapes::ShapeRef.new(shape: SigninResourceBasedPolicy, required: true, location_name: "signinResourceBasedPolicy"))
175
+ GetResourcePolicyOutput.struct_class = Types::GetResourcePolicyOutput
176
+
177
+ InternalServerException.add_member(:error, Shapes::ShapeRef.new(shape: OAuth2ErrorCode, required: true, location_name: "error"))
178
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
179
+ InternalServerException.struct_class = Types::InternalServerException
180
+
181
+ IntrospectOAuth2TokenWithIAMRequest.add_member(:token, Shapes::ShapeRef.new(shape: IntrospectionToken, required: true, location_name: "token"))
182
+ IntrospectOAuth2TokenWithIAMRequest.add_member(:token_type_hint, Shapes::ShapeRef.new(shape: TokenTypeHint, location_name: "token_type_hint"))
183
+ IntrospectOAuth2TokenWithIAMRequest.struct_class = Types::IntrospectOAuth2TokenWithIAMRequest
184
+
185
+ IntrospectOAuth2TokenWithIAMResponse.add_member(:active, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "active"))
186
+ IntrospectOAuth2TokenWithIAMResponse.add_member(:client_id, Shapes::ShapeRef.new(shape: String, location_name: "client_id"))
187
+ IntrospectOAuth2TokenWithIAMResponse.add_member(:user_id, Shapes::ShapeRef.new(shape: String, location_name: "user_id"))
188
+ IntrospectOAuth2TokenWithIAMResponse.add_member(:token_type, Shapes::ShapeRef.new(shape: IntrospectedTokenType, location_name: "token_type"))
189
+ IntrospectOAuth2TokenWithIAMResponse.add_member(:exp, Shapes::ShapeRef.new(shape: Long, location_name: "exp"))
190
+ IntrospectOAuth2TokenWithIAMResponse.add_member(:iat, Shapes::ShapeRef.new(shape: Long, location_name: "iat"))
191
+ IntrospectOAuth2TokenWithIAMResponse.add_member(:nbf, Shapes::ShapeRef.new(shape: Long, location_name: "nbf"))
192
+ IntrospectOAuth2TokenWithIAMResponse.add_member(:sub, Shapes::ShapeRef.new(shape: String, location_name: "sub"))
193
+ IntrospectOAuth2TokenWithIAMResponse.add_member(:aud, Shapes::ShapeRef.new(shape: String, location_name: "aud"))
194
+ IntrospectOAuth2TokenWithIAMResponse.add_member(:iss, Shapes::ShapeRef.new(shape: String, location_name: "iss"))
195
+ IntrospectOAuth2TokenWithIAMResponse.add_member(:jti, Shapes::ShapeRef.new(shape: String, location_name: "jti"))
196
+ IntrospectOAuth2TokenWithIAMResponse.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "account_id"))
197
+ IntrospectOAuth2TokenWithIAMResponse.add_member(:signin_session, Shapes::ShapeRef.new(shape: String, location_name: "signin_session"))
198
+ IntrospectOAuth2TokenWithIAMResponse.add_member(:resource, Shapes::ShapeRef.new(shape: String, location_name: "resource"))
199
+ IntrospectOAuth2TokenWithIAMResponse.struct_class = Types::IntrospectOAuth2TokenWithIAMResponse
200
+
201
+ ListResourcePermissionStatementsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ConsolePermissionMaxResults, location_name: "maxResults"))
202
+ ListResourcePermissionStatementsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
203
+ ListResourcePermissionStatementsInput.struct_class = Types::ListResourcePermissionStatementsInput
204
+
205
+ ListResourcePermissionStatementsOutput.add_member(:permission_statements, Shapes::ShapeRef.new(shape: PermissionStatementSummaries, required: true, location_name: "permissionStatements"))
206
+ ListResourcePermissionStatementsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
207
+ ListResourcePermissionStatementsOutput.struct_class = Types::ListResourcePermissionStatementsOutput
208
+
209
+ PermissionStatementSummaries.member = Shapes::ShapeRef.new(shape: PermissionStatementSummary)
210
+
211
+ PermissionStatementSummary.add_member(:sid, Shapes::ShapeRef.new(shape: StatementId, required: true, location_name: "sid"))
212
+ PermissionStatementSummary.add_member(:condition, Shapes::ShapeRef.new(shape: ConditionBlock, location_name: "condition"))
213
+ PermissionStatementSummary.struct_class = Types::PermissionStatementSummary
214
+
215
+ PolicyActions.member = Shapes::ShapeRef.new(shape: String)
216
+
217
+ PolicyStatement.add_member(:effect, Shapes::ShapeRef.new(shape: String, location_name: "Effect"))
218
+ PolicyStatement.add_member(:principal, Shapes::ShapeRef.new(shape: Principal, location_name: "Principal"))
219
+ PolicyStatement.add_member(:action, Shapes::ShapeRef.new(shape: PolicyActions, location_name: "Action"))
220
+ PolicyStatement.add_member(:resource, Shapes::ShapeRef.new(shape: String, location_name: "Resource"))
221
+ PolicyStatement.add_member(:condition, Shapes::ShapeRef.new(shape: ConditionBlock, location_name: "Condition"))
222
+ PolicyStatement.struct_class = Types::PolicyStatement
223
+
224
+ PolicyStatements.member = Shapes::ShapeRef.new(shape: PolicyStatement)
225
+
226
+ Principal.key = Shapes::ShapeRef.new(shape: String)
227
+ Principal.value = Shapes::ShapeRef.new(shape: String)
228
+
229
+ PutConsoleAuthorizationConfigurationInput.add_member(:target_id, Shapes::ShapeRef.new(shape: TargetId, location_name: "targetId"))
230
+ PutConsoleAuthorizationConfigurationInput.struct_class = Types::PutConsoleAuthorizationConfigurationInput
231
+
232
+ PutConsoleAuthorizationConfigurationOutput.add_member(:target_id, Shapes::ShapeRef.new(shape: TargetId, required: true, location_name: "targetId"))
233
+ PutConsoleAuthorizationConfigurationOutput.add_member(:scope, Shapes::ShapeRef.new(shape: String, required: true, location_name: "scope"))
234
+ PutConsoleAuthorizationConfigurationOutput.add_member(:console_authorization_enabled, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "consoleAuthorizationEnabled"))
235
+ PutConsoleAuthorizationConfigurationOutput.struct_class = Types::PutConsoleAuthorizationConfigurationOutput
236
+
237
+ PutResourcePermissionStatementInput.add_member(:source_vpc, Shapes::ShapeRef.new(shape: SourceVpc, location_name: "sourceVpc"))
238
+ PutResourcePermissionStatementInput.add_member(:signin_source_vpce, Shapes::ShapeRef.new(shape: SourceVpce, location_name: "signinSourceVpce"))
239
+ PutResourcePermissionStatementInput.add_member(:console_source_vpce, Shapes::ShapeRef.new(shape: SourceVpce, location_name: "consoleSourceVpce"))
240
+ PutResourcePermissionStatementInput.add_member(:vpc_source_ip, Shapes::ShapeRef.new(shape: VpcSourceIp, location_name: "vpcSourceIp"))
241
+ PutResourcePermissionStatementInput.add_member(:source_ip, Shapes::ShapeRef.new(shape: SourceIp, location_name: "sourceIp"))
242
+ PutResourcePermissionStatementInput.add_member(:requested_region, Shapes::ShapeRef.new(shape: RequestedRegion, location_name: "requestedRegion"))
243
+ PutResourcePermissionStatementInput.add_member(:excluded_principal, Shapes::ShapeRef.new(shape: ExcludedPrincipal, location_name: "excludedPrincipal"))
244
+ PutResourcePermissionStatementInput.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
245
+ PutResourcePermissionStatementInput.struct_class = Types::PutResourcePermissionStatementInput
246
+
247
+ PutResourcePermissionStatementOutput.add_member(:statement_id, Shapes::ShapeRef.new(shape: StatementId, required: true, location_name: "statementId"))
248
+ PutResourcePermissionStatementOutput.struct_class = Types::PutResourcePermissionStatementOutput
249
+
250
+ ResourceNotFoundException.add_member(:error, Shapes::ShapeRef.new(shape: OAuth2ErrorCode, required: true, location_name: "error"))
251
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
252
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
253
+
254
+ RevokeOAuth2TokenWithIAMRequest.add_member(:token, Shapes::ShapeRef.new(shape: RevocationToken, required: true, location_name: "token"))
255
+ RevokeOAuth2TokenWithIAMRequest.struct_class = Types::RevokeOAuth2TokenWithIAMRequest
256
+
257
+ RevokeOAuth2TokenWithIAMResponse.struct_class = Types::RevokeOAuth2TokenWithIAMResponse
258
+
259
+ ServiceQuotaExceededException.add_member(:error, Shapes::ShapeRef.new(shape: OAuth2ErrorCode, required: true, location_name: "error"))
260
+ ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
261
+ ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
262
+
263
+ SigninResourceBasedPolicy.add_member(:version, Shapes::ShapeRef.new(shape: String, location_name: "Version"))
264
+ SigninResourceBasedPolicy.add_member(:statement, Shapes::ShapeRef.new(shape: PolicyStatements, location_name: "Statement"))
265
+ SigninResourceBasedPolicy.struct_class = Types::SigninResourceBasedPolicy
266
+
267
+ TooManyRequestsError.add_member(:error, Shapes::ShapeRef.new(shape: OAuth2ErrorCode, required: true, location_name: "error"))
268
+ TooManyRequestsError.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
269
+ TooManyRequestsError.struct_class = Types::TooManyRequestsError
270
+
271
+ ValidationException.add_member(:error, Shapes::ShapeRef.new(shape: OAuth2ErrorCode, required: true, location_name: "error"))
272
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
273
+ ValidationException.struct_class = Types::ValidationException
274
+
275
+
276
+ # @api private
277
+ API = Seahorse::Model::Api.new.tap do |api|
278
+
279
+ api.version = "2023-01-01"
280
+
281
+ api.metadata = {
282
+ "apiVersion" => "2023-01-01",
283
+ "auth" => ["aws.auth#sigv4"],
284
+ "endpointPrefix" => "signin",
285
+ "protocol" => "rest-json",
286
+ "protocols" => ["rest-json"],
287
+ "serviceFullName" => "AWS Sign-In Service",
288
+ "serviceId" => "Signin",
289
+ "signatureVersion" => "v4",
290
+ "signingName" => "signin",
291
+ "uid" => "signin-2023-01-01",
292
+ }
293
+
294
+ api.add_operation(:create_o_auth_2_token, Seahorse::Model::Operation.new.tap do |o|
295
+ o.name = "CreateOAuth2Token"
296
+ o.http_method = "POST"
297
+ o.http_request_uri = "/v1/token"
298
+ o['authtype'] = "none"
299
+ o['auth'] = ["smithy.api#noAuth"]
300
+ o.input = Shapes::ShapeRef.new(shape: CreateOAuth2TokenRequest)
301
+ o.output = Shapes::ShapeRef.new(shape: CreateOAuth2TokenResponse)
302
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
303
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
304
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
305
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
306
+ end)
307
+
308
+ api.add_operation(:create_o_auth_2_token_with_iam, Seahorse::Model::Operation.new.tap do |o|
309
+ o.name = "CreateOAuth2TokenWithIAM"
310
+ o.http_method = "POST"
311
+ o.http_request_uri = "/v1/token?x-amz-client-auth-method=iam"
312
+ o.input = Shapes::ShapeRef.new(shape: CreateOAuth2TokenWithIAMRequest)
313
+ o.output = Shapes::ShapeRef.new(shape: CreateOAuth2TokenWithIAMResponse)
314
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
315
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
316
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
317
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
318
+ end)
319
+
320
+ api.add_operation(:delete_console_authorization_configuration, Seahorse::Model::Operation.new.tap do |o|
321
+ o.name = "DeleteConsoleAuthorizationConfiguration"
322
+ o.http_method = "POST"
323
+ o.http_request_uri = "/delete-console-authorization-configuration"
324
+ o.input = Shapes::ShapeRef.new(shape: DeleteConsoleAuthorizationConfigurationInput)
325
+ o.output = Shapes::ShapeRef.new(shape: DeleteConsoleAuthorizationConfigurationOutput)
326
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
327
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
328
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
329
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
330
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
331
+ end)
332
+
333
+ api.add_operation(:delete_resource_permission_statement, Seahorse::Model::Operation.new.tap do |o|
334
+ o.name = "DeleteResourcePermissionStatement"
335
+ o.http_method = "POST"
336
+ o.http_request_uri = "/delete-resource-permission-statement"
337
+ o.input = Shapes::ShapeRef.new(shape: DeleteResourcePermissionStatementInput)
338
+ o.output = Shapes::ShapeRef.new(shape: DeleteResourcePermissionStatementOutput)
339
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
340
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
341
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
342
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
343
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
344
+ end)
345
+
346
+ api.add_operation(:get_console_authorization_configuration, Seahorse::Model::Operation.new.tap do |o|
347
+ o.name = "GetConsoleAuthorizationConfiguration"
348
+ o.http_method = "POST"
349
+ o.http_request_uri = "/get-console-authorization-configuration"
350
+ o.input = Shapes::ShapeRef.new(shape: GetConsoleAuthorizationConfigurationInput)
351
+ o.output = Shapes::ShapeRef.new(shape: GetConsoleAuthorizationConfigurationOutput)
352
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
353
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
354
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
355
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
356
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
357
+ end)
358
+
359
+ api.add_operation(:get_resource_policy, Seahorse::Model::Operation.new.tap do |o|
360
+ o.name = "GetResourcePolicy"
361
+ o.http_method = "POST"
362
+ o.http_request_uri = "/get-resource-policy"
363
+ o.input = Shapes::ShapeRef.new(shape: GetResourcePolicyInput)
364
+ o.output = Shapes::ShapeRef.new(shape: GetResourcePolicyOutput)
365
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
366
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
367
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
368
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
369
+ end)
370
+
371
+ api.add_operation(:introspect_o_auth_2_token_with_iam, Seahorse::Model::Operation.new.tap do |o|
372
+ o.name = "IntrospectOAuth2TokenWithIAM"
373
+ o.http_method = "POST"
374
+ o.http_request_uri = "/v1/introspect?x-amz-client-auth-method=iam"
375
+ o.input = Shapes::ShapeRef.new(shape: IntrospectOAuth2TokenWithIAMRequest)
376
+ o.output = Shapes::ShapeRef.new(shape: IntrospectOAuth2TokenWithIAMResponse)
377
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
378
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
379
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
380
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
381
+ end)
382
+
383
+ api.add_operation(:list_resource_permission_statements, Seahorse::Model::Operation.new.tap do |o|
384
+ o.name = "ListResourcePermissionStatements"
385
+ o.http_method = "POST"
386
+ o.http_request_uri = "/list-resource-permission-statements"
387
+ o.input = Shapes::ShapeRef.new(shape: ListResourcePermissionStatementsInput)
388
+ o.output = Shapes::ShapeRef.new(shape: ListResourcePermissionStatementsOutput)
389
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
390
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
391
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
392
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
393
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
394
+ o[:pager] = Aws::Pager.new(
395
+ limit_key: "max_results",
396
+ tokens: {
397
+ "next_token" => "next_token"
398
+ }
399
+ )
400
+ end)
401
+
402
+ api.add_operation(:put_console_authorization_configuration, Seahorse::Model::Operation.new.tap do |o|
403
+ o.name = "PutConsoleAuthorizationConfiguration"
404
+ o.http_method = "POST"
405
+ o.http_request_uri = "/put-console-authorization-configuration"
406
+ o.input = Shapes::ShapeRef.new(shape: PutConsoleAuthorizationConfigurationInput)
407
+ o.output = Shapes::ShapeRef.new(shape: PutConsoleAuthorizationConfigurationOutput)
408
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
409
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
410
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
411
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
412
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
413
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
414
+ end)
415
+
416
+ api.add_operation(:put_resource_permission_statement, Seahorse::Model::Operation.new.tap do |o|
417
+ o.name = "PutResourcePermissionStatement"
418
+ o.http_method = "POST"
419
+ o.http_request_uri = "/put-resource-permission-statement"
420
+ o.input = Shapes::ShapeRef.new(shape: PutResourcePermissionStatementInput)
421
+ o.output = Shapes::ShapeRef.new(shape: PutResourcePermissionStatementOutput)
422
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
423
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
424
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
425
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
426
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
427
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
428
+ end)
429
+
430
+ api.add_operation(:revoke_o_auth_2_token_with_iam, Seahorse::Model::Operation.new.tap do |o|
431
+ o.name = "RevokeOAuth2TokenWithIAM"
432
+ o.http_method = "POST"
433
+ o.http_request_uri = "/v1/revoke?x-amz-client-auth-method=iam"
434
+ o.input = Shapes::ShapeRef.new(shape: RevokeOAuth2TokenWithIAMRequest)
435
+ o.output = Shapes::ShapeRef.new(shape: RevokeOAuth2TokenWithIAMResponse)
436
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
437
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
438
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
439
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
440
+ end)
441
+ end
442
+
443
+ end
444
+ end
@@ -0,0 +1 @@
1
+ # frozen_string_literal: true
@@ -0,0 +1,85 @@
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
+ module Aws::Signin
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute use_dual_stack
14
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
15
+ #
16
+ # @return [boolean]
17
+ #
18
+ # @!attribute use_fips
19
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
20
+ #
21
+ # @return [boolean]
22
+ #
23
+ # @!attribute endpoint
24
+ # Override the endpoint used to send this request
25
+ #
26
+ # @return [string]
27
+ #
28
+ # @!attribute region
29
+ # The AWS region used to dispatch the request.
30
+ #
31
+ # @return [string]
32
+ #
33
+ # @!attribute is_control_plane
34
+ # Indicates if the operation targets the control plane endpoint
35
+ #
36
+ # @return [boolean]
37
+ #
38
+ # @!attribute is_o_auth_endpoint
39
+ # Indicates if the operation targets the OAuth token endpoint
40
+ #
41
+ # @return [boolean]
42
+ #
43
+ EndpointParameters = Struct.new(
44
+ :use_dual_stack,
45
+ :use_fips,
46
+ :endpoint,
47
+ :region,
48
+ :is_control_plane,
49
+ :is_o_auth_endpoint,
50
+ ) do
51
+ include Aws::Structure
52
+
53
+ # @api private
54
+ class << self
55
+ PARAM_MAP = {
56
+ 'UseDualStack' => :use_dual_stack,
57
+ 'UseFIPS' => :use_fips,
58
+ 'Endpoint' => :endpoint,
59
+ 'Region' => :region,
60
+ 'IsControlPlane' => :is_control_plane,
61
+ 'IsOAuthEndpoint' => :is_o_auth_endpoint,
62
+ }.freeze
63
+ end
64
+
65
+ def initialize(options = {})
66
+ self[:use_dual_stack] = options[:use_dual_stack]
67
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
68
+ self[:use_fips] = options[:use_fips]
69
+ self[:use_fips] = false if self[:use_fips].nil?
70
+ self[:endpoint] = options[:endpoint]
71
+ self[:region] = options[:region]
72
+ self[:is_control_plane] = options[:is_control_plane]
73
+ self[:is_o_auth_endpoint] = options[:is_o_auth_endpoint]
74
+ end
75
+
76
+ def self.create(config, options={})
77
+ new({
78
+ use_dual_stack: config.use_dualstack_endpoint,
79
+ use_fips: config.use_fips_endpoint,
80
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
81
+ region: config.region,
82
+ }.merge(options))
83
+ end
84
+ end
85
+ end