aws-sdk-schemas 1.1.0 → 1.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b1e1c1aa6e09e7248174c87385e711491f0b2570cf3b7f883cf0d79616a9829
4
- data.tar.gz: ccca5efa5849a07cb13395b022455cbe4aa9bae53f3eff5d8e90ef0107ba7582
3
+ metadata.gz: c0b39fe3e0aeb40c9be48a8e6f527226bcbaf652db1eeda9bdb360ad8564aaf3
4
+ data.tar.gz: 61d511801bca17e9eeffd40b9f36f0bc630a58b9cc5e0c6f54a26bf6b33435e8
5
5
  SHA512:
6
- metadata.gz: 33d1a8ec8b46e84685e29fa3b5fd7e272042de9ef92255627ad24a25e0f9a11167922f4bc0d22341eb312b45df20379da8406e89e39caba0a7d326e5ad5216a3
7
- data.tar.gz: 9cd678b06ec354775ccb47ba4c67de6671899a7ac46f278cc6429533654642873c3248f6e5f5c7b591cbd98f30a372dd26463dea5ffd0bb8368ca910aa4a393a
6
+ metadata.gz: b2c0cb1153efa7fc7654553a88d2768344adcd214540fa1139a3c3c571cb4677e6397f9135854f7baf2379e0013586ee97272dce3aed7a238485026fa205b87a
7
+ data.tar.gz: f2d748472d3dc55d67334de268279a578438585cf6c09e46d8381ff9f213396690b6ec80da3a84c5687c11060392610a62266d2071adb6dd574b431c7579078c
@@ -46,6 +46,6 @@ require_relative 'aws-sdk-schemas/customizations'
46
46
  # @service
47
47
  module Aws::Schemas
48
48
 
49
- GEM_VERSION = '1.1.0'
49
+ GEM_VERSION = '1.2.0'
50
50
 
51
51
  end
@@ -269,8 +269,7 @@ module Aws::Schemas
269
269
  #
270
270
  # @option options [Integer] :http_read_timeout (60) The default
271
271
  # number of seconds to wait for response data. This value can
272
- # safely be set
273
- # per-request on the session yielded by {#session_for}.
272
+ # safely be set per-request on the session.
274
273
  #
275
274
  # @option options [Float] :http_idle_timeout (5) The number of
276
275
  # seconds a connection is allowed to sit idle before it is
@@ -282,7 +281,7 @@ module Aws::Schemas
282
281
  # request body. This option has no effect unless the request has
283
282
  # "Expect" header set to "100-continue". Defaults to `nil` which
284
283
  # disables this behaviour. This value can safely be set per
285
- # request on the session yielded by {#session_for}.
284
+ # request on the session.
286
285
  #
287
286
  # @option options [Boolean] :http_wire_trace (false) When `true`,
288
287
  # HTTP debug output will be sent to the `:logger`.
@@ -401,6 +400,10 @@ module Aws::Schemas
401
400
 
402
401
  # Creates a schema definition.
403
402
  #
403
+ # <note markdown="1">Inactive schemas will be deleted after two years.
404
+ #
405
+ # </note>
406
+ #
404
407
  # @option params [required, String] :content
405
408
  #
406
409
  # @option params [String] :description
@@ -501,6 +504,27 @@ module Aws::Schemas
501
504
  req.send_request(options)
502
505
  end
503
506
 
507
+ # Delete the resource-based policy attached to the specified registry.
508
+ #
509
+ # @option params [String] :registry_name
510
+ #
511
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
512
+ #
513
+ # @example Request syntax with placeholder values
514
+ #
515
+ # resp = client.delete_resource_policy({
516
+ # registry_name: "__string",
517
+ # })
518
+ #
519
+ # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/DeleteResourcePolicy AWS API Documentation
520
+ #
521
+ # @overload delete_resource_policy(params = {})
522
+ # @param [Hash] params ({})
523
+ def delete_resource_policy(params = {}, options = {})
524
+ req = build_request(:delete_resource_policy, params)
525
+ req.send_request(options)
526
+ end
527
+
504
528
  # Delete a schema definition.
505
529
  #
506
530
  # @option params [required, String] :registry_name
@@ -585,6 +609,11 @@ module Aws::Schemas
585
609
  # resp.schema_version #=> String
586
610
  # resp.status #=> String, one of "CREATE_IN_PROGRESS", "CREATE_COMPLETE", "CREATE_FAILED"
587
611
  #
612
+ #
613
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
614
+ #
615
+ # * code_binding_exists
616
+ #
588
617
  # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/DescribeCodeBinding AWS API Documentation
589
618
  #
590
619
  # @overload describe_code_binding(params = {})
@@ -782,6 +811,35 @@ module Aws::Schemas
782
811
  req.send_request(options)
783
812
  end
784
813
 
814
+ # Retrieves the resource-based policy attached to a given registry.
815
+ #
816
+ # @option params [String] :registry_name
817
+ #
818
+ # @return [Types::GetResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
819
+ #
820
+ # * {Types::GetResourcePolicyResponse#policy #policy} => String
821
+ # * {Types::GetResourcePolicyResponse#revision_id #revision_id} => String
822
+ #
823
+ # @example Request syntax with placeholder values
824
+ #
825
+ # resp = client.get_resource_policy({
826
+ # registry_name: "__string",
827
+ # })
828
+ #
829
+ # @example Response structure
830
+ #
831
+ # resp.policy #=> String
832
+ # resp.revision_id #=> String
833
+ #
834
+ # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/GetResourcePolicy AWS API Documentation
835
+ #
836
+ # @overload get_resource_policy(params = {})
837
+ # @param [Hash] params ({})
838
+ def get_resource_policy(params = {}, options = {})
839
+ req = build_request(:get_resource_policy, params)
840
+ req.send_request(options)
841
+ end
842
+
785
843
  # List the discoverers.
