File tree 1 file changed +3
-3
lines changed
python/rpdk/python/templates
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -68,15 +68,15 @@ def pre_update_handler(
68
68
69
69
# Example:
70
70
try :
71
- # A Hook that does not allow a resource 's encryption algorithm to be modified
71
+ # A Hook that does not allow a S3 bucket 's encryption to be modified
72
72
73
73
# Reading the Resource Hook's target current properties and previous properties
74
74
resource_properties = target_model .get ("resourceProperties" )
75
75
previous_properties = target_model .get ("previousResourceProperties" )
76
76
77
- if resource_properties .get ("encryptionAlgorithm " ) != previous_properties .get ("encryptionAlgorithm " ):
77
+ if resource_properties .get ("BucketEncryption " ) != previous_properties .get ("BucketEncryption " ):
78
78
progress .status = OperationStatus .FAILED
79
- progress .message = "Encryption algorithm can not be changed"
79
+ progress .message = "Encryption configuration can not be changed"
80
80
else :
81
81
progress .status = OperationStatus .SUCCESS
82
82
except TypeError as e :
You can’t perform that action at this time.
0 commit comments