aws-sdk-snowball 1.51.0 → 1.53.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f00bb2c4dd43cd37f86a75a7774327809febb092522f4bfdea1c24b11f06d4d5
4
- data.tar.gz: 82c2e07cabcd4fb43417e07940911f20d74ac5b8cc4f3ad2b6bdac61ab8a49a7
3
+ metadata.gz: 0fead9594d00c243f1a2815dd9e09d9179ec3ab37f7993de03aad4a531bb9d2a
4
+ data.tar.gz: bdcb15daa46c311780a8af3dd7a31f4201f1058b1fa9857513c539205305ad75
5
5
  SHA512:
6
- metadata.gz: dae3bad9555a948cbb5d8204f251d91c1afb55f8a891d04f1f83dfbb947b9c47c424bd0f08b59f0a9ba80b1612580531289ff4a4e74d235bda39251e94b65861
7
- data.tar.gz: bc2674ecbbf1ff95031c16c6d4550e8342bbc4db957a4f53aa44a76569f2f9d83f2ae1d2d4809eb035581c45a3b2c77660be5a9980e39f470e0d358a3fc2965d
6
+ metadata.gz: d54a7df1d64e84f3a481a5cb811c1c20c5954824133e2ed0ec88fe1f5194c0473fe81acc2379d086b93403167452ba8ed9134a5140829cd87af2ba883aa659b4
7
+ data.tar.gz: a5f5014ccc03c2ad16ac58dd56727e6e356b26cdb1d39e04c4325d30101be880c55bfe72f8b7a534d63b0655cf589eaaa99f1584422d70900bf540c7a9ab206f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.53.0 (2023-02-13)
5
+ ------------------
6
+
7
+ * Feature - Adds support for EKS Anywhere on Snowball. AWS Snow Family customers can now install EKS Anywhere service on Snowball Edge Compute Optimized devices.
8
+
9
+ 1.52.0 (2023-01-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
15
+
4
16
  1.51.0 (2022-10-25)
5
17
  ------------------
6
18
 
@@ -330,4 +342,4 @@ Unreleased Changes
330
342
  1.0.0.rc1 (2016-12-05)
331
343
  ------------------
332
344
 
333
- * Feature - Initial preview release of the `aws-sdk-snowball` gem.
345
+ * Feature - Initial preview release of the `aws-sdk-snowball` gem.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.51.0
1
+ 1.53.0
@@ -719,6 +719,10 @@ module Aws::Snowball
719
719
  # storage_limit: 1,
720
720
  # storage_unit: "TB", # accepts TB
721
721
  # },
722
+ # eks_on_device_service: {
723
+ # kubernetes_version: "String",
724
+ # eks_anywhere_version: "String",
725
+ # },
722
726
  # },
723
727
  # description: "String",
724
728
  # address_id: "AddressId", # required
@@ -824,14 +828,6 @@ module Aws::Snowball
824
828
  #
825
829
  #
826
830
  #
827
- # * Device type: **V3\_5C**
828
- #
829
- # * Capacity: T32
830
- #
831
- # * Description: Snowball Edge Compute Optimized without GPU
832
- #
833
- #
834
- #
835
831
  # * Device type: **STANDARD**
836
832
  #
837
833
  # * Capacity: T50
@@ -1082,12 +1078,16 @@ module Aws::Snowball
1082
1078
  # storage_limit: 1,
1083
1079
  # storage_unit: "TB", # accepts TB
1084
1080
  # },
1081
+ # eks_on_device_service: {
1082
+ # kubernetes_version: "String",
1083
+ # eks_anywhere_version: "String",
1084
+ # },
1085
1085
  # },
1086
1086
  # description: "String",
1087
1087
  # address_id: "AddressId",
1088
1088
  # kms_key_arn: "KmsKeyARN",
1089
1089
  # role_arn: "RoleARN",
1090
- # snowball_capacity_preference: "T50", # accepts T50, T80, T100, T42, T98, T8, T14, NoPreference, T32
1090
+ # snowball_capacity_preference: "T50", # accepts T50, T80, T100, T42, T98, T8, T14, T32, NoPreference
1091
1091
  # shipping_option: "SECOND_DAY", # accepts SECOND_DAY, NEXT_DAY, EXPRESS, STANDARD
1092
1092
  # notification: {
1093
1093
  # sns_topic_arn: "SnsTopicARN",
@@ -1136,8 +1136,6 @@ module Aws::Snowball
1136
1136
  # 1-year or 3-year long-term pricing.
1137
1137
  #
1138
1138
  # @option params [Boolean] :is_long_term_pricing_auto_renew
1139
- # snowballty
1140
- #
1141
1139
  # Specifies whether the current long-term pricing type for the device
1142
1140
  # should be renewed.
1143
1141
  #
@@ -1444,6 +1442,8 @@ module Aws::Snowball
1444
1442
  # resp.cluster_metadata.on_device_service_configuration.nfs_on_device_service.storage_unit #=> String, one of "TB"
1445
1443
  # resp.cluster_metadata.on_device_service_configuration.tgw_on_device_service.storage_limit #=> Integer
1446
1444
  # resp.cluster_metadata.on_device_service_configuration.tgw_on_device_service.storage_unit #=> String, one of "TB"
1445
+ # resp.cluster_metadata.on_device_service_configuration.eks_on_device_service.kubernetes_version #=> String
1446
+ # resp.cluster_metadata.on_device_service_configuration.eks_on_device_service.eks_anywhere_version #=> String
1447
1447
  #
1448
1448
  # @see http://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/DescribeCluster AWS API Documentation
1449
1449
  #
@@ -1544,7 +1544,7 @@ module Aws::Snowball
1544
1544
  # resp.job_metadata.shipping_details.inbound_shipment.tracking_number #=> String
1545
1545
  # resp.job_metadata.shipping_details.outbound_shipment.status #=> String
1546
1546
  # resp.job_metadata.shipping_details.outbound_shipment.tracking_number #=> String
1547
- # resp.job_metadata.snowball_capacity_preference #=> String, one of "T50", "T80", "T100", "T42", "T98", "T8", "T14", "NoPreference", "T32"
1547
+ # resp.job_metadata.snowball_capacity_preference #=> String, one of "T50", "T80", "T100", "T42", "T98", "T8", "T14", "T32", "NoPreference"
1548
1548
  # resp.job_metadata.notification.sns_topic_arn #=> String
1549
1549
  # resp.job_metadata.notification.job_states_to_notify #=> Array
1550
1550
  # resp.job_metadata.notification.job_states_to_notify[0] #=> String, one of "New", "PreparingAppliance", "PreparingShipment", "InTransitToCustomer", "WithCustomer", "InTransitToAWS", "WithAWSSortingFacility", "WithAWS", "InProgress", "Complete", "Cancelled", "Listing", "Pending"
@@ -1566,6 +1566,8 @@ module Aws::Snowball
1566
1566
  # resp.job_metadata.on_device_service_configuration.nfs_on_device_service.storage_unit #=> String, one of "TB"
1567
1567
  # resp.job_metadata.on_device_service_configuration.tgw_on_device_service.storage_limit #=> Integer
1568
1568
  # resp.job_metadata.on_device_service_configuration.tgw_on_device_service.storage_unit #=> String, one of "TB"
1569
+ # resp.job_metadata.on_device_service_configuration.eks_on_device_service.kubernetes_version #=> String
1570
+ # resp.job_metadata.on_device_service_configuration.eks_on_device_service.eks_anywhere_version #=> String
1569
1571
  # resp.sub_job_metadata #=> Array
1570
1572
  # resp.sub_job_metadata[0].job_id #=> String
1571
1573
  # resp.sub_job_metadata[0].job_state #=> String, one of "New", "PreparingAppliance", "PreparingShipment", "InTransitToCustomer", "WithCustomer", "InTransitToAWS", "WithAWSSortingFacility", "WithAWS", "InProgress", "Complete", "Cancelled", "Listing", "Pending"
@@ -1595,7 +1597,7 @@ module Aws::Snowball
1595
1597
  # resp.sub_job_metadata[0].shipping_details.inbound_shipment.tracking_number #=> String
1596
1598
  # resp.sub_job_metadata[0].shipping_details.outbound_shipment.status #=> String
1597
1599
  # resp.sub_job_metadata[0].shipping_details.outbound_shipment.tracking_number #=> String
1598
- # resp.sub_job_metadata[0].snowball_capacity_preference #=> String, one of "T50", "T80", "T100", "T42", "T98", "T8", "T14", "NoPreference", "T32"
1600
+ # resp.sub_job_metadata[0].snowball_capacity_preference #=> String, one of "T50", "T80", "T100", "T42", "T98", "T8", "T14", "T32", "NoPreference"
1599
1601
  # resp.sub_job_metadata[0].notification.sns_topic_arn #=> String
1600
1602
  # resp.sub_job_metadata[0].notification.job_states_to_notify #=> Array
1601
1603
  # resp.sub_job_metadata[0].notification.job_states_to_notify[0] #=> String, one of "New", "PreparingAppliance", "PreparingShipment", "InTransitToCustomer", "WithCustomer", "InTransitToAWS", "WithAWSSortingFacility", "WithAWS", "InProgress", "Complete", "Cancelled", "Listing", "Pending"
@@ -1617,6 +1619,8 @@ module Aws::Snowball
1617
1619
  # resp.sub_job_metadata[0].on_device_service_configuration.nfs_on_device_service.storage_unit #=> String, one of "TB"
1618
1620
  # resp.sub_job_metadata[0].on_device_service_configuration.tgw_on_device_service.storage_limit #=> Integer
1619
1621
  # resp.sub_job_metadata[0].on_device_service_configuration.tgw_on_device_service.storage_unit #=> String, one of "TB"
1622
+ # resp.sub_job_metadata[0].on_device_service_configuration.eks_on_device_service.kubernetes_version #=> String
1623
+ # resp.sub_job_metadata[0].on_device_service_configuration.eks_on_device_service.eks_anywhere_version #=> String
1620
1624
  #
1621
1625
  # @see http://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/DescribeJob AWS API Documentation
1622
1626
  #
@@ -2218,6 +2222,67 @@ module Aws::Snowball
2218
2222
  req.send_request(options)
2219
2223
  end
2220
2224
 
2225
+ # Lists all supported versions for Snow on-device services. Returns an
2226
+ # array of `ServiceVersion` object containing the supported versions for
2227
+ # a particular service.
2228
+ #
2229
+ # @option params [required, String] :service_name
2230
+ # The name of the service for which you're requesting supported
2231
+ # versions.
2232
+ #
2233
+ # @option params [Array<Types::DependentService>] :dependent_services
2234
+ # A list of names and versions of dependant services of the requested
2235
+ # service.
2236
+ #
2237
+ # @option params [Integer] :max_results
2238
+ # The maximum number of `ListServiceVersions` objects to return.
2239
+ #
2240
+ # @option params [String] :next_token
2241
+ # Because HTTP requests are stateless, this is the starting point for
2242
+ # the next list of returned `ListServiceVersionsRequest` versions.
2243
+ #
2244
+ # @return [Types::ListServiceVersionsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2245
+ #
2246
+ # * {Types::ListServiceVersionsResult#service_versions #service_versions} => Array&lt;Types::ServiceVersion&gt;
2247
+ # * {Types::ListServiceVersionsResult#service_name #service_name} => String
2248
+ # * {Types::ListServiceVersionsResult#dependent_services #dependent_services} => Array&lt;Types::DependentService&gt;
2249
+ # * {Types::ListServiceVersionsResult#next_token #next_token} => String
2250
+ #
2251
+ # @example Request syntax with placeholder values
2252
+ #
2253
+ # resp = client.list_service_versions({
2254
+ # service_name: "KUBERNETES", # required, accepts KUBERNETES, EKS_ANYWHERE
2255
+ # dependent_services: [
2256
+ # {
2257
+ # service_name: "KUBERNETES", # accepts KUBERNETES, EKS_ANYWHERE
2258
+ # service_version: {
2259
+ # version: "String",
2260
+ # },
2261
+ # },
2262
+ # ],
2263
+ # max_results: 1,
2264
+ # next_token: "String",
2265
+ # })
2266
+ #
2267
+ # @example Response structure
2268
+ #
2269
+ # resp.service_versions #=> Array
2270
+ # resp.service_versions[0].version #=> String
2271
+ # resp.service_name #=> String, one of "KUBERNETES", "EKS_ANYWHERE"
2272
+ # resp.dependent_services #=> Array
2273
+ # resp.dependent_services[0].service_name #=> String, one of "KUBERNETES", "EKS_ANYWHERE"
2274
+ # resp.dependent_services[0].service_version.version #=> String
2275
+ # resp.next_token #=> String
2276
+ #
2277
+ # @see http://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/ListServiceVersions AWS API Documentation
2278
+ #
2279
+ # @overload list_service_versions(params = {})
2280
+ # @param [Hash] params ({})
2281
+ def list_service_versions(params = {}, options = {})
2282
+ req = build_request(:list_service_versions, params)
2283
+ req.send_request(options)
2284
+ end
2285
+
2221
2286
  # While a cluster's `ClusterState` value is in the `AwaitingQuorum`
2222
2287
  # state, you can update some of the information associated with a
2223
2288
  # cluster. Once the cluster changes to a different job state, usually 60
@@ -2326,6 +2391,10 @@ module Aws::Snowball
2326
2391
  # storage_limit: 1,
2327
2392
  # storage_unit: "TB", # accepts TB
2328
2393
  # },
2394
+ # eks_on_device_service: {
2395
+ # kubernetes_version: "String",
2396
+ # eks_anywhere_version: "String",
2397
+ # },
2329
2398
  # },
2330
2399
  # address_id: "AddressId",
2331
2400
  # shipping_option: "SECOND_DAY", # accepts SECOND_DAY, NEXT_DAY, EXPRESS, STANDARD
@@ -2468,11 +2537,15 @@ module Aws::Snowball
2468
2537
  # storage_limit: 1,
2469
2538
  # storage_unit: "TB", # accepts TB
2470
2539
  # },
2540
+ # eks_on_device_service: {
2541
+ # kubernetes_version: "String",
2542
+ # eks_anywhere_version: "String",
2543
+ # },
2471
2544
  # },
2472
2545
  # address_id: "AddressId",
2473
2546
  # shipping_option: "SECOND_DAY", # accepts SECOND_DAY, NEXT_DAY, EXPRESS, STANDARD
2474
2547
  # description: "String",
2475
- # snowball_capacity_preference: "T50", # accepts T50, T80, T100, T42, T98, T8, T14, NoPreference, T32
2548
+ # snowball_capacity_preference: "T50", # accepts T50, T80, T100, T42, T98, T8, T14, T32, NoPreference
2476
2549
  # forwarding_address_id: "AddressId",
2477
2550
  # })
2478
2551
  #
@@ -2563,7 +2636,7 @@ module Aws::Snowball
2563
2636
  params: params,
2564
2637
  config: config)
