Skip to content

Commit e0fe1a0

Browse files
committed
update S3 provider signature
1 parent b069603 commit e0fe1a0

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

localstack-core/localstack/services/s3/provider.py

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3454,17 +3454,25 @@ def put_bucket_intelligent_tiering_configuration(
34543454
bucket: BucketName,
34553455
id: IntelligentTieringId,
34563456
intelligent_tiering_configuration: IntelligentTieringConfiguration,
3457+
expected_bucket_owner: AccountId | None = None,
34573458
**kwargs,
34583459
) -> None:
3460+
# TODO add support for expected_bucket_owner
34593461
store, s3_bucket = self._get_cross_account_bucket(context, bucket)
34603462

34613463
validate_bucket_intelligent_tiering_configuration(id, intelligent_tiering_configuration)
34623464

34633465
s3_bucket.intelligent_tiering_configurations[id] = intelligent_tiering_configuration
34643466

34653467
def get_bucket_intelligent_tiering_configuration(
3466-
self, context: RequestContext, bucket: BucketName, id: IntelligentTieringId, **kwargs
3468+
self,
3469+
context: RequestContext,
3470+
bucket: BucketName,
3471+
id: IntelligentTieringId,
3472+
expected_bucket_owner: AccountId | None = None,
3473+
**kwargs,
34673474
) -> GetBucketIntelligentTieringConfigurationOutput:
3475+
# TODO add support for expected_bucket_owner
34683476
store, s3_bucket = self._get_cross_account_bucket(context, bucket)
34693477

34703478
if not (itier_config := s3_bucket.intelligent_tiering_configurations.get(id)):
@@ -3475,8 +3483,14 @@ def get_bucket_intelligent_tiering_configuration(
34753483
)
34763484

34773485
def delete_bucket_intelligent_tiering_configuration(
3478-
self, context: RequestContext, bucket: BucketName, id: IntelligentTieringId, **kwargs
3486+
self,
3487+
context: RequestContext,
3488+
bucket: BucketName,
3489+
id: IntelligentTieringId,
3490+
expected_bucket_owner: AccountId | None = None,
3491+
**kwargs,
34793492
) -> None:
3493+
# TODO add support for expected_bucket_owner
34803494
store, s3_bucket = self._get_cross_account_bucket(context, bucket)
34813495

34823496
if not s3_bucket.intelligent_tiering_configurations.pop(id, None):
@@ -3486,9 +3500,11 @@ def list_bucket_intelligent_tiering_configurations(
34863500
self,
34873501
context: RequestContext,
34883502
bucket: BucketName,
3489-
continuation_token: Token = None,
3503+
continuation_token: Token | None = None,
3504+
expected_bucket_owner: AccountId | None = None,
34903505
**kwargs,
34913506
) -> ListBucketIntelligentTieringConfigurationsOutput:
3507+
# TODO add support for expected_bucket_owner
34923508
store, s3_bucket = self._get_cross_account_bucket(context, bucket)
34933509

34943510
return ListBucketIntelligentTieringConfigurationsOutput(

0 commit comments

Comments
 (0)