786
844
  #
787
845
  # @option params [String] :discoverer_id_prefix
@@ -797,6 +855,8 @@ module Aws::Schemas
797
855
  # * {Types::ListDiscoverersResponse#discoverers #discoverers} => Array&lt;Types::DiscovererSummary&gt;
798
856
  # * {Types::ListDiscoverersResponse#next_token #next_token} => String
799
857
  #
858
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
859
+ #
800
860
  # @example Request syntax with placeholder values
801
861
  #
802
862
  # resp = client.list_discoverers({
@@ -841,6 +901,8 @@ module Aws::Schemas
841
901
  # * {Types::ListRegistriesResponse#next_token #next_token} => String
842
902
  # * {Types::ListRegistriesResponse#registries #registries} => Array&lt;Types::RegistrySummary&gt;
843
903
  #
904
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
905
+ #
844
906
  # @example Request syntax with placeholder values
845
907
  #
846
908
  # resp = client.list_registries({
@@ -883,6 +945,8 @@ module Aws::Schemas
883
945
  # * {Types::ListSchemaVersionsResponse#next_token #next_token} => String
884
946
  # * {Types::ListSchemaVersionsResponse#schema_versions #schema_versions} => Array&lt;Types::SchemaVersionSummary&gt;
885
947
  #
948
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
949
+ #
886
950
  # @example Request syntax with placeholder values
887
951
  #
888
952
  # resp = client.list_schema_versions({
@@ -924,6 +988,8 @@ module Aws::Schemas
924
988
  # * {Types::ListSchemasResponse#next_token #next_token} => String
925
989
  # * {Types::ListSchemasResponse#schemas #schemas} => Array&lt;Types::SchemaSummary&gt;
926
990
  #
991
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
992
+ #
927
993
  # @example Request syntax with placeholder values
928
994
  #
929
995
  # resp = client.list_schemas({
@@ -981,44 +1047,6 @@ module Aws::Schemas
981
1047
  req.send_request(options)
982
1048
  end
983
1049
 
984
- # @option params [required, String] :role_arn
985
- #
986
- # @option params [required, Integer] :timeout
987
- #
988
- # @return [Types::LockServiceLinkedRoleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
989
- #
990
- # * {Types::LockServiceLinkedRoleResponse#can_be_deleted #can_be_deleted} => Boolean
991
- # * {Types::LockServiceLinkedRoleResponse#reason_of_failure #reason_of_failure} => String
992
- # * {Types::LockServiceLinkedRoleResponse#related_resources #related_resources} => Array&lt;Types::DiscovererSummary&gt;
993
- #
994
- # @example Request syntax with placeholder values
995
- #
996
- # resp = client.lock_service_linked_role({
997
- # role_arn: "__stringMin1Max1600", # required
998
- # timeout: 1, # required
999
- # })
1000
- #
1001
- # @example Response structure
1002
- #
1003
- # resp.can_be_deleted #=> Boolean
1004
- # resp.reason_of_failure #=> String
1005
- # resp.related_resources #=> Array
1006
- # resp.related_resources[0].discoverer_arn #=> String
1007
- # resp.related_resources[0].discoverer_id #=> String
1008
- # resp.related_resources[0].source_arn #=> String
1009
- # resp.related_resources[0].state #=> String, one of "STARTED", "STOPPED"
1010
- # resp.related_resources[0].tags #=> Hash
1011
- # resp.related_resources[0].tags["__string"] #=> String
1012
- #
1013
- # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/LockServiceLinkedRole AWS API Documentation
1014
- #
1015
- # @overload lock_service_linked_role(params = {})
1016
- # @param [Hash] params ({})
1017
- def lock_service_linked_role(params = {}, options = {})
1018
- req = build_request(:lock_service_linked_role, params)
1019
- req.send_request(options)
1020
- end
1021
-
1022
1050
  # Put code binding URI
1023
1051
  #
1024
1052
  # @option params [required, String] :language
@@ -1061,6 +1089,44 @@ module Aws::Schemas
1061
1089
  req.send_request(options)
1062
1090
  end
1063
1091
 
1092
+ # The name of the policy.
1093
+ #
1094
+ # @option params [required, String] :policy
1095
+ # **SDK automatically handles json encoding and base64 encoding for you
1096
+ # when the required value (Hash, Array, etc.) is provided according to
1097
+ # the description.**
1098
+ #
1099
+ # @option params [String] :registry_name
1100
+ #
1101
+ # @option params [String] :revision_id
1102
+ #
1103
+ # @return [Types::PutResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1104
+ #
1105
+ # * {Types::PutResourcePolicyResponse#policy #policy} => String
1106
+ # * {Types::PutResourcePolicyResponse#revision_id #revision_id} => String
1107
+ #
1108
+ # @example Request syntax with placeholder values
1109
+ #
1110
+ # resp = client.put_resource_policy({
1111
+ # policy: "__string", # required
1112
+ # registry_name: "__string",
1113
+ # revision_id: "__string",
1114
+ # })
1115
+ #
1116
+ # @example Response structure
1117
+ #
1118
+ # resp.policy #=> String
1119
+ # resp.revision_id #=> String
1120
+ #
1121
+ # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/PutResourcePolicy AWS API Documentation
1122
+ #
1123
+ # @overload put_resource_policy(params = {})
1124
+ # @param [Hash] params ({})
1125
+ def put_resource_policy(params = {}, options = {})
1126
+ req = build_request(:put_resource_policy, params)
1127
+ req.send_request(options)
1128
+ end
1129
+
1064
1130
  # Search the schemas
