aws-sdk-s3control 1.13.0 → 1.14.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
  SHA1:
3
- metadata.gz: 63c2e799313657facbad2dd52c76fea3be8c39f5
4
- data.tar.gz: 8c24ad8a37649e88ec1033a6cfc058898f6b778e
3
+ metadata.gz: ca70ea437e8a961369c29153ac01180d9b1dd592
4
+ data.tar.gz: bff7a51ff32eb071f5328723d7a33f3ed871f62d
5
5
  SHA512:
6
- metadata.gz: 52ac47e995e015c691a8ea5837e70798029cf516ad943d74d64cbaac9b8c895153c91b721bf306ec95d3a2600c1bcf991faab80f616a697be93fb2a084e9444d
7
- data.tar.gz: c2e5651c8e6e534ac062a72182cdc8e4fbabc4ed01b0bf2f3346cc4769a04058224e9281b1480c2dc715ba5307ab0dad5a939c9c54800fa3ce3ae1a5a9dab0b6
6
+ metadata.gz: 11db881115462ef1fd6d527a0150e6a784f9eae1da211bb5ff44d09508b8d7e50891146f1da714a5b5266bb0a18e6fe7ec0ec23136d07964b87b9c800bcfce39
7
+ data.tar.gz: 9c5717c2e21d2b6e12a7bf5e1ee519fe8edb158b658e743939954855df10a94e4780003207f4456589c7cb42c2979e85e5691b6566f6446d6750a92be963997d
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-s3control/customizations'
42
42
  # @service
43
43
  module Aws::S3Control
44
44
 
45
- GEM_VERSION = '1.13.0'
45
+ GEM_VERSION = '1.14.0'
46
46
 
47
47
  end
@@ -264,6 +264,62 @@ module Aws::S3Control
264
264
 
265
265
  # @!group API Operations
266
266
 
267
+ # Creates an access point and associates it with the specified bucket.
268
+ #
269
+ # @option params [required, String] :account_id
270
+ # The AWS account ID for the owner of the bucket for which you want to
271
+ # create an access point.
272
+ #
273
+ # @option params [required, String] :name
274
+ # The name you want to assign to this access point.
275
+ #
276
+ # @option params [required, String] :bucket
277
+ # The name of the bucket that you want to associate this access point
278
+ # with.
279
+ #
280
+ # @option params [Types::VpcConfiguration] :vpc_configuration
281
+ # If you include this field, Amazon S3 restricts access to this access
282
+ # point to requests from the specified Virtual Private Cloud (VPC).
283
+ #
284
+ # @option params [Types::PublicAccessBlockConfiguration] :public_access_block_configuration
285
+ # The `PublicAccessBlock` configuration that you want to apply to this
286
+ # Amazon S3 bucket. You can enable the configuration options in any
287
+ # combination. For more information about when Amazon S3 considers a
288
+ # bucket or object public, see [The Meaning of "Public"][1] in the
289
+ # Amazon Simple Storage Service Developer Guide.
290
+ #
291
+ #
292
+ #
293
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status
294
+ #
295
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
296
+ #
297
+ # @example Request syntax with placeholder values
298
+ #
299
+ # resp = client.create_access_point({
300
+ # account_id: "AccountId", # required
301
+ # name: "AccessPointName", # required
302
+ # bucket: "BucketName", # required
303
+ # vpc_configuration: {
304
+ # vpc_id: "VpcId", # required
305
+ # },
306
+ # public_access_block_configuration: {
307
+ # block_public_acls: false,
308
+ # ignore_public_acls: false,
309
+ # block_public_policy: false,
310
+ # restrict_public_buckets: false,
311
+ # },
312
+ # })
313
+ #
314
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/CreateAccessPoint AWS API Documentation
315
+ #
316
+ # @overload create_access_point(params = {})
317
+ # @param [Hash] params ({})
318
+ def create_access_point(params = {}, options = {})
319
+ req = build_request(:create_access_point, params)
320
+ req.send_request(options)
321
+ end
322
+
267
323
  # Creates an Amazon S3 batch operations job.
268
324
  #
269
325
  # @option params [required, String] :account_id
@@ -440,12 +496,64 @@ module Aws::S3Control
440
496
  req.send_request(options)
441
497
  end
442
498
 
