aws-sdk-snowball 1.0.0.rc7 → 1.0.0.rc8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-snowball.rb +1 -1
- data/lib/aws-sdk-snowball/client.rb +421 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56c6b6f2cf29affe9c2d5f21699f878173006d0e
|
4
|
+
data.tar.gz: cebacc6ba8d355a4da92341fe29b68250a64213b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7435a8f1794ec298daa2d381a84983a186af3ead7cbbf16062dba85b8ef319de8fc9bf4afc88a4ee5eb90cf064f1c7c2311c29c55c5027de5e0e927b02647b92
|
7
|
+
data.tar.gz: 890e7f0a6a6dcece8562c53f0de26f78b32aad2823fb6fedd36624289edfb2a7fc5f27abee4d66d4ca1e0d9036f865fe23b429f450e857d172a1d811d4cad8e8
|
data/lib/aws-sdk-snowball.rb
CHANGED
@@ -165,6 +165,15 @@ module Aws::Snowball
|
|
165
165
|
#
|
166
166
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
167
167
|
#
|
168
|
+
#
|
169
|
+
# @example Example: To cancel a cluster job
|
170
|
+
#
|
171
|
+
# # This operation cancels a cluster job. You can only cancel a cluster job while it's in the AwaitingQuorum status.
|
172
|
+
#
|
173
|
+
# resp = client.cancel_cluster({
|
174
|
+
# cluster_id: "CID123e4567-e89b-12d3-a456-426655440000",
|
175
|
+
# })
|
176
|
+
#
|
168
177
|
# @example Request syntax with placeholder values
|
169
178
|
#
|
170
179
|
# resp = client.cancel_cluster({
|
@@ -191,6 +200,15 @@ module Aws::Snowball
|
|
191
200
|
#
|
192
201
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
193
202
|
#
|
203
|
+
#
|
204
|
+
# @example Example: To cancel a job for a Snowball device
|
205
|
+
#
|
206
|
+
# # This operation cancels a job. You can only cancel a job before its JobState value changes to PreparingAppliance.
|
207
|
+
#
|
208
|
+
# resp = client.cancel_job({
|
209
|
+
# job_id: "JID123e4567-e89b-12d3-a456-426655440000",
|
210
|
+
# })
|
211
|
+
#
|
194
212
|
# @example Request syntax with placeholder values
|
195
213
|
#
|
196
214
|
# resp = client.cancel_job({
|
@@ -218,6 +236,29 @@ module Aws::Snowball
|
|
218
236
|
#
|
219
237
|
# * {Types::CreateAddressResult#address_id #address_id} => String
|
220
238
|
#
|
239
|
+
#
|
240
|
+
# @example Example: To create an address for a job
|
241
|
+
#
|
242
|
+
# # This operation creates an address for a job. Addresses are validated at the time of creation. The address you provide must be located within the serviceable area of your region. If the address is invalid or unsupported, then an exception is thrown.
|
243
|
+
#
|
244
|
+
# resp = client.create_address({
|
245
|
+
# address: {
|
246
|
+
# city: "Seattle",
|
247
|
+
# company: "My Company's Name",
|
248
|
+
# country: "USA",
|
249
|
+
# name: "My Name",
|
250
|
+
# phone_number: "425-555-5555",
|
251
|
+
# postal_code: "98101",
|
252
|
+
# state_or_province: "WA",
|
253
|
+
# street_1: "123 Main Street",
|
254
|
+
# },
|
255
|
+
# })
|
256
|
+
#
|
257
|
+
# resp.to_h outputs the following:
|
258
|
+
# {
|
259
|
+
# address_id: "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b",
|
260
|
+
# }
|
261
|
+
#
|
221
262
|
# @example Request syntax with placeholder values
|
222
263
|
#
|
223
264
|
# resp = client.create_address({
|
@@ -325,6 +366,40 @@ module Aws::Snowball
|
|
325
366
|
#
|
326
367
|
# * {Types::CreateClusterResult#cluster_id #cluster_id} => String
|
327
368
|
#
|
369
|
+
#
|
370
|
+
# @example Example: To create a cluster
|
371
|
+
#
|
372
|
+
# # Creates an empty cluster. Each cluster supports five nodes. You use the CreateJob action separately to create the jobs for each of these nodes. The cluster does not ship until these five node jobs have been created.
|
373
|
+
#
|
374
|
+
# resp = client.create_cluster({
|
375
|
+
# address_id: "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b",
|
376
|
+
# description: "MyCluster",
|
377
|
+
# job_type: "LOCAL_USE",
|
378
|
+
# kms_key_arn: "arn:aws:kms:us-east-1:123456789012:key/abcd1234-12ab-34cd-56ef-123456123456",
|
379
|
+
# notification: {
|
380
|
+
# job_states_to_notify: [
|
381
|
+
# ],
|
382
|
+
# notify_all: false,
|
383
|
+
# },
|
384
|
+
# resources: {
|
385
|
+
# s3_resources: [
|
386
|
+
# {
|
387
|
+
# bucket_arn: "arn:aws:s3:::MyBucket",
|
388
|
+
# key_range: {
|
389
|
+
# },
|
390
|
+
# },
|
391
|
+
# ],
|
392
|
+
# },
|
393
|
+
# role_arn: "arn:aws:iam::123456789012:role/snowball-import-S3-role",
|
394
|
+
# shipping_option: "SECOND_DAY",
|
395
|
+
# snowball_type: "EDGE",
|
396
|
+
# })
|
397
|
+
#
|
398
|
+
# resp.to_h outputs the following:
|
399
|
+
# {
|
400
|
+
# cluster_id: "CID123e4567-e89b-12d3-a456-426655440000",
|
401
|
+
# }
|
402
|
+
#
|
328
403
|
# @example Request syntax with placeholder values
|
329
404
|
#
|
330
405
|
# resp = client.create_cluster({
|
@@ -469,6 +544,41 @@ module Aws::Snowball
|
|
469
544
|
#
|
470
545
|
# * {Types::CreateJobResult#job_id #job_id} => String
|
471
546
|
#
|
547
|
+
#
|
548
|
+
# @example Example: To create a job
|
549
|
+
#
|
550
|
+
# # Creates a job to import or export data between Amazon S3 and your on-premises data center. Your AWS account must have the right trust policies and permissions in place to create a job for Snowball. If you're creating a job for a node in a cluster, you only need to provide the clusterId value; the other job attributes are inherited from the cluster.
|
551
|
+
#
|
552
|
+
# resp = client.create_job({
|
553
|
+
# address_id: "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b",
|
554
|
+
# description: "My Job",
|
555
|
+
# job_type: "IMPORT",
|
556
|
+
# kms_key_arn: "arn:aws:kms:us-east-1:123456789012:key/abcd1234-12ab-34cd-56ef-123456123456",
|
557
|
+
# notification: {
|
558
|
+
# job_states_to_notify: [
|
559
|
+
# ],
|
560
|
+
# notify_all: false,
|
561
|
+
# },
|
562
|
+
# resources: {
|
563
|
+
# s3_resources: [
|
564
|
+
# {
|
565
|
+
# bucket_arn: "arn:aws:s3:::MyBucket",
|
566
|
+
# key_range: {
|
567
|
+
# },
|
568
|
+
# },
|
569
|
+
# ],
|
570
|
+
# },
|
571
|
+
# role_arn: "arn:aws:iam::123456789012:role/snowball-import-S3-role",
|
572
|
+
# shipping_option: "SECOND_DAY",
|
573
|
+
# snowball_capacity_preference: "T80",
|
574
|
+
# snowball_type: "STANDARD",
|
575
|
+
# })
|
576
|
+
#
|
577
|
+
# resp.to_h outputs the following:
|
578
|
+
# {
|
579
|
+
# job_id: "JID123e4567-e89b-12d3-a456-426655440000",
|
580
|
+
# }
|
581
|
+
#
|
472
582
|
# @example Request syntax with placeholder values
|
473
583
|
#
|
474
584
|
# resp = client.create_job({
|
@@ -533,6 +643,30 @@ module Aws::Snowball
|
|
533
643
|
#
|
534
644
|
# * {Types::DescribeAddressResult#address #address} => Types::Address
|
535
645
|
#
|
646
|
+
#
|
647
|
+
# @example Example: To describe an address for a job
|
648
|
+
#
|
649
|
+
# # This operation describes an address for a job.
|
650
|
+
#
|
651
|
+
# resp = client.describe_address({
|
652
|
+
# address_id: "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b",
|
653
|
+
# })
|
654
|
+
#
|
655
|
+
# resp.to_h outputs the following:
|
656
|
+
# {
|
657
|
+
# address: {
|
658
|
+
# address_id: "ADID5643ec50-3eec-4eb3-9be6-9374c10eb51b",
|
659
|
+
# city: "Seattle",
|
660
|
+
# company: "My Company",
|
661
|
+
# country: "US",
|
662
|
+
# name: "My Name",
|
663
|
+
# phone_number: "425-555-5555",
|
664
|
+
# postal_code: "98101",
|
665
|
+
# state_or_province: "WA",
|
666
|
+
# street_1: "123 Main Street",
|
667
|
+
# },
|
668
|
+
# }
|
669
|
+
#
|
536
670
|
# @example Request syntax with placeholder values
|
537
671
|
#
|
538
672
|
# resp = client.describe_address({
|
@@ -583,6 +717,31 @@ module Aws::Snowball
|
|
583
717
|
# * {Types::DescribeAddressesResult#addresses #addresses} => Array<Types::Address>
|
584
718
|
# * {Types::DescribeAddressesResult#next_token #next_token} => String
|
585
719
|
#
|
720
|
+
#
|
721
|
+
# @example Example: To describe all the addresses you've created for AWS Snowball
|
722
|
+
#
|
723
|
+
# # This operation describes all the addresses that you've created for AWS Snowball. Calling this API in one of the US regions will return addresses from the list of all addresses associated with this account in all US regions.
|
724
|
+
#
|
725
|
+
# resp = client.describe_addresses({
|
726
|
+
# })
|
727
|
+
#
|
728
|
+
# resp.to_h outputs the following:
|
729
|
+
# {
|
730
|
+
# addresses: [
|
731
|
+
# {
|
732
|
+
# address_id: "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b",
|
733
|
+
# city: "Seattle",
|
734
|
+
# company: "My Company",
|
735
|
+
# country: "US",
|
736
|
+
# name: "My Name",
|
737
|
+
# phone_number: "425-555-5555",
|
738
|
+
# postal_code: "98101",
|
739
|
+
# state_or_province: "WA",
|
740
|
+
# street_1: "123 Main Street",
|
741
|
+
# },
|
742
|
+
# ],
|
743
|
+
# }
|
744
|
+
#
|
586
745
|
# @example Request syntax with placeholder values
|
587
746
|
#
|
588
747
|
# resp = client.describe_addresses({
|
@@ -628,6 +787,44 @@ module Aws::Snowball
|
|
628
787
|
#
|
629
788
|
# * {Types::DescribeClusterResult#cluster_metadata #cluster_metadata} => Types::ClusterMetadata
|
630
789
|
#
|
790
|
+
#
|
791
|
+
# @example Example: To describe a cluster
|
792
|
+
#
|
793
|
+
# # Returns information about a specific cluster including shipping information, cluster status, and other important metadata.
|
794
|
+
#
|
795
|
+
# resp = client.describe_cluster({
|
796
|
+
# cluster_id: "CID123e4567-e89b-12d3-a456-426655440000",
|
797
|
+
# })
|
798
|
+
#
|
799
|
+
# resp.to_h outputs the following:
|
800
|
+
# {
|
801
|
+
# cluster_metadata: {
|
802
|
+
# address_id: "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b",
|
803
|
+
# cluster_id: "CID123e4567-e89b-12d3-a456-426655440000",
|
804
|
+
# cluster_state: "Pending",
|
805
|
+
# creation_date: Time.parse("1480475517.0"),
|
806
|
+
# description: "MyCluster",
|
807
|
+
# job_type: "LOCAL_USE",
|
808
|
+
# kms_key_arn: "arn:aws:kms:us-east-1:123456789012:key/abcd1234-12ab-34cd-56ef-123456123456",
|
809
|
+
# notification: {
|
810
|
+
# job_states_to_notify: [
|
811
|
+
# ],
|
812
|
+
# notify_all: false,
|
813
|
+
# },
|
814
|
+
# resources: {
|
815
|
+
# s3_resources: [
|
816
|
+
# {
|
817
|
+
# bucket_arn: "arn:aws:s3:::MyBucket",
|
818
|
+
# key_range: {
|
819
|
+
# },
|
820
|
+
# },
|
821
|
+
# ],
|
822
|
+
# },
|
823
|
+
# role_arn: "arn:aws:iam::123456789012:role/snowball-import-S3-role",
|
824
|
+
# shipping_option: "SECOND_DAY",
|
825
|
+
# },
|
826
|
+
# }
|
827
|
+
#
|
631
828
|
# @example Request syntax with placeholder values
|
632
829
|
#
|
633
830
|
# resp = client.describe_cluster({
|
@@ -681,6 +878,48 @@ module Aws::Snowball
|
|
681
878
|
# * {Types::DescribeJobResult#job_metadata #job_metadata} => Types::JobMetadata
|
682
879
|
# * {Types::DescribeJobResult#sub_job_metadata #sub_job_metadata} => Array<Types::JobMetadata>
|
683
880
|
#
|
881
|
+
#
|
882
|
+
# @example Example: To describe a job you've created for AWS Snowball
|
883
|
+
#
|
884
|
+
# # This operation describes a job you've created for AWS Snowball.
|
885
|
+
#
|
886
|
+
# resp = client.describe_job({
|
887
|
+
# job_id: "JID123e4567-e89b-12d3-a456-426655440000",
|
888
|
+
# })
|
889
|
+
#
|
890
|
+
# resp.to_h outputs the following:
|
891
|
+
# {
|
892
|
+
# job_metadata: {
|
893
|
+
# address_id: "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b",
|
894
|
+
# creation_date: Time.parse("1475626164"),
|
895
|
+
# description: "My Job",
|
896
|
+
# job_id: "JID123e4567-e89b-12d3-a456-426655440000",
|
897
|
+
# job_state: "New",
|
898
|
+
# job_type: "IMPORT",
|
899
|
+
# kms_key_arn: "arn:aws:kms:us-east-1:123456789012:key/abcd1234-12ab-34cd-56ef-123456123456",
|
900
|
+
# notification: {
|
901
|
+
# job_states_to_notify: [
|
902
|
+
# ],
|
903
|
+
# notify_all: false,
|
904
|
+
# },
|
905
|
+
# resources: {
|
906
|
+
# s3_resources: [
|
907
|
+
# {
|
908
|
+
# bucket_arn: "arn:aws:s3:::MyBucket",
|
909
|
+
# key_range: {
|
910
|
+
# },
|
911
|
+
# },
|
912
|
+
# ],
|
913
|
+
# },
|
914
|
+
# role_arn: "arn:aws:iam::123456789012:role/snowball-import-S3-role",
|
915
|
+
# shipping_details: {
|
916
|
+
# shipping_option: "SECOND_DAY",
|
917
|
+
# },
|
918
|
+
# snowball_capacity_preference: "T80",
|
919
|
+
# snowball_type: "STANDARD",
|
920
|
+
# },
|
921
|
+
# }
|
922
|
+
#
|
684
923
|
# @example Request syntax with placeholder values
|
685
924
|
#
|
686
925
|
# resp = client.describe_job({
|
@@ -800,6 +1039,26 @@ module Aws::Snowball
|
|
800
1039
|
#
|
801
1040
|
# * {Types::GetJobManifestResult#manifest_uri #manifest_uri} => String
|
802
1041
|
#
|
1042
|
+
#
|
1043
|
+
# @example Example: To get the manifest for a job you've created for AWS Snowball
|
1044
|
+
#
|
1045
|
+
# # Returns a link to an Amazon S3 presigned URL for the manifest file associated with the specified JobId value. You can access the manifest file for up to 60 minutes after this request has been made. To access the manifest file after 60 minutes have passed, you'll have to make another call to the GetJobManifest action.
|
1046
|
+
|
1047
|
+
The manifest is an encrypted file that you can download after your job enters the WithCustomer status. The manifest is decrypted by using the UnlockCode code value, when you pass both values to the Snowball through the Snowball client when the client is started for the first time.
|
1048
|
+
|
1049
|
+
As a best practice, we recommend that you don't save a copy of an UnlockCode value in the same location as the manifest file for that job. Saving these separately helps prevent unauthorized parties from gaining access to the Snowball associated with that job.
|
1050
|
+
|
1051
|
+
The credentials of a given job, including its manifest file and unlock code, expire 90 days after the job is created.
|
1052
|
+
#
|
1053
|
+
# resp = client.get_job_manifest({
|
1054
|
+
# job_id: "JID123e4567-e89b-12d3-a456-426655440000",
|
1055
|
+
# })
|
1056
|
+
#
|
1057
|
+
# resp.to_h outputs the following:
|
1058
|
+
# {
|
1059
|
+
# manifest_uri: "https://awsie-frosty-manifests-prod.s3.amazonaws.com/JID123e4567-e89b-12d3-a456-426655440000_manifest.bin?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20161224T005115Z&X-Amz-SignedHeaders=...",
|
1060
|
+
# }
|
1061
|
+
#
|
803
1062
|
# @example Request syntax with placeholder values
|
804
1063
|
#
|
805
1064
|
# resp = client.get_job_manifest({
|
@@ -841,6 +1100,24 @@ module Aws::Snowball
|
|
841
1100
|
#
|
842
1101
|
# * {Types::GetJobUnlockCodeResult#unlock_code #unlock_code} => String
|
843
1102
|
#
|
1103
|
+
#
|
1104
|
+
# @example Example: To get the unlock code for a job you've created for AWS Snowball
|
1105
|
+
#
|
1106
|
+
# # Returns the UnlockCode code value for the specified job. A particular UnlockCode value can be accessed for up to 90 days after the associated job has been created.
|
1107
|
+
|
1108
|
+
The UnlockCode value is a 29-character code with 25 alphanumeric characters and 4 hyphens. This code is used to decrypt the manifest file when it is passed along with the manifest to the Snowball through the Snowball client when the client is started for the first time.
|
1109
|
+
|
1110
|
+
As a best practice, we recommend that you don't save a copy of the UnlockCode in the same location as the manifest file for that job. Saving these separately helps prevent unauthorized parties from gaining access to the Snowball associated with that job.
|
1111
|
+
#
|
1112
|
+
# resp = client.get_job_unlock_code({
|
1113
|
+
# job_id: "JID123e4567-e89b-12d3-a456-426655440000",
|
1114
|
+
# })
|
1115
|
+
#
|
1116
|
+
# resp.to_h outputs the following:
|
1117
|
+
# {
|
1118
|
+
# unlock_code: "12345-abcde-56789-fghij-01234",
|
1119
|
+
# }
|
1120
|
+
#
|
844
1121
|
# @example Request syntax with placeholder values
|
845
1122
|
#
|
846
1123
|
# resp = client.get_job_unlock_code({
|
@@ -872,6 +1149,22 @@ module Aws::Snowball
|
|
872
1149
|
# * {Types::GetSnowballUsageResult#snowball_limit #snowball_limit} => Integer
|
873
1150
|
# * {Types::GetSnowballUsageResult#snowballs_in_use #snowballs_in_use} => Integer
|
874
1151
|
#
|
1152
|
+
#
|
1153
|
+
# @example Example: To see your Snowball service limit and the number of Snowballs you have in use
|
1154
|
+
#
|
1155
|
+
# # Returns information about the Snowball service limit for your account, and also the number of Snowballs your account has in use.
|
1156
|
+
|
1157
|
+
The default service limit for the number of Snowballs that you can have at one time is 1. If you want to increase your service limit, contact AWS Support.
|
1158
|
+
#
|
1159
|
+
# resp = client.get_snowball_usage({
|
1160
|
+
# })
|
1161
|
+
#
|
1162
|
+
# resp.to_h outputs the following:
|
1163
|
+
# {
|
1164
|
+
# snowball_limit: 1,
|
1165
|
+
# snowballs_in_use: 0,
|
1166
|
+
# }
|
1167
|
+
#
|
875
1168
|
# @example Response structure
|
876
1169
|
#
|
877
1170
|
# resp.snowball_limit #=> Integer
|
@@ -907,6 +1200,66 @@ module Aws::Snowball
|
|
907
1200
|
# * {Types::ListClusterJobsResult#job_list_entries #job_list_entries} => Array<Types::JobListEntry>
|
908
1201
|
# * {Types::ListClusterJobsResult#next_token #next_token} => String
|
909
1202
|
#
|
1203
|
+
#
|
1204
|
+
# @example Example: To get a list of jobs in a cluster that you've created for AWS Snowball
|
1205
|
+
#
|
1206
|
+
# # Returns an array of JobListEntry objects of the specified length. Each JobListEntry object is for a job in the specified cluster and contains a job's state, a job's ID, and other information.
|
1207
|
+
#
|
1208
|
+
# resp = client.list_cluster_jobs({
|
1209
|
+
# cluster_id: "CID123e4567-e89b-12d3-a456-426655440000",
|
1210
|
+
# })
|
1211
|
+
#
|
1212
|
+
# resp.to_h outputs the following:
|
1213
|
+
# {
|
1214
|
+
# job_list_entries: [
|
1215
|
+
# {
|
1216
|
+
# creation_date: Time.parse("1480475524.0"),
|
1217
|
+
# description: "MyClustrer-node-001",
|
1218
|
+
# is_master: false,
|
1219
|
+
# job_id: "JID123e4567-e89b-12d3-a456-426655440000",
|
1220
|
+
# job_state: "New",
|
1221
|
+
# job_type: "LOCAL_USE",
|
1222
|
+
# snowball_type: "EDGE",
|
1223
|
+
# },
|
1224
|
+
# {
|
1225
|
+
# creation_date: Time.parse("1480475525.0"),
|
1226
|
+
# description: "MyClustrer-node-002",
|
1227
|
+
# is_master: false,
|
1228
|
+
# job_id: "JID123e4567-e89b-12d3-a456-426655440001",
|
1229
|
+
# job_state: "New",
|
1230
|
+
# job_type: "LOCAL_USE",
|
1231
|
+
# snowball_type: "EDGE",
|
1232
|
+
# },
|
1233
|
+
# {
|
1234
|
+
# creation_date: Time.parse("1480475525.0"),
|
1235
|
+
# description: "MyClustrer-node-003",
|
1236
|
+
# is_master: false,
|
1237
|
+
# job_id: "JID123e4567-e89b-12d3-a456-426655440002",
|
1238
|
+
# job_state: "New",
|
1239
|
+
# job_type: "LOCAL_USE",
|
1240
|
+
# snowball_type: "EDGE",
|
1241
|
+
# },
|
1242
|
+
# {
|
1243
|
+
# creation_date: Time.parse("1480475525.0"),
|
1244
|
+
# description: "MyClustrer-node-004",
|
1245
|
+
# is_master: false,
|
1246
|
+
# job_id: "JID123e4567-e89b-12d3-a456-426655440003",
|
1247
|
+
# job_state: "New",
|
1248
|
+
# job_type: "LOCAL_USE",
|
1249
|
+
# snowball_type: "EDGE",
|
1250
|
+
# },
|
1251
|
+
# {
|
1252
|
+
# creation_date: Time.parse("1480475525.0"),
|
1253
|
+
# description: "MyClustrer-node-005",
|
1254
|
+
# is_master: false,
|
1255
|
+
# job_id: "JID123e4567-e89b-12d3-a456-426655440004",
|
1256
|
+
# job_state: "New",
|
1257
|
+
# job_type: "LOCAL_USE",
|
1258
|
+
# snowball_type: "EDGE",
|
1259
|
+
# },
|
1260
|
+
# ],
|
1261
|
+
# }
|
1262
|
+
#
|
910
1263
|
# @example Request syntax with placeholder values
|
911
1264
|
#
|
912
1265
|
# resp = client.list_cluster_jobs({
|
@@ -953,6 +1306,26 @@ module Aws::Snowball
|
|
953
1306
|
# * {Types::ListClustersResult#cluster_list_entries #cluster_list_entries} => Array<Types::ClusterListEntry>
|
954
1307
|
# * {Types::ListClustersResult#next_token #next_token} => String
|
955
1308
|
#
|
1309
|
+
#
|
1310
|
+
# @example Example: To get a list of clusters that you've created for AWS Snowball
|
1311
|
+
#
|
1312
|
+
# # Returns an array of ClusterListEntry objects of the specified length. Each ClusterListEntry object contains a cluster's state, a cluster's ID, and other important status information.
|
1313
|
+
#
|
1314
|
+
# resp = client.list_clusters({
|
1315
|
+
# })
|
1316
|
+
#
|
1317
|
+
# resp.to_h outputs the following:
|
1318
|
+
# {
|
1319
|
+
# cluster_list_entries: [
|
1320
|
+
# {
|
1321
|
+
# cluster_id: "CID123e4567-e89b-12d3-a456-426655440000",
|
1322
|
+
# cluster_state: "Pending",
|
1323
|
+
# creation_date: Time.parse("1480475517.0"),
|
1324
|
+
# description: "MyCluster",
|
1325
|
+
# },
|
1326
|
+
# ],
|
1327
|
+
# }
|
1328
|
+
#
|
956
1329
|
# @example Request syntax with placeholder values
|
957
1330
|
#
|
958
1331
|
# resp = client.list_clusters({
|
@@ -998,6 +1371,29 @@ module Aws::Snowball
|
|
998
1371
|
# * {Types::ListJobsResult#job_list_entries #job_list_entries} => Array<Types::JobListEntry>
|
999
1372
|
# * {Types::ListJobsResult#next_token #next_token} => String
|
1000
1373
|
#
|
1374
|
+
#
|
1375
|
+
# @example Example: To get a list of jobs that you've created for AWS Snowball
|
1376
|
+
#
|
1377
|
+
# # Returns an array of JobListEntry objects of the specified length. Each JobListEntry object contains a job's state, a job's ID, and a value that indicates whether the job is a job part, in the case of export jobs. Calling this API action in one of the US regions will return jobs from the list of all jobs associated with this account in all US regions.
|
1378
|
+
#
|
1379
|
+
# resp = client.list_jobs({
|
1380
|
+
# })
|
1381
|
+
#
|
1382
|
+
# resp.to_h outputs the following:
|
1383
|
+
# {
|
1384
|
+
# job_list_entries: [
|
1385
|
+
# {
|
1386
|
+
# creation_date: Time.parse("1460678186.0"),
|
1387
|
+
# description: "MyJob",
|
1388
|
+
# is_master: false,
|
1389
|
+
# job_id: "JID123e4567-e89b-12d3-a456-426655440000",
|
1390
|
+
# job_state: "New",
|
1391
|
+
# job_type: "IMPORT",
|
1392
|
+
# snowball_type: "STANDARD",
|
1393
|
+
# },
|
1394
|
+
# ],
|
1395
|
+
# }
|
1396
|
+
#
|
1001
1397
|
# @example Request syntax with placeholder values
|
1002
1398
|
#
|
1003
1399
|
# resp = client.list_jobs({
|
@@ -1068,6 +1464,17 @@ module Aws::Snowball
|
|
1068
1464
|
#
|
1069
1465
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1070
1466
|
#
|
1467
|
+
#
|
1468
|
+
# @example Example: To update a cluster
|
1469
|
+
#
|
1470
|
+
# # This action allows you to update certain parameters for a cluster. Once the cluster changes to a different state, usually within 60 minutes of it being created, this action is no longer available.
|
1471
|
+
#
|
1472
|
+
# resp = client.update_cluster({
|
1473
|
+
# address_id: "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b",
|
1474
|
+
# cluster_id: "CID123e4567-e89b-12d3-a456-426655440000",
|
1475
|
+
# description: "Updated the address to send this to image processing - RJ",
|
1476
|
+
# })
|
1477
|
+
#
|
1071
1478
|
# @example Request syntax with placeholder values
|
1072
1479
|
#
|
1073
1480
|
# resp = client.update_cluster({
|
@@ -1160,6 +1567,19 @@ module Aws::Snowball
|
|
1160
1567
|
#
|
1161
1568
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1162
1569
|
#
|
1570
|
+
#
|
1571
|
+
# @example Example: To update a job
|
1572
|
+
#
|
1573
|
+
# # This action allows you to update certain parameters for a job. Once the job changes to a different job state, usually within 60 minutes of the job being created, this action is no longer available.
|
1574
|
+
#
|
1575
|
+
# resp = client.update_job({
|
1576
|
+
# address_id: "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b",
|
1577
|
+
# description: "Upgraded to Edge, shipped to Finance Dept, and requested faster shipping speed - TS.",
|
1578
|
+
# job_id: "JID123e4567-e89b-12d3-a456-426655440000",
|
1579
|
+
# shipping_option: "NEXT_DAY",
|
1580
|
+
# snowball_capacity_preference: "T100",
|
1581
|
+
# })
|
1582
|
+
#
|
1163
1583
|
# @example Request syntax with placeholder values
|
1164
1584
|
#
|
1165
1585
|
# resp = client.update_job({
|
@@ -1220,7 +1640,7 @@ module Aws::Snowball
|
|
1220
1640
|
params: params,
|
1221
1641
|
config: config)
|
1222
1642
|
context[:gem_name] = 'aws-sdk-snowball'
|
1223
|
-
context[:gem_version] = '1.0.0.
|
1643
|
+
context[:gem_version] = '1.0.0.rc8'
|
1224
1644
|
Seahorse::Client::Request.new(handlers, context)
|
1225
1645
|
end
|
1226
1646
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-snowball
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc8
|
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: 2017-
|
11
|
+
date: 2017-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.0.0.
|
19
|
+
version: 3.0.0.rc14
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.0.0.
|
26
|
+
version: 3.0.0.rc14
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: aws-sigv4
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|