aws-sdk-s3control 1.70.0 → 1.71.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e35b2658e2aeb8a28b84378e08c026d60683a39db7e1ed432f6f242f66f0ed2
4
- data.tar.gz: 720649aa0eeb801bfffc1081b8da6c1e04caa3c78b5f59a357d0aef21db6425d
3
+ metadata.gz: 4c193729415550e7bf223e63ef3660ea72dc64e7050aa02a7cb03ae675ae979a
4
+ data.tar.gz: 7510cbfec65ac4aedd5ab1fade1a785b1ac7eb2e805ee961d4c8c6a1247c4d2c
5
5
  SHA512:
6
- metadata.gz: 95cee8ad90c8b8ab1e5e6c0f06ab201f77336e64f21761a1003b6ebc323b0047961bb75c84c0a64f1efaad03e08b0887b1005785e998d79fd7d8707de176fa90
7
- data.tar.gz: 4b521b31c23b69e1264720b66c3ea444597b83abe03c077cd103a08ed2976aedc129ea2d134a638360663ada80e2a2e46a2c1f66832500d9522b4340299e972f
6
+ metadata.gz: 4688eefda8a2ee0206d33cda8f3f01e178e582ab4cbe063f123f7966117dd442d97f25eb27f73cfbe88c17d8277f5b50d892111243ccec9447205428e900283a
7
+ data.tar.gz: 136cc3fc715dd97cb66b280d17c5cdd1d4845b789af9bda48ff180267478b0cc7fd8df51bf0d8a619b2fa97dd078131b6a7c5a20ddf10a5eb8e5b0d1a5a38363
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.71.0 (2023-11-15)
5
+ ------------------
6
+
7
+ * Feature - Add 5 APIs to create, update, get, list, delete S3 Storage Lens group(eg. CreateStorageLensGroup), 3 APIs for tagging(TagResource,UntagResource,ListTagsForResource), and update to StorageLensConfiguration to allow metrics to be aggregated on Storage Lens groups.
8
+
4
9
  1.70.0 (2023-09-27)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.70.0
1
+ 1.71.0
@@ -1102,6 +1102,122 @@ module Aws::S3Control
1102
1102
  req.send_request(options)
1103
1103
  end
1104
1104
 