1065
1131
  #
1066
1132
  # @option params [required, String] :keywords
@@ -1076,6 +1142,8 @@ module Aws::Schemas
1076
1142
  # * {Types::SearchSchemasResponse#next_token #next_token} => String
1077
1143
  # * {Types::SearchSchemasResponse#schemas #schemas} => Array&lt;Types::SearchSchemaSummary&gt;
1078
1144
  #
1145
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1146
+ #
1079
1147
  # @example Request syntax with placeholder values
1080
1148
  #
1081
1149
  # resp = client.search_schemas({
@@ -1190,25 +1258,6 @@ module Aws::Schemas
1190
1258
  req.send_request(options)
1191
1259
  end
1192
1260
 
1193
- # @option params [required, String] :role_arn
1194
- #
1195
- # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1196
- #
1197
- # @example Request syntax with placeholder values
1198
- #
1199
- # resp = client.unlock_service_linked_role({
1200
- # role_arn: "__stringMin1Max1600", # required
1201
- # })
1202
- #
1203
- # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/UnlockServiceLinkedRole AWS API Documentation
1204
- #
1205
- # @overload unlock_service_linked_role(params = {})
1206
- # @param [Hash] params ({})
1207
- def unlock_service_linked_role(params = {}, options = {})
1208
- req = build_request(:unlock_service_linked_role, params)
1209
- req.send_request(options)
1210
- end
1211
-
1212
1261
  # Removes tags from a resource.
1213
1262
  #
1214
1263
  # @option params [required, String] :resource_arn
@@ -1313,6 +1362,10 @@ module Aws::Schemas
1313
1362
 
1314
1363
  # Updates the schema definition
1315
1364
  #
1365
+ # <note markdown="1">Inactive schemas will be deleted after two years.
1366
+ #
1367
+ # </note>
1368
+ #
1316
1369
  # @option params [String] :client_token_id
1317
1370
  # **A suitable default value is auto-generated.** You should normally
1318
1371
  # not need to pass this option.**
@@ -1383,7 +1436,7 @@ module Aws::Schemas
1383
1436
  params: params,
1384
1437
  config: config)
1385
1438
  context[:gem_name] = 'aws-sdk-schemas'
1386
- context[:gem_version] = '1.1.0'
1439
+ context[:gem_version] = '1.2.0'
1387
1440
  Seahorse::Client::Request.new(handlers, context)
1388
1441
  end
1389
1442
 
@@ -1449,9 +1502,9 @@ module Aws::Schemas
1449
1502
  # The following table lists the valid waiter names, the operations they call,
1450
1503
  # and the default `:delay` and `:max_attempts` values.
1451
1504
  #
1452
- # | waiter_name | params | :delay | :max_attempts |
1453
- # | ------------------- | ------------------------ | -------- | ------------- |
1454
- # | code_binding_exists | {#describe_code_binding} | 2 | 30 |
1505
+ # | waiter_name | params | :delay | :max_attempts |
1506
+ # | ------------------- | ------------------------------ | -------- | ------------- |
1507
+ # | code_binding_exists | {Client#describe_code_binding} | 2 | 30 |
1455
1508
  #
1456
1509
  # @raise [Errors::FailureStateError] Raised when the waiter terminates
1457
1510
  # because the waiter has entered a state that it will not transition
@@ -27,6 +27,7 @@ module Aws::Schemas
27
27
  CreateSchemaResponse = Shapes::StructureShape.new(name: 'CreateSchemaResponse')
28
28
  DeleteDiscovererRequest = Shapes::StructureShape.new(name: 'DeleteDiscovererRequest')
29
29
  DeleteRegistryRequest = Shapes::StructureShape.new(name: 'DeleteRegistryRequest')
30
+ DeleteResourcePolicyRequest = Shapes::StructureShape.new(name: 'DeleteResourcePolicyRequest')
30
31
  DeleteSchemaRequest = Shapes::StructureShape.new(name: 'DeleteSchemaRequest')
31
32
  DeleteSchemaVersionRequest = Shapes::StructureShape.new(name: 'DeleteSchemaVersionRequest')
32
33
  DescribeCodeBindingRequest = Shapes::StructureShape.new(name: 'DescribeCodeBindingRequest')
@@ -52,6 +53,9 @@ module Aws::Schemas
52
53
  GetDiscoveredSchemaRequest = Shapes::StructureShape.new(name: 'GetDiscoveredSchemaRequest')
53
54
  GetDiscoveredSchemaResponse = Shapes::StructureShape.new(name: 'GetDiscoveredSchemaResponse')
54
55
  GetDiscoveredSchemaVersionItemInput = Shapes::StringShape.new(name: 'GetDiscoveredSchemaVersionItemInput')
56
+ GetResourcePolicyOutput = Shapes::StructureShape.new(name: 'GetResourcePolicyOutput')
57
+ GetResourcePolicyRequest = Shapes::StructureShape.new(name: 'GetResourcePolicyRequest')
58
+ GetResourcePolicyResponse = Shapes::StructureShape.new(name: 'GetResourcePolicyResponse')
55
59
  GoneException = Shapes::StructureShape.new(name: 'GoneException')
56
60
  InternalServerErrorException = Shapes::StructureShape.new(name: 'InternalServerErrorException')
57
61
  Limit = Shapes::IntegerShape.new(name: 'Limit')
