#NEWLINE# def confirm_subscription( self , topic , token , authenticate_on_unsubscribe = False ) : #NEWLINE# #INDENT# '\n        Get properties of a Topic\n\n        :type topic: string\n        :param topic: The ARN of the new topic.\n\n        :type token: string\n        :param token: Short-lived token sent to and endpoint during\n                      the Subscribe operation.\n\n        :type authenticate_on_unsubscribe: bool\n        :param authenticate_on_unsubscribe: Optional parameter indicating\n                                            that you wish to disable\n                                            unauthenticated unsubscription\n                                            of the subscription.\n\n        ' #NEWLINE# params = { #NEWLINE# #INDENT# 'ContentType' : 'JSON' , #NEWLINE# 'TopicArn' : topic , #NEWLINE# 'Token' : token , #NEWLINE# #UNINDENT# } #NEWLINE# if authenticate_on_unsubscribe : #NEWLINE# #INDENT# params [ 'AuthenticateOnUnsubscribe' ] = 'true' #NEWLINE# #UNINDENT# response = self . make_request ( 'ConfirmSubscription' , params , '/' , 'GET' ) #NEWLINE# body = response . read ( ) #NEWLINE# if ( response . status == 200 ) : #NEWLINE# #INDENT# return json . loads ( body ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# boto . log . error ( ( '%s %s' % ( response . status , response . reason ) ) ) #NEWLINE# boto . log . error ( ( '%s' % body ) ) #NEWLINE# raise self . ResponseError ( response . status , response . reason , body )