1105
+ # Creates a new S3 Storage Lens group and associates it with the
1106
+ # specified Amazon Web Services account ID. An S3 Storage Lens group is
1107
+ # a custom grouping of objects based on prefix, suffix, object tags,
1108
+ # object size, object age, or a combination of these filters. For each
1109
+ # Storage Lens group that you’ve created, you can also optionally add
1110
+ # Amazon Web Services resource tags. For more information about S3
1111
+ # Storage Lens groups, see [Working with S3 Storage Lens groups][1].
1112
+ #
1113
+ # To use this operation, you must have the permission to perform the
1114
+ # `s3:CreateStorageLensGroup` action. If you’re trying to create a
1115
+ # Storage Lens group with Amazon Web Services resource tags, you must
1116
+ # also have permission to perform the `s3:TagResource` action. For more
1117
+ # information about the required Storage Lens Groups permissions, see
1118
+ # [Setting account permissions to use S3 Storage Lens groups][2].
1119
+ #
1120
+ # For information about Storage Lens groups errors, see [List of Amazon
1121
+ # S3 Storage Lens error codes][3].
1122
+ #
1123
+ #
1124
+ #
1125
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-lens-groups-overview.html
1126
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_iam_permissions.html#storage_lens_groups_permissions
1127
+ # [3]: https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#S3LensErrorCodeList
1128
+ #
1129
+ # @option params [String] :account_id
1130
+ # The Amazon Web Services account ID that the Storage Lens group is
1131
+ # created from and associated with.
1132
+ #
1133
+ # @option params [required, Types::StorageLensGroup] :storage_lens_group
1134
+ # The Storage Lens group configuration.
1135
+ #
1136
+ # @option params [Array<Types::Tag>] :tags
1137
+ # The Amazon Web Services resource tags that you're adding to your
1138
+ # Storage Lens group. This parameter is optional.
1139
+ #
1140
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1141
+ #
1142
+ # @example Request syntax with placeholder values
1143
+ #
1144
+ # resp = client.create_storage_lens_group({
1145
+ # account_id: "AccountId",
1146
+ # storage_lens_group: { # required
1147
+ # name: "StorageLensGroupName", # required
1148
+ # filter: { # required
1149
+ # match_any_prefix: ["Prefix"],
1150
+ # match_any_suffix: ["Suffix"],
1151
+ # match_any_tag: [
1152
+ # {
1153
+ # key: "TagKeyString", # required
1154
+ # value: "TagValueString", # required
1155
+ # },
1156
+ # ],
1157
+ # match_object_age: {
1158
+ # days_greater_than: 1,
1159
+ # days_less_than: 1,
1160
+ # },
1161
+ # match_object_size: {
1162
+ # bytes_greater_than: 1,
1163
+ # bytes_less_than: 1,
1164
+ # },
1165
+ # and: {
1166
+ # match_any_prefix: ["Prefix"],
1167
+ # match_any_suffix: ["Suffix"],
1168
+ # match_any_tag: [
1169
+ # {
1170
+ # key: "TagKeyString", # required
1171
+ # value: "TagValueString", # required
1172
+ # },
1173
+ # ],
1174
+ # match_object_age: {
1175
+ # days_greater_than: 1,
1176
+ # days_less_than: 1,
1177
+ # },
1178
+ # match_object_size: {
1179
+ # bytes_greater_than: 1,
1180
+ # bytes_less_than: 1,
1181
+ # },
1182
+ # },
1183
+ # or: {
1184
+ # match_any_prefix: ["Prefix"],
1185
+ # match_any_suffix: ["Suffix"],
1186
+ # match_any_tag: [
1187
+ # {
1188
+ # key: "TagKeyString", # required
1189
+ # value: "TagValueString", # required
1190
+ # },
1191
+ # ],
1192
+ # match_object_age: {
1193
+ # days_greater_than: 1,
1194
+ # days_less_than: 1,
1195
+ # },
1196
+ # match_object_size: {
1197
+ # bytes_greater_than: 1,
1198
+ # bytes_less_than: 1,
1199
+ # },
1200
+ # },
1201
+ # },
1202
+ # storage_lens_group_arn: "StorageLensGroupArn",
1203
+ # },
1204
+ # tags: [
1205
+ # {
1206
+ # key: "TagKeyString", # required
1207
+ # value: "TagValueString", # required
1208
+ # },
1209
+ # ],
1210
+ # })
1211
+ #
1212
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/CreateStorageLensGroup AWS API Documentation
1213
+ #
1214
+ # @overload create_storage_lens_group(params = {})
1215
+ # @param [Hash] params ({})
1216
+ def create_storage_lens_group(params = {}, options = {})
1217
+ req = build_request(:create_storage_lens_group, params)
1218
+ req.send_request(options)
1219
+ end
1220
+
1105
1221
  # Deletes the specified access point.
1106
1222
  #
1107
1223
  # All Amazon S3 on Outposts REST API requests for this action require an
@@ -1394,10 +1510,10 @@ module Aws::S3Control
1394
1510
  # the deleted lifecycle configuration. For more information, see [Using
1395
1511
  # Amazon S3 on Outposts][2] in *Amazon S3 User Guide*.
1396
1512
  #
1397
- # To use this action, you must have permission to perform the
1398
- # `s3-outposts:DeleteLifecycleConfiguration` action. By default, the
1399
- # bucket owner has this permission and the Outposts bucket owner can
1400
- # grant this permission to others.
1513
+ # To use this operation, you must have permission to perform the
1514
+ # `s3-outposts:PutLifecycleConfiguration` action. By default, the bucket
1515
+ # owner has this permission and the Outposts bucket owner can grant this
1516
+ # permission to others.
1401
1517
  #