@@ -67,6 +71,7 @@ module Aws::Schemas
67
71
  ListSchemasOutput = Shapes::StructureShape.new(name: 'ListSchemasOutput')
68
72
  ListSchemasRequest = Shapes::StructureShape.new(name: 'ListSchemasRequest')
69
73
  ListSchemasResponse = Shapes::StructureShape.new(name: 'ListSchemasResponse')
74
+ ListTagsForResourceOutput = Shapes::StructureShape.new(name: 'ListTagsForResourceOutput')
70
75
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
71
76
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
72
77
  LockServiceLinkedRoleInput = Shapes::StructureShape.new(name: 'LockServiceLinkedRoleInput')
@@ -74,8 +79,13 @@ module Aws::Schemas
74
79
  LockServiceLinkedRoleRequest = Shapes::StructureShape.new(name: 'LockServiceLinkedRoleRequest')
75
80
  LockServiceLinkedRoleResponse = Shapes::StructureShape.new(name: 'LockServiceLinkedRoleResponse')
76
81
  NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
82
+ PreconditionFailedException = Shapes::StructureShape.new(name: 'PreconditionFailedException')
77
83
  PutCodeBindingRequest = Shapes::StructureShape.new(name: 'PutCodeBindingRequest')
78
84
  PutCodeBindingResponse = Shapes::StructureShape.new(name: 'PutCodeBindingResponse')
85
+ PutResourcePolicyInput = Shapes::StructureShape.new(name: 'PutResourcePolicyInput')
86
+ PutResourcePolicyOutput = Shapes::StructureShape.new(name: 'PutResourcePolicyOutput')
87
+ PutResourcePolicyRequest = Shapes::StructureShape.new(name: 'PutResourcePolicyRequest')
88
+ PutResourcePolicyResponse = Shapes::StructureShape.new(name: 'PutResourcePolicyResponse')
79
89
  RegistryOutput = Shapes::StructureShape.new(name: 'RegistryOutput')
80
90
  RegistrySummary = Shapes::StructureShape.new(name: 'RegistrySummary')
81
91
  SchemaOutput = Shapes::StructureShape.new(name: 'SchemaOutput')
@@ -209,6 +219,9 @@ module Aws::Schemas
209
219
  DeleteRegistryRequest.add_member(:registry_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "registryName"))
210
220
  DeleteRegistryRequest.struct_class = Types::DeleteRegistryRequest
211
221
 
222
+ DeleteResourcePolicyRequest.add_member(:registry_name, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "registryName"))
223
+ DeleteResourcePolicyRequest.struct_class = Types::DeleteResourcePolicyRequest
224
+
212
225
  DeleteSchemaRequest.add_member(:registry_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "registryName"))
213
226
  DeleteSchemaRequest.add_member(:schema_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "schemaName"))
214
227
  DeleteSchemaRequest.struct_class = Types::DeleteSchemaRequest
@@ -329,6 +342,17 @@ module Aws::Schemas
329
342
  GetDiscoveredSchemaResponse.add_member(:content, Shapes::ShapeRef.new(shape: __string, location_name: "Content"))
330
343
  GetDiscoveredSchemaResponse.struct_class = Types::GetDiscoveredSchemaResponse
331
344
 
345
+ GetResourcePolicyOutput.add_member(:policy, Shapes::ShapeRef.new(shape: __string, location_name: "Policy", metadata: {"jsonvalue"=>true}))
346
+ GetResourcePolicyOutput.add_member(:revision_id, Shapes::ShapeRef.new(shape: __string, location_name: "RevisionId"))
347
+ GetResourcePolicyOutput.struct_class = Types::GetResourcePolicyOutput
348
+
349
+ GetResourcePolicyRequest.add_member(:registry_name, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "registryName"))
350
+ GetResourcePolicyRequest.struct_class = Types::GetResourcePolicyRequest
351
+
352
+ GetResourcePolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: __string, location_name: "Policy", metadata: {"jsonvalue"=>true}))
353
+ GetResourcePolicyResponse.add_member(:revision_id, Shapes::ShapeRef.new(shape: __string, location_name: "RevisionId"))
354
+ GetResourcePolicyResponse.struct_class = Types::GetResourcePolicyResponse
355
+
332
356
  GoneException.add_member(:code, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "Code"))
333
357
  GoneException.add_member(:message, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "Message"))
334
358
  GoneException.struct_class = Types::GoneException
@@ -393,10 +417,13 @@ module Aws::Schemas
393
417
  ListSchemasResponse.add_member(:schemas, Shapes::ShapeRef.new(shape: __listOfSchemaSummary, location_name: "Schemas"))
394
418
  ListSchemasResponse.struct_class = Types::ListSchemasResponse
395
419
 
420
+ ListTagsForResourceOutput.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
421
+ ListTagsForResourceOutput.struct_class = Types::ListTagsForResourceOutput
422
+
396
423
  ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "resource-arn"))
397
424
  ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
398
425
 
399
- ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "Tags"))
426
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
400
427
  ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
401
428
 
402
429
  LockServiceLinkedRoleInput.add_member(:role_arn, Shapes::ShapeRef.new(shape: __stringMin1Max1600, required: true, location_name: "RoleArn"))
@@ -421,6 +448,10 @@ module Aws::Schemas
421
448
  NotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "Message"))
422
449
  NotFoundException.struct_class = Types::NotFoundException
423
450
 
451
+ PreconditionFailedException.add_member(:code, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "Code"))
452
+ PreconditionFailedException.add_member(:message, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "Message"))
453
+ PreconditionFailedException.struct_class = Types::PreconditionFailedException
454
+
424
455
  PutCodeBindingRequest.add_member(:language, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "language"))
