parameters: (context: object, deployment_name: str)
return_statement: return response.get('Status', '') == 'Enabled'
docstring: Check whether content versioning is enabled.
  
          Arguments
              context -- context to use
              deployment_name -- name of the deployment
docstring_summary: Check whether content versioning is enabled.
docstring_tokens: Check whether content versioning is enabled .
function: def content_versioning_enabled(context: object, deployment_name: str) -> bool:
      """
          Check whether content versioning is enabled.
  
          Arguments
              context -- context to use
              deployment_name -- name of the deployment
      """
      s3 = context.aws.client('s3', region=resource_manager.util.get_region_from_arn(context.config.project_stack_id))
      response = s3.get_bucket_versioning(
          Bucket=get_content_bucket_by_name(context, deployment_name)
      )
      return response.get('Status', '') == 'Enabled'
function_tokens: def content_versioning_enabled ( context : object , deployment_name : str ) -> bool : s3 = context . aws . client ( 's3' , region = resource_manager . util . get_region_from_arn ( context . config . project_stack_id ) ) response = s3 . get_bucket_versioning ( Bucket = get_content_bucket_by_name ( context , deployment_name ) ) return response . get ( 'Status' , '' ) == 'Enabled'