1402
1518
  # All Amazon S3 on Outposts REST API requests for this action require an
1403
1519
  # additional parameter of `x-amz-outpost-id` to be passed with the
@@ -1956,6 +2072,46 @@ module Aws::S3Control
1956
2072
  req.send_request(options)
1957
2073
  end
1958
2074
 
2075
+ # Deletes an existing S3 Storage Lens group.
2076
+ #
2077
+ # To use this operation, you must have the permission to perform the
2078
+ # `s3:DeleteStorageLensGroup` action. For more information about the
2079
+ # required Storage Lens Groups permissions, see [Setting account
2080
+ # permissions to use S3 Storage Lens groups][1].
2081
+ #
2082
+ # For information about Storage Lens groups errors, see [List of Amazon
2083
+ # S3 Storage Lens error codes][2].
2084
+ #
2085
+ #
2086
+ #
2087
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_iam_permissions.html#storage_lens_groups_permissions
2088
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#S3LensErrorCodeList
2089
+ #
2090
+ # @option params [required, String] :name
2091
+ # The name of the Storage Lens group that you're trying to delete.
2092
+ #
2093
+ # @option params [String] :account_id
2094
+ # The Amazon Web Services account ID used to create the Storage Lens
2095
+ # group that you're trying to delete.
2096
+ #
2097
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2098
+ #
2099
+ # @example Request syntax with placeholder values
2100
+ #
2101
+ # resp = client.delete_storage_lens_group({
2102
+ # name: "StorageLensGroupName", # required
2103
+ # account_id: "AccountId",
2104
+ # })
2105
+ #
2106
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/DeleteStorageLensGroup AWS API Documentation
2107
+ #
2108
+ # @overload delete_storage_lens_group(params = {})
2109
+ # @param [Hash] params ({})
2110
+ def delete_storage_lens_group(params = {}, options = {})
2111
+ req = build_request(:delete_storage_lens_group, params)
2112
+ req.send_request(options)
2113
+ end
2114
+
1959
2115
  # Retrieves the configuration parameters and status for a Batch
1960
2116
  # Operations job. For more information, see [S3 Batch Operations][1] in
1961
2117
  # the *Amazon S3 User Guide*.
@@ -3580,6 +3736,10 @@ module Aws::S3Control
3580
3736
  # resp.storage_lens_configuration.account_level.advanced_cost_optimization_metrics.is_enabled #=> Boolean
3581
3737
  # resp.storage_lens_configuration.account_level.advanced_data_protection_metrics.is_enabled #=> Boolean
3582
3738
  # resp.storage_lens_configuration.account_level.detailed_status_codes_metrics.is_enabled #=> Boolean
3739
+ # resp.storage_lens_configuration.account_level.storage_lens_group_level.selection_criteria.include #=> Array
3740
+ # resp.storage_lens_configuration.account_level.storage_lens_group_level.selection_criteria.include[0] #=> String
3741
+ # resp.storage_lens_configuration.account_level.storage_lens_group_level.selection_criteria.exclude #=> Array
3742
+ # resp.storage_lens_configuration.account_level.storage_lens_group_level.selection_criteria.exclude[0] #=> String
3583
3743
  # resp.storage_lens_configuration.include.buckets #=> Array
3584
3744
  # resp.storage_lens_configuration.include.buckets[0] #=> String
3585
3745
  # resp.storage_lens_configuration.include.regions #=> Array
@@ -3657,6 +3817,87 @@ module Aws::S3Control
3657
3817
  req.send_request(options)
3658
3818
  end
3659
3819
 