443
- # Deletes the block public access configuration for the specified
444
- # account.
499
+ # Deletes the specified access point.
500
+ #
501
+ # @option params [required, String] :account_id
502
+ # The account ID for the account that owns the specified access point.
503
+ #
504
+ # @option params [required, String] :name
505
+ # The name of the access point you want to delete.
506
+ #
507
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
508
+ #
509
+ # @example Request syntax with placeholder values
510
+ #
511
+ # resp = client.delete_access_point({
512
+ # account_id: "AccountId", # required
513
+ # name: "AccessPointName", # required
514
+ # })
515
+ #
516
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/DeleteAccessPoint AWS API Documentation
517
+ #
518
+ # @overload delete_access_point(params = {})
519
+ # @param [Hash] params ({})
520
+ def delete_access_point(params = {}, options = {})
521
+ req = build_request(:delete_access_point, params)
522
+ req.send_request(options)
523
+ end
524
+
525
+ # Deletes the access point policy for the specified access point.
526
+ #
527
+ # @option params [required, String] :account_id
528
+ # The account ID for the account that owns the specified access point.
529
+ #
530
+ # @option params [required, String] :name
531
+ # The name of the access point whose policy you want to delete.
532
+ #
533
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
534
+ #
535
+ # @example Request syntax with placeholder values
536
+ #
537
+ # resp = client.delete_access_point_policy({
538
+ # account_id: "AccountId", # required
539
+ # name: "AccessPointName", # required
540
+ # })
541
+ #
542
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/DeleteAccessPointPolicy AWS API Documentation
543
+ #
544
+ # @overload delete_access_point_policy(params = {})
545
+ # @param [Hash] params ({})
546
+ def delete_access_point_policy(params = {}, options = {})
547
+ req = build_request(:delete_access_point_policy, params)
548
+ req.send_request(options)
549
+ end
550
+
551
+ # Removes the `PublicAccessBlock` configuration for an Amazon Web
552
+ # Services account.
445
553
  #
446
554
  # @option params [required, String] :account_id
447
- # The account ID for the AWS account whose block public access
448
- # configuration you want to delete.
555
+ # The account ID for the Amazon Web Services account whose
556
+ # `PublicAccessBlock` configuration you want to remove.
449
557
  #
450
558
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
451
559
  #
@@ -571,7 +679,130 @@ module Aws::S3Control
571
679
  req.send_request(options)
572
680
  end
573
681
 
682
+ # Returns configuration information about the specified access point.
683
+ #
684
+ # @option params [required, String] :account_id
685
+ # The account ID for the account that owns the specified access point.
686
+ #
687
+ # @option params [required, String] :name
688
+ # The name of the access point whose configuration information you want
689
+ # to retrieve.
690
+ #
691
+ # @return [Types::GetAccessPointResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
692
+ #
693
+ # * {Types::GetAccessPointResult#name #name} => String
694
+ # * {Types::GetAccessPointResult#bucket #bucket} => String
695
+ # * {Types::GetAccessPointResult#network_origin #network_origin} => String
696
+ # * {Types::GetAccessPointResult#vpc_configuration #vpc_configuration} => Types::VpcConfiguration
697
+ # * {Types::GetAccessPointResult#public_access_block_configuration #public_access_block_configuration} => Types::PublicAccessBlockConfiguration
698
+ # * {Types::GetAccessPointResult#creation_date #creation_date} => Time
699
+ #
700
+ # @example Request syntax with placeholder values
701
+ #
702
+ # resp = client.get_access_point({
703
+ # account_id: "AccountId", # required
704
+ # name: "AccessPointName", # required
705
+ # })
706
+ #
707
+ # @example Response structure
708
+ #
709
+ # resp.name #=> String
710
+ # resp.bucket #=> String
711
+ # resp.network_origin #=> String, one of "Internet", "VPC"
712
+ # resp.vpc_configuration.vpc_id #=> String
713
+ # resp.public_access_block_configuration.block_public_acls #=> Boolean
714
+ # resp.public_access_block_configuration.ignore_public_acls #=> Boolean
715
+ # resp.public_access_block_configuration.block_public_policy #=> Boolean
716
+ # resp.public_access_block_configuration.restrict_public_buckets #=> Boolean
717
+ # resp.creation_date #=> Time
718
+ #
719
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/GetAccessPoint AWS API Documentation
720
+ #
721
+ # @overload get_access_point(params = {})
722
+ # @param [Hash] params ({})
723
+ def get_access_point(params = {}, options = {})
724
+ req = build_request(:get_access_point, params)
725
+ req.send_request(options)
726
+ end
727
+
728
+ # Returns the access point policy associated with the specified access
729
+ # point.
730
+ #
731
+ # @option params [required, String] :account_id
732
+ # The account ID for the account that owns the specified access point.
733
+ #
734
+ # @option params [required, String] :name
735
+ # The name of the access point whose policy you want to retrieve.
736
+ #
737
+ # @return [Types::GetAccessPointPolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
738
+ #
739
+ # * {Types::GetAccessPointPolicyResult#policy #policy} => String
740
+ #
741
+ # @example Request syntax with placeholder values
742
+ #
743
+ # resp = client.get_access_point_policy({
744
+ # account_id: "AccountId", # required
745
+ # name: "AccessPointName", # required
746
+ # })
747
+ #
748
+ # @example Response structure
749
+ #
750
+ # resp.policy #=> String
751
+ #
752
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/GetAccessPointPolicy AWS API Documentation
753
+ #
754
+ # @overload get_access_point_policy(params = {})
755
+ # @param [Hash] params ({})
756
+ def get_access_point_policy(params = {}, options = {})
757
+ req = build_request(:get_access_point_policy, params)
758
+ req.send_request(options)
759
+ end
760
+
761
+ # Indicates whether the specified access point currently has a policy
762
+ # that allows public access. For more information about public access
763
+ # through access points, see [Managing Data Access with Amazon S3 Access
764
+ # Points][1] in the *Amazon Simple Storage Service Developer Guide*.
765
+ #
766
+ #
767
+ #
768
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/access-points.html
769
+ #
574
770
  # @option params [required, String] :account_id
