def put_notification_configuration(Bucket, TopicConfigurations=None, QueueConfigurations=None, LambdaFunctionConfigurations=None, region=None, key=None, keyid=None, profile=None):
 try:
  conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  if (TopicConfigurations is None):
   TopicConfigurations = []
  elif isinstance(TopicConfigurations, six.string_types):
   TopicConfigurations = json.loads(TopicConfigurations)
  if (QueueConfigurations is None):
   QueueConfigurations = []
  elif isinstance(QueueConfigurations, six.string_types):
   QueueConfigurations = json.loads(QueueConfigurations)
  if (LambdaFunctionConfigurations is None):
   LambdaFunctionConfigurations = []
  elif isinstance(LambdaFunctionConfigurations, six.string_types):
   LambdaFunctionConfigurations = json.loads(LambdaFunctionConfigurations)
  conn.put_bucket_notification_configuration(Bucket=Bucket, NotificationConfiguration={'TopicConfigurations': TopicConfigurations, 'QueueConfigurations': QueueConfigurations, 'LambdaFunctionConfigurations': LambdaFunctionConfigurations})
  return {'updated': True, 'name': Bucket}
 except ClientError as e:
  return {'updated': False, 'error': __utils__['boto3.get_error'](e)}

def put_notification_configuration ( Bucket , TopicConfigurations = None , QueueConfigurations = None , LambdaFunctionConfigurations = None , region = None , key = None , keyid = None , profile = None ) : try : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) if ( TopicConfigurations is None ) : TopicConfigurations = [ ] elif isinstance ( TopicConfigurations , six . string_types ) : TopicConfigurations = json . loads ( TopicConfigurations ) if ( QueueConfigurations is None ) : QueueConfigurations = [ ] elif isinstance ( QueueConfigurations , six . string_types ) : QueueConfigurations = json . loads ( QueueConfigurations ) if ( LambdaFunctionConfigurations is None ) : LambdaFunctionConfigurations = [ ] elif isinstance ( LambdaFunctionConfigurations , six . string_types ) : LambdaFunctionConfigurations = json . loads ( LambdaFunctionConfigurations ) conn . put_bucket_notification_configuration ( Bucket = Bucket , NotificationConfiguration = { 'TopicConfigurations' : TopicConfigurations , 'QueueConfigurations' : QueueConfigurations , 'LambdaFunctionConfigurations' : LambdaFunctionConfigurations } ) return { 'updated' : True , 'name' : Bucket } except ClientError as e : return { 'updated' : False , 'error' : __utils__ [ 'boto3.get_error' ] ( e ) }
given a valid config .