3820
+ # Retrieves the Storage Lens group configuration details.
3821
+ #
3822
+ # To use this operation, you must have the permission to perform the
3823
+ # `s3:GetStorageLensGroup` action. For more information about the
3824
+ # required Storage Lens Groups permissions, see [Setting account
3825
+ # permissions to use S3 Storage Lens groups][1].
3826
+ #
3827
+ # For information about Storage Lens groups errors, see [List of Amazon
3828
+ # S3 Storage Lens error codes][2].
3829
+ #
3830
+ #
3831
+ #
3832
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_iam_permissions.html#storage_lens_groups_permissions
3833
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#S3LensErrorCodeList
3834
+ #
3835
+ # @option params [required, String] :name
3836
+ # The name of the Storage Lens group that you're trying to retrieve the
3837
+ # configuration details for.
3838
+ #
3839
+ # @option params [String] :account_id
3840
+ # The Amazon Web Services account ID associated with the Storage Lens
3841
+ # group that you're trying to retrieve the details for.
3842
+ #
3843
+ # @return [Types::GetStorageLensGroupResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3844
+ #
3845
+ # * {Types::GetStorageLensGroupResult#storage_lens_group #storage_lens_group} => Types::StorageLensGroup
3846
+ #
3847
+ # @example Request syntax with placeholder values
3848
+ #
3849
+ # resp = client.get_storage_lens_group({
3850
+ # name: "StorageLensGroupName", # required
3851
+ # account_id: "AccountId",
3852
+ # })
3853
+ #
3854
+ # @example Response structure
3855
+ #
3856
+ # resp.storage_lens_group.name #=> String
3857
+ # resp.storage_lens_group.filter.match_any_prefix #=> Array
3858
+ # resp.storage_lens_group.filter.match_any_prefix[0] #=> String
3859
+ # resp.storage_lens_group.filter.match_any_suffix #=> Array
3860
+ # resp.storage_lens_group.filter.match_any_suffix[0] #=> String
3861
+ # resp.storage_lens_group.filter.match_any_tag #=> Array
3862
+ # resp.storage_lens_group.filter.match_any_tag[0].key #=> String
3863
+ # resp.storage_lens_group.filter.match_any_tag[0].value #=> String
3864
+ # resp.storage_lens_group.filter.match_object_age.days_greater_than #=> Integer
3865
+ # resp.storage_lens_group.filter.match_object_age.days_less_than #=> Integer
3866
+ # resp.storage_lens_group.filter.match_object_size.bytes_greater_than #=> Integer
3867
+ # resp.storage_lens_group.filter.match_object_size.bytes_less_than #=> Integer
3868
+ # resp.storage_lens_group.filter.and.match_any_prefix #=> Array
3869
+ # resp.storage_lens_group.filter.and.match_any_prefix[0] #=> String
3870
+ # resp.storage_lens_group.filter.and.match_any_suffix #=> Array
3871
+ # resp.storage_lens_group.filter.and.match_any_suffix[0] #=> String
3872
+ # resp.storage_lens_group.filter.and.match_any_tag #=> Array
3873
+ # resp.storage_lens_group.filter.and.match_any_tag[0].key #=> String
3874
+ # resp.storage_lens_group.filter.and.match_any_tag[0].value #=> String
3875
+ # resp.storage_lens_group.filter.and.match_object_age.days_greater_than #=> Integer
3876
+ # resp.storage_lens_group.filter.and.match_object_age.days_less_than #=> Integer
3877
+ # resp.storage_lens_group.filter.and.match_object_size.bytes_greater_than #=> Integer
3878
+ # resp.storage_lens_group.filter.and.match_object_size.bytes_less_than #=> Integer
3879
+ # resp.storage_lens_group.filter.or.match_any_prefix #=> Array
3880
+ # resp.storage_lens_group.filter.or.match_any_prefix[0] #=> String
3881
+ # resp.storage_lens_group.filter.or.match_any_suffix #=> Array
3882
+ # resp.storage_lens_group.filter.or.match_any_suffix[0] #=> String
3883
+ # resp.storage_lens_group.filter.or.match_any_tag #=> Array
3884
+ # resp.storage_lens_group.filter.or.match_any_tag[0].key #=> String
3885
+ # resp.storage_lens_group.filter.or.match_any_tag[0].value #=> String
3886
+ # resp.storage_lens_group.filter.or.match_object_age.days_greater_than #=> Integer
3887
+ # resp.storage_lens_group.filter.or.match_object_age.days_less_than #=> Integer
3888
+ # resp.storage_lens_group.filter.or.match_object_size.bytes_greater_than #=> Integer
3889
+ # resp.storage_lens_group.filter.or.match_object_size.bytes_less_than #=> Integer
3890
+ # resp.storage_lens_group.storage_lens_group_arn #=> String
3891
+ #
3892
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/GetStorageLensGroup AWS API Documentation
3893
+ #
3894
+ # @overload get_storage_lens_group(params = {})
3895
+ # @param [Hash] params ({})
3896
+ def get_storage_lens_group(params = {}, options = {})
3897
+ req = build_request(:get_storage_lens_group, params)
3898
+ req.send_request(options)
3899
+ end
3900
+
3660
3901
  # Returns a list of the access points that are owned by the current