771
+ # The account ID for the account that owns the specified access point.
772
+ #
773
+ # @option params [required, String] :name
774
+ # The name of the access point whose policy status you want to retrieve.
775
+ #
776
+ # @return [Types::GetAccessPointPolicyStatusResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
777
+ #
778
+ # * {Types::GetAccessPointPolicyStatusResult#policy_status #policy_status} => Types::PolicyStatus
779
+ #
780
+ # @example Request syntax with placeholder values
781
+ #
782
+ # resp = client.get_access_point_policy_status({
783
+ # account_id: "AccountId", # required
784
+ # name: "AccessPointName", # required
785
+ # })
786
+ #
787
+ # @example Response structure
788
+ #
789
+ # resp.policy_status.is_public #=> Boolean
790
+ #
791
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/GetAccessPointPolicyStatus AWS API Documentation
792
+ #
793
+ # @overload get_access_point_policy_status(params = {})
794
+ # @param [Hash] params ({})
795
+ def get_access_point_policy_status(params = {}, options = {})
796
+ req = build_request(:get_access_point_policy_status, params)
797
+ req.send_request(options)
798
+ end
799
+
800
+ # Retrieves the `PublicAccessBlock` configuration for an Amazon Web
801
+ # Services account.
802
+ #
803
+ # @option params [required, String] :account_id
804
+ # The account ID for the Amazon Web Services account whose
805
+ # `PublicAccessBlock` configuration you want to retrieve.
575
806
  #
576
807
  # @return [Types::GetPublicAccessBlockOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
577
808
  #
@@ -599,6 +830,65 @@ module Aws::S3Control
599
830
  req.send_request(options)
600
831
  end
601
832
 
833
+ # Returns a list of the access points currently associated with the
834
+ # specified bucket. You can retrieve up to 1000 access points per call.
835
+ # If the specified bucket has more than 1000 access points (or the
836
+ # number specified in `maxResults`, whichever is less), then the
837
+ # response will include a continuation token that you can use to list
838
+ # the additional access points.
839
+ #
840
+ # @option params [required, String] :account_id
841
+ # The AWS account ID for owner of the bucket whose access points you
842
+ # want to list.
843
+ #
844
+ # @option params [String] :bucket
845
+ # The name of the bucket whose associated access points you want to
846
+ # list.
847
+ #
848
+ # @option params [String] :next_token
849
+ # A continuation token. If a previous call to `ListAccessPoints`
850
+ # returned a continuation token in the `NextToken` field, then providing
851
+ # that value here causes Amazon S3 to retrieve the next page of results.
852
+ #
853
+ # @option params [Integer] :max_results
854
+ # The maximum number of access points that you want to include in the
855
+ # list. If the specified bucket has more than this number of access
856
+ # points, then the response will include a continuation token in the
857
+ # `NextToken` field that you can use to retrieve the next page of access
858
+ # points.
859
+ #
860
+ # @return [Types::ListAccessPointsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
861
+ #
862
+ # * {Types::ListAccessPointsResult#access_point_list #access_point_list} => Array<Types::AccessPoint>
863
+ # * {Types::ListAccessPointsResult#next_token #next_token} => String
864
+ #
865
+ # @example Request syntax with placeholder values
866
+ #
867
+ # resp = client.list_access_points({
868
+ # account_id: "AccountId", # required
869
+ # bucket: "BucketName",
870
+ # next_token: "NonEmptyMaxLength1024String",
871
+ # max_results: 1,
872
+ # })
873
+ #
874
+ # @example Response structure
875
+ #
876
+ # resp.access_point_list #=> Array
877
+ # resp.access_point_list[0].name #=> String
878
+ # resp.access_point_list[0].network_origin #=> String, one of "Internet", "VPC"
879
+ # resp.access_point_list[0].vpc_configuration.vpc_id #=> String
880
+ # resp.access_point_list[0].bucket #=> String
881
+ # resp.next_token #=> String
882
+ #
883
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/ListAccessPoints AWS API Documentation
884
+ #
885
+ # @overload list_access_points(params = {})
886
+ # @param [Hash] params ({})
887
+ def list_access_points(params = {}, options = {})
888
+ req = build_request(:list_access_points, params)
889
+ req.send_request(options)
890
+ end
891
+
602
892
  # Lists current jobs and jobs that have ended within the last 30 days
603
893
  # for the AWS account making the request.
604
894
  #
@@ -657,9 +947,58 @@ module Aws::S3Control
657
947
  req.send_request(options)
658
948
  end
659
949
 