2565
2638
  context[:gem_name] = 'aws-sdk-snowball'
2566
- context[:gem_version] = '1.51.0'
2639
+ context[:gem_version] = '1.53.0'
2567
2640
  Seahorse::Client::Request.new(handlers, context)
2568
2641
  end
2569
2642
 
@@ -42,6 +42,8 @@ module Aws::Snowball
42
42
  CreateReturnShippingLabelRequest = Shapes::StructureShape.new(name: 'CreateReturnShippingLabelRequest')
43
43
  CreateReturnShippingLabelResult = Shapes::StructureShape.new(name: 'CreateReturnShippingLabelResult')
44
44
  DataTransfer = Shapes::StructureShape.new(name: 'DataTransfer')
45
+ DependentService = Shapes::StructureShape.new(name: 'DependentService')
46
+ DependentServiceList = Shapes::ListShape.new(name: 'DependentServiceList')
45
47
  DescribeAddressRequest = Shapes::StructureShape.new(name: 'DescribeAddressRequest')
46
48
  DescribeAddressResult = Shapes::StructureShape.new(name: 'DescribeAddressResult')
47
49
  DescribeAddressesRequest = Shapes::StructureShape.new(name: 'DescribeAddressesRequest')
@@ -54,6 +56,7 @@ module Aws::Snowball
54
56
  DescribeReturnShippingLabelResult = Shapes::StructureShape.new(name: 'DescribeReturnShippingLabelResult')