3661
3902
  # account that's associated with the specified bucket. You can retrieve
3662
3903
  # up to 1000 access points per call. If the specified bucket has more
@@ -4112,6 +4353,113 @@ module Aws::S3Control
4112
4353
  req.send_request(options)
4113
4354
  end
4114
4355
 
4356
+ # Lists all the Storage Lens groups in the specified home Region.
4357
+ #
4358
+ # To use this operation, you must have the permission to perform the
4359
+ # `s3:ListStorageLensGroups` action. For more information about the
4360
+ # required Storage Lens Groups permissions, see [Setting account
4361
+ # permissions to use S3 Storage Lens groups][1].
4362
+ #
4363
+ # For information about Storage Lens groups errors, see [List of Amazon
4364
+ # S3 Storage Lens error codes][2].
4365
+ #
4366
+ #
4367
+ #
4368
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_iam_permissions.html#storage_lens_groups_permissions
4369
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#S3LensErrorCodeList
4370
+ #
4371
+ # @option params [String] :account_id
4372
+ # The Amazon Web Services account ID that owns the Storage Lens groups.
4373
+ #
4374
+ # @option params [String] :next_token
4375
+ # The token for the next set of results, or `null` if there are no more
4376
+ # results.
4377
+ #
4378
+ # @return [Types::ListStorageLensGroupsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4379
+ #
4380
+ # * {Types::ListStorageLensGroupsResult#next_token #next_token} => String
4381
+ # * {Types::ListStorageLensGroupsResult#storage_lens_group_list #storage_lens_group_list} => Array&lt;Types::ListStorageLensGroupEntry&gt;
4382
+ #
4383
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4384
+ #
4385
+ # @example Request syntax with placeholder values
4386
+ #
4387
+ # resp = client.list_storage_lens_groups({
4388
+ # account_id: "AccountId",
4389
+ # next_token: "ContinuationToken",
4390
+ # })
4391
+ #
4392
+ # @example Response structure
4393
+ #
4394
+ # resp.next_token #=> String
4395
+ # resp.storage_lens_group_list #=> Array
4396
+ # resp.storage_lens_group_list[0].name #=> String
4397
+ # resp.storage_lens_group_list[0].storage_lens_group_arn #=> String
4398
+ # resp.storage_lens_group_list[0].home_region #=> String
4399
+ #
4400
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/ListStorageLensGroups AWS API Documentation
4401
+ #
4402
+ # @overload list_storage_lens_groups(params = {})
4403
+ # @param [Hash] params ({})
4404
+ def list_storage_lens_groups(params = {}, options = {})
4405
+ req = build_request(:list_storage_lens_groups, params)
4406
+ req.send_request(options)
4407
+ end
4408
+
4409
+ # This operation allows you to list all the Amazon Web Services resource
4410
+ # tags for the specified resource.
4411
+ #
4412
+ # To use this operation, you must have the permission to perform the
4413
+ # `s3:ListTagsForResource` action. For more information about the
4414
+ # required Storage Lens Groups permissions, see [Setting account
4415
+ # permissions to use S3 Storage Lens groups][1].
4416
+ #
4417
+ # For information about S3 Tagging errors, see [List of Amazon S3
4418
+ # Tagging error codes][2].
4419
+ #
4420
+ # <note markdown="1"> This operation is only supported for [S3 Storage Lens groups][3].
4421
+ #
4422
+ # </note>
4423
+ #
4424
+ #
4425
+ #
4426
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_iam_permissions.html#storage_lens_groups_permissions
4427
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#S3TaggingErrorCodeList
4428
+ # [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-lens-groups.html
4429
+ #
4430
+ # @option params [String] :account_id
4431
+ # The Amazon Web Services account ID of the resource owner.
4432
+ #
4433
+ # @option params [required, String] :resource_arn
4434
+ # The Amazon Resource Name (ARN) of the S3 resource that you want to
4435
+ # list the tags for.
4436
+ #
4437
+ # @return [Types::ListTagsForResourceResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4438
+ #
4439
+ # * {Types::ListTagsForResourceResult#tags #tags} => Array&lt;Types::Tag&gt;
4440
+ #
4441
+ # @example Request syntax with placeholder values
4442
+ #
4443
+ # resp = client.list_tags_for_resource({
4444
+ # account_id: "AccountId",
4445
+ # resource_arn: "S3ResourceArn", # required
4446
+ # })
4447
+ #
4448
+ # @example Response structure
4449
+ #
4450
+ # resp.tags #=> Array
4451
+ # resp.tags[0].key #=> String
4452
+ # resp.tags[0].value #=> String
4453
+ #
4454
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/ListTagsForResource AWS API Documentation
4455
+ #
4456
+ # @overload list_tags_for_resource(params = {})
4457
+ # @param [Hash] params ({})
4458
+ def list_tags_for_resource(params = {}, options = {})
4459
+ req = build_request(:list_tags_for_resource, params)
4460
+ req.send_request(options)
4461
+ end
4462
+
4115
4463
  # Replaces configuration for an Object Lambda Access Point.
