forked from aws-amplify/aws-sdk-ios
-
Notifications
You must be signed in to change notification settings - Fork 1
/
AWSS3Service.h
2039 lines (1435 loc) · 106 KB
/
AWSS3Service.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//
// Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License").
// You may not use this file except in compliance with the License.
// A copy of the License is located at
//
// http://aws.amazon.com/apache2.0
//
// or in the "license" file accompanying this file. This file is distributed
// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
// express or implied. See the License for the specific language governing
// permissions and limitations under the License.
//
#import <Foundation/Foundation.h>
#import <AWSCore/AWSCore.h>
#import "AWSS3Model.h"
#import "AWSS3Resources.h"
NS_ASSUME_NONNULL_BEGIN
//! SDK version for AWSS3
FOUNDATION_EXPORT NSString *const AWSS3SDKVersion;
/**
*/
@interface AWSS3 : AWSService
/**
The service configuration used to instantiate this service client.
@warning Once the client is instantiated, do not modify the configuration object. It may cause unspecified behaviors.
*/
@property (nonatomic, strong, readonly) AWSServiceConfiguration *configuration;
/**
Returns the singleton service client. If the singleton object does not exist, the SDK instantiates the default service client with `defaultServiceConfiguration` from `[AWSServiceManager defaultServiceManager]`. The reference to this object is maintained by the SDK, and you do not need to retain it manually.
For example, set the default service configuration in `- application:didFinishLaunchingWithOptions:`
*Swift*
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
let configuration = AWSServiceConfiguration(region: .USEast1, credentialsProvider: credentialProvider)
AWSServiceManager.default().defaultServiceConfiguration = configuration
return true
}
*Objective-C*
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
identityPoolId:@"YourIdentityPoolId"];
AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1
credentialsProvider:credentialsProvider];
[AWSServiceManager defaultServiceManager].defaultServiceConfiguration = configuration;
return YES;
}
Then call the following to get the default service client:
*Swift*
let S3 = AWSS3.default()
*Objective-C*
AWSS3 *S3 = [AWSS3 defaultS3];
@return The default service client.
*/
+ (instancetype)defaultS3;
/**
Creates a service client with the given service configuration and registers it for the key.
For example, set the default service configuration in `- application:didFinishLaunchingWithOptions:`
*Swift*
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider)
AWSS3.register(with: configuration!, forKey: "USWest2S3")
return true
}
*Objective-C*
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
identityPoolId:@"YourIdentityPoolId"];
AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2
credentialsProvider:credentialsProvider];
[AWSS3 registerS3WithConfiguration:configuration forKey:@"USWest2S3"];
return YES;
}
Then call the following to get the service client:
*Swift*
let S3 = AWSS3(forKey: "USWest2S3")
*Objective-C*
AWSS3 *S3 = [AWSS3 S3ForKey:@"USWest2S3"];
@warning After calling this method, do not modify the configuration object. It may cause unspecified behaviors.
@param configuration A service configuration object.
@param key A string to identify the service client.
*/
+ (void)registerS3WithConfiguration:(AWSServiceConfiguration *)configuration forKey:(NSString *)key;
/**
Retrieves the service client associated with the key. You need to call `+ registerS3WithConfiguration:forKey:` before invoking this method.
For example, set the default service configuration in `- application:didFinishLaunchingWithOptions:`
*Swift*
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider)
AWSS3.register(with: configuration!, forKey: "USWest2S3")
return true
}
*Objective-C*
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
identityPoolId:@"YourIdentityPoolId"];
AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2
credentialsProvider:credentialsProvider];
[AWSS3 registerS3WithConfiguration:configuration forKey:@"USWest2S3"];
return YES;
}
Then call the following to get the service client:
*Swift*
let S3 = AWSS3(forKey: "USWest2S3")
*Objective-C*
AWSS3 *S3 = [AWSS3 S3ForKey:@"USWest2S3"];
@param key A string to identify the service client.
@return An instance of the service client.
*/
+ (instancetype)S3ForKey:(NSString *)key;
/**
Removes the service client associated with the key and release it.
@warning Before calling this method, make sure no method is running on this client.
@param key A string to identify the service client.
*/
+ (void)removeS3ForKey:(NSString *)key;
/**
<p>Aborts a multipart upload.</p><p>To verify that all parts have been removed, so you don't get charged for the part storage, you should call the List Parts operation and ensure the parts list is empty.</p>
@param request A container for the necessary parameters to execute the AbortMultipartUpload service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSS3AbortMultipartUploadOutput`. On failed execution, `task.error` may contain an `NSError` with `AWSS3ErrorDomain` domain and the following error code: `AWSS3ErrorNoSuchUpload`.
@see AWSS3AbortMultipartUploadRequest
@see AWSS3AbortMultipartUploadOutput
*/
- (AWSTask<AWSS3AbortMultipartUploadOutput *> *)abortMultipartUpload:(AWSS3AbortMultipartUploadRequest *)request;
/**
<p>Aborts a multipart upload.</p><p>To verify that all parts have been removed, so you don't get charged for the part storage, you should call the List Parts operation and ensure the parts list is empty.</p>
@param request A container for the necessary parameters to execute the AbortMultipartUpload service method.
@param completionHandler The completion handler to call when the load request is complete.
`response` - A response object, or `nil` if the request failed.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSS3ErrorDomain` domain and the following error code: `AWSS3ErrorNoSuchUpload`.
@see AWSS3AbortMultipartUploadRequest
@see AWSS3AbortMultipartUploadOutput
*/
- (void)abortMultipartUpload:(AWSS3AbortMultipartUploadRequest *)request completionHandler:(void (^ _Nullable)(AWSS3AbortMultipartUploadOutput * _Nullable response, NSError * _Nullable error))completionHandler;
/**
<p>Completes a multipart upload by assembling previously uploaded parts.</p>
@param request A container for the necessary parameters to execute the CompleteMultipartUpload service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSS3CompleteMultipartUploadOutput`.
@see AWSS3CompleteMultipartUploadRequest
@see AWSS3CompleteMultipartUploadOutput
*/
- (AWSTask<AWSS3CompleteMultipartUploadOutput *> *)completeMultipartUpload:(AWSS3CompleteMultipartUploadRequest *)request;
/**
<p>Completes a multipart upload by assembling previously uploaded parts.</p>
@param request A container for the necessary parameters to execute the CompleteMultipartUpload service method.
@param completionHandler The completion handler to call when the load request is complete.
`response` - A response object, or `nil` if the request failed.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3CompleteMultipartUploadRequest
@see AWSS3CompleteMultipartUploadOutput
*/
- (void)completeMultipartUpload:(AWSS3CompleteMultipartUploadRequest *)request completionHandler:(void (^ _Nullable)(AWSS3CompleteMultipartUploadOutput * _Nullable response, NSError * _Nullable error))completionHandler;
/**
<p>Creates a copy of an object that is already stored in Amazon S3.</p>
@param request A container for the necessary parameters to execute the CopyObject service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSS3ReplicateObjectOutput`. On failed execution, `task.error` may contain an `NSError` with `AWSS3ErrorDomain` domain and the following error code: `AWSS3ErrorObjectNotInActiveTier`.
@see AWSS3ReplicateObjectRequest
@see AWSS3ReplicateObjectOutput
*/
- (AWSTask<AWSS3ReplicateObjectOutput *> *)replicateObject:(AWSS3ReplicateObjectRequest *)request;
/**
<p>Creates a copy of an object that is already stored in Amazon S3.</p>
@param request A container for the necessary parameters to execute the CopyObject service method.
@param completionHandler The completion handler to call when the load request is complete.
`response` - A response object, or `nil` if the request failed.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSS3ErrorDomain` domain and the following error code: `AWSS3ErrorObjectNotInActiveTier`.
@see AWSS3ReplicateObjectRequest
@see AWSS3ReplicateObjectOutput
*/
- (void)replicateObject:(AWSS3ReplicateObjectRequest *)request completionHandler:(void (^ _Nullable)(AWSS3ReplicateObjectOutput * _Nullable response, NSError * _Nullable error))completionHandler;
/**
<p>Creates a new bucket.</p>
@param request A container for the necessary parameters to execute the CreateBucket service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSS3CreateBucketOutput`. On failed execution, `task.error` may contain an `NSError` with `AWSS3ErrorDomain` domain and the following error code: `AWSS3ErrorBucketAlreadyExists`, `AWSS3ErrorBucketAlreadyOwnedByYou`.
@see AWSS3CreateBucketRequest
@see AWSS3CreateBucketOutput
*/
- (AWSTask<AWSS3CreateBucketOutput *> *)createBucket:(AWSS3CreateBucketRequest *)request;
/**
<p>Creates a new bucket.</p>
@param request A container for the necessary parameters to execute the CreateBucket service method.
@param completionHandler The completion handler to call when the load request is complete.
`response` - A response object, or `nil` if the request failed.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSS3ErrorDomain` domain and the following error code: `AWSS3ErrorBucketAlreadyExists`, `AWSS3ErrorBucketAlreadyOwnedByYou`.
@see AWSS3CreateBucketRequest
@see AWSS3CreateBucketOutput
*/
- (void)createBucket:(AWSS3CreateBucketRequest *)request completionHandler:(void (^ _Nullable)(AWSS3CreateBucketOutput * _Nullable response, NSError * _Nullable error))completionHandler;
/**
<p>Initiates a multipart upload and returns an upload ID.</p><p><b>Note:</b> After you initiate multipart upload and upload one or more parts, you must either complete or abort multipart upload in order to stop getting charged for storage of the uploaded parts. Only after you either complete or abort multipart upload, Amazon S3 frees up the parts storage and stops charging you for the parts storage.</p>
@param request A container for the necessary parameters to execute the CreateMultipartUpload service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSS3CreateMultipartUploadOutput`.
@see AWSS3CreateMultipartUploadRequest
@see AWSS3CreateMultipartUploadOutput
*/
- (AWSTask<AWSS3CreateMultipartUploadOutput *> *)createMultipartUpload:(AWSS3CreateMultipartUploadRequest *)request;
/**
<p>Initiates a multipart upload and returns an upload ID.</p><p><b>Note:</b> After you initiate multipart upload and upload one or more parts, you must either complete or abort multipart upload in order to stop getting charged for storage of the uploaded parts. Only after you either complete or abort multipart upload, Amazon S3 frees up the parts storage and stops charging you for the parts storage.</p>
@param request A container for the necessary parameters to execute the CreateMultipartUpload service method.
@param completionHandler The completion handler to call when the load request is complete.
`response` - A response object, or `nil` if the request failed.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3CreateMultipartUploadRequest
@see AWSS3CreateMultipartUploadOutput
*/
- (void)createMultipartUpload:(AWSS3CreateMultipartUploadRequest *)request completionHandler:(void (^ _Nullable)(AWSS3CreateMultipartUploadOutput * _Nullable response, NSError * _Nullable error))completionHandler;
/**
<p>Deletes the bucket. All objects (including all object versions and Delete Markers) in the bucket must be deleted before the bucket itself can be deleted.</p>
@param request A container for the necessary parameters to execute the DeleteBucket service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`.
@see AWSS3DeleteBucketRequest
*/
- (AWSTask *)deleteBucket:(AWSS3DeleteBucketRequest *)request;
/**
<p>Deletes the bucket. All objects (including all object versions and Delete Markers) in the bucket must be deleted before the bucket itself can be deleted.</p>
@param request A container for the necessary parameters to execute the DeleteBucket service method.
@param completionHandler The completion handler to call when the load request is complete.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3DeleteBucketRequest
*/
- (void)deleteBucket:(AWSS3DeleteBucketRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler;
/**
<p>Deletes an analytics configuration for the bucket (specified by the analytics configuration ID).</p>
@param request A container for the necessary parameters to execute the DeleteBucketAnalyticsConfiguration service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`.
@see AWSS3DeleteBucketAnalyticsConfigurationRequest
*/
- (AWSTask *)deleteBucketAnalyticsConfiguration:(AWSS3DeleteBucketAnalyticsConfigurationRequest *)request;
/**
<p>Deletes an analytics configuration for the bucket (specified by the analytics configuration ID).</p>
@param request A container for the necessary parameters to execute the DeleteBucketAnalyticsConfiguration service method.
@param completionHandler The completion handler to call when the load request is complete.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3DeleteBucketAnalyticsConfigurationRequest
*/
- (void)deleteBucketAnalyticsConfiguration:(AWSS3DeleteBucketAnalyticsConfigurationRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler;
/**
<p>Deletes the cors configuration information set for the bucket.</p>
@param request A container for the necessary parameters to execute the DeleteBucketCors service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`.
@see AWSS3DeleteBucketCorsRequest
*/
- (AWSTask *)deleteBucketCors:(AWSS3DeleteBucketCorsRequest *)request;
/**
<p>Deletes the cors configuration information set for the bucket.</p>
@param request A container for the necessary parameters to execute the DeleteBucketCors service method.
@param completionHandler The completion handler to call when the load request is complete.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3DeleteBucketCorsRequest
*/
- (void)deleteBucketCors:(AWSS3DeleteBucketCorsRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler;
/**
<p>Deletes the server-side encryption configuration from the bucket.</p>
@param request A container for the necessary parameters to execute the DeleteBucketEncryption service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`.
@see AWSS3DeleteBucketEncryptionRequest
*/
- (AWSTask *)deleteBucketEncryption:(AWSS3DeleteBucketEncryptionRequest *)request;
/**
<p>Deletes the server-side encryption configuration from the bucket.</p>
@param request A container for the necessary parameters to execute the DeleteBucketEncryption service method.
@param completionHandler The completion handler to call when the load request is complete.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3DeleteBucketEncryptionRequest
*/
- (void)deleteBucketEncryption:(AWSS3DeleteBucketEncryptionRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler;
/**
<p>Deletes an inventory configuration (identified by the inventory ID) from the bucket.</p>
@param request A container for the necessary parameters to execute the DeleteBucketInventoryConfiguration service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`.
@see AWSS3DeleteBucketInventoryConfigurationRequest
*/
- (AWSTask *)deleteBucketInventoryConfiguration:(AWSS3DeleteBucketInventoryConfigurationRequest *)request;
/**
<p>Deletes an inventory configuration (identified by the inventory ID) from the bucket.</p>
@param request A container for the necessary parameters to execute the DeleteBucketInventoryConfiguration service method.
@param completionHandler The completion handler to call when the load request is complete.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3DeleteBucketInventoryConfigurationRequest
*/
- (void)deleteBucketInventoryConfiguration:(AWSS3DeleteBucketInventoryConfigurationRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler;
/**
<p>Deletes the lifecycle configuration from the bucket.</p>
@param request A container for the necessary parameters to execute the DeleteBucketLifecycle service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`.
@see AWSS3DeleteBucketLifecycleRequest
*/
- (AWSTask *)deleteBucketLifecycle:(AWSS3DeleteBucketLifecycleRequest *)request;
/**
<p>Deletes the lifecycle configuration from the bucket.</p>
@param request A container for the necessary parameters to execute the DeleteBucketLifecycle service method.
@param completionHandler The completion handler to call when the load request is complete.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3DeleteBucketLifecycleRequest
*/
- (void)deleteBucketLifecycle:(AWSS3DeleteBucketLifecycleRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler;
/**
<p>Deletes a metrics configuration (specified by the metrics configuration ID) from the bucket.</p>
@param request A container for the necessary parameters to execute the DeleteBucketMetricsConfiguration service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`.
@see AWSS3DeleteBucketMetricsConfigurationRequest
*/
- (AWSTask *)deleteBucketMetricsConfiguration:(AWSS3DeleteBucketMetricsConfigurationRequest *)request;
/**
<p>Deletes a metrics configuration (specified by the metrics configuration ID) from the bucket.</p>
@param request A container for the necessary parameters to execute the DeleteBucketMetricsConfiguration service method.
@param completionHandler The completion handler to call when the load request is complete.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3DeleteBucketMetricsConfigurationRequest
*/
- (void)deleteBucketMetricsConfiguration:(AWSS3DeleteBucketMetricsConfigurationRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler;
/**
<p>Deletes the policy from the bucket.</p>
@param request A container for the necessary parameters to execute the DeleteBucketPolicy service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`.
@see AWSS3DeleteBucketPolicyRequest
*/
- (AWSTask *)deleteBucketPolicy:(AWSS3DeleteBucketPolicyRequest *)request;
/**
<p>Deletes the policy from the bucket.</p>
@param request A container for the necessary parameters to execute the DeleteBucketPolicy service method.
@param completionHandler The completion handler to call when the load request is complete.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3DeleteBucketPolicyRequest
*/
- (void)deleteBucketPolicy:(AWSS3DeleteBucketPolicyRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler;
/**
<p>Deletes the replication configuration from the bucket.</p>
@param request A container for the necessary parameters to execute the DeleteBucketReplication service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`.
@see AWSS3DeleteBucketReplicationRequest
*/
- (AWSTask *)deleteBucketReplication:(AWSS3DeleteBucketReplicationRequest *)request;
/**
<p>Deletes the replication configuration from the bucket.</p>
@param request A container for the necessary parameters to execute the DeleteBucketReplication service method.
@param completionHandler The completion handler to call when the load request is complete.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3DeleteBucketReplicationRequest
*/
- (void)deleteBucketReplication:(AWSS3DeleteBucketReplicationRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler;
/**
<p>Deletes the tags from the bucket.</p>
@param request A container for the necessary parameters to execute the DeleteBucketTagging service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`.
@see AWSS3DeleteBucketTaggingRequest
*/
- (AWSTask *)deleteBucketTagging:(AWSS3DeleteBucketTaggingRequest *)request;
/**
<p>Deletes the tags from the bucket.</p>
@param request A container for the necessary parameters to execute the DeleteBucketTagging service method.
@param completionHandler The completion handler to call when the load request is complete.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3DeleteBucketTaggingRequest
*/
- (void)deleteBucketTagging:(AWSS3DeleteBucketTaggingRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler;
/**
<p>This operation removes the website configuration from the bucket.</p>
@param request A container for the necessary parameters to execute the DeleteBucketWebsite service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will be `nil`.
@see AWSS3DeleteBucketWebsiteRequest
*/
- (AWSTask *)deleteBucketWebsite:(AWSS3DeleteBucketWebsiteRequest *)request;
/**
<p>This operation removes the website configuration from the bucket.</p>
@param request A container for the necessary parameters to execute the DeleteBucketWebsite service method.
@param completionHandler The completion handler to call when the load request is complete.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3DeleteBucketWebsiteRequest
*/
- (void)deleteBucketWebsite:(AWSS3DeleteBucketWebsiteRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler;
/**
<p>Removes the null version (if there is one) of an object and inserts a delete marker, which becomes the latest version of the object. If there isn't a null version, Amazon S3 does not remove any objects.</p>
@param request A container for the necessary parameters to execute the DeleteObject service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSS3DeleteObjectOutput`.
@see AWSS3DeleteObjectRequest
@see AWSS3DeleteObjectOutput
*/
- (AWSTask<AWSS3DeleteObjectOutput *> *)deleteObject:(AWSS3DeleteObjectRequest *)request;
/**
<p>Removes the null version (if there is one) of an object and inserts a delete marker, which becomes the latest version of the object. If there isn't a null version, Amazon S3 does not remove any objects.</p>
@param request A container for the necessary parameters to execute the DeleteObject service method.
@param completionHandler The completion handler to call when the load request is complete.
`response` - A response object, or `nil` if the request failed.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3DeleteObjectRequest
@see AWSS3DeleteObjectOutput
*/
- (void)deleteObject:(AWSS3DeleteObjectRequest *)request completionHandler:(void (^ _Nullable)(AWSS3DeleteObjectOutput * _Nullable response, NSError * _Nullable error))completionHandler;
/**
<p>Removes the tag-set from an existing object.</p>
@param request A container for the necessary parameters to execute the DeleteObjectTagging service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSS3DeleteObjectTaggingOutput`.
@see AWSS3DeleteObjectTaggingRequest
@see AWSS3DeleteObjectTaggingOutput
*/
- (AWSTask<AWSS3DeleteObjectTaggingOutput *> *)deleteObjectTagging:(AWSS3DeleteObjectTaggingRequest *)request;
/**
<p>Removes the tag-set from an existing object.</p>
@param request A container for the necessary parameters to execute the DeleteObjectTagging service method.
@param completionHandler The completion handler to call when the load request is complete.
`response` - A response object, or `nil` if the request failed.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3DeleteObjectTaggingRequest
@see AWSS3DeleteObjectTaggingOutput
*/
- (void)deleteObjectTagging:(AWSS3DeleteObjectTaggingRequest *)request completionHandler:(void (^ _Nullable)(AWSS3DeleteObjectTaggingOutput * _Nullable response, NSError * _Nullable error))completionHandler;
/**
<p>This operation enables you to delete multiple objects from a bucket using a single HTTP request. You may specify up to 1000 keys.</p>
@param request A container for the necessary parameters to execute the DeleteObjects service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSS3DeleteObjectsOutput`.
@see AWSS3DeleteObjectsRequest
@see AWSS3DeleteObjectsOutput
*/
- (AWSTask<AWSS3DeleteObjectsOutput *> *)deleteObjects:(AWSS3DeleteObjectsRequest *)request;
/**
<p>This operation enables you to delete multiple objects from a bucket using a single HTTP request. You may specify up to 1000 keys.</p>
@param request A container for the necessary parameters to execute the DeleteObjects service method.
@param completionHandler The completion handler to call when the load request is complete.
`response` - A response object, or `nil` if the request failed.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3DeleteObjectsRequest
@see AWSS3DeleteObjectsOutput
*/
- (void)deleteObjects:(AWSS3DeleteObjectsRequest *)request completionHandler:(void (^ _Nullable)(AWSS3DeleteObjectsOutput * _Nullable response, NSError * _Nullable error))completionHandler;
/**
<p>Returns the accelerate configuration of a bucket.</p>
@param request A container for the necessary parameters to execute the GetBucketAccelerateConfiguration service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSS3GetBucketAccelerateConfigurationOutput`.
@see AWSS3GetBucketAccelerateConfigurationRequest
@see AWSS3GetBucketAccelerateConfigurationOutput
*/
- (AWSTask<AWSS3GetBucketAccelerateConfigurationOutput *> *)getBucketAccelerateConfiguration:(AWSS3GetBucketAccelerateConfigurationRequest *)request;
/**
<p>Returns the accelerate configuration of a bucket.</p>
@param request A container for the necessary parameters to execute the GetBucketAccelerateConfiguration service method.
@param completionHandler The completion handler to call when the load request is complete.
`response` - A response object, or `nil` if the request failed.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3GetBucketAccelerateConfigurationRequest
@see AWSS3GetBucketAccelerateConfigurationOutput
*/
- (void)getBucketAccelerateConfiguration:(AWSS3GetBucketAccelerateConfigurationRequest *)request completionHandler:(void (^ _Nullable)(AWSS3GetBucketAccelerateConfigurationOutput * _Nullable response, NSError * _Nullable error))completionHandler;
/**
<p>Gets the access control policy for the bucket.</p>
@param request A container for the necessary parameters to execute the GetBucketAcl service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSS3GetBucketAclOutput`.
@see AWSS3GetBucketAclRequest
@see AWSS3GetBucketAclOutput
*/
- (AWSTask<AWSS3GetBucketAclOutput *> *)getBucketAcl:(AWSS3GetBucketAclRequest *)request;
/**
<p>Gets the access control policy for the bucket.</p>
@param request A container for the necessary parameters to execute the GetBucketAcl service method.
@param completionHandler The completion handler to call when the load request is complete.
`response` - A response object, or `nil` if the request failed.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3GetBucketAclRequest
@see AWSS3GetBucketAclOutput
*/
- (void)getBucketAcl:(AWSS3GetBucketAclRequest *)request completionHandler:(void (^ _Nullable)(AWSS3GetBucketAclOutput * _Nullable response, NSError * _Nullable error))completionHandler;
/**
<p>Gets an analytics configuration for the bucket (specified by the analytics configuration ID).</p>
@param request A container for the necessary parameters to execute the GetBucketAnalyticsConfiguration service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSS3GetBucketAnalyticsConfigurationOutput`.
@see AWSS3GetBucketAnalyticsConfigurationRequest
@see AWSS3GetBucketAnalyticsConfigurationOutput
*/
- (AWSTask<AWSS3GetBucketAnalyticsConfigurationOutput *> *)getBucketAnalyticsConfiguration:(AWSS3GetBucketAnalyticsConfigurationRequest *)request;
/**
<p>Gets an analytics configuration for the bucket (specified by the analytics configuration ID).</p>
@param request A container for the necessary parameters to execute the GetBucketAnalyticsConfiguration service method.
@param completionHandler The completion handler to call when the load request is complete.
`response` - A response object, or `nil` if the request failed.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3GetBucketAnalyticsConfigurationRequest
@see AWSS3GetBucketAnalyticsConfigurationOutput
*/
- (void)getBucketAnalyticsConfiguration:(AWSS3GetBucketAnalyticsConfigurationRequest *)request completionHandler:(void (^ _Nullable)(AWSS3GetBucketAnalyticsConfigurationOutput * _Nullable response, NSError * _Nullable error))completionHandler;
/**
<p>Returns the cors configuration for the bucket.</p>
@param request A container for the necessary parameters to execute the GetBucketCors service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSS3GetBucketCorsOutput`.
@see AWSS3GetBucketCorsRequest
@see AWSS3GetBucketCorsOutput
*/
- (AWSTask<AWSS3GetBucketCorsOutput *> *)getBucketCors:(AWSS3GetBucketCorsRequest *)request;
/**
<p>Returns the cors configuration for the bucket.</p>
@param request A container for the necessary parameters to execute the GetBucketCors service method.
@param completionHandler The completion handler to call when the load request is complete.
`response` - A response object, or `nil` if the request failed.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3GetBucketCorsRequest
@see AWSS3GetBucketCorsOutput
*/
- (void)getBucketCors:(AWSS3GetBucketCorsRequest *)request completionHandler:(void (^ _Nullable)(AWSS3GetBucketCorsOutput * _Nullable response, NSError * _Nullable error))completionHandler;
/**
<p>Returns the server-side encryption configuration of a bucket.</p>
@param request A container for the necessary parameters to execute the GetBucketEncryption service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSS3GetBucketEncryptionOutput`.
@see AWSS3GetBucketEncryptionRequest
@see AWSS3GetBucketEncryptionOutput
*/
- (AWSTask<AWSS3GetBucketEncryptionOutput *> *)getBucketEncryption:(AWSS3GetBucketEncryptionRequest *)request;
/**
<p>Returns the server-side encryption configuration of a bucket.</p>
@param request A container for the necessary parameters to execute the GetBucketEncryption service method.
@param completionHandler The completion handler to call when the load request is complete.
`response` - A response object, or `nil` if the request failed.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3GetBucketEncryptionRequest
@see AWSS3GetBucketEncryptionOutput
*/
- (void)getBucketEncryption:(AWSS3GetBucketEncryptionRequest *)request completionHandler:(void (^ _Nullable)(AWSS3GetBucketEncryptionOutput * _Nullable response, NSError * _Nullable error))completionHandler;
/**
<p>Returns an inventory configuration (identified by the inventory ID) from the bucket.</p>
@param request A container for the necessary parameters to execute the GetBucketInventoryConfiguration service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSS3GetBucketInventoryConfigurationOutput`.
@see AWSS3GetBucketInventoryConfigurationRequest
@see AWSS3GetBucketInventoryConfigurationOutput
*/
- (AWSTask<AWSS3GetBucketInventoryConfigurationOutput *> *)getBucketInventoryConfiguration:(AWSS3GetBucketInventoryConfigurationRequest *)request;
/**
<p>Returns an inventory configuration (identified by the inventory ID) from the bucket.</p>
@param request A container for the necessary parameters to execute the GetBucketInventoryConfiguration service method.
@param completionHandler The completion handler to call when the load request is complete.
`response` - A response object, or `nil` if the request failed.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3GetBucketInventoryConfigurationRequest
@see AWSS3GetBucketInventoryConfigurationOutput
*/
- (void)getBucketInventoryConfiguration:(AWSS3GetBucketInventoryConfigurationRequest *)request completionHandler:(void (^ _Nullable)(AWSS3GetBucketInventoryConfigurationOutput * _Nullable response, NSError * _Nullable error))completionHandler;
/**
<p>Deprecated, see the GetBucketLifecycleConfiguration operation.</p>
@param request A container for the necessary parameters to execute the GetBucketLifecycle service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSS3GetBucketLifecycleOutput`.
@see AWSS3GetBucketLifecycleRequest
@see AWSS3GetBucketLifecycleOutput
*/
- (AWSTask<AWSS3GetBucketLifecycleOutput *> *)getBucketLifecycle:(AWSS3GetBucketLifecycleRequest *)request;
/**
<p>Deprecated, see the GetBucketLifecycleConfiguration operation.</p>
@param request A container for the necessary parameters to execute the GetBucketLifecycle service method.
@param completionHandler The completion handler to call when the load request is complete.
`response` - A response object, or `nil` if the request failed.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3GetBucketLifecycleRequest
@see AWSS3GetBucketLifecycleOutput
*/
- (void)getBucketLifecycle:(AWSS3GetBucketLifecycleRequest *)request completionHandler:(void (^ _Nullable)(AWSS3GetBucketLifecycleOutput * _Nullable response, NSError * _Nullable error))completionHandler;
/**
<p>Returns the lifecycle configuration information set on the bucket.</p>
@param request A container for the necessary parameters to execute the GetBucketLifecycleConfiguration service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSS3GetBucketLifecycleConfigurationOutput`.
@see AWSS3GetBucketLifecycleConfigurationRequest
@see AWSS3GetBucketLifecycleConfigurationOutput
*/
- (AWSTask<AWSS3GetBucketLifecycleConfigurationOutput *> *)getBucketLifecycleConfiguration:(AWSS3GetBucketLifecycleConfigurationRequest *)request;
/**
<p>Returns the lifecycle configuration information set on the bucket.</p>
@param request A container for the necessary parameters to execute the GetBucketLifecycleConfiguration service method.
@param completionHandler The completion handler to call when the load request is complete.
`response` - A response object, or `nil` if the request failed.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3GetBucketLifecycleConfigurationRequest
@see AWSS3GetBucketLifecycleConfigurationOutput
*/
- (void)getBucketLifecycleConfiguration:(AWSS3GetBucketLifecycleConfigurationRequest *)request completionHandler:(void (^ _Nullable)(AWSS3GetBucketLifecycleConfigurationOutput * _Nullable response, NSError * _Nullable error))completionHandler;
/**
<p>Returns the region the bucket resides in.</p>
@param request A container for the necessary parameters to execute the GetBucketLocation service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSS3GetBucketLocationOutput`.
@see AWSS3GetBucketLocationRequest
@see AWSS3GetBucketLocationOutput
*/
- (AWSTask<AWSS3GetBucketLocationOutput *> *)getBucketLocation:(AWSS3GetBucketLocationRequest *)request;
/**
<p>Returns the region the bucket resides in.</p>
@param request A container for the necessary parameters to execute the GetBucketLocation service method.
@param completionHandler The completion handler to call when the load request is complete.
`response` - A response object, or `nil` if the request failed.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3GetBucketLocationRequest
@see AWSS3GetBucketLocationOutput
*/
- (void)getBucketLocation:(AWSS3GetBucketLocationRequest *)request completionHandler:(void (^ _Nullable)(AWSS3GetBucketLocationOutput * _Nullable response, NSError * _Nullable error))completionHandler;
/**
<p>Returns the logging status of a bucket and the permissions users have to view and modify that status. To use GET, you must be the bucket owner.</p>
@param request A container for the necessary parameters to execute the GetBucketLogging service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSS3GetBucketLoggingOutput`.
@see AWSS3GetBucketLoggingRequest
@see AWSS3GetBucketLoggingOutput
*/
- (AWSTask<AWSS3GetBucketLoggingOutput *> *)getBucketLogging:(AWSS3GetBucketLoggingRequest *)request;
/**
<p>Returns the logging status of a bucket and the permissions users have to view and modify that status. To use GET, you must be the bucket owner.</p>
@param request A container for the necessary parameters to execute the GetBucketLogging service method.
@param completionHandler The completion handler to call when the load request is complete.
`response` - A response object, or `nil` if the request failed.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3GetBucketLoggingRequest
@see AWSS3GetBucketLoggingOutput
*/
- (void)getBucketLogging:(AWSS3GetBucketLoggingRequest *)request completionHandler:(void (^ _Nullable)(AWSS3GetBucketLoggingOutput * _Nullable response, NSError * _Nullable error))completionHandler;
/**
<p>Gets a metrics configuration (specified by the metrics configuration ID) from the bucket.</p>
@param request A container for the necessary parameters to execute the GetBucketMetricsConfiguration service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSS3GetBucketMetricsConfigurationOutput`.
@see AWSS3GetBucketMetricsConfigurationRequest
@see AWSS3GetBucketMetricsConfigurationOutput
*/
- (AWSTask<AWSS3GetBucketMetricsConfigurationOutput *> *)getBucketMetricsConfiguration:(AWSS3GetBucketMetricsConfigurationRequest *)request;
/**
<p>Gets a metrics configuration (specified by the metrics configuration ID) from the bucket.</p>
@param request A container for the necessary parameters to execute the GetBucketMetricsConfiguration service method.
@param completionHandler The completion handler to call when the load request is complete.
`response` - A response object, or `nil` if the request failed.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3GetBucketMetricsConfigurationRequest
@see AWSS3GetBucketMetricsConfigurationOutput
*/
- (void)getBucketMetricsConfiguration:(AWSS3GetBucketMetricsConfigurationRequest *)request completionHandler:(void (^ _Nullable)(AWSS3GetBucketMetricsConfigurationOutput * _Nullable response, NSError * _Nullable error))completionHandler;
/**
<p>Deprecated, see the GetBucketNotificationConfiguration operation.</p>
@param request A container for the necessary parameters to execute the GetBucketNotification service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSS3NotificationConfigurationDeprecated`.
@see AWSS3GetBucketNotificationConfigurationRequest
@see AWSS3NotificationConfigurationDeprecated
*/
- (AWSTask<AWSS3NotificationConfigurationDeprecated *> *)getBucketNotification:(AWSS3GetBucketNotificationConfigurationRequest *)request;
/**
<p>Deprecated, see the GetBucketNotificationConfiguration operation.</p>
@param request A container for the necessary parameters to execute the GetBucketNotification service method.
@param completionHandler The completion handler to call when the load request is complete.
`response` - A response object, or `nil` if the request failed.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3GetBucketNotificationConfigurationRequest
@see AWSS3NotificationConfigurationDeprecated
*/
- (void)getBucketNotification:(AWSS3GetBucketNotificationConfigurationRequest *)request completionHandler:(void (^ _Nullable)(AWSS3NotificationConfigurationDeprecated * _Nullable response, NSError * _Nullable error))completionHandler;
/**
<p>Returns the notification configuration of a bucket.</p>
@param request A container for the necessary parameters to execute the GetBucketNotificationConfiguration service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSS3NotificationConfiguration`.
@see AWSS3GetBucketNotificationConfigurationRequest
@see AWSS3NotificationConfiguration
*/
- (AWSTask<AWSS3NotificationConfiguration *> *)getBucketNotificationConfiguration:(AWSS3GetBucketNotificationConfigurationRequest *)request;
/**
<p>Returns the notification configuration of a bucket.</p>
@param request A container for the necessary parameters to execute the GetBucketNotificationConfiguration service method.
@param completionHandler The completion handler to call when the load request is complete.
`response` - A response object, or `nil` if the request failed.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3GetBucketNotificationConfigurationRequest
@see AWSS3NotificationConfiguration
*/
- (void)getBucketNotificationConfiguration:(AWSS3GetBucketNotificationConfigurationRequest *)request completionHandler:(void (^ _Nullable)(AWSS3NotificationConfiguration * _Nullable response, NSError * _Nullable error))completionHandler;
/**
<p>Returns the policy of a specified bucket.</p>
@param request A container for the necessary parameters to execute the GetBucketPolicy service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSS3GetBucketPolicyOutput`.
@see AWSS3GetBucketPolicyRequest
@see AWSS3GetBucketPolicyOutput
*/
- (AWSTask<AWSS3GetBucketPolicyOutput *> *)getBucketPolicy:(AWSS3GetBucketPolicyRequest *)request;
/**
<p>Returns the policy of a specified bucket.</p>
@param request A container for the necessary parameters to execute the GetBucketPolicy service method.
@param completionHandler The completion handler to call when the load request is complete.
`response` - A response object, or `nil` if the request failed.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3GetBucketPolicyRequest
@see AWSS3GetBucketPolicyOutput
*/
- (void)getBucketPolicy:(AWSS3GetBucketPolicyRequest *)request completionHandler:(void (^ _Nullable)(AWSS3GetBucketPolicyOutput * _Nullable response, NSError * _Nullable error))completionHandler;
/**
<p>Returns the replication configuration of a bucket.</p>
@param request A container for the necessary parameters to execute the GetBucketReplication service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSS3GetBucketReplicationOutput`.
@see AWSS3GetBucketReplicationRequest
@see AWSS3GetBucketReplicationOutput
*/
- (AWSTask<AWSS3GetBucketReplicationOutput *> *)getBucketReplication:(AWSS3GetBucketReplicationRequest *)request;
/**
<p>Returns the replication configuration of a bucket.</p>
@param request A container for the necessary parameters to execute the GetBucketReplication service method.
@param completionHandler The completion handler to call when the load request is complete.
`response` - A response object, or `nil` if the request failed.
`error` - An error object that indicates why the request failed, or `nil` if the request was successful.
@see AWSS3GetBucketReplicationRequest
@see AWSS3GetBucketReplicationOutput
*/
- (void)getBucketReplication:(AWSS3GetBucketReplicationRequest *)request completionHandler:(void (^ _Nullable)(AWSS3GetBucketReplicationOutput * _Nullable response, NSError * _Nullable error))completionHandler;
/**
<p>Returns the request payment configuration of a bucket.</p>
@param request A container for the necessary parameters to execute the GetBucketRequestPayment service method.
@return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSS3GetBucketRequestPaymentOutput`.