425
456
  PutCodeBindingRequest.add_member(:registry_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "registryName"))
426
457
  PutCodeBindingRequest.add_member(:schema_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "schemaName"))
@@ -433,6 +464,23 @@ module Aws::Schemas
433
464
  PutCodeBindingResponse.add_member(:status, Shapes::ShapeRef.new(shape: CodeGenerationStatus, location_name: "Status"))
434
465
  PutCodeBindingResponse.struct_class = Types::PutCodeBindingResponse
435
466
 
467
+ PutResourcePolicyInput.add_member(:policy, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "Policy", metadata: {"jsonvalue"=>true}))
468
+ PutResourcePolicyInput.add_member(:revision_id, Shapes::ShapeRef.new(shape: __string, location_name: "RevisionId"))
469
+ PutResourcePolicyInput.struct_class = Types::PutResourcePolicyInput
470
+
471
+ PutResourcePolicyOutput.add_member(:policy, Shapes::ShapeRef.new(shape: __string, location_name: "Policy", metadata: {"jsonvalue"=>true}))
472
+ PutResourcePolicyOutput.add_member(:revision_id, Shapes::ShapeRef.new(shape: __string, location_name: "RevisionId"))
473
+ PutResourcePolicyOutput.struct_class = Types::PutResourcePolicyOutput
474
+
475
+ PutResourcePolicyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "Policy", metadata: {"jsonvalue"=>true}))
476
+ PutResourcePolicyRequest.add_member(:registry_name, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "registryName"))
477
+ PutResourcePolicyRequest.add_member(:revision_id, Shapes::ShapeRef.new(shape: __string, location_name: "RevisionId"))
478
+ PutResourcePolicyRequest.struct_class = Types::PutResourcePolicyRequest
479
+
480
+ PutResourcePolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: __string, location_name: "Policy", metadata: {"jsonvalue"=>true}))
481
+ PutResourcePolicyResponse.add_member(:revision_id, Shapes::ShapeRef.new(shape: __string, location_name: "RevisionId"))
482
+ PutResourcePolicyResponse.struct_class = Types::PutResourcePolicyResponse
483
+
436
484
  RegistryOutput.add_member(:description, Shapes::ShapeRef.new(shape: __string, location_name: "Description"))
437
485
  RegistryOutput.add_member(:registry_arn, Shapes::ShapeRef.new(shape: __string, location_name: "RegistryArn"))
438
486
  RegistryOutput.add_member(:registry_name, Shapes::ShapeRef.new(shape: __string, location_name: "RegistryName"))
@@ -692,6 +740,20 @@ module Aws::Schemas
692
740
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
693
741
  end)
694
742
 
743
+ api.add_operation(:delete_resource_policy, Seahorse::Model::Operation.new.tap do |o|
744
+ o.name = "DeleteResourcePolicy"
745
+ o.http_method = "DELETE"
746
+ o.http_request_uri = "/v1/policy"
747
+ o.input = Shapes::ShapeRef.new(shape: DeleteResourcePolicyRequest)
748
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
749
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
750
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
751
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
752
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
753
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
754
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
755
+ end)
756
+
695
757
  api.add_operation(:delete_schema, Seahorse::Model::Operation.new.tap do |o|
696
758
  o.name = "DeleteSchema"
697
759
  o.http_method = "DELETE"
@@ -803,6 +865,20 @@ module Aws::Schemas
803
865
  o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
804
866
  end)
805
867
 
868
+ api.add_operation(:get_resource_policy, Seahorse::Model::Operation.new.tap do |o|
869
+ o.name = "GetResourcePolicy"
870
+ o.http_method = "GET"
871
+ o.http_request_uri = "/v1/policy"
872
+ o.input = Shapes::ShapeRef.new(shape: GetResourcePolicyRequest)
873
+ o.output = Shapes::ShapeRef.new(shape: GetResourcePolicyResponse)
874
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
875
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
876
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
877
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
878
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
879
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
880
+ end)
881
+
806
882
  api.add_operation(:list_discoverers, Seahorse::Model::Operation.new.tap do |o|
807
883
  o.name = "ListDiscoverers"
808
884
  o.http_method = "GET"
@@ -892,19 +968,6 @@ module Aws::Schemas
892
968
  o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
893
969
  end)
894
970
 
895
- api.add_operation(:lock_service_linked_role, Seahorse::Model::Operation.new.tap do |o|
896
- o.name = "LockServiceLinkedRole"
897
- o.http_method = "POST"
898
- o.http_request_uri = "/slr-deletion/lock"
899
- o.input = Shapes::ShapeRef.new(shape: LockServiceLinkedRoleRequest)
900
- o.output = Shapes::ShapeRef.new(shape: LockServiceLinkedRoleResponse)
901
- o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
902
- o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
903
- o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
904
- o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
905
- o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
906
- end)
907
-
908
971
  api.add_operation(:put_code_binding, Seahorse::Model::Operation.new.tap do |o|
909
972
  o.name = "PutCodeBinding"
910
973
  o.http_method = "POST"
@@ -920,6 +983,21 @@ module Aws::Schemas
920
983
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
921
984
  end)
922
985
 
986
+ api.add_operation(:put_resource_policy, Seahorse::Model::Operation.new.tap do |o|
987
+ o.name = "PutResourcePolicy"
988
+ o.http_method = "PUT"
989
+ o.http_request_uri = "/v1/policy"
990
+ o.input = Shapes::ShapeRef.new(shape: PutResourcePolicyRequest)
991
+ o.output = Shapes::ShapeRef.new(shape: PutResourcePolicyResponse)
992
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
993
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
994
+ o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException)
995
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
996
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
997
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
998
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
999
+ end)
1000
+
923
1001
  api.add_operation(:search_schemas, Seahorse::Model::Operation.new.tap do |o|
924
1002
  o.name = "SearchSchemas"
925
1003
  o.http_method = "GET"
@@ -979,19 +1057,6 @@ module Aws::Schemas
979
1057
  o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
980
1058
  end)