4116
4464
  #
4117
4465
  # The following actions are related to
@@ -5246,6 +5594,12 @@ module Aws::S3Control
5246
5594
  # detailed_status_codes_metrics: {
5247
5595
  # is_enabled: false,
5248
5596
  # },
5597
+ # storage_lens_group_level: {
5598
+ # selection_criteria: {
5599
+ # include: ["StorageLensGroupArn"],
5600
+ # exclude: ["StorageLensGroupArn"],
5601
+ # },
5602
+ # },
5249
5603
  # },
5250
5604
  # include: {
5251
5605
  # buckets: ["S3BucketArnString"],
@@ -5425,6 +5779,115 @@ module Aws::S3Control
5425
5779
  req.send_request(options)
5426
5780
  end
5427
5781
 
5782
+ # Creates a new Amazon Web Services resource tag or updates an existing
5783
+ # resource tag. You can add up to 50 Amazon Web Services resource tags
5784
+ # for each S3 resource.
5785
+ #
5786
+ # To use this operation, you must have the permission to perform the
5787
+ # `s3:TagResource` action. For more information about the required
5788
+ # Storage Lens Groups permissions, see [Setting account permissions to
5789
+ # use S3 Storage Lens groups][1].
5790
+ #
5791
+ # For information about S3 Tagging errors, see [List of Amazon S3
5792
+ # Tagging error codes][2].
5793
+ #
5794
+ # <note markdown="1"> This operation is only supported for [S3 Storage Lens groups][3].
5795
+ #
5796
+ # </note>
5797
+ #
5798
+ #
5799
+ #
5800
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_iam_permissions.html#storage_lens_groups_permissions
5801
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#S3TaggingErrorCodeList
5802
+ # [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-lens-groups.html
5803
+ #
5804
+ # @option params [String] :account_id
5805
+ # The Amazon Web Services account ID that created the S3 resource that
5806
+ # you're trying to add tags to.
5807
+ #
5808
+ # @option params [required, String] :resource_arn
5809
+ # The Amazon Resource Name (ARN) of the S3 resource that you're trying
5810
+ # to add tags to.
5811
+ #
5812
+ # @option params [required, Array<Types::Tag>] :tags
5813
+ # The Amazon Web Services resource tags that you want to add to the
5814
+ # specified S3 resource.
5815
+ #
5816
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
5817
+ #
5818
+ # @example Request syntax with placeholder values
5819
+ #
5820
+ # resp = client.tag_resource({
5821
+ # account_id: "AccountId",
5822
+ # resource_arn: "S3ResourceArn", # required
5823
+ # tags: [ # required
5824
+ # {
5825
+ # key: "TagKeyString", # required
5826
+ # value: "TagValueString", # required
5827
+ # },
5828
+ # ],
5829
+ # })
5830
+ #
5831
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/TagResource AWS API Documentation
5832
+ #
5833
+ # @overload tag_resource(params = {})
5834
+ # @param [Hash] params ({})
5835
+ def tag_resource(params = {}, options = {})
5836
+ req = build_request(:tag_resource, params)
5837
+ req.send_request(options)
5838
+ end
5839
+
5840
+ # This operation removes the specified Amazon Web Services resource tags
5841
+ # from an S3 resource.
5842
+ #
5843
+ # To use this operation, you must have the permission to perform the
5844
+ # `s3:UntagResource` action. For more information about the required
5845
+ # Storage Lens Groups permissions, see [Setting account permissions to
5846
+ # use S3 Storage Lens groups][1].
5847
+ #
5848
+ # For information about S3 Tagging errors, see [List of Amazon S3
5849
+ # Tagging error codes][2].
5850
+ #
5851
+ # <note markdown="1"> This operation is only supported for [S3 Storage Lens groups][3].
5852
+ #
5853
+ # </note>
5854
+ #
5855
+ #
5856
+ #
5857
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_iam_permissions.html#storage_lens_groups_permissions
5858
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#S3TaggingErrorCodeList
5859
+ # [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-lens-groups.html
5860
+ #
5861
+ # @option params [String] :account_id
5862
+ # The Amazon Web Services account ID that owns the resource that you're
5863
+ # trying to remove the tags from.
5864
+ #
5865
+ # @option params [required, String] :resource_arn
5866
+ # The Amazon Resource Name (ARN) of the S3 resource that you want to
5867
+ # remove the resource tags from.
5868
+ #
5869
+ # @option params [required, Array<String>] :tag_keys
5870
+ # The tag key pair of the S3 resource tag that you're trying to remove.
5871
+ #
5872
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
5873
+ #
5874
+ # @example Request syntax with placeholder values
5875
+ #
5876
+ # resp = client.untag_resource({
5877
+ # account_id: "AccountId",
5878
+ # resource_arn: "S3ResourceArn", # required
5879
+ # tag_keys: ["TagKeyString"], # required
5880
+ # })
5881
+ #
5882
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/UntagResource AWS API Documentation
5883
+ #
5884
+ # @overload untag_resource(params = {})
5885
+ # @param [Hash] params ({})
5886
+ def untag_resource(params = {}, options = {})
5887
+ req = build_request(:untag_resource, params)
5888
+ req.send_request(options)
5889
+ end
5890
+
5428
5891
  # Updates an existing S3 Batch Operations job's priority. For more