55
57
  DeviceConfiguration = Shapes::StructureShape.new(name: 'DeviceConfiguration')
56
58
  DeviceServiceName = Shapes::StringShape.new(name: 'DeviceServiceName')
59
+ EKSOnDeviceServiceConfiguration = Shapes::StructureShape.new(name: 'EKSOnDeviceServiceConfiguration')
57
60
  Ec2AmiResource = Shapes::StructureShape.new(name: 'Ec2AmiResource')
58
61
  Ec2AmiResourceList = Shapes::ListShape.new(name: 'Ec2AmiResourceList')
59
62
  Ec2RequestFailedException = Shapes::StructureShape.new(name: 'Ec2RequestFailedException')
@@ -102,6 +105,8 @@ module Aws::Snowball
102
105
  ListLimit = Shapes::IntegerShape.new(name: 'ListLimit')
103
106
  ListLongTermPricingRequest = Shapes::StructureShape.new(name: 'ListLongTermPricingRequest')
104
107
  ListLongTermPricingResult = Shapes::StructureShape.new(name: 'ListLongTermPricingResult')
108
+ ListServiceVersionsRequest = Shapes::StructureShape.new(name: 'ListServiceVersionsRequest')
109
+ ListServiceVersionsResult = Shapes::StructureShape.new(name: 'ListServiceVersionsResult')
105
110
  Long = Shapes::IntegerShape.new(name: 'Long')