950
+ # Associates an access policy with the specified access point. Each
951
+ # access point can have only one policy, so a request made to this API
952
+ # replaces any existing policy associated with the specified access
953
+ # point.
954
+ #
955
+ # @option params [required, String] :account_id
956
+ # The AWS account ID for owner of the bucket associated with the
957
+ # specified access point.
958
+ #
959
+ # @option params [required, String] :name
960
+ # The name of the access point that you want to associate with the
961
+ # specified policy.
962
+ #
963
+ # @option params [required, String] :policy
964
+ # The policy that you want to apply to the specified access point. For
965
+ # more information about access point policies, see [Managing Data
966
+ # Access with Amazon S3 Access Points][1] in the *Amazon Simple Storage
967
+ # Service Developer Guide*.
968
+ #
969
+ #
970
+ #
971
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/access-points.html
972
+ #
973
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
974
+ #
975
+ # @example Request syntax with placeholder values
976
+ #
977
+ # resp = client.put_access_point_policy({
978
+ # account_id: "AccountId", # required
979
+ # name: "AccessPointName", # required
980
+ # policy: "Policy", # required
981
+ # })
982
+ #
983
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/PutAccessPointPolicy AWS API Documentation
984
+ #
985
+ # @overload put_access_point_policy(params = {})
986
+ # @param [Hash] params ({})
987
+ def put_access_point_policy(params = {}, options = {})
988
+ req = build_request(:put_access_point_policy, params)
989
+ req.send_request(options)
990
+ end
991
+
992
+ # Creates or modifies the `PublicAccessBlock` configuration for an
993
+ # Amazon Web Services account.
994
+ #
660
995
  # @option params [required, Types::PublicAccessBlockConfiguration] :public_access_block_configuration
996
+ # The `PublicAccessBlock` configuration that you want to apply to the
997
+ # specified Amazon Web Services account.
661
998
  #
662
999
  # @option params [required, String] :account_id
1000
+ # The account ID for the Amazon Web Services account whose
1001
+ # `PublicAccessBlock` configuration you want to set.
663
1002
  #
664
1003
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
665
1004
  #
@@ -779,7 +1118,7 @@ module Aws::S3Control
779
1118
  params: params,
780
1119
  config: config)
781
1120
  context[:gem_name] = 'aws-sdk-s3control'
782
- context[:gem_version] = '1.13.0'
1121
+ context[:gem_version] = '1.14.0'
783
1122
  Seahorse::Client::Request.new(handlers, context)
784
1123
  end
785
1124
 
@@ -11,16 +11,30 @@ module Aws::S3Control
11
11
 
12
12
  include Seahorse::Model
13
13
 
14
+ AccessPoint = Shapes::StructureShape.new(name: 'AccessPoint')
15
+ AccessPointList = Shapes::ListShape.new(name: 'AccessPointList')
16
+ AccessPointName = Shapes::StringShape.new(name: 'AccessPointName')
14
17
  AccountId = Shapes::StringShape.new(name: 'AccountId')
15
18
  BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
16
19
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
20
+ BucketName = Shapes::StringShape.new(name: 'BucketName')
17
21
  ConfirmationRequired = Shapes::BooleanShape.new(name: 'ConfirmationRequired')
22
+ CreateAccessPointRequest = Shapes::StructureShape.new(name: 'CreateAccessPointRequest')
18
23
  CreateJobRequest = Shapes::StructureShape.new(name: 'CreateJobRequest')
19
24
  CreateJobResult = Shapes::StructureShape.new(name: 'CreateJobResult')
25
+ CreationDate = Shapes::TimestampShape.new(name: 'CreationDate')
26
+ DeleteAccessPointPolicyRequest = Shapes::StructureShape.new(name: 'DeleteAccessPointPolicyRequest')
27
+ DeleteAccessPointRequest = Shapes::StructureShape.new(name: 'DeleteAccessPointRequest')
20
28
  DeletePublicAccessBlockRequest = Shapes::StructureShape.new(name: 'DeletePublicAccessBlockRequest')
21
29
  DescribeJobRequest = Shapes::StructureShape.new(name: 'DescribeJobRequest')
22
30
  DescribeJobResult = Shapes::StructureShape.new(name: 'DescribeJobResult')
23
31
  ExceptionMessage = Shapes::StringShape.new(name: 'ExceptionMessage')
32
+ GetAccessPointPolicyRequest = Shapes::StructureShape.new(name: 'GetAccessPointPolicyRequest')
33
+ GetAccessPointPolicyResult = Shapes::StructureShape.new(name: 'GetAccessPointPolicyResult')
34
+ GetAccessPointPolicyStatusRequest = Shapes::StructureShape.new(name: 'GetAccessPointPolicyStatusRequest')
35
+ GetAccessPointPolicyStatusResult = Shapes::StructureShape.new(name: 'GetAccessPointPolicyStatusResult')
36
+ GetAccessPointRequest = Shapes::StructureShape.new(name: 'GetAccessPointRequest')
37
+ GetAccessPointResult = Shapes::StructureShape.new(name: 'GetAccessPointResult')
24
38
  GetPublicAccessBlockOutput = Shapes::StructureShape.new(name: 'GetPublicAccessBlockOutput')
25
39
  GetPublicAccessBlockRequest = Shapes::StructureShape.new(name: 'GetPublicAccessBlockRequest')
26
40
  IAMRoleArn = Shapes::StringShape.new(name: 'IAMRoleArn')
@@ -28,6 +42,7 @@ module Aws::S3Control
28
42
  InternalServiceException = Shapes::StructureShape.new(name: 'InternalServiceException')
29
43
  InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
30
44
  InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
45
+ IsPublic = Shapes::BooleanShape.new(name: 'IsPublic')
31
46
  JobArn = Shapes::StringShape.new(name: 'JobArn')