981
1059
 
982
- api.add_operation(:unlock_service_linked_role, Seahorse::Model::Operation.new.tap do |o|
983
- o.name = "UnlockServiceLinkedRole"
984
- o.http_method = "POST"
985
- o.http_request_uri = "/slr-deletion/unlock"
986
- o.input = Shapes::ShapeRef.new(shape: UnlockServiceLinkedRoleRequest)
987
- o.output = Shapes::ShapeRef.new(shape: UnlockServiceLinkedRoleResponse)
988
- o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
989
- o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
990
- o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
991
- o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
992
- o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
993
- end)
994
-
995
1060
  api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
996
1061
  o.name = "UntagResource"
997
1062
  o.http_method = "DELETE"
@@ -31,6 +31,7 @@ module Aws::Schemas
31
31
  # * {GoneException}
32
32
  # * {InternalServerErrorException}
33
33
  # * {NotFoundException}
34
+ # * {PreconditionFailedException}
34
35
  # * {ServiceUnavailableException}
35
36
  # * {TooManyRequestsException}
36
37
  # * {UnauthorizedException}
@@ -161,6 +162,26 @@ module Aws::Schemas
161
162
  end
162
163
  end
163
164
 
165
+ class PreconditionFailedException < ServiceError
166
+
167
+ # @param [Seahorse::Client::RequestContext] context
168
+ # @param [String] message
169
+ # @param [Aws::Schemas::Types::PreconditionFailedException] data
170
+ def initialize(context, message, data = Aws::EmptyStructure.new)
171
+ super(context, message, data)
172
+ end
173
+
174
+ # @return [String]
175
+ def code
176
+ @code || @data[:code]
177
+ end
178
+
179
+ # @return [String]
180
+ def message
181
+ @message || @data[:message]
182
+ end
183
+ end
184
+
164
185
  class ServiceUnavailableException < ServiceError
165
186
 
166
187
  # @param [Seahorse::Client::RequestContext] context
@@ -6,13 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Schemas
9
- # This class provides a resource oriented interface for Schemas.
10
- # To create a resource object:
11
- # resource = Aws::Schemas::Resource.new(region: 'us-west-2')
12
- # You can supply a client object with custom configuration that will be used for all resource operations.
13
- # If you do not pass +:client+, a default client will be constructed.
14
- # client = Aws::Schemas::Client.new(region: 'us-west-2')
15
- # resource = Aws::Schemas::Resource.new(client: client)
9
+
16
10
  class Resource
17
11
 
18
12
  # @param options ({})
@@ -214,6 +214,7 @@ module Aws::Schemas
214
214
  end
215
215
 
216
216
  # @!attribute [rw] content
217
+ # The source of the schema definition.
217
218
  # @return [String]
218
219
  #
219
220
  # @!attribute [rw] description
@@ -225,6 +226,7 @@ module Aws::Schemas
225
226
  # @return [Hash<String,String>]
226
227
  #
227
228
  # @!attribute [rw] type
229
+ # The type of schema.
228
230
  # @return [String]
229
231
  #
230
232
  # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/CreateSchemaInput AWS API Documentation
@@ -355,6 +357,23 @@ module Aws::Schemas
355
357
  include Aws::Structure
356
358
  end
357
359
 
360
+ # @note When making an API call, you may pass DeleteResourcePolicyRequest
361
+ # data as a hash:
362
+ #
363
+ # {
364
+ # registry_name: "__string",
365
+ # }
366
+ #
367
+ # @!attribute [rw] registry_name
368
+ # @return [String]
369
+ #
370
+ # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/DeleteResourcePolicyRequest AWS API Documentation
371
+ #
372
+ class DeleteResourcePolicyRequest < Struct.new(
373
+ :registry_name)
374
+ include Aws::Structure
375
+ end
376
+
358
377
  # @note When making an API call, you may pass DeleteSchemaRequest
359
378
  # data as a hash:
360
379
  #
@@ -547,6 +566,7 @@ module Aws::Schemas
547
566
  end
548
567
 
549
568
  # @!attribute [rw] content
569
+ # The source of the schema definition.
550
570
  # @return [String]
551
571
  #
552
572
  # @!attribute [rw] description
@@ -731,6 +751,7 @@ module Aws::Schemas
731
751
  # @return [String]
732
752
  #
733
753
  # @!attribute [rw] state
754
+ # The state of the discoverer.
734
755
  # @return [String]
735
756
  #
736
757
  # @!attribute [rw] tags
@@ -821,7 +842,9 @@ module Aws::Schemas
821
842
  end
822
843
 
823
844
  # @!attribute [rw] events
824
- # An array of strings that
845
+ # An array of strings where each string is a JSON event. These are the
846
+ # events that were used to generate the schema. The array includes a
847
+ # single type of event and has a maximum size of 10 events.
825
848
  # @return [Array<String>]
826
849
  #
827
850
  # @!attribute [rw] type
@@ -837,6 +860,7 @@ module Aws::Schemas
837
860
  end
838
861
 
839
862
  # @!attribute [rw] content
863
+ # The source of the schema definition.
840
864
  # @return [String]
841
865
  #
842
866
  # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/GetDiscoveredSchemaOutput AWS API Documentation