5429
5892
  # information, see [S3 Batch Operations][1] in the *Amazon S3 User
5430
5893
  # Guide*.
@@ -5555,6 +6018,106 @@ module Aws::S3Control
5555
6018
  req.send_request(options)
5556
6019
  end
5557
6020
 
6021
+ # Updates the existing Storage Lens group.
6022
+ #
6023
+ # To use this operation, you must have the permission to perform the
6024
+ # `s3:UpdateStorageLensGroup` action. For more information about the
6025
+ # required Storage Lens Groups permissions, see [Setting account
6026
+ # permissions to use S3 Storage Lens groups][1].
6027
+ #
6028
+ # For information about Storage Lens groups errors, see [List of Amazon
6029
+ # S3 Storage Lens error codes][2].
6030
+ #
6031
+ #
6032
+ #
6033
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_iam_permissions.html#storage_lens_groups_permissions
6034
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#S3LensErrorCodeList
6035
+ #
6036
+ # @option params [required, String] :name
6037
+ # The name of the Storage Lens group that you want to update.
6038
+ #
6039
+ # @option params [String] :account_id
6040
+ # The Amazon Web Services account ID of the Storage Lens group owner.
6041
+ #
6042
+ # @option params [required, Types::StorageLensGroup] :storage_lens_group
6043
+ # The JSON file that contains the Storage Lens group configuration.
6044
+ #
6045
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
6046
+ #
6047
+ # @example Request syntax with placeholder values
6048
+ #
6049
+ # resp = client.update_storage_lens_group({
6050
+ # name: "StorageLensGroupName", # required
6051
+ # account_id: "AccountId",
6052
+ # storage_lens_group: { # required
6053
+ # name: "StorageLensGroupName", # required
6054
+ # filter: { # required
6055
+ # match_any_prefix: ["Prefix"],
6056
+ # match_any_suffix: ["Suffix"],
6057
+ # match_any_tag: [
6058
+ # {
6059
+ # key: "TagKeyString", # required
6060
+ # value: "TagValueString", # required
6061
+ # },
6062
+ # ],
6063
+ # match_object_age: {
6064
+ # days_greater_than: 1,
6065
+ # days_less_than: 1,
6066
+ # },
6067
+ # match_object_size: {
6068
+ # bytes_greater_than: 1,
6069
+ # bytes_less_than: 1,
6070
+ # },
6071
+ # and: {
6072
+ # match_any_prefix: ["Prefix"],
6073
+ # match_any_suffix: ["Suffix"],
6074
+ # match_any_tag: [
6075
+ # {
6076
+ # key: "TagKeyString", # required
6077
+ # value: "TagValueString", # required
6078
+ # },
6079
+ # ],
6080
+ # match_object_age: {
6081
+ # days_greater_than: 1,
6082
+ # days_less_than: 1,
6083
+ # },
6084
+ # match_object_size: {
6085
+ # bytes_greater_than: 1,
6086
+ # bytes_less_than: 1,
6087
+ # },
6088
+ # },
6089
+ # or: {
6090
+ # match_any_prefix: ["Prefix"],
6091
+ # match_any_suffix: ["Suffix"],
6092
+ # match_any_tag: [
6093
+ # {
6094
+ # key: "TagKeyString", # required
6095
+ # value: "TagValueString", # required
6096
+ # },
6097
+ # ],
6098
+ # match_object_age: {
6099
+ # days_greater_than: 1,
6100
+ # days_less_than: 1,
6101
+ # },
6102
+ # match_object_size: {
6103
+ # bytes_greater_than: 1,
6104
+ # bytes_less_than: 1,
6105
+ # },
6106
+ # },
6107
+ # },
6108
+ # storage_lens_group_arn: "StorageLensGroupArn",
6109
+ # },
6110
+ # })
6111
+ #
6112
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/UpdateStorageLensGroup AWS API Documentation
6113
+ #
6114
+ # @overload update_storage_lens_group(params = {})
6115
+ # @param [Hash] params ({})
6116
+ def update_storage_lens_group(params = {}, options = {})
6117
+ req = build_request(:update_storage_lens_group, params)
6118
+ req.send_request(options)
6119
+ end
6120
+
5558
6121
  # @!endgroup
5559
6122
 
5560
6123
  # @param params ({})
@@ -5568,7 +6131,7 @@ module Aws::S3Control
5568
6131
  params: params,
5569
6132
  config: config)
5570
6133
  context[:gem_name] = 'aws-sdk-s3control'
5571
- context[:gem_version] = '1.70.0'
6134
+ context[:gem_version] = '1.71.0'
5572
6135
  Seahorse::Client::Request.new(handlers, context)
5573
6136
  end
5574
6137