32
47
  JobCreationTime = Shapes::TimestampShape.new(name: 'JobCreationTime')
33
48
  JobDescriptor = Shapes::StructureShape.new(name: 'JobDescriptor')
@@ -60,10 +75,13 @@ module Aws::S3Control
60
75
  JobTotalNumberOfTasks = Shapes::IntegerShape.new(name: 'JobTotalNumberOfTasks')
61
76
  KmsKeyArnString = Shapes::StringShape.new(name: 'KmsKeyArnString')
62
77
  LambdaInvokeOperation = Shapes::StructureShape.new(name: 'LambdaInvokeOperation')
78
+ ListAccessPointsRequest = Shapes::StructureShape.new(name: 'ListAccessPointsRequest')
79
+ ListAccessPointsResult = Shapes::StructureShape.new(name: 'ListAccessPointsResult')
63
80
  ListJobsRequest = Shapes::StructureShape.new(name: 'ListJobsRequest')
64
81
  ListJobsResult = Shapes::StructureShape.new(name: 'ListJobsResult')
65
82
  MaxLength1024String = Shapes::StringShape.new(name: 'MaxLength1024String')
66
83
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
84
+ NetworkOrigin = Shapes::StringShape.new(name: 'NetworkOrigin')
67
85
  NoSuchPublicAccessBlockConfiguration = Shapes::StructureShape.new(name: 'NoSuchPublicAccessBlockConfiguration')
68
86
  NoSuchPublicAccessBlockConfigurationMessage = Shapes::StringShape.new(name: 'NoSuchPublicAccessBlockConfigurationMessage')
69
87
  NonEmptyMaxLength1024String = Shapes::StringShape.new(name: 'NonEmptyMaxLength1024String')
@@ -72,7 +90,10 @@ module Aws::S3Control
72
90
  NonEmptyMaxLength64String = Shapes::StringShape.new(name: 'NonEmptyMaxLength64String')
73
91
  NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
74
92
  OperationName = Shapes::StringShape.new(name: 'OperationName')
93
+ Policy = Shapes::StringShape.new(name: 'Policy')
94
+ PolicyStatus = Shapes::StructureShape.new(name: 'PolicyStatus')
75
95
  PublicAccessBlockConfiguration = Shapes::StructureShape.new(name: 'PublicAccessBlockConfiguration')
96
+ PutAccessPointPolicyRequest = Shapes::StructureShape.new(name: 'PutAccessPointPolicyRequest')
76
97
  PutPublicAccessBlockRequest = Shapes::StructureShape.new(name: 'PutPublicAccessBlockRequest')
77
98
  ReportPrefixString = Shapes::StringShape.new(name: 'ReportPrefixString')
78
99
  RequestedJobStatus = Shapes::StringShape.new(name: 'RequestedJobStatus')
@@ -113,10 +134,27 @@ module Aws::S3Control
113
134
  UpdateJobPriorityResult = Shapes::StructureShape.new(name: 'UpdateJobPriorityResult')
114
135
  UpdateJobStatusRequest = Shapes::StructureShape.new(name: 'UpdateJobStatusRequest')
115
136
  UpdateJobStatusResult = Shapes::StructureShape.new(name: 'UpdateJobStatusResult')
137
+ VpcConfiguration = Shapes::StructureShape.new(name: 'VpcConfiguration')
138
+ VpcId = Shapes::StringShape.new(name: 'VpcId')
139
+
140
+ AccessPoint.add_member(:name, Shapes::ShapeRef.new(shape: AccessPointName, required: true, location_name: "Name"))
141
+ AccessPoint.add_member(:network_origin, Shapes::ShapeRef.new(shape: NetworkOrigin, required: true, location_name: "NetworkOrigin"))
142
+ AccessPoint.add_member(:vpc_configuration, Shapes::ShapeRef.new(shape: VpcConfiguration, location_name: "VpcConfiguration"))
143
+ AccessPoint.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location_name: "Bucket"))
144
+ AccessPoint.struct_class = Types::AccessPoint
145
+
146
+ AccessPointList.member = Shapes::ShapeRef.new(shape: AccessPoint, location_name: "AccessPoint")
116
147
 
117
148
  BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
118
149
  BadRequestException.struct_class = Types::BadRequestException
119
150
 
151
+ CreateAccessPointRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location: "header", location_name: "x-amz-account-id"))
152
+ CreateAccessPointRequest.add_member(:name, Shapes::ShapeRef.new(shape: AccessPointName, required: true, location: "uri", location_name: "name"))
153
+ CreateAccessPointRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location_name: "Bucket"))
154
+ CreateAccessPointRequest.add_member(:vpc_configuration, Shapes::ShapeRef.new(shape: VpcConfiguration, location_name: "VpcConfiguration"))
155
+ CreateAccessPointRequest.add_member(:public_access_block_configuration, Shapes::ShapeRef.new(shape: PublicAccessBlockConfiguration, location_name: "PublicAccessBlockConfiguration"))
156
+ CreateAccessPointRequest.struct_class = Types::CreateAccessPointRequest
157
+
120
158
  CreateJobRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location: "header", location_name: "x-amz-account-id"))
