File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
python/rpdk/python/templates Expand file tree Collapse file tree 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(
6868
6969 # Example:
7070 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
7272
7373 # Reading the Resource Hook's target current properties and previous properties
7474 resource_properties = target_model .get ("resourceProperties" )
7575 previous_properties = target_model .get ("previousResourceProperties" )
7676
77- if resource_properties .get ("encryptionAlgorithm " ) != previous_properties .get ("encryptionAlgorithm " ):
77+ if resource_properties .get ("BucketEncryption " ) != previous_properties .get ("BucketEncryption " ):
7878 progress .status = OperationStatus .FAILED
79- progress .message = "Encryption algorithm can not be changed"
79+ progress .message = "Encryption configuration can not be changed"
8080 else :
8181 progress .status = OperationStatus .SUCCESS
8282 except TypeError as e :
You can’t perform that action at this time.
0 commit comments