Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions samtranslator/model/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class S3Bucket(Resource):
'LoggingConfiguration': PropertyType(False, any_type()),
'MetricsConfigurations': PropertyType(False, any_type()),
'NotificationConfiguration': PropertyType(False, is_type(dict)),
'PublicAccessBlockConfiguration': PropertyType(False, is_type(dict)),
'ReplicationConfiguration': PropertyType(False, any_type()),
'Tags': PropertyType(False, is_type(list)),
'VersioningConfiguration': PropertyType(False, any_type()),
Expand Down
6 changes: 6 additions & 0 deletions tests/translator/input/s3_multiple_functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ Resources:

Images:
Type: AWS::S3::Bucket
Properties:
PublicAccessBlockConfiguration:
BlockPublicAcls: true
BlockPublicPolicy: true
IgnorePublicAcls: true
RestrictPublicBuckets: true
6 changes: 6 additions & 0 deletions tests/translator/output/aws-cn/s3_multiple_functions.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@
"Event": "s3:ObjectCreated:*"
}
]
},
"PublicAccessBlockConfiguration": {
"BlockPublicAcls": true,
"BlockPublicPolicy": true,
"IgnorePublicAcls": true,
"RestrictPublicBuckets": true
}
},
"DependsOn": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@
"Event": "s3:ObjectCreated:*"
}
]
},
"PublicAccessBlockConfiguration": {
"BlockPublicAcls": true,
"BlockPublicPolicy": true,
"IgnorePublicAcls": true,
"RestrictPublicBuckets": true
}
},
"DependsOn": [
Expand Down
6 changes: 6 additions & 0 deletions tests/translator/output/s3_multiple_functions.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@
"Event": "s3:ObjectCreated:*"
}
]
},
"PublicAccessBlockConfiguration": {
"BlockPublicAcls": true,
"BlockPublicPolicy": true,
"IgnorePublicAcls": true,
"RestrictPublicBuckets": true
}
},
"DependsOn": [
Expand Down