121
159
  CreateJobRequest.add_member(:confirmation_required, Shapes::ShapeRef.new(shape: ConfirmationRequired, location_name: "ConfirmationRequired", metadata: {"box"=>true}))
122
160
  CreateJobRequest.add_member(:operation, Shapes::ShapeRef.new(shape: JobOperation, required: true, location_name: "Operation"))
@@ -131,6 +169,14 @@ module Aws::S3Control
131
169
  CreateJobResult.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId"))
132
170
  CreateJobResult.struct_class = Types::CreateJobResult
133
171
 
172
+ DeleteAccessPointPolicyRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location: "header", location_name: "x-amz-account-id"))
173
+ DeleteAccessPointPolicyRequest.add_member(:name, Shapes::ShapeRef.new(shape: AccessPointName, required: true, location: "uri", location_name: "name"))
174
+ DeleteAccessPointPolicyRequest.struct_class = Types::DeleteAccessPointPolicyRequest
175
+
176
+ DeleteAccessPointRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location: "header", location_name: "x-amz-account-id"))
177
+ DeleteAccessPointRequest.add_member(:name, Shapes::ShapeRef.new(shape: AccessPointName, required: true, location: "uri", location_name: "name"))
178
+ DeleteAccessPointRequest.struct_class = Types::DeleteAccessPointRequest
179
+
134
180
  DeletePublicAccessBlockRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location: "header", location_name: "x-amz-account-id"))
135
181
  DeletePublicAccessBlockRequest.struct_class = Types::DeletePublicAccessBlockRequest
136
182
 
@@ -141,6 +187,32 @@ module Aws::S3Control
141
187
  DescribeJobResult.add_member(:job, Shapes::ShapeRef.new(shape: JobDescriptor, location_name: "Job"))
142
188
  DescribeJobResult.struct_class = Types::DescribeJobResult
143
189
 
190
+ GetAccessPointPolicyRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location: "header", location_name: "x-amz-account-id"))
191
+ GetAccessPointPolicyRequest.add_member(:name, Shapes::ShapeRef.new(shape: AccessPointName, required: true, location: "uri", location_name: "name"))
192
+ GetAccessPointPolicyRequest.struct_class = Types::GetAccessPointPolicyRequest
193
+
194
+ GetAccessPointPolicyResult.add_member(:policy, Shapes::ShapeRef.new(shape: Policy, location_name: "Policy"))
195
+ GetAccessPointPolicyResult.struct_class = Types::GetAccessPointPolicyResult
196
+
197
+ GetAccessPointPolicyStatusRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location: "header", location_name: "x-amz-account-id"))
198
+ GetAccessPointPolicyStatusRequest.add_member(:name, Shapes::ShapeRef.new(shape: AccessPointName, required: true, location: "uri", location_name: "name"))
199
+ GetAccessPointPolicyStatusRequest.struct_class = Types::GetAccessPointPolicyStatusRequest
200
+
201
+ GetAccessPointPolicyStatusResult.add_member(:policy_status, Shapes::ShapeRef.new(shape: PolicyStatus, location_name: "PolicyStatus"))
202
+ GetAccessPointPolicyStatusResult.struct_class = Types::GetAccessPointPolicyStatusResult
203
+
204
+ GetAccessPointRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location: "header", location_name: "x-amz-account-id"))
205
+ GetAccessPointRequest.add_member(:name, Shapes::ShapeRef.new(shape: AccessPointName, required: true, location: "uri", location_name: "name"))
206
+ GetAccessPointRequest.struct_class = Types::GetAccessPointRequest
207
+
208
+ GetAccessPointResult.add_member(:name, Shapes::ShapeRef.new(shape: AccessPointName, location_name: "Name"))
209
+ GetAccessPointResult.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, location_name: "Bucket"))
210
+ GetAccessPointResult.add_member(:network_origin, Shapes::ShapeRef.new(shape: NetworkOrigin, location_name: "NetworkOrigin"))
211
+ GetAccessPointResult.add_member(:vpc_configuration, Shapes::ShapeRef.new(shape: VpcConfiguration, location_name: "VpcConfiguration"))
212
+ GetAccessPointResult.add_member(:public_access_block_configuration, Shapes::ShapeRef.new(shape: PublicAccessBlockConfiguration, location_name: "PublicAccessBlockConfiguration"))
213
+ GetAccessPointResult.add_member(:creation_date, Shapes::ShapeRef.new(shape: CreationDate, location_name: "CreationDate"))
214
+ GetAccessPointResult.struct_class = Types::GetAccessPointResult
215
+
144
216
  GetPublicAccessBlockOutput.add_member(:public_access_block_configuration, Shapes::ShapeRef.new(shape: PublicAccessBlockConfiguration, location_name: "PublicAccessBlockConfiguration"))
145
217
  GetPublicAccessBlockOutput.struct_class = Types::GetPublicAccessBlockOutput
146
218
  GetPublicAccessBlockOutput[:payload] = :public_access_block_configuration
@@ -240,6 +312,16 @@ module Aws::S3Control
240
312
  LambdaInvokeOperation.add_member(:function_arn, Shapes::ShapeRef.new(shape: NonEmptyMaxLength1024String, location_name: "FunctionArn"))