@@ -878,6 +902,55 @@ module Aws::Schemas
878
902
  include Aws::Structure
879
903
  end
880
904
 
905
+ # Information about the policy.
906
+ #
907
+ # @!attribute [rw] policy
908
+ # The resource-based policy.
909
+ # @return [String]
910
+ #
911
+ # @!attribute [rw] revision_id
912
+ # The revision ID.
913
+ # @return [String]
914
+ #
915
+ # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/GetResourcePolicyOutput AWS API Documentation
916
+ #
917
+ class GetResourcePolicyOutput < Struct.new(
918
+ :policy,
919
+ :revision_id)
920
+ include Aws::Structure
921
+ end
922
+
923
+ # @note When making an API call, you may pass GetResourcePolicyRequest
924
+ # data as a hash:
925
+ #
926
+ # {
927
+ # registry_name: "__string",
928
+ # }
929
+ #
930
+ # @!attribute [rw] registry_name
931
+ # @return [String]
932
+ #
933
+ # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/GetResourcePolicyRequest AWS API Documentation
934
+ #
935
+ class GetResourcePolicyRequest < Struct.new(
936
+ :registry_name)
937
+ include Aws::Structure
938
+ end
939
+
940
+ # @!attribute [rw] policy
941
+ # @return [String]
942
+ #
943
+ # @!attribute [rw] revision_id
944
+ # @return [String]
945
+ #
946
+ # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/GetResourcePolicyResponse AWS API Documentation
947
+ #
948
+ class GetResourcePolicyResponse < Struct.new(
949
+ :policy,
950
+ :revision_id)
951
+ include Aws::Structure
952
+ end
953
+
881
954
  # @!attribute [rw] code
882
955
  # @return [String]
883
956
  #
@@ -1164,6 +1237,17 @@ module Aws::Schemas
1164
1237
  include Aws::Structure
1165
1238
  end
1166
1239
 
1240
+ # @!attribute [rw] tags
1241
+ # Key-value pairs associated with a resource.
1242
+ # @return [Hash<String,String>]
1243
+ #
1244
+ # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/ListTagsForResourceOutput AWS API Documentation
1245
+ #
1246
+ class ListTagsForResourceOutput < Struct.new(
1247
+ :tags)
1248
+ include Aws::Structure
1249
+ end
1250
+
1167
1251
  # @note When making an API call, you may pass ListTagsForResourceRequest
1168
1252
  # data as a hash:
1169
1253
  #
@@ -1224,14 +1308,6 @@ module Aws::Schemas
1224
1308
  include Aws::Structure
1225
1309
  end
1226
1310
 
1227
- # @note When making an API call, you may pass LockServiceLinkedRoleRequest
1228
- # data as a hash:
1229
- #
1230
- # {
1231
- # role_arn: "__stringMin1Max1600", # required
1232
- # timeout: 1, # required
1233
- # }
1234
- #
1235
1311
  # @!attribute [rw] role_arn
1236
1312
  # @return [String]
1237
1313
  #
@@ -1278,6 +1354,20 @@ module Aws::Schemas
1278
1354
  include Aws::Structure
1279
1355
  end
1280
1356
 
1357
+ # @!attribute [rw] code
1358
+ # @return [String]
1359
+ #
1360
+ # @!attribute [rw] message
1361
+ # @return [String]
1362
+ #
1363
+ # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/PreconditionFailedException AWS API Documentation
1364
+ #
1365
+ class PreconditionFailedException < Struct.new(
1366
+ :code,
1367
+ :message)
1368
+ include Aws::Structure
1369
+ end
1370
+
1281
1371
  # @note When making an API call, you may pass PutCodeBindingRequest
1282
1372
  # data as a hash:
1283
1373
  #
@@ -1332,6 +1422,85 @@ module Aws::Schemas
1332
1422
  include Aws::Structure
1333
1423
  end
1334
1424
 
1425
+ # Only update the policy if the revision ID matches the ID that's
1426
+ # specified. Use this option to avoid modifying a policy that has
1427
+ # changed since you last read it.
1428
+ #
1429
+ # @!attribute [rw] policy
1430
+ # The resource-based policy.
1431
+ # @return [String]
1432
+ #
1433
+ # @!attribute [rw] revision_id
1434
+ # The revision ID of the policy.
1435
+ # @return [String]
1436
+ #
1437
+ # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/PutResourcePolicyInput AWS API Documentation
1438
+ #
1439
+ class PutResourcePolicyInput < Struct.new(
1440
+ :policy,
1441
+ :revision_id)
1442
+ include Aws::Structure
1443
+ end
1444
+
1445
+ # The resource-based policy.
1446
+ #
1447
+ # @!attribute [rw] policy
1448
+ # The resource-based policy.
1449
+ # @return [String]
1450
+ #
1451
+ # @!attribute [rw] revision_id
1452
+ # The revision ID of the policy.
1453
+ # @return [String]
1454
+ #
1455
+ # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/PutResourcePolicyOutput AWS API Documentation
1456
+ #
1457
+ class PutResourcePolicyOutput < Struct.new(
1458
+ :policy,
1459
+ :revision_id)
1460
+ include Aws::Structure
1461
+ end
1462
+
1463
+ # @note When making an API call, you may pass PutResourcePolicyRequest
1464
+ # data as a hash:
1465
+ #
1466
+ # {
1467
+ # policy: "__string", # required
1468
+ # registry_name: "__string",
1469
+ # revision_id: "__string",
1470
+ # }
1471
+ #
1472
+ # @!attribute [rw] policy
1473
+ # @return [String]
1474
+ #
1475
+ # @!attribute [rw] registry_name
1476
+ # @return [String]
1477
+ #
1478
+ # @!attribute [rw] revision_id
1479
+ # @return [String]
1480
+ #
1481
+ # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/PutResourcePolicyRequest AWS API Documentation
1482
+ #
1483
+ class PutResourcePolicyRequest < Struct.new(
1484
+ :policy,
1485
+ :registry_name,
1486
+ :revision_id)
1487
+ include Aws::Structure
1488
+ end
1489
+
1490
+ # @!attribute [rw] policy
1491
+ # @return [String]
1492
+ #
1493
+ # @!attribute [rw] revision_id
1494
+ # @return [String]
1495
+ #
1496
+ # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/PutResourcePolicyResponse AWS API Documentation
1497
+ #
1498
+ class PutResourcePolicyResponse < Struct.new(
1499
+ :policy,
1500
+ :revision_id)
1501
+ include Aws::Structure
1502
+ end
1503
+
1335
1504
  # @!attribute [rw] description