106
111
  LongTermPricingAssociatedJobIdList = Shapes::ListShape.new(name: 'LongTermPricingAssociatedJobIdList')
107
112
  LongTermPricingEntryList = Shapes::ListShape.new(name: 'LongTermPricingEntryList')
@@ -117,6 +122,9 @@ module Aws::Snowball
117
122
  RoleARN = Shapes::StringShape.new(name: 'RoleARN')
118
123
  S3Resource = Shapes::StructureShape.new(name: 'S3Resource')
119
124
  S3ResourceList = Shapes::ListShape.new(name: 'S3ResourceList')
125
+ ServiceName = Shapes::StringShape.new(name: 'ServiceName')
126
+ ServiceVersion = Shapes::StructureShape.new(name: 'ServiceVersion')
127
+ ServiceVersionList = Shapes::ListShape.new(name: 'ServiceVersionList')
120
128
  Shipment = Shapes::StructureShape.new(name: 'Shipment')
121
129
  ShipmentState = Shapes::StringShape.new(name: 'ShipmentState')
122
130
  ShippingDetails = Shapes::StructureShape.new(name: 'ShippingDetails')
@@ -279,6 +287,12 @@ module Aws::Snowball
279
287
  DataTransfer.add_member(:total_objects, Shapes::ShapeRef.new(shape: Long, location_name: "TotalObjects"))