241
313
  LambdaInvokeOperation.struct_class = Types::LambdaInvokeOperation
242
314
 
315
+ ListAccessPointsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location: "header", location_name: "x-amz-account-id"))
316
+ ListAccessPointsRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, location: "querystring", location_name: "bucket"))
317
+ ListAccessPointsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NonEmptyMaxLength1024String, location: "querystring", location_name: "nextToken"))
318
+ ListAccessPointsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
319
+ ListAccessPointsRequest.struct_class = Types::ListAccessPointsRequest
320
+
321
+ ListAccessPointsResult.add_member(:access_point_list, Shapes::ShapeRef.new(shape: AccessPointList, location_name: "AccessPointList"))
322
+ ListAccessPointsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: NonEmptyMaxLength1024String, location_name: "NextToken"))
323
+ ListAccessPointsResult.struct_class = Types::ListAccessPointsResult
324
+
243
325
  ListJobsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location: "header", location_name: "x-amz-account-id"))
244
326
  ListJobsRequest.add_member(:job_statuses, Shapes::ShapeRef.new(shape: JobStatusList, location: "querystring", location_name: "jobStatuses"))
245
327
  ListJobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NonEmptyMaxLength1024String, location: "querystring", location_name: "nextToken"))
@@ -256,12 +338,20 @@ module Aws::S3Control
256
338
  NotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
257
339
  NotFoundException.struct_class = Types::NotFoundException
258
340
 
341
+ PolicyStatus.add_member(:is_public, Shapes::ShapeRef.new(shape: IsPublic, location_name: "IsPublic"))
342
+ PolicyStatus.struct_class = Types::PolicyStatus
343
+
259
344
  PublicAccessBlockConfiguration.add_member(:block_public_acls, Shapes::ShapeRef.new(shape: Setting, location_name: "BlockPublicAcls"))
260
345
  PublicAccessBlockConfiguration.add_member(:ignore_public_acls, Shapes::ShapeRef.new(shape: Setting, location_name: "IgnorePublicAcls"))
261
346
  PublicAccessBlockConfiguration.add_member(:block_public_policy, Shapes::ShapeRef.new(shape: Setting, location_name: "BlockPublicPolicy"))
262
347
  PublicAccessBlockConfiguration.add_member(:restrict_public_buckets, Shapes::ShapeRef.new(shape: Setting, location_name: "RestrictPublicBuckets"))
263
348
  PublicAccessBlockConfiguration.struct_class = Types::PublicAccessBlockConfiguration
264
349
 
350
+ PutAccessPointPolicyRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location: "header", location_name: "x-amz-account-id"))
351
+ PutAccessPointPolicyRequest.add_member(:name, Shapes::ShapeRef.new(shape: AccessPointName, required: true, location: "uri", location_name: "name"))
352
+ PutAccessPointPolicyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: Policy, required: true, location_name: "Policy"))
353
+ PutAccessPointPolicyRequest.struct_class = Types::PutAccessPointPolicyRequest
354
+
265
355
  PutPublicAccessBlockRequest.add_member(:public_access_block_configuration, Shapes::ShapeRef.new(shape: PublicAccessBlockConfiguration, required: true, location_name: "PublicAccessBlockConfiguration", metadata: {"xmlNamespace"=>{"uri"=>"http://awss3control.amazonaws.com/doc/2018-08-20/"}}))
266
356
  PutPublicAccessBlockRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location: "header", location_name: "x-amz-account-id"))
267
357
  PutPublicAccessBlockRequest.struct_class = Types::PutPublicAccessBlockRequest
@@ -364,6 +454,9 @@ module Aws::S3Control
364
454
  UpdateJobStatusResult.add_member(:status_update_reason, Shapes::ShapeRef.new(shape: JobStatusUpdateReason, location_name: "StatusUpdateReason"))
365
455
  UpdateJobStatusResult.struct_class = Types::UpdateJobStatusResult
366
456
 
457
+ VpcConfiguration.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, required: true, location_name: "VpcId"))
458
+ VpcConfiguration.struct_class = Types::VpcConfiguration
459
+
367
460
 
368
461
  # @api private
369
462
  API = Seahorse::Model::Api.new.tap do |api|
@@ -381,6 +474,19 @@ module Aws::S3Control
381
474
  "uid" => "s3control-2018-08-20",
382
475
  }
383
476
 
477
+ api.add_operation(:create_access_point, Seahorse::Model::Operation.new.tap do |o|
478
+ o.name = "CreateAccessPoint"
479
+ o.http_method = "PUT"
480
+ o.http_request_uri = "/v20180820/accesspoint/{name}"
481
+ o.input = Shapes::ShapeRef.new(shape: CreateAccessPointRequest,
482
+ location_name: "CreateAccessPointRequest",
483
+ metadata: {
484
+ "xmlNamespace" => {"uri"=>"http://awss3control.amazonaws.com/doc/2018-08-20/"}
485
+ }
486
+ )
487
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
488
+ end)
489
+
384
490
  api.add_operation(:create_job, Seahorse::Model::Operation.new.tap do |o|
385
491
  o.name = "CreateJob"
386
492
  o.http_method = "POST"
@@ -398,6 +504,22 @@ module Aws::S3Control
398
504
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
399
505
  end)
