code: def get_command_invocation(self, **kwargs):
          
  
          command_id = kwargs.get('CommandId')
          instance_id = kwargs.get('InstanceId')
          plugin_name = kwargs.get('PluginName', None)
  
          command = self.get_command_by_id(command_id)
          return command.get_invocation(instance_id, plugin_name)
docs: https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_GetCommandInvocation.html