280
288
  DataTransfer.struct_class = Types::DataTransfer
281
289
 
290
+ DependentService.add_member(:service_name, Shapes::ShapeRef.new(shape: ServiceName, location_name: "ServiceName"))
291
+ DependentService.add_member(:service_version, Shapes::ShapeRef.new(shape: ServiceVersion, location_name: "ServiceVersion"))
292
+ DependentService.struct_class = Types::DependentService
293
+
294
+ DependentServiceList.member = Shapes::ShapeRef.new(shape: DependentService)
295
+
282
296
  DescribeAddressRequest.add_member(:address_id, Shapes::ShapeRef.new(shape: AddressId, required: true, location_name: "AddressId"))
283
297
  DescribeAddressRequest.struct_class = Types::DescribeAddressRequest
284
298
 
@@ -317,6 +331,10 @@ module Aws::Snowball
317
331
  DeviceConfiguration.add_member(:snowcone_device_configuration, Shapes::ShapeRef.new(shape: SnowconeDeviceConfiguration, location_name: "SnowconeDeviceConfiguration"))
318
332
  DeviceConfiguration.struct_class = Types::DeviceConfiguration
319
333
 
334
+ EKSOnDeviceServiceConfiguration.add_member(:kubernetes_version, Shapes::ShapeRef.new(shape: String, location_name: "KubernetesVersion"))
335
+ EKSOnDeviceServiceConfiguration.add_member(:eks_anywhere_version, Shapes::ShapeRef.new(shape: String, location_name: "EKSAnywhereVersion"))
336
+ EKSOnDeviceServiceConfiguration.struct_class = Types::EKSOnDeviceServiceConfiguration
337
+
320
338
  Ec2AmiResource.add_member(:ami_id, Shapes::ShapeRef.new(shape: AmiId, required: true, location_name: "AmiId"))
321
339
  Ec2AmiResource.add_member(:snowball_ami_id, Shapes::ShapeRef.new(shape: String, location_name: "SnowballAmiId"))
322
340
  Ec2AmiResource.struct_class = Types::Ec2AmiResource
@@ -477,6 +495,18 @@ module Aws::Snowball
477
495
  ListLongTermPricingResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
478
496
  ListLongTermPricingResult.struct_class = Types::ListLongTermPricingResult
479
497
 