400
506
 
507
+ api.add_operation(:delete_access_point, Seahorse::Model::Operation.new.tap do |o|
508
+ o.name = "DeleteAccessPoint"
509
+ o.http_method = "DELETE"
510
+ o.http_request_uri = "/v20180820/accesspoint/{name}"
511
+ o.input = Shapes::ShapeRef.new(shape: DeleteAccessPointRequest)
512
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
513
+ end)
514
+
515
+ api.add_operation(:delete_access_point_policy, Seahorse::Model::Operation.new.tap do |o|
516
+ o.name = "DeleteAccessPointPolicy"
517
+ o.http_method = "DELETE"
518
+ o.http_request_uri = "/v20180820/accesspoint/{name}/policy"
519
+ o.input = Shapes::ShapeRef.new(shape: DeleteAccessPointPolicyRequest)
520
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
521
+ end)
522
+
401
523
  api.add_operation(:delete_public_access_block, Seahorse::Model::Operation.new.tap do |o|
402
524
  o.name = "DeletePublicAccessBlock"
403
525
  o.http_method = "DELETE"
@@ -418,6 +540,30 @@ module Aws::S3Control
418
540
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
419
541
  end)
420
542
 
543
+ api.add_operation(:get_access_point, Seahorse::Model::Operation.new.tap do |o|
544
+ o.name = "GetAccessPoint"
545
+ o.http_method = "GET"
546
+ o.http_request_uri = "/v20180820/accesspoint/{name}"
547
+ o.input = Shapes::ShapeRef.new(shape: GetAccessPointRequest)
548
+ o.output = Shapes::ShapeRef.new(shape: GetAccessPointResult)
549
+ end)
550
+
551
+ api.add_operation(:get_access_point_policy, Seahorse::Model::Operation.new.tap do |o|
552
+ o.name = "GetAccessPointPolicy"
553
+ o.http_method = "GET"
554
+ o.http_request_uri = "/v20180820/accesspoint/{name}/policy"
555
+ o.input = Shapes::ShapeRef.new(shape: GetAccessPointPolicyRequest)
556
+ o.output = Shapes::ShapeRef.new(shape: GetAccessPointPolicyResult)
557
+ end)
558
+
559
+ api.add_operation(:get_access_point_policy_status, Seahorse::Model::Operation.new.tap do |o|
560
+ o.name = "GetAccessPointPolicyStatus"
561
+ o.http_method = "GET"
562
+ o.http_request_uri = "/v20180820/accesspoint/{name}/policyStatus"
563
+ o.input = Shapes::ShapeRef.new(shape: GetAccessPointPolicyStatusRequest)
564
+ o.output = Shapes::ShapeRef.new(shape: GetAccessPointPolicyStatusResult)
565
+ end)
566
+
421
567
  api.add_operation(:get_public_access_block, Seahorse::Model::Operation.new.tap do |o|
422
568
  o.name = "GetPublicAccessBlock"
423
569
  o.http_method = "GET"
@@ -427,6 +573,20 @@ module Aws::S3Control
427
573
  o.errors << Shapes::ShapeRef.new(shape: NoSuchPublicAccessBlockConfiguration)
428
574
  end)
429
575
 
576
+ api.add_operation(:list_access_points, Seahorse::Model::Operation.new.tap do |o|
577
+ o.name = "ListAccessPoints"
578
+ o.http_method = "GET"
579
+ o.http_request_uri = "/v20180820/accesspoint"
580
+ o.input = Shapes::ShapeRef.new(shape: ListAccessPointsRequest)
581
+ o.output = Shapes::ShapeRef.new(shape: ListAccessPointsResult)
582
+ o[:pager] = Aws::Pager.new(
583
+ limit_key: "max_results",
584
+ tokens: {
585
+ "next_token" => "next_token"
586
+ }
587
+ )
588
+ end)
589
+
430
590
  api.add_operation(:list_jobs, Seahorse::Model::Operation.new.tap do |o|
431
591
  o.name = "ListJobs"
432
592
  o.http_method = "GET"
@@ -444,6 +604,19 @@ module Aws::S3Control
444
604
  )
445
605
  end)
446
606
 
607
+ api.add_operation(:put_access_point_policy, Seahorse::Model::Operation.new.tap do |o|
608
+ o.name = "PutAccessPointPolicy"
609
+ o.http_method = "PUT"
610
+ o.http_request_uri = "/v20180820/accesspoint/{name}/policy"
611
+ o.input = Shapes::ShapeRef.new(shape: PutAccessPointPolicyRequest,
612
+ location_name: "PutAccessPointPolicyRequest",
613
+ metadata: {
614
+ "xmlNamespace" => {"uri"=>"http://awss3control.amazonaws.com/doc/2018-08-20/"}
615
+ }
616
+ )
617
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
618
+ end)
619
+
447
620
  api.add_operation(:put_public_access_block, Seahorse::Model::Operation.new.tap do |o|
448
621
  o.name = "PutPublicAccessBlock"
449
622
  o.http_method = "PUT"