1336
1505
  # The description of the registry.
1337
1506
  # @return [String]
@@ -1506,6 +1675,7 @@ module Aws::Schemas
1506
1675
  end
1507
1676
 
1508
1677
  # @!attribute [rw] created_date
1678
+ # The date the schema version was created.
1509
1679
  # @return [Time]
1510
1680
  #
1511
1681
  # @!attribute [rw] schema_version
@@ -1661,7 +1831,7 @@ module Aws::Schemas
1661
1831
  end
1662
1832
 
1663
1833
  # @!attribute [rw] tags
1664
- # Key-value pairs associated with a resource.
1834
+ # Tags associated with the resource.
1665
1835
  # @return [Hash<String,String>]
1666
1836
  #
1667
1837
  # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/TagResourceInput AWS API Documentation
@@ -1734,13 +1904,6 @@ module Aws::Schemas
1734
1904
  include Aws::Structure
1735
1905
  end
1736
1906
 
1737
- # @note When making an API call, you may pass UnlockServiceLinkedRoleRequest
1738
- # data as a hash:
1739
- #
1740
- # {
1741
- # role_arn: "__stringMin1Max1600", # required
1742
- # }
1743
- #
1744
1907
  # @!attribute [rw] role_arn
1745
1908
  # @return [String]
1746
1909
  #
@@ -8,6 +8,67 @@
8
8
  require 'aws-sdk-core/waiters'
9
9
 
10
10
  module Aws::Schemas
11
+ # Waiters are utility methods that poll for a particular state to occur
12
+ # on a client. Waiters can fail after a number of attempts at a polling
13
+ # interval defined for the service client.
14
+ #
15
+ # For a list of operations that can be waited for and the
16
+ # client methods called for each operation, see the table below or the
17
+ # {Client#wait_until} field documentation for the {Client}.
18
+ #
19
+ # # Invoking a Waiter
20
+ # To invoke a waiter, call #wait_until on a {Client}. The first parameter
21
+ # is the waiter name, which is specific to the service client and indicates
22
+ # which operation is being waited for. The second parameter is a hash of
23
+ # parameters that are passed to the client method called by the waiter,
24
+ # which varies according to the waiter name.
25
+ #
26
+ # # Wait Failures
27
+ # To catch errors in a waiter, use WaiterFailed,
28
+ # as shown in the following example.
29
+ #
30
+ # rescue rescue Aws::Waiters::Errors::WaiterFailed => error
31
+ # puts "failed waiting for instance running: #{error.message}
32
+ # end
33
+ #
34
+ # # Configuring a Waiter
35
+ # Each waiter has a default polling interval and a maximum number of
36
+ # attempts it will make before returning control to your program.
37
+ # To set these values, use the `max_attempts` and `delay` parameters
38
+ # in your `#wait_until` call.
39
+ # The following example waits for up to 25 seconds, polling every five seconds.
40
+ #
41
+ # client.wait_until(...) do |w|
42
+ # w.max_attempts = 5
43
+ # w.delay = 5
44
+ # end
45
+ #
46
+ # To disable wait failures, set the value of either of these parameters
47
+ # to `nil`.
48
+ #
49
+ # # Extending a Waiter
50
+ # To modify the behavior of waiters, you can register callbacks that are
51
+ # triggered before each polling attempt and before waiting.
52
+ #
53
+ # The following example implements an exponential backoff in a waiter
54
+ # by doubling the amount of time to wait on every attempt.
55
+ #
56
+ # client.wait_until(...) do |w|
57
+ # w.interval = 0 # disable normal sleep
58
+ # w.before_wait do |n, resp|
59
+ # sleep(n ** 2)
60
+ # end
61
+ # end
62
+ #
63
+ # # Available Waiters
64
+ #
65
+ # The following table lists the valid waiter names, the operations they call,
66
+ # and the default `:delay` and `:max_attempts` values.
67
+ #
68
+ # | waiter_name | params | :delay | :max_attempts |
69
+ # | ------------------- | ------------------------------ | -------- | ------------- |
70
+ # | code_binding_exists | {Client#describe_code_binding} | 2 | 30 |
71
+ #
11
72
  module Waiters
12
73
 
13
74
  # Wait until code binding is generated
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-schemas
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.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: 2020-03-16 00:00:00.000000000 Z
11
+ date: 2020-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -81,7 +81,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  requirements: []
84
- rubygems_version: 3.0.3
84
+ rubyforge_project:
85
+ rubygems_version: 2.7.6.2
85
86
  signing_key:
86
87
  specification_version: 4
87
88
  summary: AWS SDK for Ruby - Schemas