498
+ ListServiceVersionsRequest.add_member(:service_name, Shapes::ShapeRef.new(shape: ServiceName, required: true, location_name: "ServiceName"))
499
+ ListServiceVersionsRequest.add_member(:dependent_services, Shapes::ShapeRef.new(shape: DependentServiceList, location_name: "DependentServices"))
500
+ ListServiceVersionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListLimit, location_name: "MaxResults"))
501
+ ListServiceVersionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
502
+ ListServiceVersionsRequest.struct_class = Types::ListServiceVersionsRequest
503
+
504
+ ListServiceVersionsResult.add_member(:service_versions, Shapes::ShapeRef.new(shape: ServiceVersionList, required: true, location_name: "ServiceVersions"))
505
+ ListServiceVersionsResult.add_member(:service_name, Shapes::ShapeRef.new(shape: ServiceName, required: true, location_name: "ServiceName"))
506
+ ListServiceVersionsResult.add_member(:dependent_services, Shapes::ShapeRef.new(shape: DependentServiceList, location_name: "DependentServices"))
507
+ ListServiceVersionsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
508
+ ListServiceVersionsResult.struct_class = Types::ListServiceVersionsResult
509
+
480
510
  LongTermPricingAssociatedJobIdList.member = Shapes::ShapeRef.new(shape: JobId)
481
511
 
482
512
  LongTermPricingEntryList.member = Shapes::ShapeRef.new(shape: LongTermPricingListEntry)
@@ -504,6 +534,7 @@ module Aws::Snowball
504
534
 
505
535
  OnDeviceServiceConfiguration.add_member(:nfs_on_device_service, Shapes::ShapeRef.new(shape: NFSOnDeviceServiceConfiguration, location_name: "NFSOnDeviceService"))
506
536
  OnDeviceServiceConfiguration.add_member(:tgw_on_device_service, Shapes::ShapeRef.new(shape: TGWOnDeviceServiceConfiguration, location_name: "TGWOnDeviceService"))
537
+ OnDeviceServiceConfiguration.add_member(:eks_on_device_service, Shapes::ShapeRef.new(shape: EKSOnDeviceServiceConfiguration, location_name: "EKSOnDeviceService"))
507
538
  OnDeviceServiceConfiguration.struct_class = Types::OnDeviceServiceConfiguration
508
539
 
509
540
  ReturnShippingLabelAlreadyExistsException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
@@ -516,6 +547,11 @@ module Aws::Snowball
516
547
 
517
548
  S3ResourceList.member = Shapes::ShapeRef.new(shape: S3Resource)
518
549
 
550
+ ServiceVersion.add_member(:version, Shapes::ShapeRef.new(shape: String, location_name: "Version"))
551
+ ServiceVersion.struct_class = Types::ServiceVersion
552
+
553
+ ServiceVersionList.member = Shapes::ShapeRef.new(shape: ServiceVersion)
554
+
519
555
  Shipment.add_member(:status, Shapes::ShapeRef.new(shape: String, location_name: "Status"))
520
556
  Shipment.add_member(:tracking_number, Shapes::ShapeRef.new(shape: String, location_name: "TrackingNumber"))
521
557
  Shipment.struct_class = Types::Shipment
@@ -855,6 +891,16 @@ module Aws::Snowball
855
891
  )
856
892
  end)
857
893
 
894
+ api.add_operation(:list_service_versions, Seahorse::Model::Operation.new.tap do |o|
895
+ o.name = "ListServiceVersions"
896
+ o.http_method = "POST"
897
+ o.http_request_uri = "/"
898
+ o.input = Shapes::ShapeRef.new(shape: ListServiceVersionsRequest)
899
+ o.output = Shapes::ShapeRef.new(shape: ListServiceVersionsResult)
900
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
901
+ o.errors << Shapes::ShapeRef.new(shape: InvalidResourceException)
902
+ end)
903
+
858
904
  api.add_operation(:update_cluster, Seahorse::Model::Operation.new.tap do |o|
859
905
  o.name = "UpdateCluster"
860
906
  o.http_method = "POST"
@@ -9,103 +9,46 @@
9
9
 
10
10
  module Aws::Snowball
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
+ end
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
21
25
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://snowball-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://snowball-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://snowball.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
+ end
46
+ return Aws::Endpoints::Endpoint.new(url: "https://snowball.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
47
+ end
48
+ end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
50
+ raise ArgumentError, 'No endpoint could be resolved'
24
51
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
52
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
- dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
34
- cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
35
- dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ1ZSwi
36
- ZGVmYXVsdCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJXaGVuIHRydWUsIHVz
37
- ZSB0aGUgZHVhbC1zdGFjayBlbmRwb2ludC4gSWYgdGhlIGNvbmZpZ3VyZWQg
38
- ZW5kcG9pbnQgZG9lcyBub3Qgc3VwcG9ydCBkdWFsLXN0YWNrLCBkaXNwYXRj
39
- aGluZyB0aGUgcmVxdWVzdCBNQVkgcmV0dXJuIGFuIGVycm9yLiIsInR5cGUi
40
- OiJCb29sZWFuIn0sIlVzZUZJUFMiOnsiYnVpbHRJbiI6IkFXUzo6VXNlRklQ
41
- UyIsInJlcXVpcmVkIjp0cnVlLCJkZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRh
42
- dGlvbiI6IldoZW4gdHJ1ZSwgc2VuZCB0aGlzIHJlcXVlc3QgdG8gdGhlIEZJ
43
- UFMtY29tcGxpYW50IHJlZ2l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W9ucyI6W3siZm4iOiJib29s
94
- ZWFuRXF1YWxzIiwiYXJndiI6W3sicmVmIjoiVXNlRHVhbFN0YWNrIn0sdHJ1
95
- ZV19XSwidHlwZSI6InRyZWUiLCJydWxlcyI6W3siY29uZGl0aW9ucyI6W3si
96
- Zm4iOiJib29sZWFuRXF1YWxzIiwiYXJndiI6W3RydWUseyJmbiI6ImdldEF0
97
- dHIiLCJhcmd2IjpbeyJyZWYiOiJQYXJ0aXRpb25SZXN1bHQifSwic3VwcG9y
98
- dHNEdWFsU3RhY2siXX1dfV0sInR5cGUiOiJ0cmVlIiwicnVsZXMiOlt7ImNv
99
- bmRpdGlvbnMiOltdLCJlbmRwb2ludCI6eyJ1cmwiOiJodHRwczovL3Nub3di
100
- YWxsLntSZWdpb259LntQYXJ0aXRpb25SZXN1bHQjZHVhbFN0YWNrRG5zU3Vm
101
- Zml4fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJl
102
- bmRwb2ludCJ9XX0seyJjb25kaXRpb25zIjpbXSwiZXJyb3IiOiJEdWFsU3Rh
103
- Y2sgaXMgZW5hYmxlZCBidXQgdGhpcyBwYXJ0aXRpb24gZG9lcyBub3Qgc3Vw
104
- cG9ydCBEdWFsU3RhY2siLCJ0eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9u
105
- cyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vc25vd2JhbGwue1Jl
106
- Z2lvbn0ue1BhcnRpdGlvblJlc3VsdCNkbnNTdWZmaXh9IiwicHJvcGVydGll
107
- cyI6e30sImhlYWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50In1dfV19
108
-
109
- JSON
110
53
  end
111
54
  end
@@ -305,6 +305,20 @@ module Aws::Snowball
305
305
  end
306
306
  end
307
307
 
308
+ class ListServiceVersions
309
+ def self.build(context)
310
+ unless context.config.regional_endpoint
311
+ endpoint = context.config.endpoint.to_s
312
+ end
313
+ Aws::Snowball::EndpointParameters.new(
314
+ region: context.config.region,
315
+ use_dual_stack: context.config.use_dualstack_endpoint,
316
+ use_fips: context.config.use_fips_endpoint,
317
+ endpoint: endpoint,
318
+ )
319
+ end
320
+ end
321
+
308
322
  class UpdateCluster
309
323
  def self.build(context)
310
324
  unless context.config.regional_endpoint
@@ -98,6 +98,8 @@ module Aws::Snowball
98
98
  Aws::Snowball::Endpoints::ListJobs.build(context)
99
99
  when :list_long_term_pricing
100
100
  Aws::Snowball::Endpoints::ListLongTermPricing.build(context)
101
+ when :list_service_versions
102
+ Aws::Snowball::Endpoints::ListServiceVersions.build(context)
101
103
  when :update_cluster
102
104
  Aws::Snowball::Endpoints::UpdateCluster.build(context)
103
105
  when :update_job